All pastes #516072 Raw Edit

Anonymous

public text v1 · immutable
#516072 ·published 2007-05-28 14:50 UTC
rendered paste body
on $*:TEXT:/[@!]setpcw? */:*: {    
  if ($readini(botconfig.ini,isony,onoff) == off) { notice $nick The Bot is turned OFF please wait until it is turned back on join #demigods for more information. | halt } 
  if (*$* iswm $2) { 
    notice $nick Identifiers are not needed in SetPC World Command, Please think about your actions again (1 Minute Ignore). 
    echo -s  $nick was using an identifer for a setpc world command 
    ignore $address($nick,2) | silence + $+ $nick 
    timer 1 60 ignore -r $address($nick,2) 
    timer 1 60 silence - $+ $nick 
    halt 
  } 
  if ($nick isop $chan || $nick ishop $chan) { 
    if (!$2) { notice $nick Syntax : [@!.]setpcw <RSN WORLD>. | halt } 
    if ($2 isnum 2-144) { 
      writeini pcw.ini $chan world $2 
      writeini pcw.ini $chan nick $nick 
      writeini pcw.ini $chan time $ctime 
      writeini pcw.ini $chan suggest None 
      msg $chan 10The Pest Control World has been changed for channel7 $chan 10, Type 6!Pcw10 to see it! | halt 
    } 
    if ($2 isnum !2-144) { notice $nick Please put the world as a number | halt } 
    else { notice $nick You need Halfop Plus to Set Pest Control Worlds! | halt } 
  } 
} 

on $*:TEXT:/[@!]pcw/:#: { 
  if ($chan == #bots || $chan == *bot*) { halt } 
  if ($readini(botconfig.ini,isony,onoff) == off) { notice $nick The Bot is turned OFF please wait until it is turned back on join #demigods for more information. | halt } 
  if  ($readini(pcw.ini,$chan,world) == $null)  { notice $nick No Pest Control World been set if you would like to suggest a world type !suggest pcw (world) | halt } 
  else { 
    set %msg $iif($left($1,1) == @,msg $chan,notice $nick) 
    inc %pcw 
    %msg 10The Current Pc World is 7 [[  $readini(pcw.ini,$chan,world)  ]10 Set By  6[ $readini(pcw.ini,$chan,nick)  ]10,7 [  $duration($calc($ctime - $readini(pcw.ini,$chan,time)))  ] 10ago,  Suggested PC World is6 [ $readini(pcw.ini,$chan,suggest)  ]10, Command used7 %pcw 10Times! 
  } 
} 

on *:TEXT:!suggest *:#: { 
  if ($chan == #bots) { halt } 
  if ($readini(botconfig.ini,isony,onoff) == off) { notice $nick The Bot is turned OFF please wait until it is turned back on join #demigods for more information. | halt } 
  if (*$* iswm $2) {  notice $nick Identifiers are not needed in Suggesting a PC World, Please think about your actions again (1 Minute Ignore). 
    echo -s  $nick was using an identifer for a suggest Pcw World Command | ignore $address($nick,2) | silence + $+ $nick 
    timer 1 60 ignore -r $address($nick,2) | timer 1 60 silence - $+ $nick | halt 
  } 
  if ($2 isnum 2-144) { 
    writeini pcw.ini $chan suggest $2 
    msg $chan 7 $nick 10has suggest Pc World7 [ $2 ] 10for $chan 
    halt 
  } 
  else { 
    notice $nick Please suggest a RuneScape Members World 
  }