& wie ? :O
Func HP()
$Variable = PixelSearch(279,599,289,598,0xCD1D18)
If IsArray($Variable) = True Then
Send("{0}")
EndIf
EndFunc
wird die funktion auch mal aufgerufen?Quote:
0 ist der Ausruhen-Hotkey womit er sich hinsetzt und erholt, aber er tut es nicht..Code:Func HP() $Variable = PixelSearch(279,599,289,598,0xCD1D18) If IsArray($Variable) = True Then Send("{0}") EndIf EndFunc
Sonst tut er gegner auswählen und angreifen, aber sich ausruhen tut er nicht.
mal so getestet?Quote:
Send("{0}")
HotkeySet("{F5}","_Start")
HotKeySet("{F6}","_Exit")
Hotkeyset("{F7}","HP")
While 1
sleep(1)
WEnd
Func _Start()
While 1
Send("{TAB}")
Sleep(2500)
Send("{2}")
Sleep(15)
WEnd
EndFunc
Func HP()
$Variable = PixelSearch(278,599,288,599,0xD62925)
If IsArray($Variable) = True Then
Send("{0}")
EndIf
EndFunc
Func _Exit()
Exit
EndFunc