napa182 commented on a Page, Bomb Script.  -  Mar 06, 2008

um heres one way of getting it to work.

on @*:text:*:%bombchan:{
  if ($1 == `bomb) {
    if (%BombInUse) {
      msg %bombchan 4(12-3[7-3]12-4)15 Sorry $nick but the Bomb Game is already in use. Please wait until its over. 4(12-3[7-3]12-4)15 
    }
    else {
      set %BombInUse on
      set %HasBomb $nick(#,$r(1,$nick(#,0)))
      Describe %bombchan 4(12-3[7-3]12-4)15 Hands %HasBomb A Bomb. Everyone must try to give the bomb to someone else before the timer runs out. If the time runs out the person will be given a kickban for 1 min. 4(12-3[7-3]12-4)
      msg %bombchan 4(12-3[7-3]12-4)15 You got 1 min before the bomb explodes. Use your time wisely. 4(12-3[7-3]12-4)15
      .timerboom 1 60 boom    
    } 
  } 
  elseif ($1 == `GiveBomb) {
    if ($nick != %HasBomb) { msg %bombchan You Dont Have The Bomb $nick
    }
    elseif ($nick == $2) { msg %bombchan 4(12-3[7-3]12-4)15 Don\'t try to give urself the bomb! 4(12-3[7-3]12-4)15  
    }
    elseif ($2 !ison #) { msg %bombchan 4(12-3[7-3]12-4)15 $2 is not in chan... Don\'t try to cheat! 4(12-3[7-3]12-4)15 
    }
    else {
      msg %bombchan 4(12-3[7-3]12-4)15 $nick has given $2 the bomb. Please hurry before the time runs out. (Noise heard in the background: Tic Toc Tic Toc...\"
      set %HasBomb $2
    }
  }
}
alias boom { ban -ku60 %bombchan %HasBomb 2  4(12-3[7-3]12-4)15 *BOOM!!!* The Bomb has exploded and your seriously injured. (Come back in 1 min) | unset %BombInUse %HasBomb }
on *:load:{ set %bombchan $$?=\"Please Set A Channel To Play Bomb Game ex: #channel\" | echo -a Bomb Game Channel Set As %bombchan }
 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.