View difference between Paste ID: a855XQYd and 509Xrxg1
SHOW: | | - or go back to the newest paste.
1-
on *:TEXT:!rps:#: {
1+
on *:TEXT:!rps *:#: {
2
  if ($2 == scissors) {
3
    var %scissors = $rand(1,3)
4-
    if (%scissors == 1) { msg $chan ROCK -- Rock beats Scissors! You lose $upper $nick
4+
    if (%scissors == 1) { 
5-
      msg $chan /timeout $nick 2 
5+
      msg $chan ROCK -- Rock beats Scissors! You lose, $upper $nick
6
      msg $chan .timeout $nick 2 
7-
    if (%scissors == 2) { msg $chan PAPER -- Hmm... You win. This time, $upper $nick }
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-
    if (%paper == 1) { msg $chan SCISSORS -- Scissors beats Paper! You lose $upper $nick
12+
13-
      msg $chan /timeout $nick 2
13+
    if (%paper == 1) { 
14
      msg $chan SCISSORS -- Scissors beats Paper! You lose, $upper $nick
15-
    if (%paper == 2) { msg $chan ROCK -- Hmm... You win. This time, $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 (%rock == 1) { msh $chan PAPER -- PAPER beats Rock! You lose $upper $nick 
20+
21-
      msg $chan /timeout $nick 2
21+
22
    if (%rock == 1) { 
23-
    if (%rock == 2) { msg $chan SCISSORS -- Hmm... You win. This time, $upper $nick }
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
}