Thread Rating:
  • 7 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Developing Bot
(12-26-2014, 12:45 PM)DiviniT3a Wrote:  @AtoZ
How would I go about converting the two scripts into one exe? I have a friend whom I would like to send the bot to but I'm sure he would be too lazy to install autoit.

I'm also new to Autoit. I'm not sure but just send him the rar files and run the exe. If it works then good, but if it doesn't then try asking Antidote or GKevinOD.
(12-26-2014, 12:26 PM)k3iroll Wrote:  I still have issue during the training mode and I believe there are a few more people reported that the bot is clicking on the walls.

The observation that I have is that the bot locates all the 4  barracks successfully.

Below is the detail flow of the issue that I had during training:

1- Bot click barrack to open the barrack training window
2- Bot execute 65 consecutive rapid clicking to train barb/archer
3- Suddenly the barrack training window is closed and bot is still clicking to finish the loop of the 65 times
4- Because the training windows is no longer there, the bot is not clicking on archer/barb, instead the click hits the village structure e.g. wall.
5- The bot finished the 65 clicks
6- Continue to next barracks for training

Some time the bot managed to train all 4 barracks flawlessly without the above incidents.
Some other time, the bot managed to train one or two barracks only without the above incidents.

The reason that I can think of probably because there is another click outside the barrack training window that caused the window to be closed while the bot is performing its 65 consecutive clicks.
This also happened to me and even boosted my barracks accidentally. I think the only problem to this is it's too fast. Try adding sleep(100) to this:

Code:
 Case $z = "Barbarian"
For $i = 1 To 65 Step 1
ControlClick ($HWnD, "","", "left", "1", 220*$x_ratio, 270*$y_ratio)
If $RunState = False Then
  ExitLoop
EndIf
Sleep(50) ----> Change to 100 or 150.
Next
Apply it to all other cases. Func TrainBarrack($x, $y, $z) Line 415 and below in ver003
you can simply compile the main script to an exe file.
it will include all includes into the exe. send him the exe file and tell him to put it in a folder.
config and Loots folder will be created automatically!
yeah i understood your problem very well and the problem might have been solved with my script.
but now i got another idea.
pls try to put your barracks to a different place, delete your config.ini file and setup the bot again.
in some cases it can happen that there's something in front of the barrack like an elixir-collecting bubble causing the bot to clicking that bubble instead of the barrack.
tell me if changing locations of barracks worked for you
(12-26-2014, 02:14 PM)AtoZ Wrote:  
(12-26-2014, 12:26 PM)k3iroll Wrote:  I still have issue during the training mode and I believe there are a few more people reported that the bot is clicking on the walls.

The observation that I have is that the bot locates all the 4  barracks successfully.

Below is the detail flow of the issue that I had during training:

1- Bot click barrack to open the barrack training window
2- Bot execute 65 consecutive rapid clicking to train barb/archer
3- Suddenly the barrack training window is closed and bot is still clicking to finish the loop of the 65 times
4- Because the training windows is no longer there, the bot is not clicking on archer/barb, instead the click hits the village structure e.g. wall.
5- The bot finished the 65 clicks
6- Continue to next barracks for training

Some time the bot managed to train all 4 barracks flawlessly without the above incidents.
Some other time, the bot managed to train one or two barracks only without the above incidents.

The reason that I can think of probably because there is another click outside the barrack training window that caused the window to be closed while the bot is performing its 65 consecutive clicks.
This also happened to me and even boosted my barracks accidentally. I think the only problem to this is it's too fast. Try adding sleep(100) to this:


Code:
 Case $z = "Barbarian"
For $i = 1 To 65 Step 1
ControlClick ($HWnD, "","", "left", "1", 220*$x_ratio, 270*$y_ratio)
If $RunState = False Then
  ExitLoop
EndIf
Sleep(50) ----> Change to 100 or 150.
Next
Apply it to all other cases. Func TrainBarrack($x, $y, $z) Line 415 and below in ver003


Thansk AtoZ. Still does not solve my issue. The training clicking speed becoming slower, but still there is something that is closing the barrack army window during the 65 times clicking loop.
Finally! I found out the actual root cause for the problem that I'm having is due to the mouse pointer.

Placing the mouse pointer over the Bluestacks window during the operation of the bot is screwing up with the clicking.
thx for the share. i think a lot others could have that problem too Wink
 


Forum Jump:


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