Thatsgreat2345 Posted August 6, 2005 Share Posted August 6, 2005 (edited) Summed Up Ok i just looked at this searches for red and if it isnt there it calls the function get health so basicaly all i need is coordinates so all i have to do is put my mouse where i want it with the autoit spy thing and then pres ctrl+alt+f and the mouse coordinates are 2 coordinates but how do i get the 3 and 4 coordinates? ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Pixel Search for Health ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; while 1 $coord = PixelSearch( 140, 55, 145, 65, 0xEE8785, 5, 2 ) If Not @error Then call("Get_Health") EndIf Func Get_Health() for $gh = 1 to 2 Send("{f8}") sleep(500) next EndIf EndFunc Wend Edited August 7, 2005 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Valuater Posted August 6, 2005 Share Posted August 6, 2005 (edited) first ok need the 0x.... for your "white" under the mouse from au3info second here is how the code should look at this point ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Pixel Search for Health ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; While 1 $coord = PixelSearch( 140, 55, 145, 65, 0xEE8785, 5, 2 ) If Not @error Then Call("Get_Health") EndIf WEnd Func Get_Health() For $gh = 1 to 2 Send("{F8}") Sleep(500) Next EndFunc third and where is all the other stuff we wrote ???? 8) Edited August 6, 2005 by Valuater Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 6, 2005 Author Share Posted August 6, 2005 You made the code for the heal but said to put it as the attacker but heres the attacker ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Pixel Search for Monster ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; While 1 $Coord = PixelSearch ( 0, 0, 500, 500, 0xFFFFA0 [, 5] [, 2]] ) If Not @error Then MouseClick ( "Left" , $Coord[0], $Coord[1] , 2 , 0 ) sleep(12000) Send("{f2}") sleep(500) send("{f2}") sleep(500) Send("{f2}") sleep(500) Send("{f2}") sleep(500) EndIf Wend Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 6, 2005 Author Share Posted August 6, 2005 yeah i can get it a little later but can i ask where the coordinates for the script you posted is search like top right or top left ? cuz it needs to be a specific spot since the the status box has white in it as well ill go get you a screen shot right now Link to comment Share on other sites More sharing options...
Valuater Posted August 6, 2005 Share Posted August 6, 2005 You made the code for the heal but said to put it as the attacker but heres the attacker<{POST_SNAPBACK}>please re-phrase your statement( i never said to put anything as attacker)???8) Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 6, 2005 Author Share Posted August 6, 2005 never mind the statementheres one screen shothttp://www.thatsgreat2345.iconrate.net/FlyffHacks/shot.jpg another this is how people will have to look when using my bot Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 6, 2005 Author Share Posted August 6, 2005 oops forgot to added the shothttp://www.thatsgreat2345.iconrate.net/FlyffHacks/shot2.jpeghey valuater can you open up the first screen shot and get the color of the white since my guy is damaged and shows the white ? im on linux and cant use AU3info.exe Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 6, 2005 Author Share Posted August 6, 2005 i cant get the 0x for the white but if you can http://www.thatsgreat2345.iconrate.net/FlyffHacks/shot.jpgjust look at the top right theres some white some white in the hp bar cuz my guys hurt and since im on linux i cant get it so if you could that would help alot and i wouldnt have to wait till tommrow to go to my friends house to get it Link to comment Share on other sites More sharing options...
Valuater Posted August 6, 2005 Share Posted August 6, 2005 (edited) first you need to use au3info to get... the left,top,right and bottom coords then as an idea... keep searching for red and if it is not red... then call the function just change this If Not @error Then ***** to If @error Then understand... there is always a way... be imagineative.. and ... read help 8) AWE.... this may not work.... sorry gotta go out of town...bye Edited August 6, 2005 by Valuater Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 6, 2005 Author Share Posted August 6, 2005 ok so use my mouse and put it at each corner of the rectangle??? and then make it so its searching for red every second and if its not there then ive never understood what @errors are for ive looked at some scripts but never got it and what do u mean by the stars what am i supposed to put there? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 6, 2005 Author Share Posted August 6, 2005 For the auto heal i want it to search the top left right where i put the white dot http://www.thatsgreat2345.iconrate.net/FlyffHacks/shot3.bmp so do i just have to use AU3info and get the hex code of the white so it searches for it and then get the coordinates which i could do both at the same time since the mouse will be where the white is so yeah is that all i have to do? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 7, 2005 Author Share Posted August 7, 2005 ok valuater so all i have to basicaly now is make it so that it will search for the white and get the coordinates of where i want it to search correct? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 7, 2005 Moderators Share Posted August 7, 2005 (edited) Your other post pertains to this one... why not just sum them up in one post and keep that live. May make people help a bit more if they don't have to pop their heads in and out to see what you've done and how far you've come. Edited August 7, 2005 by ronsrules Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted August 7, 2005 Author Share Posted August 7, 2005 summed up of basicaly all im wondering Link to comment Share on other sites More sharing options...
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