All pastes #284515 Raw Edit

Unnamed

public text v1 · immutable
#284515 ·published 2006-12-19 02:58 UTC
rendered paste body
on *:TEXT:!setcw*:#:{
  var %output = $iif($left($1,1) == !,.notice $nick,.msg $chan)
  if (( $nick isreg $chan ) || ( $nick isvoice $chan )) notice $nick you must be halfop or higher to set a world and team
  elseif ($readini(suggest.ini,worlds,$2)) {
    set %event2. $+ $chan World: $2 Team: $3 
    set %cwchange. $+ $chan $ctime
    msg $chan 12[ 4 The CW World And Team has been Changed For $chan please Type !cw, @cw, To View It! 12]
  }
  else {
    notice $nick You can only Use Members worlds.
  }
}
on $*:TEXT:/^(!|@)cw/i:#: { 
  var %output = $iif($left($1,1) == !,.notice $nick,.msg $chan)
  if (%cwchange. [ $+ [ $chan ] ] == $null) { %output A CW World Was never Set for $chan Please type !setcw to Set one | halt } else {
  %output 7[ The current CW world is:4 %event2. [ $+ [ $chan ] ] 7] [Last Changed:4 $duration($calc($ctime - %cwchange. [ $+ [ $chan ] ] )) 7] [TIMES USED :4 %wnum | inc %wnum 12] } 
}