Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:!rps *:#: {
- if ($2 == scissors) {
- var %scissors = $rand(1,3)
- if (%scissors == 1) {
- msg $chan ROCK -- Rock beats Scissors! You lose, $upper $nick
- msg $chan .timeout $nick 2
- }
- if (%scissors == 2) { msg $chan PAPER -- Hmm... You win this time, $upper $nick }
- if (%scissors == 3) { msg $chan SCISSORS -- It's a draw. }
- }
- if ($2 == paper) {
- var %paper = $rand(1,3)
- if (%paper == 1) {
- msg $chan SCISSORS -- Scissors beats Paper! You lose, $upper $nick
- msg $chan .timeout $nick 2
- }
- if (%paper == 2) { msg $chan ROCK -- Hmm... You win this time, $upper $nick }
- if (%paper == 3) { msg $chan PAPER -- It's a draw. }
- }
- if ($2 == rock) {
- var %rock = $rand(1,3)
- if (%rock == 1) {
- msg $chan PAPER -- PAPER beats Rock! You lose, $upper $nick
- msg $chan .timeout $nick 2
- }
- if (%rock == 2) { msg $chan SCISSORS -- Hmm... You win this time, $upper $nick }
- if (%rock == 3) { msg $chan ROCK -- It's a draw. }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement