Andrio_Celos

Untitled

Jan 5th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on *:text:!bomb:#:{
  2.   set %bombtime $r(20,60)
  3.   msg $chan $nick has found a bomb! Quickly defuse the bomb by cutting the correct wire! Use !cut <wire> | msg $chan Wires: red, blue, green, black or pink
  4.   set %color $r(1,5)
  5.   if (%color == 1) { set %color red }
  6.   if (%color == 2) { set %color blue }
  7.   if (%color == 3) { set %color green }
  8.   if (%color == 4) { set %color black }
  9.   if (%color == 5) { set %color pink }
  10.   set %bombnick $nick
  11.   timerBomb 1 %bombtime explode $chan
  12. }
  13. on *:text:!cut *:#:{
  14.   if ($nick == %bombnick) {
  15.     if ($2 == %color) {
  16.       msg $chan You defused the bomb!
  17.       unset %bombnick
  18.       timerBomb off
  19.     }
  20.     else {
  21.       explode $chan
  22.       timerBomb off
  23.     }
  24.   }
  25.   else {
  26.     msg $chan Only %bombnick can defuse the bomb!
  27.   }
  28. }
  29.  
  30. alias explode {
  31.   kick $1 %bombnick BOOM!
  32.   unset %bombnick
  33. }
Advertisement
Add Comment
Please, Sign In to add comment