Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:..guess & &:#ninja_matt: {
- if (!%timer) {
- inc -u2 %timer
- var %num $int($$2), %range $int($$3)
- if ($istok(%num %range,0,32)) msg # Only numbers over zero please.
- elseif (%num %range == 1 1) msg # You thought you could get away with that?
- elseif (%num > %range) msg # The number you are guessing cannot be higher than the maximum value specified.
- else {
- if (%num == $r(1,%range)) {
- msg # You guessed correct! You just gained %range points!
- inc %guess [ $+ [ $nick ] ] %range
- }
- else {
- msg # Oops. You guessed wrong, the correct answer was $v2 $+ . You just lost 1 point.
- dec %guess [ $+ [ $nick ] ]
- }
- msg # Your score is now %guess [ $+ [ $nick ] ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement