All pastes #475199 Raw Edit

pc script

public text v1 · immutable
·published 2007-05-07 09:31 UTC
rendered paste body
This is my 1st pc script I know some of it is kind of noobish but I think this is the 1st script that I ever made that was not a basic on *:TEXT: script, and with the !world command being used 226,229 times I only got one complaint so it must be good :P. I would like the input from you guys :D I edited out all of the channels that were set to this. If i took out a bracket and didn't catch it let me know I will edit it and repost it.

when you paste this in to your remotes press control+f and type in "YOURCHANNEL" in the find text section then in the other box put in your channel. Same "YOUROPCHANNEL" with your staff channel.
on *:TEXT:!pcw*:#YOURCHANNEL:{  notice $nick Current PC World: %pcworld --Last Update: $+($duration($calc($ctime - %pctime)),) ago this command was used  $+  %pcusage.  times.
  inc %pcusage. 1
} 
on *:TEXT:!setworld *:#YOURCHANNEL:{ 
  if ($nick isvoice $chan ) notice $nick You cannot change the world! 
  if ($nick isreg $chan) notice $nick You cannot change the world! 
  if ($nick isop $chan) || ($nick ishop $chan) set %pctime $ctime 
  if ($nick isop $chan) || ($nick ishop $chan) set %pcnick $nick 
  if ($nick isop $chan) || ($nick ishop $chan) set %pcworld $2- 
  if ($nick isop $chan) || ($nick ishop $chan) /timer100 2 2 msg #YOURCHANNEL 9,2 ((¯`·.¸((¯`·.¸((0,2  %pcnick has changed the world, type !pcw to see it 9,2))¸.·´¯))¸.·´¯))
  if ($nick isop $chan) || ($nick ishop $chan) /timer101 2 2 msg #YOURCHANNEL 9,2((¯`·.¸((¯`·.¸((0,2 YOU MUST TURN YOUR CHAT OFF FOR 15 MIN.9,2))¸.·´¯))¸.·´¯))
  if ($nick isop $chan) || ($nick ishop $chan) /timer102 1 300 msg #YOURCHANNEL 9,2((¯`·.¸((¯`·.¸((0,2 YOU MUST KEEP YOUR CHAT OFF FOR 10 more MIN.9,2))¸.·´¯))¸.·´¯))
  if ($nick isop $chan) || ($nick ishop $chan) /timer103 1 600 msg #YOURCHANNEL 9,2((¯`·.¸((¯`·.¸((0,2 YOU MUST KEEP YOUR CHAT OFF FOR 5 more MIN.9,2))¸.·´¯))¸.·´¯))
  if ($nick isop $chan) || ($nick ishop $chan) /timer104 1 900 msg #YOURCHANNEL  9,2((¯`·.¸((¯`·.¸((0,2 YOU MAY NOW TURN YOUR CHAT TO FRIENDS ONLY BY PMING A FRIEND9,2))¸.·´¯))¸.·´¯))
} `
on *:TEXT:!setpcw *:#YOURCHANNEL:{ 
  if ($nick isvoice $chan) notice $nick You cannot change the world! 
  if ($nick isreg $chan) notice $nick You cannot change the world! 
  if ($nick isop $chan) || ($nick ishop $chan) set %pctime $ctime 
  if ($nick isop $chan) || ($nick ishop $chan) set %pcnick $nick 
  if ($nick isop $chan) || ($nick ishop $chan) set %pcworld $2- 
  if ($nick isop $chan) || ($nick ishop $chan) timer100 2 2 msg #YOURCHANNEL 9,2 ((¯`·.¸((¯`·.¸((0,2  %pcnick has changed the world, type !pcw to see it 9,2))¸.·´¯))¸.·´¯))
  if ($nick isop $chan) || ($nick ishop $chan) timer101 2 2 msg #YOURCHANNEL 9,2((¯`·.¸((¯`·.¸((0,2 YOU MUST TURN YOUR CHAT OFF FOR 15 MIN.9,2))¸.·´¯))¸.·´¯))
  if ($nick isop $chan) || ($nick ishop $chan) /timer102 1 300 msg #YOURCHANNEL 9,2((¯`·.¸((¯`·.¸((0,2 YOU MUST KEEP YOUR CHAT OFF FOR 10 more MIN.9,2))¸.·´¯))¸.·´¯))
  if ($nick isop $chan) || ($nick ishop $chan) /timer103 1 600 msg #YOURCHANNEL 9,2((¯`·.¸((¯`·.¸((0,2 YOU MUST KEEP YOUR CHAT OFF FOR 5 more MIN.9,2))¸.·´¯))¸.·´¯))
  if ($nick isop $chan) || ($nick ishop $chan) /timer104 1 900 msg #YOURCHANNEL  9,2((¯`·.¸((¯`·.¸((0,2 YOU MAY NOW TURN YOUR CHAT TO FRIENDS ONLY BY PMING A FRIEND9,2))¸.·´¯))¸.·´¯))
} 
on *:TEXT:!world:#YOURCHANNEL:{ 
  notice $nick Current PC World: %pcworld --Last Update: $+($duration($calc($ctime - %pctime)),) ago this command was used  $+  %pcusage.  times.
  inc %pcusage. 1
}
on *:TEXT:.w:#YOURCHANNEL:{ 
  notice $nick Current PC World: %pcworld --Last Update: $+($duration($calc($ctime - %pctime)),) ago this command was used  $+  %pcusage.  times.
  inc %pcusage. 1
}
on *:TEXT:.pcw:#:{ if ($address($me,2) == $address($nick,2)) { notice $nick Current PC World: %pcworld --Last Update: $+($duration($calc($ctime - %pctime)),) ago  } }this command was used  $+  %pcusage.  times. inc %pcusage. 1
}



on *:TEXT:.k*:#YOURCHANNEL:{ if ($nick isop $chan) { /mode $chan +i } { /cs kick $chan $2- } { timer 1 2 mode $chan -i } }

on *:TEXT:.val*:#YOURCHANNEL:{ if ($nick isop $chan) { mode $chan +m } { msg $chan come to world $2 and look for $3 at the magic shop at pc } {  msg $chan come to world $2 and look for $3 at the magic shop at pc } { msg $chan come to world $2 and look for $3 at the magic shop at pc } {  timer 1 5 mode $chan -m }
}

on *:TEXT:!pm:#:{if (($nick isop $chan) || ($nick ishop $chan)) { msg $chan please pm $nick to get validated } 

on *:TEXT:.pm:#:{ if (($nick isop $chan) || ($nick ishop $chan)) msg $chan please pm $2 to get validated }

on *:TEXT:.info*:#YOURLOBBY:{
  if ($address($nick,2) == @Swift-FF9F0374.upc-h.chello.nl) {
    describe $chan slaps $nick
    halt
  }
  if ($nick == X) {
    halt
  }
  if ($nick isop $chan) || ($nick ishop $chan) || ($address($me,2) == $address($nick,2)) { 
    if ($2 ison $chan) {
      /notice $nick $2 has the key
      msg $2 please part all channels.
      msg $2 please make sure your ided by using /ns id "password"
      msg $2 type /join #YOURCHANNEL YOURKEY
      bs say $chan .ban $2 5 read your pm 
    }

    else { notice $nick $2 is not on the channel.
    }
  }
  else { notice $nick You cannot use this command.    
  }
}

on *:TEXT:!key*:#YOUROPCHANNEL:{ notice $nick YOURKEY }



on *:TEXT:*!scout*:#YOURCHANNEL:{
msg #YOURCHANNEL 9,2((¯`·.¸((0,2 $nick has started scouting 9,2))¸.·´¯)) } { msg #YOUROPCHANNEL 9,2((¯`·.¸((0,2 $nick has started scouting 9,2))¸.·´¯)) 
msg #YOURopCHANNEL 9,2((¯`·.¸((0,2 $nick has started scouting 9,2))¸.·´¯)) } { msg #YOUROPCHANNEL 9,2((¯`·.¸((0,2 $nick has started scouting 9,2))¸.·´¯)) 

on *:TEXT:*!found*:#yourchannel:{ msg #Yourchannel 9,2((¯`·.¸((0,2 $nick has found a world and is checking for a game. 9,2))¸.·´¯)) } { msg #yourOPchannel 9,2((¯`·.¸((0,2 $nick has found a world and is checking for a game. 9,2))¸.·´¯)) } 
on *:TEXT:*!mroll:#: {
  if ($2 isop $chan) || ($2 ishop $chan) {
    notice $nick please don't try to kick a fellow op/halfop for not showing up during roll call.
    halt    
  }
  ban -ku5400 $chan $2 You have been kicked by $nick for 90 min. please come to the next roll call.
  kick $chan $2 You have been kicked by $nick for 90 minute. Please come to Roll-Call next time.
  msg $2 12 ROLL CALL please show up every roll call failure is a 90 min ban, EXITING CHANNEL DURING ROLL CALL IS REMOVAL OF AUTOVOICE 
  msg $2 12 If you are not at PC, change ur nick to what u are doing...like this: type /nick YOURNICK|afk 
} 

on *:text:.av*:#yourchannel:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if ($2 == on) {
      set %autovoice $2
    }
    if ($2 == off) {
      set %autovoice off
      halt
    }
  }
}
on *:Join:#yourchannel: {
  if (%av == on) {
    /cs devoice $chan $nick 
  }
  if (%av == off) {
    halt
  }
}

on *:TEXT:!friends*:#yourchannel: {
  if ($nick isop $chan) || ($nick ishop $chan) {
    msg $chan 9,2((¯`·.¸((0,2 please add $2 in game pm $2 and keep $2 added 9,2))¸.·´¯))
  }
}

on *:TEXT:!reqs*:#Yourchannel: {
  if ($nick isop $chan) || ($nick ishop $chan) {
    if ($2 !ison $chan) {
      notice $nick $2 is not on $chan
      halt
    }
    if ($2 ishop $chan) || ($2 isop $chan) {
      notice $nick please don't kick staff
      halt
    }
    .notice $nick 12 User has been sent for failure to meet $chan 's requirements. 
    .ban -ku10 $chan $2 $iif($3-,$3-,12 Sorry To Say But You Do Not Meet #YOURCHANEL'S Requirements. Please Try and Rejoining When You Have your requirementsOr Higher Combat Level. Tyvm )
  }
  cs kick $chan $nick don't try to use my comands
}