The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Decrease delay between training?

Started by SupermansZ24 · Feb 19, 2015

7 replies128,234 views
Feb 19, 2015#1

I've made a few edits myself already increasing deployment speed, decreasing kings power activation and increasing return home time. I'm trying to find the file and code to keep the bot constantly training and thus, constantly donating, currently there's a 1 minute delay between training. Any know where I can find this?

Feb 19, 2015#2

In COC bot.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

Feb 19, 2015#3

In COC bot.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

I haven't found that code under COCBot\functions\Other_Sleep.au3

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

Feb 19, 2015#4

root \COC bot.au3 , not in COCBot\functions\Other_Sleep.au3

Feb 19, 2015#5

root \COC bot.au3 , not in COCBot\functions\Other_Sleep.au3

This is amazing!. Worked perfectly, thanks a bunch!. I changed it to 1 second for those wondering, default is 30 seconds

Feb 19, 2015#6

welcome

Feb 20, 2015#7

I've made a few edits myself already increasing deployment speed, decreasing kings power activation and increasing return home time. I'm trying to find the file and code to keep the bot constantly training and thus, constantly donating, currently there's a 1 minute delay between training. Any know where I can find this?

Can you upload your bot folder, please ?

Feb 20, 2015#8

nice info, thanks lads

Got something to add?

Log in to post a reply.

Join the conversation