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 - AtoZ - 12-18-2014 RE: Developing Bot - AtoZ - 12-18-2014 RE: Developing Bot - Antidote - 12-18-2014 RE: Developing Bot - Antidote - 12-18-2014 For the attack strategy, you are right. I still think each method has its own up and down. I personally used both lp and lf, in my experience bruteforce approach used by lp or attack 'em all in lf is inconsistence in loot for each attack but in the long run can be more rewarding (for ex. 2 raids with < 30k loot followed by 3 raids with > 200k. Bully mode & dead fish is more consistent and less risky but might not give you as much in the long run. But that is just pure in-game strategy. Talking about the code, right now I just use the default giant, 2 x barbarian, archer combo for testing. I need to make sure it can properly assign and drop troop unit first before moving on to other strategies, additional checks,.. Also many features rely on image recognition (which we both stuck on) so I guess I'll have to find a way for it to work. For the % of troops before attack, I believe lf currently set it at 90%. It's easy to implement if you can accurately read troop number from army camp. Thanks for your input, I'll take note of everything but in the mean time just work on core structure first. One thing at a time man RE: Developing Bot - AtoZ - 12-18-2014 RE: Developing Bot - Konloch - 12-18-2014 Amazing team work, glad to see everyone working towards one goal. RE: Developing Bot - Antidote - 12-18-2014 The pixelsearch is just looking for a specific shade of red from the End Battle button so it knows when to start reading. I cannot reproduce your error but I do notice sometimes the bot cannot detect a specific shade when battle finish to click return home. For CheckSearch you can use this old function instead. Code: Func CheckSearch() RE: Developing Bot - Antidote - 12-18-2014 RE: Developing Bot - AtoZ - 12-18-2014 (12-18-2014, 06:39 PM)Antidote Wrote: The pixelsearch is just looking for a specific shade of red from the End Battle button so it knows when to start reading. I cannot reproduce your error but I do notice sometimes the bot cannot detect a specific shade when battle finish to click return home. For CheckSearch you can use this old function instead. 0x0D355B = Midnight blue? RE: Developing Bot - Antidote - 12-18-2014 shit I just look up the hex. It's really midnight blue.. I think my pixel get color script fails to get the correct co-ord. I just printscreen and check again in photoshop. Can you change the value to 0xc00000? I use replace color and it's indeed the only spot on the screen with this color value. I will try to do the same to return home. |