Jump to content

Recommended Posts

ok i'm going to try and make a bot for a game :D 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 :D

sorry if thats not the best explanation :D 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 :wacko: so i kinda suck. but i know most of the basic stuff. anyways, any tips would be great thanks

Link to comment
Share on other sites

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 lol

a desciption on PixelSearch () would be great ty :D

Link to comment
Share on other sites

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

:D

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...