All pastes #733047 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-11 14:11 UTC
rendered paste body
on *:TEXT:!cwoff:#CastleWars: {
  if (%cwscript == off) { halt }
  elseif ($nick isop $chan || $nick ishop $chan ) {
    set %cwscript off
    msg $chan 11<< 6CW script turned 10[ 6OFF 10] 11>>
  }
}
on *:TEXT:!cwon:#CastleWars: {
  if (%cwscript == on) { halt }
  elseif ($nick isop $chan || $nick ishop $chan ) {
    set %cwscript on
    msg $chan 11<< 6CW script turned 10[ 6ON 10] 11>>
  }
}

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 ==Zamorak))) {
      set %cw $2
      set %cwteam $3
      msg $chan 11< 6The current Castle Wars world has changed to: 10[6 %cw 10] 6team 10[6 %cwteam 10] 11>     
    }
  }
}
on $*:text:/^[!](cw|world|cww|w)/Si:#CastleWars: {
  if (%cwscript == off) { halt }
  else {
    notice $nick 11< 6The current Castle Wars world is: 10[6 %cw 10] 6team 10[6 %cwteam 10] 11>
  }
}