Developing Bot - Printable Version +- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club) +-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1) +--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97) +--- Thread: Developing Bot (/showthread.php?tid=155) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
RE: Developing Bot - dinobot - 12-27-2014 I am also having the same problem of unable to train troop. I have located the barrack, but it seems like it is unable to click Train Troops. I have tried the mouse pointer out of the Bluestacks. Still didnt work. Is there anything to do with my pausing of Boost after maintenance for barrack? I have confirmed that my bluestack resolution is set to 860,720 using the reg file provided. I am using Bluestack latest version 0.9.6.4092. Code: Func TrainBarrack($x, $y, $z) 600,620 is Train Troops? How to know my Bluestack Mouse Coordination (x,y)? I couldn't find developer options. Please help. Thank you. RE: Developing Bot - kojometa - 12-27-2014 (12-27-2014, 12:50 AM)dinobot Wrote: I am also having the same problem of unable to train troop. I have located the barrack, but it seems like it is unable to click Train Troops. I have tried the mouse pointer out of the Bluestacks. Still didnt work. for low level barracks it doesnt work because there are only 3 buttons when you click on barrack. high level barracks have 5 buttons. can it be that there are only 3 buttons for you? RE: Developing Bot - dinobot - 12-27-2014 (12-27-2014, 12:58 AM)kojometa Wrote:(12-27-2014, 12:50 AM)dinobot Wrote: I am also having the same problem of unable to train troop. I have located the barrack, but it seems like it is unable to click Train Troops. I have tried the mouse pointer out of the Bluestacks. Still didnt work. I am running on max lvl barrack lvl 10, with 3 button, Info, Boost/Resume, Train Troops. If the script is written for 5 button, how to re-set the coordinate? How to determine my pixel coordinate (x,y)? RE: Developing Bot - kojometa - 12-27-2014 i dont know why its not showing 5 buttons to you. the 2 missing buttons are "boosts" is that right? i think we'll have to change the coordinates my pixel- or imagesearch. do you know why it doesnt suggest you to boost your barracks? dont you have gems or what are the reasons for that? im gonna be looking for a solution! RE: Developing Bot - dinobot - 12-27-2014 (12-27-2014, 01:20 AM)kojometa Wrote: i dont know why its not showing 5 buttons to you. the 2 missing buttons are "boosts" is that right?Currently my boost is paused due to last maintenance. Maybe I will clear the boost and see how later. Anyway, I managed to get my 3 button, x,y coordinate and I changed it to 523,623 for now and the training is working. RE: Developing Bot - kojometa - 12-27-2014 Okay i worked something out. Test this and tell me if it works for you! http://pastebin.com/GQxx4bsG This is looking for a specific pixelcolor of the sword of the "traintroop" button in the bottom area of bluestacks. if it finds that color, its gonna click on it. tell me if it worked because this is the way the bot will detect buttons in the future anyway probably! RE: Developing Bot - madalilng - 12-27-2014 hello im new here. is editing the building colors helps determine enemy based and estimate their power?? and i think its easy to recognize pixel color .. since you guys using it to know what to click.. for example i will make all building black and white and max walls or max towers to some colors where our bot can recognize it. RE: Developing Bot - dinobot - 12-27-2014 (12-27-2014, 01:46 AM)kojometa Wrote: Okay i worked something out. The colour hex code u given me don't work but after i changed to mine 0x683C18, it work. Still learning... $TrainTroop = PixelSearch(0,500,900,700,0x683C18,0,1,$HWnD May i ask what does 0,500,900,700 mean? want to know the area it searching. Thanks RE: Developing Bot - kojometa - 12-27-2014 its the searching-area in the bluesracks window. i enhanced it. take $TrainTroop = PixelSearch(190,550,670,650,0x9F7328,0,1,$HWnD) change the color if my color still doesnt work for you RE: Developing Bot - dinobot - 12-27-2014 (12-27-2014, 03:55 AM)kojometa Wrote: its the searching-area in the bluesracks window. works perfectly, thanks. just want to be more specify, what does 190 mean, 550? 670? 650? Also like to thanks AtoZ for the nice all round attack... #447 |