Advertisement
illpastethat

Russian roulette chromatic

Aug 9th, 2013
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on *:TEXT:!rr*:#: {
  2.   if (( %rroul1 == $null )) {
  3.     set %rroul1 $nick
  4.     set %rroulturn $nick
  5.     describe # $nick is ready to face another person in a russian roulette face off, type !rr to join them.
  6.     .timerrroulette 1 20 endrr
  7.   }
  8.   elseif (( %rroul2 == $null )) && (( $nick != %rroul1 )) {
  9.     .timerrroulette off
  10.     set %rroul2 $nick
  11.     set %rroul on
  12.     describe # $nick joins %rroul1 in a russian roulette face off! %rroul1 will go first!
  13.     describe # %rroul1 loads 1 bullet, and puts the cylinder inside the revolver, and spins it around...
  14.     .timer 1 1 describe # All set! Your up %rroulturn - type !shoot to play.
  15.     set %rr.chamber $rand(1,6)
  16.   }
  17.   elseif (%rroul == on) {
  18.     describe # Sorry, you need to wait for the current game between %rroul1 and %rroul2 to be over.
  19.   }
  20. }
  21. alias endrr {
  22.   describe # I'm afraid no one wanted to play russian roulette.
  23.   unset %rr*
  24. }
  25. on *:TEXT:!shoot*:#: {
  26.   if (( %rroul == on )) {
  27.     var %other $iif(%rroulturn == %rroul1,%rroul2,%rroul1)
  28.     if ( %rroulturn == $nick ) {
  29.       if (( %rr.chamber == 1 )) {
  30.         describe # BANG!!! >> You dead.
  31.         .timer 1 1 describe # $nick dies so %other wins!!
  32.         unset %rr*
  33.       }
  34.       else {
  35.         describe # CLICK!!!
  36.         .timer 1 1 describe # $nick lives! They pass the revolver to %other
  37.         dec %rr.chamber
  38.         set %rroulturn %other
  39.       }
  40.     }
  41.     elseif ($nick == %other) {
  42.       describe # Sorry $nick $+ , it's not your turn. You need to wait for $+(%rroulturn,.)
  43.     }
  44.     else {
  45.       describe # Sorry, you need to wait for the current game between %rroul1 and %rroul2 to be over.
  46.     }
  47.   }
  48.   else {
  49.     describe # The game hasn't started. Type !rr to start russian roulette!
  50.   }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement