Quote:
Originally Posted by asaky
np, I will redownload the bot, change the setup and try again. :) But knowing it is not happening on your end means I can isolate the problem better.
If I find out the problem I will report it incase someone else has the same problem.
|
From more testing this is what I found and might help you.
Copey this over your function can be found at line 729.
Hope this helps.
Code:
Func RestoreCharState($MODE)
GUICtrlSetData($LABEL_GENERAL_STATUS, "Action: Restoring")
AddHistory("Restoring")
$KEY = IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, "")
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, "")))
Sleep(300)
$RestTimer = TimerInit()
If $MODE = 1 Then
Do
Sleep(500)
HPMPAutoPotCheck()
If $TARID <> "0" Then
$TAR_ID = $TARID
AddHistory("Defending During Restore")
KillTarget()
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, "")))
Sleep(300)
EndIf
$RestTimerDiff = TimerDiff($RestTimer)
Until $RestTimerDiff / 60000 > 3 Or GUICtrlRead($PERC_HP) > 98 Or $TARID <> 0
Elseif $MODE = 2 Then
Do
Sleep(500)
HPMPAutoPotCheck()
If $TARID <> "0" Then
$TAR_ID = $TARID
AddHistory("Defending During Restore")
KillTarget()
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, "")))
Sleep(300)
EndIf
$RestTimerDiff = TimerDiff($RestTimer)
Until $RestTimerDiff / 60000 > 3 Or GUICtrlRead($PERC_MP) > 98 Or $TARID <> 0
EndIf
_SendMessage($HANDLE, 256, KEYCODE(IniRead($SOFTWARE_CONFIG, $CFG_HEAL_ROOT_KEY, $CFG_HEAL_AUTOREST_KEY, "")))
Sleep(300)
EndFunc