Annaiidziithaa commented on a Page, Flag Game  -  Jul 19, 2011

I prefer to do it this way

on *:text:*:#: {
  if (.flags == $1) {
    set -u15 %ct = $ctime
    set %flagsnick $nick
    var %item = $rand(1,15)
    if (%item == 1) { msg $chan $read italy.txt | msg $chan $read italy2.txt
     set -u15 %answer italy 
    }
    elseif (%item == 2) { msg $chan $read sweden.txt | msg $chan $read sweden2.txt | msg $chan $read sweden3.txt
      set -u15 %answer sweden
    }
    elseif (%item == 3) { msg $chan $read france.txt | msg $chan $read france2.txt
      set -u15 %answer france
    }
    elseif (%item == 4) { msg $chan $read germany.txt | msg $chan $read germany2.txt | msg $chan $read germany3.txt
      set -u15 %answer germany
    }
    elseif (%item == 5) { msg $chan $read hungary.txt | msg $chan $read hungary2.txt | msg $chan $read hungary3.txt
      set -u15 %answer hungary
    }
    elseif (%item == 6) { msg $chan $read austria.txt | msg $chan $read austria2.txt | msg $chan $read austria3.txt
      set -u15 %answer austria
    }
    elseif (%item == 7) { msg $chan $read indonesia.txt | msg $chan $read indonesia2.txt
      set -u15 %answer indonesia
    }
    elseif (%item == 8) { msg $chan $read poland.txt | msg $chan $read poland2.txt
      set -u15 %answer poland
    }
    elseif (%item == 9) { msg $chan $read ireland.txt | msg $chan $read ireland2.txt
      set -u15 %answer ireland
    }
    elseif (%item == 10) { msg $chan $read spain.txt | msg $chan $read spain2.txt | msg $chan $read spain3.txt
      set -u15 %answer spain 
    }    
    elseif (%item == 11) { msg $chan $read finland.txt | msg $chan $read finland2.txt | msg $chan $read finland3.txt
      set -u15 %answer finland
    }
    elseif (%item == 12) { msg $chan $read libya.txt | msg $chan $read libya2.txt
      set -u15 %answer libya
    }    
    elseif (%item == 13) { msg $chan $read portugal.txt | msg $chan $read portugal2.txt | msg $chan $read portugal3.txt
      set -u15 %answer portugal
    }
    elseif (%item == 14) { msg $chan $read angola.txt | msg $chan $read angola2.txt | msg $chan $read angola3.txt | msg $chan $read angola4.txt
      set -u15 %answer angola
    }
    elseif (%item == 15) { msg $chan $read russia.txt | msg $chan $read russia2.txt | msg $chan $read russia3.txt
       set -u15 %answer russia
     }
     .timerFlags $+ %answer 1 15 msg $chan Time's Up
  }
  elseif ($nick == %flagsnick) {
  if (($1 == %answer) && ($calc($ctime-%ct) <= 15)) {
      if ($nick == %flagsnick) msg $chan Very good $nick you guessed the name of the flag!!
      unset %answer
      timerFlags* off
    }
  }
}

List of flags;
http://www.megaupload.com/?d=AWY821AA

I accept all kinds of commentaries: P

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.