its my very first script it works for me alls you have to do it type !stab and it should work any problem let me know
on *:TEXT:-!stab:#: {
var %KR $rand(1,6)
if (%KR == 1) { msg $chan ouch! you've been stabbed, $nick $+ ! | /kick $chan $nick You just lost at knife Roulette! }
if (%KR == 2) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
if (%KR == 3) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
if (%KR == 4) { msg $chan man that hurt! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Knife Roulette! }
if (%KR == 5) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
if (%KR == 6) { msg $chan stabed in the chest! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Knife Roulette! }
}
nice for ur first snippet
you could also do it like this. This is only an example nothing more:
on $@*:TEXT:/@stab$/iS:#: {
var %RR $r(1,6)
msg # $iif(%RR isnum 1-3,That was a close one $+ $chr(44) $nick $+ $chr(44) but you're safe this time!,$gettok(man that hurt!|stabed in the chest!|ouch! you've been stabbed,$r(1,3),124) You're dead $+ $chr(44) $nick $+ !)
$iif(%RR isnum 4-6,kick # $nick You just lost at Knive Roulette!)
}
also you may want to ad abit of flood control to it.