· 9 years ago · Nov 01, 2016, 05:16 PM
1CoordMode, Mouse ,Relative
2setKeyDelay, 200
3
4
5email= samplemail ;don't type @gmail.com, just the parts before minus the salt
6Salty=
7nick=
8password=
9year=
10month=
11day=
12
13x = 75 ;x coord offset. 5-10 if no margin(thin border counts, but shouldn't matter)
14y = 160 ;y coord offset
15scale=1 ;device scaling. 1 for 100%, 1.25 for 125%, etc. Smaller is less precise
16
17;--------------------------------------------------------------------
18;EDITING BELOW THIS LINE CAN BREAK THE SCRIPT, DO SO AT YOUR OWN RISK
19;--------------------------------------------------------------------
20
21orange= 0x148CFE ;color of buttons
22blue= 0x907344
23brown= 0x627893
24
25$f9::pause
26$esc::ExitApp
27
28F5:: ;full auto reroll, except entering the code yourself
29 Gosub F1
30 sleep 5000
31 Gosub F2
32 sleep 7000
33 Gosub F3
34 sleep 4000
35 Gosub F4
36return
37
38F1::
39{
40;EMAIL REGISTRATION
41 Send, +^n
42 Send, +^i
43 Sleep, 1000
44 Send, ^e
45 Sendinput, gbf.game.mbga.jp/
46 Send, {enter}
47 sleep 2000
48 Loop{
49 PixelGetColor, Loaded, 100+x, 595+y
50 if Loaded = 0xE9E9E7
51 break
52 }
53 tap(100, 595, 500)
54
55 isColor(145, 225, orange) ;2nd page
56 sleep, 1000
57 send, {Tab}
58 sendinput, %email%{+}%Salty%@gmail.com
59 send, {enter}
60 Salty++
61
62;ACCOUNT PROFILE
63 isColor(30, 565, "0X5BBB52") ;green button
64 sleep 1000
65 send, {Tab}
66 sendinput, %nick%
67 send, {Tab}
68 sendinput, %password%
69 send, {Tab}
70 sendinput, %password%
71 send, {Tab}{Tab}
72 sendinput, %year%
73 send, {Tab}
74 sendinput, %month%
75 send, {Tab}
76 sendinput, %day%
77 send, {Tab}{space}{enter}
78 sleep 2000
79
80;ORANGE BUTTON & SETTINGS
81
82 isColor(125, 300, orange)
83 tap(125, 300, 4000)
84
85 isColor(175, 325, blue)
86 tap(175, 325, 3000)
87
88 isColor(240, 195, blue)
89 tap(240, 195, 1500)
90
91 isColor(240, 465, blue)
92 tap(240, 465, 1500)
93
94 isColor(240, 245, blue)
95 tap(240, 245, 1500)
96
97 isColor(240, 120, blue)
98 tap(240, 120, 1500)
99
100 isColor(265, 375, blue)
101 tap(265, 375, 1500)
102
103 SoundBeep, 500, 150
104}
105 return
106
107
108F2:: ;tut/3 >>32
109{
110 url_count:=3
111 url_count2:=1
112
113 Loop, 7{
114 url_count++
115 send, ^l
116 send, {End}{BS}
117 send, %url_count%
118 send, {enter}
119 sleep, 1700
120 }
121
122 Loop, 2{
123 send, ^l
124 send, {End}{BS}
125 send, %url_count2%
126 url_count2++
127 send, {enter}
128 sleep, 1700
129 }
130
131 sleep, 1000
132 send, ^l
133 send, {End}{BS}{BS}
134 send, 32
135 sleep, 1000
136 send, {enter}
137 sleep 500
138
139 SoundBeep, 500, 150
140}
141Return
142
143F3:: ;recruit/event skip
144{
145 isColor(180, 325, blue)
146 tap(180, 325, 2000)
147 MouseMove, 80+x, 500+y
148 loop, 20{
149 sleep 500
150 click
151 }
152 sleep 200
153 MouseMove, 300+x, 500+y
154 loop{
155 click
156 pixelSearch, , , 160+x, 560+y, 180+x, 570+y, 0x0F0F15, 0, fast
157 if ErrorLevel=1
158 break
159 }
160 sleep 500
161 SoundBeep, 500, 150
162}
163return
164
165F4::
166{
167 tap(180, 340, 3000)
168 isColor(100, 340, brown)
169 tap(100, 340, 2000)
170
171;my page
172
173 isColor(25, 20, blue)
174 tap(25, 20, 6000)
175;town
176 tap(330, 225, 2000)
177;buildings
178 tap(170, 140) ;house 1
179 isColor(45, 465, brown)
180 tap(45, 465)
181
182 MouseMove, 50+x, 295+y ;house 2
183 sleep 1700
184 click
185 isColor(45, 465, brown)
186 tap(45, 465)
187
188 MouseMove, 270+x, 280+y ;house 3
189 sleep 1700
190 click
191 isColor(45, 465, brown)
192 tap(45, 465)
193
194 MouseMove, 170+x, 260+y ;house 4
195 sleep 1700
196 click
197 isColor(45, 465, brown)
198 tap(45, 465, 1700)
199
200;2nd round house
201 tap(170, 140) ;house 1
202 isColor(180, 460, brown)
203 tap(170, 460)
204
205 MouseMove, 50+x, 295+y ;house 2
206 sleep 1700
207 click
208 isColor(180, 460, brown)
209 tap(180, 460)
210
211 MouseMove, 270+x, 280+y ;house 3
212 sleep 1700
213 click
214 isColor(180, 460, brown)
215 tap(180, 460)
216
217 MouseMove, 170+x, 260+y ;house 4
218 sleep 1700
219 click
220 isColor(180, 460, brown)
221 tap(180, 460)
222 sleep 1700
223
224
225 tap(180, 360, 2000) ;2nd crystal
226
227
228 tap(330, 25, 2000) ;menu
229
230
231 tap(280, 295, 3000) ;crate
232
233 isColor(180, 260, blue) ;redeem
234 tap(180, 260, 3000)
235 tap(260, 425, 1000)
236
237 tap(180, 310, 1000) ;gacha
238 click
239
240 isColor(255, 340, blue)
241 tap(255, 340, 3000)
242
243 SoundBeep, 500, 150
244}
245Return
246
247
248$f6::
249 current:= salty - 1
250 sendinput, %current%
251return
252
253$F10::Reload
254
255$f11::
256 Sendinput, j5pa
257 send, {Tab}
258 Sendinput, mkru
259 send, {Tab}
260 Sendinput, 2vcx
261 send, {Tab}
262 Sendinput, 4cr8
263return
264
265
266$f12::
267 Sendinput, yrwg
268 send, {Tab}
269 Sendinput, yv8m
270 send, {Tab}
271 Sendinput, cck2
272 send, {Tab}
273 Sendinput, wcbf
274return
275
276isColor(argX, argY , color){ ;loops/waits until color appears in a 10x10 area
277 global x, y, scale
278 coordX= % argX * scale + x
279 coordY= % argY * scale + y
280
281 loop{
282 pixelSearch, , , coordX-10, coordY-10, coordX+10, coordY+10, %Color%, 20, fast
283 if ErrorLevel=0
284 break
285 }
286}
287
288tap(argx, argy, ms=0){ ;click once at coord and sleeps optionally
289 global x, y, scale
290 coordX= % argx * scale + x
291 coordy= % argy * scale + y
292 click %coordx%, %coordy%
293 sleep %ms%
294}