k3iroll   12-28-2014, 11:52 AM
The below "Click Break Shield" function seems to click on the first village every time the bot goes from home village to attacking mode if there is no break shield to click.

Most of the time since it is clicking on the enemy's village, hence no army is dropped and only the notification of you cannot click on the red area appear. But there is one time that the bot dropped an army due to the empty space on the enemy's village.

I have disabled the Click Break Shield so that it doesn't happen again when I'm running the bot, just have to make sure I'm clicking the Break Shield button manually first if I have a shield.

Just to let you guys know my finding. Need to improve on this.


Code:
Func PrepareAttack() While 1 If $RunState = False Then ExitLoop EndIf ControlClick ($HWnD, "","", "left", "1", 50*$x_ratio, 500*$y_ratio) ;Click Attack If $RunState = False Then ExitLoop EndIf Sleep(2000) ControlClick ($HWnD, "","", "left", "1", 190*$x_ratio, 420*$y_ratio) ;Click Find a Match If $RunState = False Then ExitLoop EndIf Sleep(2000) ControlClick ($HWnD, "","", "left", "1", 470*$x_ratio, 330*$y_ratio) ;Click Break Shield ExitLoop WEnd EndFunc
  
Users browsing this thread: 8 Guest(s)
Konloch Software - Bytecode Viewer - Hack Log - Reverse Engineering Forum
Copyright © 2014-2026 The Bytecode Club. Powered By MyBB.
CC0 Unless Specified Otherwise.