Hmm I may not be a pro, but I wrote this simple code for you to use, Rock paper scissors and what not. Not sure what your points script looks like, but if you coded it, should be easy enough for you too add.
on *:TEXT:!rps *:#: {
if ($2 == scissors) {
var %scissors = $rand(1,3)
if (%scissors == 1) { msg # ROCK -- Rock beats Scissors! You Lose $upper $nick !
msg # .timeout $nick 15 }
if (%scissors == 2) { msg # PAPER -- Hmm, I loose. Congrats $nick }
if (%scissors == 3) { msg # SCISSORS -- Dang it, it's a draw. }
}
if ($2 == paper) {
var %paper = $rand(1,3)
if (%paper == 1) { msg # SCISSORS -- Scissors beats Paper! You Lose $upper $nick !
msg # .timeout $nick 15 }
if (%paper == 2) { msg # ROCK -- Hmm, I loose. Congrats $nick }
if (%paper == 3) { msg # PAPER -- Dang it, it's a draw. }
}
if ($2 == rock) {
var %rock = $rand(1,3)
if (%rock == 1) { msg # PAPER -- Paper beats Rock! You Lose $upper $nick !
msg # .timeout $nick 15 }
if (%rock == 2) { msg # SCISSORS -- Hmm, I loose. Congrats $nick }
if (%rock == 3) { msg # ROCK -- Dang it, it's a draw. }
}
}
If you want it level based, so you play three times and if you loose on the third time, you will want to go through and add in Flood commands such as
if ((%roundone) || ($($+(%,roundone.,$nick),2))) { ROUND TWO GOES HERE }
set -u10 %roundone On
set -u30 %roundone. $+ $nick On
Well that was my charity work for the day.
Have a good one.
***************************************
UPDATE
***************************************
Here is something you can use for Dueling on
*:TEXT:!Roulette:#: {
if ((%floodroulette) || ($($+(%,floodroulette.,$nick),2))) { return }
set -u10 %floodroulette On
set -u30 %floodroulette. $+ $nick On
if ($nick isop #) {
var %randmods = $rand(1,4)
if (%randmods == 1) msg $chan Roulette clicks!...Empty...You live to see another day $nick
if (%randmods == 2) msg $chan BANG! ... You were shot, but live! There must be secert powers in your mod armor $nick
if (%randmods == 3) msg $chan BANG! ... The bullet missed, you only have your born moderation powers to thank $nick
if (%randmods == 4) msg $chan $nick starts to shake, $nick tries to pull the trigger but can't. $nick drops the gun, $nick isn't up to the challenge of Roulette.
}
else {
var %randnumber = $rand(1,4)
if (%randnumber == 1) { msg $chan BANG!... Roulette claims another soul. R.I.P $nick
msg $chan /timeout $nick 600 }
if (%randnumber == 2) { msg $chan Roulette clicks!...Empty...You live to see another day $nick }
if (%randnumber == 3) { msg $chan BANG!... $nick Was a great viewer, and now $nick is a dead viewer. R.I.P
msg $chan /timeout $nick 600 }
if (%randnumber == 4) { msg $chan $nick starts to shake, $nick tries to pull the trigger but can't. $nick drops the gun, $nick isn't up to the challenge of Roulette. }
}
}
Last edited by Exuviax; 06/04/14 06:57 AM.