02-19-2015, 11:24 AM
(02-19-2015, 10:55 AM)promac Wrote: In COC bot.au3I haven't found that code under COCBot\functions\Other\_Sleep.au3
Do you have severals _Sleep , reduce the number and you can do it
_Sleep(milliseconds) is the delay between functions
1 second = 1000 milliseconds
search :
While $fullArmy = False
If $CommandStop = -1 Then SetLog("~~~Waiting for full army~~~", $COLOR_PURPLE)
Local $hTimer = TimerInit()
If _Sleep(30000) Then ExitLoop
This is what's in the file posted above. I'm using the master branch from Github
Func _Sleep($iDelay, $iSleep = True)
Local $iBegin = TimerInit()
While TimerDiff($iBegin) < $iDelay
If $RunState = False Then Return True
tabMain()
If $iSleep = True Then Sleep(50)
WEnd
Return False
EndFunc ;==>_Sleep