SupermansZ24   02-19-2015, 10:44 AM
#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?
promac   02-19-2015, 10:55 AM
#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
SupermansZ24   02-19-2015, 11:24 AM
#3
(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
promac   02-19-2015, 11:35 AM
#4
root \COC bot.au3 , not in COCBot\functions\Other\_Sleep.au3
SupermansZ24   02-19-2015, 11:39 AM
#5
(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
promac   02-19-2015, 11:42 AM
#6
welcome
Just09   02-20-2015, 06:35 PM
#7
(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 ?
redclif   02-21-2015, 05:13 AM
#8
nice info, thanks lads

##########################
# I'm Glad to found this forum Bounce #
##########################
  
Users browsing this thread: 1 Guest(s)
Konloch Software - Bytecode Viewer - Reverse Engineering Forum
Copyright © 2014-2025 The Bytecode Club. Powered By MyBB.
CC0 Unless Specified Otherwise.