So just use the first variant but deactivate the full HP check. ;)
Func CheckOwnHealth()
If PixelGetColor(621, 767) <> 0xD93A3C Then
ControlSend(, "", "", "!{F4}")
MsgBox(0, "Low Health", "Low Health. Quitet Game!")
EndIf
EndFunc
Quote:
Could you pls be clear and specific, e.g posting a screenshot of the proper setting? The one i got on screenshot makes the bot spam [tab] key and shuffle through all visible targets :(
[Only registered and activated users can see links. Click Here To Register...]
HotKeySet("{INS}", "LoginChar")
Func CheckOwnHP()
If GUICtrlRead() >= 40 Then GUICtrlSetData(, "39")
If PixelGetColor(GUICtrlRead() + Int((364 / 100) * GUICtrlRead()), GUICtrlRead()) <> GUICtrlRead() Then
= WinGetHandle()
_ScreenCapture_CaptureWnd("screen_shot.jpg", )
ControlSend(, "", "", "!{F4}")
Run("C:/dir/Codemasters/Archlord/Archlord_XX.exe")
Sleep(2000)
Run("C:/bot/Evolution Bot [AL] (0.8.3.5)/Evolution Bot [AL].exe")
Sleep(2000)
Send("{INS}")
Exit 0
EndIf
EndFunc ;==>CheckOwnHP
Func LoginChar()
MouseClick("left",951,543)
Sleep(8000)
Send("USERNAME{TAB}")
Sleep(500)
Send("PASSWORD{ENTER}")
Sleep(5000)
MouseClick("left",655,453)
Sleep(500)
MouseClick("left",719,709)
Sleep(5000)
MouseClick("left",715,482)
Sleep(500)
MouseClick("left",1135,726)
Sleep(10000)
Setup()
Send("{F10}")
BotRun()
EndFunc