napa182 commented on a Page, Just another bomb script  -  Sep 25, 2010

way too much redundancy within the snippet....

you can set the color var like

set %bomb.color $gettok(Red|Blue|Yellow|Green|Pink,$r(1,5),124)

then do the defused part something like this

on $*:TEXT:/^(Red|Blue|Yellow|Green|Pink)$/iS:#:{
  if ($nick = %bomb.nick) {
    $iif($regml(1) = %bomb.color,.msg # Congrats $&
      $+(%bomb.nick,$chr(44)) you defused the bomb!,kick # %bomb.nick 4~~~~14BOOOOOOOM 4~~~~)
    .timerbomb off
    unset %bomb.*
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.