Advertisement
Guest User

Lilli's RPS

a guest
Jan 28th, 2015
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on *:TEXT:!rps *:#: {
  2.   if ($2 == scissors) {
  3.     var %scissors = $rand(1,3)
  4.     if (%scissors == 1) {
  5.       msg $chan ROCK -- Rock beats Scissors! You lose, $upper $nick
  6.       msg $chan .timeout $nick 2
  7.     }
  8.     if (%scissors == 2) { msg $chan PAPER -- Hmm... You win this time, $upper $nick }
  9.     if (%scissors == 3) { msg $chan SCISSORS -- It's a draw. }
  10.   }
  11.   if ($2 == paper) {
  12.     var %paper = $rand(1,3)
  13.     if (%paper == 1) {
  14.       msg $chan SCISSORS -- Scissors beats Paper! You lose, $upper $nick
  15.       msg $chan .timeout $nick 2
  16.     }
  17.     if (%paper == 2) { msg $chan ROCK -- Hmm... You win this time, $upper $nick }
  18.     if (%paper == 3) { msg $chan PAPER -- It's a draw. }
  19.   }
  20.   if ($2 == rock) {
  21.     var %rock = $rand(1,3)
  22.     if (%rock == 1) {
  23.       msg $chan PAPER -- PAPER beats Rock! You lose, $upper $nick
  24.       msg $chan .timeout $nick 2
  25.     }
  26.     if (%rock == 2) { msg $chan SCISSORS -- Hmm... You win this time, $upper $nick }
  27.     if (%rock == 3) { msg $chan ROCK -- It's a draw. }
  28.   }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement