Dialog Flag Game

By Memoli on Jun 11, 2011

Screenshots

You need to download following Flag Picture for use this Game

http://www.file-upload.net/download-3498785/Flags.rar.html <- 444 Kbyte

after downloading this pictures Extract to mIRC Directory and Create a folder named "FlagGame"

Usage: /Flag

have fun :D

alias FLAG {
  set %Flag $findfile($qt($mircdirFlagGame),*.png,$r(1,$findfile($qt($mircdirFlagGame),*.png,0)))
  dialog -m FLAG FLAG
}
dialog Flag {
  title "Flag Game"
  size -1 -1 70 45
  option dbu
  edit "", 2, 35 20 35 10, autohs
  button "Guess Flag", 3, 38 30 30 10
  button "New Flag", 4, 38 5 30 10
  icon 1, 5 5 25 25, %Flag, 0
}
on *:DIALOG:Flag:sclick:*:{
  if ($did == 4) { 
    dialog -x Flag
    set %Flag $findfile($qt($mircdirFlagGame),*.png,$r(1,$findfile($qt($mircdirFlagGame),*.png,0)))
    dialog -v,-m Flag Flag
  }
  if ($did == 3) {
   if ($did(Flag,2) == $remove(%Flag,$mircdir,FlagGame\,.png)) {
      /noop $input(Correct Flag Name,o,Correct)
    }
    else {
      /noop $input(Try Again,o,Wrong)
    }
  }
}

Comments

Sign in to comment.
FreeHuman   -  Jun 23, 2011

Good.

 Respond  
napa182   -  Jun 11, 2011

well Memoli ur snippet is almost what i said in a comment of that other one, but what I meant was.. if you had a socket place a random flag in the dialog then you would have to guess what flag it is. You are half way there...
Keep at it.

 Respond  
Yoradorc   -  Jun 11, 2011

Cool.

 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.