i don't know what the problem...
HotKeySet("{F3}", "AutoHeal0rz")
HotKeySet("{F4}", "UnAutoHeal0rz")
HotKeySet("{F2}", "qwerty")
Global $pick = 0
Global $coord = 0
Global $pos = 0,0
Global $color = 0
While 1
$health = PixelGetColor ( $pos[0] , $pos[1] )
If Not $health = $color Then
send("q")
endif
Wend
;( 418 , 897 ) is set at the point where you should be healed
;0x030503 = the HeX color of the pixel it will change to when you go lower then the amount of healt
func AutoHeal0rz()
If $coord = 1 then
$pick = 1
endif
endfunc
func UnAutoHeal0rz()
$pick = 0
endfunc
func qwerty()
$pos = MouseGetPos()
$color = PixelGetColor ( $pos[0] , $pos[1] )
$coord = 1
endfunc