home *** CD-ROM | disk | FTP | other *** search
/ HaCKeRz KrOnIcKLeZ 3 / HaCKeRz_KrOnIcKLeZ.iso / scriptz / guess.txt < prev    next >
Text File  |  1996-04-23  |  1KB  |  24 lines

  1. ;**************************************************
  2. ;Guessing Game (single player) Addon for mIRC 4.7+
  3. ;**************************************************
  4. ;
  5. ;Copy and paste this into your Aliases
  6. ;
  7. ;type /guess to play, you may also use /guess <number> to set a maximum limit on the number you're guessing.
  8. ;
  9. /guess {
  10.   %max = $1 | if (%max == $null) { %max = 100 }
  11.   set %num $rand(1,%max)
  12.   echo 2 /------------------G U E S S I N G   G A M E------------------\
  13.   echo 6 I have a number in my head between 1 to %max $+ ... Try to guess it!
  14.   echo 2 \------------------------------------------------------------/
  15.   set %guess $$?="Enter your guess"
  16.   %tries = 1
  17.   :startshit
  18.   if ( %guess < %num) { %guess = $$?="Too small - Guess again!" | inc %tries 1 }
  19.   else if (%guess > %num) { %guess = $$?="Too big - Guess again!" | inc %tries 1 }
  20.   if ( %guess == %num) { echo 6 *** You got it right! It was %num $+ . Took ya %tries tries! *** | unset %tries %guess %num %max | return }
  21.   goto startshit
  22. }
  23.  
  24.