Roulette additions - 21/07/14 02:39 AM
Ok, so I'm running roulette on my bot as well as a point system.. would it be possible to somehow add script to add/take points away?
Like someone gets shot, take X number of points from them.. and say I add a response where they turn the gun onto someone else and shoot them, and then the command adds X number of points?
Anyone know how to go about doing this? here is the roulette script:
*edit* -- I felt I should add my points system is called "Karma" and the ini file is karma.ini
Like someone gets shot, take X number of points from them.. and say I add a response where they turn the gun onto someone else and shoot them, and then the command adds X number of points?
Anyone know how to go about doing this? here is the roulette script:
*edit* -- I felt I should add my points system is called "Karma" and the ini file is karma.ini
Code:
On *:TEXT:!Roulette:#: { if ((%floodroulette) || ($($+(%,floodroulette.,$nick),2))) { return } set -u60 %floodroulette On set -u180 %floodroulette. $+ $nick On if ($nick isop #) { var %randmods = $rand(1,4) if (%randmods == 1) msg $chan The gun jambs up! Do you have special powers, $nick ? if (%randmods == 2) msg $chan BANG! ... The bullet was deflected off your mod armor, and killed a random viewer, but you live! There must be secret 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 dodges bullets better than Neo, it must be the mod armor. } else { var %randnumber = $rand(1,4) if (%randnumber == 1) { msg $chan BANG!... Roulette claims another soul. R.I.P $nick msg $chan /timeout $nick 15 } if (%randnumber == 2) { msg $chan Roulette clicks!...Empty...You live to see another day $nick } if (%randnumber == 3) { msg $chan BANG!... $nick Was caught trying to steal from TheBlueMuzzy's Karma coffers. msg $chan /timeout $nick 15 } 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. } } }