Public paste
Undefined
By: qsqfsqf | Date: Dec 17 2006 18:28 | Format: None | Expires: never | Size: 918 B | Hits: 688

  1. on *:TEXT:$($me $+ *):#:{
  2.   if ($2 == number) {
  3.     if (%number.number) { halt }
  4.     else {  
  5.       set %number.number $rand(1,40)
  6.       msg $chan K im thinking of a number between 1 and 40 what could it be?
  7.       echo -a number: $readini(numbers.ini,numbers,%number.number)
  8.     }
  9.   }  
  10.   if ($2 == guess) {
  11.     if (%number.number) {
  12.       if ($3 > $readini(numbers.ini,numbers,%number.number)) && ($3 isnum) {
  13.         msg $chan Nice try $nick but you guessed to High
  14.       }
  15.       if ($3 < $readini(numbers.ini,numbers,%number.number)) && ($3 isnum) {
  16.         msg $chan Nice try $nick but you guessed to Low
  17.       }
  18.       if ($3 == $readini(numbers.ini,numbers,%number.number)) && ($3 isnum) {
  19.         msg $chan Good Job $nick you Guessed the correct number
  20.         unset %number.number
  21.       }
  22.       elseif ($3 !isnum) {
  23.         notice $nick You need to type a number
  24.       }
  25.     }
  26.   }
  27. }