lalahahahehe Posted July 8, 2006 Posted July 8, 2006 ok i'm going to try and make a bot for a game but i'm not to sure where to start with it, i want the bot to do this... -check to see if certain monster pops on screen, if it doesnt, loop until it does,when it does pop, exit loop and.. -target the monster, then input some commands to the game to make the character attack the monster. -when the monster dies, start the whole process over again sorry if thats not the best explanation the main problem i'm having is that i dont know the code for how to check the screen to see if its there or not. the only programming langauge i have really worked with was turing so i kinda suck. but i know most of the basic stuff. anyways, any tips would be great thanks
gamepin126 Posted July 8, 2006 Posted July 8, 2006 If the monster is some unique color, then you can use PixelSearch(), just put that in a while loop and it should check all the time.
lalahahahehe Posted July 8, 2006 Author Posted July 8, 2006 If the monster is some unique color, then you can use PixelSearch(), just put that in a while loop and it should check all the time.PixelSearch() looks for what on the screen?im a newb lola desciption on PixelSearch () would be great ty
viking Posted July 8, 2006 Posted July 8, 2006 How about taking a look in the helpfile and actually try to write some code yourself? Even with zero autoit-experience or programming-experience you should be able to figure out how to use PixelSearch if you just look in the helpfile... below is 1:1 from the helpfile: PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] ) ; Find a pure red pixel in the range 0,0-20,300 $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 ) If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) EndIf ; Find a pure red pixel or a red pixel within 10 shades variations of pure red $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 ) If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) EndIf
lalahahahehe Posted July 8, 2006 Author Posted July 8, 2006 (edited) wow lmao im a super newb, i was looking for something like that help file earlier, jsut couldnt find it ty, helps alot, i should be able to get most of it done now Edited July 8, 2006 by lalahahahehe
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now