Thread Rating:
  • 7 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Developing Bot
Zombie = Dead (Abandoned Base)
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
hey guys once again.. im here to help hope this tweak would help us if you want this tweak i will teach you guys how can you use this.. Smile
http://imgur.com/ot9Vivg
(12-28-2014, 06:26 PM)madalilng Wrote:  hey guys once again.. im here to help hope this tweak would help us if you want this tweak i will teach you guys how can you use this.. Smile
http://imgur.com/ot9Vivg

interesting looking photo...
 


Forum Jump:


Users browsing this thread: 30 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