Advertisement
Iire

Untested

Jul 29th, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.51 KB | None | 0 0
  1. on *:TEXT:&guess & &:#ninja_matt: {
  2.   if ($$2 !isnum 2-) || ($$3 !isnum 2-) msg # Only numbers higher than one please.
  3.   else {
  4.     var %num $int($$2), %range $int($$3)
  5.     if (%num == $r(2,%range)) {
  6.       msg # You guessed correct! You just gained %num points!
  7.       inc %guess [ $+ [ $nick ] ] %num
  8.     }
  9.     else {
  10.       msg # Oops. You guessed wrong, the correct answer was $v2 $+ . You just lost 1 point.
  11.       dec %guess [ $+ [ $nick ] ]
  12.     }
  13.     msg # Your score is now %guess [ $+ [ $nick ] ]
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement