Public paste
Undefined
By: sddsg | Date: Dec 17 2006 18:20 | Format: None | Expires: never | Size: 918 B | Hits: 1189

  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. }
Latest pastes
48 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago