home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HaCKeRz KrOnIcKLeZ 3
/
HaCKeRz_KrOnIcKLeZ.iso
/
scriptz
/
guess.txt
< prev
next >
Wrap
Text File
|
1996-04-23
|
1KB
|
24 lines
;**************************************************
;Guessing Game (single player) Addon for mIRC 4.7+
;**************************************************
;
;Copy and paste this into your Aliases
;
;type /guess to play, you may also use /guess <number> to set a maximum limit on the number you're guessing.
;
/guess {
%max = $1 | if (%max == $null) { %max = 100 }
set %num $rand(1,%max)
echo 2 /------------------G U E S S I N G G A M E------------------\
echo 6 I have a number in my head between 1 to %max $+ ... Try to guess it!
echo 2 \------------------------------------------------------------/
set %guess $$?="Enter your guess"
%tries = 1
:startshit
if ( %guess < %num) { %guess = $$?="Too small - Guess again!" | inc %tries 1 }
else if (%guess > %num) { %guess = $$?="Too big - Guess again!" | inc %tries 1 }
if ( %guess == %num) { echo 6 *** You got it right! It was %num $+ . Took ya %tries tries! *** | unset %tries %guess %num %max | return }
goto startshit
}