SHOW:
|
|
- or go back to the newest paste.
| 1 | on *:text:!bomb:#:{
| |
| 2 | set %bombtime $r(20,60) | |
| 3 | msg $chan $nick has found a bomb! Quickly defuse the bomb by cutting the correct wire! Use !cut <wire> | msg $chan Wires: red, blue, green, black or pink | |
| 4 | set %color $r(1,5) | |
| 5 | if (%color == 1) { set %color red }
| |
| 6 | if (%color == 2) { set %color blue }
| |
| 7 | if (%color == 3) { set %color green }
| |
| 8 | if (%color == 4) { set %color black }
| |
| 9 | if (%color == 5) { set %color pink }
| |
| 10 | set %bombnick $nick | |
| 11 | - | timerBomb 1 %bombtime kick $chan $nick BOOM! |
| 11 | + | timerBomb 1 %bombtime explode $chan |
| 12 | - | timer 1 %bombtime unset %bombnick |
| 12 | + | |
| 13 | on *:text:!cut *:#:{
| |
| 14 | if ($nick == %bombnick) {
| |
| 15 | if ($2 == %color) {
| |
| 16 | msg $chan You defused the bomb! | |
| 17 | unset %bombnick | |
| 18 | timerBomb off | |
| 19 | } | |
| 20 | else {
| |
| 21 | - | if ($2 != %color) {
|
| 21 | + | explode $chan |
| 22 | - | kick $chan $nick BOOM! |
| 22 | + | |
| 23 | } | |
| 24 | } | |
| 25 | else {
| |
| 26 | msg $chan Only %bombnick can defuse the bomb! | |
| 27 | - | if ($nick != %bombnick) {
|
| 27 | + | |
| 28 | } | |
| 29 | ||
| 30 | alias explode {
| |
| 31 | kick $1 %bombnick BOOM! | |
| 32 | unset %bombnick | |
| 33 | } |