Advertisement
Iire

UpdatedVersion

Jul 29th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.76 KB | None | 0 0
  1. on *:TEXT:..guess & &:#ninja_matt: {
  2.   if (!%timer) {
  3.     inc -u2 %timer
  4.     var %num $int($$2), %range $int($$3)
  5.     if ($istok(%num %range,0,32)) msg # Only numbers over zero please.
  6.     elseif (%num %range == 1 1) msg # You thought you could get away with that?
  7.     elseif (%num > %range) msg # The number you are guessing cannot be higher than the maximum value specified.
  8.     else {
  9.       if (%num == $r(1,%range)) {
  10.         msg # You guessed correct! You just gained %range points!
  11.         inc %guess [ $+ [ $nick ] ] %range
  12.       }
  13.       else {
  14.         msg # Oops. You guessed wrong, the correct answer was $v2 $+ . You just lost 1 point.
  15.         dec %guess [ $+ [ $nick ] ]
  16.       }
  17.       msg # Your score is now %guess [ $+ [ $nick ] ]
  18.     }
  19.   }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement