Advertisement
Guest User

russian-chromatic

a guest
Aug 8th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  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. describe # $nick is ready to face another person in a russian roulette face off, type !rroulette to join them.
  9. timerrroulette 1 20 /describe # 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. describe # $nick joins %rroul1 in a russian roulette face off! %rroul1 will go first!
  16. describe # %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:!shoot*:#: {
  23. if (( %rroul == on )) {
  24. if (( %rroulturn == $nick )) && (( %2proul1 == $nick )) {
  25. if (( %chamber == 1 )) {
  26. describe # BANG!!!
  27. describe # $nick dies so %rroul2 wins!!
  28. rrover
  29. }
  30. else {
  31. describe # CLICK!!!
  32. describe # $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. describe # BANG!!!
  40. describe # $nick dies so %rroul1 wins!!
  41. rrover
  42. }
  43. else {
  44. describe # CLICK!!!
  45. describe # $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. describe # Sorry, there is no second player for you to face $nick $+ .
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement