on *:text:-number-:#: {
set %guessnumber $rand(1,10)
/timer1 1 3 /msg $chan 14OK! Im thinking of a number between 1 and 10, guess it correctly and you win! Guess by doing -guess- number .
}
on *:text:-guess-*:#: { if ($2 == %guessnumber) {
/msg $chan 7[~ 4 $nick 7~] 14is the Winner!!!
unset %guessnumber
}
else {
/msg $chan 14Not the number im looking for!
}
}
on *:text:-stop-*:#:{
if (%guessnumber== on ) {
/msg $chan 7 $nick 14has ended the Number Game early.
unset %guessnumber
}
else {
/notice $chan 7 $nick , 14There is already a game on in $chan !
}
}