All pastes #727764 Raw Edit

Untitled

public text v1 · immutable
·published 2007-10-06 11:05 UTC
rendered paste body
on *:TEXT:!cwoff:#CastleWars: {
  if (%cwscript == off) { halt }
  elseif ($nick isop $chan) || ($nick ishop $chan) {
    set %cwscript off
    msg $chan 4,1<< 10Cwscript turned4 off.104>>
  }
}
on *:TEXT:!cwon:#CastleWars: {
  if (%cwscript == on) { halt }
  elseif ($nick isop $chan) || ($nick ishop $chan) {
    set %cwscript on
    msg $chan 4,1<< 10Cwscript turned4 on.104>>
  }
}

on $*:text:/^[!]change */Si:#CastleWars: {
  if (%cwscript == off) { halt }
  else {
    if ($nick isop $chan) || ($nick ishop $chan) && (($2 isnum 2-144) && (($3 == Guthix) || ($3 == Saradomin) || ($3 == Zamorak) || ($3 == Choice ))) {
      set %cw $2
      set %cwteam $3
      msg $chan 4,1<< 10The current Castle Wars world has changed to: [4 %cw 10] team [4 %cwteam 10] 4>>     
    }
  }
}
on $*:text:/^[!](cw|world|cww|w)/Si:#CastleWars: {
  if (%cwscript == off) { halt }
  else {
    notice $nick 4,1<< 10The current Castle Wars world is:10 [4 %cw 10] team [4 %cwteam 10]4>> 
  }
}