Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 12th, 2010 | Syntax: None | Size: 1.67 KB | Hits: 36 | Expires: Never
Copy text to clipboard
  1. alias rrover {
  2.   unset %rroul | unset %rroul1 | unset %rroul2 | unset %rroulturn | unset %chamber
  3. }
  4. on *:TEXT:!rr*:#: {
  5.   if (( %rroul1 == $null )) {
  6.     set %rroul1 $nick
  7.     set %rroulturn $nick
  8.     msg # $nick is ready to face another person in a russian roulette face off, type !rr to join them.
  9.     timerrroulette 1 20 /msg # I'm afraid no-one wanted to face $nick $+ .
  10.     timerrroulette2 1 20 /2prover
  11.   }
  12.   elseif (( %rroul2 == $null )) && (( $nick != %rroul1 )) {
  13.     set %rroul2 $nick
  14.     set %rroul on
  15.     msg # $nick joins %rroul1 in a russian roulette face off! %rroul1 will go first!
  16.     msg # %rroul1 loads 1 bullet, and puts the cylinder inside the revolver, and spins it around
  17.     set %chamber $rand(1,6)
  18.     timerrroulette off
  19.     timerrroulette2 off
  20.   }
  21. }
  22. on *:TEXT:!trigger*:#: {
  23.   if (( %rroul == on )) {
  24.     if (( %rroulturn == $nick )) && (( %2proul1 == $nick )) {
  25.       if (( %chamber == 1 )) {
  26.         msg # BANG!!!
  27.         msg # $nick dies so %rroul2 wins!!
  28.         rrover
  29.       }
  30.       else {
  31.         msg # CLICK!!!
  32.         msg # $nick lives! They pass the revolver to %rroul2
  33.         dec %chamber
  34.         set %rroulturn %rroul2
  35.       }
  36.     }
  37.     if (( %rroulturn == $nick )) && (( %rroul2 == $nick )) {
  38.       if (( %chamber == 1 )) {
  39.         msg # BANG!!!
  40.         msg # $nick dies so %rroul1 wins!!
  41.         rrover
  42.       }
  43.       else {
  44.         msg # CLICK!!!
  45.         msg # $nick lives! They pass the revolver to %rroul1
  46.         dec %chamber
  47.         set %rroulturn %rroul1
  48.       }
  49.     }
  50.   }
  51.   elseif (( $nick == %2proul1 )) && (( %2proul != on )) {
  52.     msg # Sorry, there is no second player for you to face $nick $+ .
  53.   }
  54. }