Jump to content

Recommended Posts

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

Posted

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
Posted

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

Posted

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

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

Posted

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?

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

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
  • Recently Browsing   0 members

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