Jump to content

AutoIt Help (timer within this script)


Browen
 Share

Recommended Posts

Basically, I'm using this, its simple, and i'm a noob, but it works which is best :whistle:

I have found a way to edit the mobs i want to fight and make their texture just a red block.. so the next thing is, I want to enter in there a way to press my heal button (either F4 key, or click there, manually) every 20secs (I know a hpcheck would be too advanced at this moment)

can anyone assit?

heres what i'm uding

HotKeySet("{NumPad7}", "Start")
HotKeySet("{NumPad8}", "Pause")
HotKeySet("{NumPad9}", "Leave")
While 1
Sleep(1000)
WEnd
Func Start()

While 1
$Coord = PixelSearch(391, 326, 1164, 740, 0xFF0000, 20); <--- Searches For Creature 
  If Not @error Then
   MouseClick("Left", $Coord[0], $Coord[1], 1, 0); <--- Casts Spell On Creature
    Sleep(10000) 
       EndIf
      WEnd

EndFunc
Func Pause()
While 1
Sleep(1)
WEnd
EndFunc
Func Leave()
Exit
EndFunc

PS: thx to the CO autoit guy

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