Public feed #601844

Mine

public text v1 · immutable
Raw Edit
·published 2007-07-03 19:14 UTC
rendered paste body
on $*:TEXT:*:#eyes: {
  if ($left($1,1) !isin @!.) halt 
  if ($regex($1,/80/Si)) var %style = eighty
  elseif ($regex($1,/90/Si)) var %style = ninty
  elseif ($regex($1,/100/Si)) var %style = onehund
  elseif ($regex($1,/110/Si)) var %style = oneten
  elseif ($regex($1,/send/Si)) var %style = send

  if (%style == eighty) {
    if (!$2) { notice $nick the world to send lvls 45-89 players is $iif(%ey.eighty,%ey.eighty,no world set) $+ .
    }
    elseif ($2 isnum 20-144) {
      set %eighty $2 | notice $nick %eighty is set as the world for 45-89 lvl players to be sent to.
    }
  }
  if (%style == ninty) {
    if (!$2) { notice $nick the world to send lvls 90-99 players is $iif(%ey.ninty,%ey.ninty,no world set) $+ .
    }
    elseif ($2 isnum 20-144) {
      set %ninty $2 | notice $nick %ninty,no world set) is set as the world for 90-99 lvl players to be sent to.
    }
  }
  if (%style == onehund) {
    if (!$2) { notice $nick the world to send 100-109 lvl players is $iif(%ey.onehund,%ey.onehund,no world set) $+ .
    }
    elseif ($2 isnum 20-144) {
      set %onehund $2 | notice $nick %onehund is set as the world for 100-109 lvl players to be sent to.
    }
  }
  if (%style == oneten) {
    if (!$2) { notice $nick the world to send 110+ lvl players is $iif(%ey.oneten,%ey.oneten,no world set) $+ .
    }
    elseif ($2 isnum 20-144) {
      set %oneten $2 | notice $nick %oneten is set as the world for 110+ lvl players to be sent to.
    }
  }
  if (%style == send) {
    notice $nick the world to send lvls 45-89 players is $iif(%ey.eighty,%ey.eighty,no world set) $+ . $&
      lvls 90-99 players is $iif(%ey.ninty,%ey.ninty,no world set) $+ . 100-109 lvl players is $iif(%ey.onehund,%ey.onehund,no world set) $+ . $&
      110+ lvl players is $iif(%ey.oneten,%ey.oneten,no world set) $+ .
  }
}

alias lvls {
  echo -ea the world to send lvls 45-89 players is $iif(%ey.eighty,%ey.eighty,no world set) $+ . $&
    lvls 90-99 players is $iif(%ey.ninty,%ey.ninty,no world set) $+ . 100-109 lvl players is $iif(%ey.onehund,%ey.onehund,no world set) $+ . $&
    110+ lvl players is $iif(%ey.oneten,%ey.oneten,no world set) $+ .
}