All pastes #350501 Raw Edit

SETPCW Script

public text v1 · immutable
·published 2007-02-11 14:23 UTC
rendered paste body
;### set pcw ###

on 1:TEXT:!setpcw*:#pcelites:{
  if ($nick isop $chan) || ($nick ishop $chan) || ($nick isvoice $chan) {
    if ($2 == 2) || ($2 == 6) || ($2 == 9) || ($2 == 12) || ($2 == 18) || ($2 == 22) || ($2 == 23) || ($2 == 24) || ($2 == 26) || ($2 == 27) || ($2 == 28) || ($2 == 31) || ($2 == 36) || ($2 == 42) || ($2 == 44) || ($2 == 48) || ($2 == 53) || ($2 == 54) || ($2 == 56) || ($2 == 58) || ($2 == 59) || ($2 == 60) || ($2 == 64) || ($2 == 65) || ($2 == 66) || ($2 == 69) || ($2 == 70) || ($2 == 71) || ($2 == 76) || ($2 == 77) || ($2 == 78) || ($2 == 79) || ($2 == 82) || ($2 == 83) || ($2 == 84) || ($2 == 88) || ($2 == 89) || ($2 == 91) || ($2 == 92) || ($2 == 97) || ($2 == 98) || ($2 == 99) || ($2 == 100) || ($2 == 103) || ($2 == 104) || ($2 == 110) || ($2 == 111) || ($2 == 112) || ($2 == 114) || ($2 == 115) || ($2 == 116) || ($2 == 120) || ($2 == 121) || ($2 == 123) || ($2 == 124) || ($2 == 129) || ($2 == 130) || ($2 == 131) || ($2 == 132) || ($2 == 137) || ($2 == 138)  {
      if ($2 == %world) { notice $nick 12That 4world12 is already set/Errorous World!
        halt
      }      
      set %world $2
      set %nic $nick
      set %pcsettime. [ $+ [ $chan ] ] $ctime
      set %pcsettime. [ $+ [ #tribute ] ] $ctime
      /set %setpc $calc( $readini( setpcw.ini, $nick, Set ) +1)
      /writeini setpcw.ini $nick Set %setpc
      /msg $chan 4 $nick 12has set the 4Pc World15 - 12Type 4!pcw 12or 4!world 12to see the world.
    }
    else {
      msg $chan 4World 12not set, 4Invalid 12world selection. 1If this is in error, please contact Lee-[32201] ( 32201 in game )!!!
    }
  }
}