The Bytecode Club - Reverse Engineering Forum
Decrease delay between training? - Printable Version

+- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club)
+-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1)
+--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97)
+--- Thread: Decrease delay between training? (/showthread.php?tid=917)



Decrease delay between training? - SupermansZ24 - 02-19-2015

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?


RE: Decrease delay between training? - promac - 02-19-2015

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


RE: Decrease delay between training? - SupermansZ24 - 02-19-2015

(02-19-2015, 10:55 AM)promac Wrote:  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


RE: Decrease delay between training? - promac - 02-19-2015

root \COC bot.au3 , not in COCBot\functions\Other\_Sleep.au3


RE: Decrease delay between training? - SupermansZ24 - 02-19-2015

(02-19-2015, 11:35 AM)promac Wrote:  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


RE: Decrease delay between training? - promac - 02-19-2015

welcome


RE: Decrease delay between training? - Just09 - 02-20-2015

(02-19-2015, 10:44 AM)SupermansZ24 Wrote:  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 ?


RE: Decrease delay between training? - redclif - 02-21-2015

nice info, thanks lads