this is one of my early scripts (goto was added recently) that will choose a different killer and victim than the bot and you (which means there must be at least 4 people in the room or it wont work) and kick the victim at th end. this is a very early bulky script i made, if you want to you can slim it down go ahead. (use by typing !randkill)
on *:TEXT:!randkill*:#: {
if ($me == _4|bot) {
if ($me isop #) {
set %victim $nick($chan,$rand(1,$nick($chan,0)))
set %killer $nick($chan,$rand(1,$nick($chan,0)))
:one
if (%killer == %victim) { set %killer $nick($chan,$rand(1,$nick($chan,0))) goto one }
if (%killer == $nick) { set %killer $nick($chan,$rand(1,$nick($chan,0))) goto one }
if (%killer == $me) { set %killer $nick($chan,$rand(1,$nick($chan,0))) goto one }
if (%victim == $me) { set %victim $nick($chan,$rand(1,$nick($chan,0))) goto one }
if (%victim == $nick) { set %victim $nick($chan,$rand(1,$nick($chan,0))) goto one }
if (%victim == %killer) { set %victim $nick($chan,$rand(1,$nick($chan,0))) goto one }
/msg # OH NO! %killer KILLED %victim !!!!
/msg # %victim was so inocent... WHY!?
/describe # kills %killer
/msg # $nick ! how long have you been watching? >.> <.<
/describe # kills $nick
/kick # %victim sorry, you are dead ;)
unset %killer
unset %victim
}
}
}
flood detected
put timer
and no need to a global variable use "var"
replace if ($me isop #) by "@" before level into event like this on **@***:text:#:
u can remove if (%victim == %killer) because that dont work anymore it's same with if (%killer == %victim) so unless to put it
u can use tokenize like this
on @*:TEXT:!randkill:#:{
if ($me == _4|bot) {
:one
var %victim $nick(#,$rand(1,$nick(#,0)))
var %killer $nick(#,$rand(1,$nick(#,0)))
tokenize 32 %killer %victim $nick $me
if (($1 == $2) || ($1 == $3) || ($1 == $4) || ($2 == $3) || ($2 == $4)) goto one
else {
msg # OH NO! %killer KILLED %victim !!!!
msg # %victim was so inocent... WHY!?
describe # kills %killer
msg # $nick ! how long have you been watching? >.> <.<
describe # kills $nick
kick # %victim sorry, you are dead ;)
}
}
}