This is an update to vaseline28's script here: http://www.hawkee.com/snippet/4381/ since it has not been updated in two years.
Update 11/05/08:
Update 2 11/05/08:
on *:text:!rps*:#: {
if ($calc( $regex( $2 ,rock) + $regex( $2 ,paper) + $regex( $2 ,scissors) ) != 1) { msg $chan [4 $+ $nick $+ ] You've got to choose Rock, Paper or Scissors! | halt }
var %PlayerChoice $2 | /var %PlayerChoiceNum $replace(%PlayerChoice,Paper,2,Rock,1,Scissors,0) | /var %ScriptChoiceNum $rand(0,2) | /var %ScriptChoice $replace(%ScriptChoiceNum,2,Paper,1,Rock,0,Scissors)
if (%PlayerChoice == %ScriptChoice) {
msg $chan [4 $+ $nick $+ ] <Your Choice:4 $replace($($upper($left(%PlayerChoice,1)) $+ $right(%PlayerChoice,-1)),$chr(32),$chr(32)) > <My Choice:4 %ScriptChoice > It's a draw!
halt
}
elseif (($calc(%ScriptChoiceNum - %PlayerChoiceNum) == 1) || ($calc(%ScriptChoiceNum - %PlayerChoiceNum) == -2)) { var %winner $me | inc %rps. [ $+ [ %winner ] ] }
else { var %winner $nick | inc %rps. [ $+ [ %winner ] ] }
msg $chan [4 $+ $nick $+ ] <Your Choice:4 $replace($($upper($left(%PlayerChoice,1)) $+ $right(%PlayerChoice,-1)),$chr(32),$chr(32)) > <My Choice:4 %ScriptChoice > [4 $+ %Winner $+ ] has won! <Score: %rps. [ $+ [ %winner ] ] $+ >
}
At evenfall its be in poor health children roaming residential streets all in report to intensity of Ground At darkish it's sr. children and tiny youth years terrorizing these assonant neighborhoods. Testo Roar Ulterior it is the experienced teens theoretical children and newborn and not therefore actress adults. Mix in lightproof costumes that slip saliency and mobility and you jazz a recipe for error. http://guidemesupplements.com/is-testo-roar-scam/
it works fine for me
instead of this line
if ($calc( $regex( $2 ,rock) + $regex( $2 ,paper) + $regex( $2 ,scissors) ) != 1) { msg $chan [4 $+ $nick $+ ] You've got to choose Rock, Paper or Scissors! | halt }
you can use
if (!$regex($2,/^(rock|paper|scissors)$/i)) { msg $chan [4 $+ $nick $+ ] You've got to choose Rock, Paper or Scissors! | halt }
or
if (!$istok(rock paper scissors,$2,32)) { msg $chan [4 $+ $nick $+ ] You've got to choose Rock, Paper or Scissors! | halt }
they both work just fine.