Thread Rating:
  • 3 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
5.4.2.2 + Giants atk and donate troops
#33
(01-20-2015, 09:08 PM)DiviniT3a Wrote:  @chase Barch works absolutely fine for me. Unfortunately it doesn't work with giants on my end. I'm going to have to try it again and post the error when I get a chance but that's beside the point.

edit: Here is the error I get If I don't include barbarians [Image: SF0VvL8.jpg]

Just comment out the part where barbs are called, save & run (or recompile if you use exe).

For multiple lines, use #comments-start & #comments-end
    AUTOIT Programming
  1. #comments-start
  2.  SetLog("Dropping first wave of Barbarians")
  3.  For $i = 0 To 4 ;Drop first round of Barbarians
  4.  Click(68 + (72 * $Barb), 595) ;Select Troop
  5.  If _Sleep(100) Then ExitLoop (2)
  6.  Click($TopLeft[$i][0], $TopLeft[$i][1], $numBarbPerSpot, 1)
  7.  Click($BottomRight[$i][0], $BottomRight[$i][1], $numBarbPerSpot, 1)
  8.  Next
  9.  
  10.  If _Sleep(1000) Then ExitLoop
  11. #comments-end



For single line, use semicolon
    AUTOIT Programming
  1. ; Local $numBarbPerSpot = Ceiling((($atkTroops[$Barb][1] / 2) / 5) / 2)



These are just examples - you may need to comment out more. You should just need to comment out the barb parts in the attack algorithm being used.
Reply
 


Messages In This Thread
5.4.2.2 + Giants atk and donate troops - by xtheo - 01-17-2015, 11:28 PM
RE: 5.4.2.2 + Giants atk and donate troops - by barracoda - 01-21-2015, 05:18 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website