Good job Napa.
I'm just gonna restate that as the total script and make use of .timer -e
and eliminate one of the set variables. Also, need ops to use kick command.
on @*:TEXT:!bomb*:#:{
set %bomb.time $r(15,40)
set %bomb.color $gettok(Red|Blue|Yellow|Green|Pink,$r(1,5),124)
if $2 {
if ($2 !ison #) { .msg # $2 is not on #. | halt }
set %bomb.nick $2
}
else { set %bomb.nick $nick }
.msg # %bomb.nick has just had a bomb placed in front of them. $&
They have %bomb.time seconds to defuse it! Colors are: 4Red, 12Blue, 8Yellow, 9Green, 13Pink00.
.timerbomb 1 %bomb.time kick # %bomb.nick 4~~~~14BOOOOOOOM YOU DIED4~~~~
}
on $*:TEXT:/^(Red|Blue|Yellow|Green|Pink)$/iS:#:{
if ($nick = %bomb.nick) {
$iif($regml(1) = %bomb.color,.msg # Congrats %bomb.nick $+ , you defused the bomb!,.timerbomb -e)
.timerbomb off
}
}
_______________________________________________________________________________________________________