on *:text:!number:#: { if (%gn. [ $+ [ $chan ] ] isnum 1-10) { msg $chan there's a game running atm end it first | halt } set %chan $chan set $+(%,gn.,%chan) $rand(1,10) msg $chan Hmmm... let me thing a moment... /timer1 1 3 msg $chan 14OK! Im thinking of a number between 1 and 10, guess it correctly and you win! Guess by doing 4!guess number . } on *:text:!guess *:#: { if (%gn. [ $+ [ $chan ] ] !isnum 1-10) { msg $chan theres no game running atm! | halt } if ($2 !isnum 1-10) { msg $chan Notice : its a number from 1 to 10 dont try any other numbers. | halt } if ($2 != %gn. [ $+ [ $chan ] ]) { msg $chan Nope. | halt } if ($2 == %gn. [ $+ [ $chan ] ]) { /msg $chan 7[~ 4 $nick 7~] 14is the Winner!!! set %chan $chan set $+(%,gn.,%chan) 0 } } on *:text:!stop:#:{ if ($nick isop $chan || $nick ishop $chan) { /msg $chan 7 $nick 14has ended the Number Game early. set %chan $chan set $+(%,gn.,%chan) 0 } }