The Bytecode Club - Reverse Engineering Forum
5.4.2.2 + Giants atk and donate troops - 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: 5.4.2.2 + Giants atk and donate troops (/showthread.php?tid=363)

Pages: 1 2 3 4 5


RE: 5.4.2.2 + Giants atk and donate troops - k3iroll - 01-25-2015




RE: 5.4.2.2 + Giants atk and donate troops - Rubber - 01-25-2015




RE: 5.4.2.2 + Giants atk and donate troops - Rubber - 01-26-2015

Ok, I figured it out. If anybody wants the bot to donate more often while waiting for camps to fill just add this code to script


Code:
;Donate Settings
Global $iDonateCounter = 0 ; Donate counter, when reaches $DONATEATCOUNT, it will donate
Global $DONATEATCOUNT = 2 ; Run DonateCC() after this amount of times before actually donate

and this under  general functions

If _Sleep(30000) Then ExitLoop (2)


Code:
If $iDonateCounter > $DONATEATCOUNT Then ; This is prevent from donating all the time which isn't needed anyway
DonateCC()
If _Sleep(1000) Or $RunState = False Then ExitLoop (2)
$iDonateCounter = 0
Endif
$iDonateCounter = $iDonateCounter + 1



This feature donates every 2 min, and I only tested it in this version of the bot.