Sign in to follow this  
Followers 0
Thatsgreat2345

Auto Heal

14 posts in this topic

#1 ·  Posted (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 by thatsgreat2345

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
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?

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

#13 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

summed up of basicaly all im wondering

Share this post


Link to post
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
Sign in to follow this  
Followers 0