Jump to content

Auto Heal


Recommended Posts

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 by thatsgreat2345
Link to comment
Share on other sites

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 by Valuater

NEWHeader1.png

Link to comment
Share on other sites

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

i cant get the 0x for the white but if you can

http://www.thatsgreat2345.iconrate.net/FlyffHacks/shot.jpg

just 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

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 by Valuater

NEWHeader1.png

Link to comment
Share on other sites

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

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

  • Moderators

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 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

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...