The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

5.4.2.2 + Giants atk and donate troops

Started by xtheo · Jan 17, 2015

42 replies525,069 views
Jan 25, 2015#41

dixonhill wrote:

@jervisvgarcia

Here's my current variation of the 5.4.2.2.2 code.  

http://pastebin.com/SaZwH60e

I am working on adding the following functions important to me:

  • NoRaid checkmark (just collecting)
  • Remote pause (using Dropbox - if it finds a file in a special previously empty folder, it will pause the script so you can access it from your phone elsewhere.  You can use Dropbox on your phone to control that file)
  • Actually recognizing the text in the donation requests, and donating accordingly (right now only archers)
  • Scheduler to assign hours of operation to the bot so that it seems less like a 24/7 bot

@dixonhill

The functions that you are adding will be great additions. Hope to see it soon.

Jan 25, 2015#42

@xtheo or @dixonhill

I would like for the bot to donate every 2 min or more often instead of just once during a training cycle. What do i need to modify or add to the code and where should i place within it? need to keep my donations up lol. thx 🙂

Jan 25, 2015#43

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

;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)

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.

Got something to add?

Log in to post a reply.

Join the conversation