0% found this document useful (0 votes)
43 views9 pages

Transfer Coins

The document contains code for an automated bot to run shop pages in a game. It includes sections to load the shop, select product trays, handle coin purchases at different price levels, and navigate to other farms by pressing the green button or going to the left/right side. Key variables track shop settings, selected trays, coin purchase method, and steps to load, select trays, or navigate to other options.

Uploaded by

Grego Llanes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views9 pages

Transfer Coins

The document contains code for an automated bot to run shop pages in a game. It includes sections to load the shop, select product trays, handle coin purchases at different price levels, and navigate to other farms by pressing the green button or going to the left/right side. Key variables track shop settings, selected trays, coin purchase method, and steps to load, select trays, or navigate to other options.

Uploaded by

Grego Llanes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 9

#My_Shop_Pages = 1

#Customer_Shop_Pages = 2
// 1: 10 Boxes
// 2: 20 Boxes
// 3: 30 Boxes
// 4,5,6,7 so on
#Price = 3
// 0: Base-Price
// 1: Min-Price(1 coin)
// 2: Full-Price
// 3: 1 and 2 coin mix sale
#Product = 1
// Select which number product you want sale (1 to 15)
#Collect_Coins = 1
// Collect coins before/after 10 boxes sale
#Left_Right = 1
// 1 = left , 2 = right

// --------------------------------------------------

#Times = 0
#Step = 1
#Set_Time = 30
:Loading
#Con_Error = 0
#Blue_Bar = 0
#Times = #Times + 1
If #Times > #Set_Time
Toast Check Your Internet Connection
#Times = 0
GoTo :Loading
EndIf
GetColor #Con_Error 394 164
If #Con_Error = 3658851
TouchPress 0 346 326
GoTo :Loading
EndIf
GetColor #Px_Shop 322 137
If #Px_Shop = 6144767
#Tray = 0
GoTo :Shop
EndIF
GetColor #Blue_Bar 245 27
If #Blue_Bar = -87752
Toast Loading Successful In [#Times]Seconds... , Open Shop
#Times = 0
GoTo :Set
EndIf
Sleep 1000
GoTo :Loading
:Set
TouchDown 0 59 71
Sleep 100
TouchMove 0 495 449
Sleep 500
TouchUp 0
Sleep 200
#Shop_Temp = 1
:Shop
GetColor #Con_Error 394 164
If #Con_Error = 3658851
TouchPress 0 346 326
GoTo :Loading
EndIf
If #Shop_Temp == 1
TouchPress 0 312 456
EndIf
If #Shop_Temp == 2
TouchPress 0 289 440
EndIf
If #Shop_Temp == 3
TouchPress 0 291 422
EndIf
if #Shop_Temp == 4
TouchPress 0 280 428
EndIf
If #Shop_Temp == 5
#Shop_Temp = 1
GoTo :Shop
EndIf
Sleep 500
GetColor #Px_Shop 322 137
If #Px_Shop = 6144767
Else
#Shop_Temp = #Shop_Temp + 1
//TouchDown 0 59 71
//Sleep 100
//TouchMove 0 495 449
Sleep 500
TouchUp 0
Sleep 200
Goto :Shop
EndIf
:Shop
#Tray = 0
#Temp = 1
#Coin_Temp = 1
Sleep 100
touchDown 0 180 226
sleep 1
touchUp 0
sleep 100
touchDown 0 174 297
sleep 1
touchUp 0
sleep 100
touchDown 0 244 223
sleep 1
touchUp 0
sleep 100
touchDown 0 250 298
sleep 1
touchUp 0
sleep 100
touchDown 0 311 226
sleep 1
touchUp 0
sleep 100
touchDown 0 309 298
sleep 1
touchUp 0
sleep 100
touchDown 0 381 224
sleep 1
touchUp 0
sleep 100
touchDown 0 380 295
sleep 1
touchUp 0
sleep 100
touchDown 0 441 224
sleep 1
touchUp 0
sleep 100
touchDown 0 446 297
sleep 1
touchUp 0
sleep 100
touchDown 0 491 222
sleep 1
touchUp 0
sleep 100
touchDown 0 491 296
sleep 1
touchUp 0
sleep 100
touchDown 0 491 222
sleep 1
touchUp 0
sleep 100
touchDown 0 491 296
sleep 1
touchUp 0
sleep 100
touchDown 0 491 222
sleep 1
touchUp 0
sleep 100
touchDown 0 491 296
sleep 1
touchUp 0
sleep 100
touchDown 0 491 222
sleep 1
touchUp 0
sleep 100
touchDown 0 491 296
sleep 1
touchUp 0
sleep 100
touchDown 0 508 258
sleep 10
touchUp 0
Sleep 100
If #Step == 1
#Pages = #My_Shop_Pages
GoTo :SelectTrays
Elseif #Step == 2
#Pages = #Customer_Shop_Pages
GoTo :SelectTrays
EndIF
:SelectTrays
#Tray = #Tray + 1
If #Step == 2 And #Pages == 1
Goto :Pick_Other
ElseIf #Step == 2 And #Pages > 1
Sleep 100
touchDown 0 180 226
sleep 1
touchUp 0
sleep 100
touchDown 0 174 297
sleep 1
touchUp 0
sleep 100
touchDown 0 244 223
sleep 1
touchUp 0
sleep 100
touchDown 0 250 298
sleep 1
touchUp 0
sleep 100
touchDown 0 311 226
sleep 1
touchUp 0
sleep 100
touchDown 0 309 298
sleep 1
touchUp 0
sleep 100
touchDown 0 381 224
sleep 1
touchUp 0
sleep 100
touchDown 0 380 295
sleep 1
touchUp 0
sleep 100
touchDown 0 441 224
sleep 1
touchUp 0
sleep 100
touchDown 0 446 297
sleep 1
touchUp 0
sleep 100
touchDown 0 491 222
sleep 1
touchUp 0
sleep 100
touchDown 0 491 296
sleep 1
touchUp 0
sleep 100
touchDown 0 491 222
sleep 1
touchUp 0
sleep 100
touchDown 0 491 296
sleep 1
touchUp 0
sleep 100
touchDown 0 491 222
sleep 1
touchUp 0
sleep 100
touchDown 0 491 296
sleep 1
touchUp 0
sleep 100
touchDown 0 491 222
sleep 1
touchUp 0
sleep 100
touchDown 0 491 296
sleep 1
touchUp 0
sleep 100
touchDown 0 508 258
sleep 10
touchUp 0
Sleep 100
#Tray = 13
EndIf
If #Tray == 1
#Tray_Sel_X = 179
#Tray_Sel_Y = 221
ElseIf #Tray == 2
#Tray_Sel_X = 182
#Tray_Sel_Y = 292
ElseIf #Tray == 3
#Tray_Sel_X = 248
#Tray_Sel_Y = 220
ElseIf #Tray == 4
#Tray_Sel_X = 248
#Tray_Sel_Y = 292
ElseIf #Tray == 5
#Tray_Sel_X = 318
#Tray_Sel_Y = 219
ElseIf #Tray == 6
#Tray_Sel_X = 316
#Tray_Sel_Y = 296
ElseIf #Tray == 7
#Tray_Sel_X = 385
#Tray_Sel_Y = 222
ElseIf #Tray == 8
#Tray_Sel_X = 379
#Tray_Sel_Y = 292
ElseIf #Tray == 9
#Tray_Sel_X = 448
#Tray_Sel_Y = 219
ElseIf #Tray == 10
#Tray_Sel_X = 444
#Tray_Sel_Y = 298
ElseIf #Tray == 11
Sleep 50
#Tray_Sel_X = 497
#Tray_Sel_Y = 228
ElseIf #Tray == 12
Sleep 50
#Tray_Sel_X = 495
#Tray_Sel_Y = 302
ElseIf #Tray == 13 And #Pages == 1
GoTo :Pick_Other
ElseIf #Tray == 13 And #Pages > 1 And #Pages == #Temp
GoTo :Pick_Other
ElseIf #Pages > 1 or #Temp == 1
Toast Scroll Next , Pages [ #Temp / #Pages ]
TouchPress 0 508 258
Sleep 100
TouchDown 0 486 272
Sleep 300
TouchMove 0 156 272
Sleep 700
TouchUp 0
Sleep 200
#Temp = #Temp + 1
#Tray = 0
GoTo :SelectTrays
EndIf
TouchDown 0 #Tray_Sel_X #Tray_Sel_Y
TouchUp 0
Sleep 10
TouchDown 0 #Tray_Sel_X #Tray_Sel_Y
TouchUp 0
Sleep 10
TouchDown 0 #Tray_Sel_X #Tray_Sel_Y
TouchUp 0
Sleep 120
If #Product == 1
TouchPress 0 198 173
ElseIf #Product == 2
TouchPress 0 254 173
ElseIf #Product == 3
TouchPress 0 310 173
ElseIf #Product == 4
TouchPress 0 198 217
ElseIf #Product == 5
TouchPress 0 254 217
ElseIf #Product == 6
TouchPress 0 310 217
ElseIf #Product == 7
TouchPress 0 204 260
ElseIf #Product == 8
TouchPress 0 254 260
ElseIf #Product == 9
TouchPress 0 307 260
ElseIf #Product == 10
TouchPress 0 204 301
ElseIf #Product == 11
TouchPress 0 254 301
ElseIf #Product == 12
TouchPress 0 307 301
ElseIf #Product == 13
TouchPress 0 204 340
ElseIf #Product == 14
TouchPress 0 254 340
ElseIf #Product == 15
TouchPress 0 307 340
EndIf
Sleep 10
TouchDown 0 459 189
TouchUp 0
TouchDown 0 459 189
TouchUp 0
TouchDown 0 459 189
TouchUp 0
TouchDown 0 459 189
TouchUp 0
TouchDown 0 459 189
TouchUp 0
If #Price == 0
ElseIf #Price == 1
TouchDown 0 396 246
Sleep 10
TouchUp 0
ElseIf #Price == 2
TouchDown 0 437 247
Sleep 10
TouchUp 0
ElseIf #Price == 3 And #Coin_Temp == 2
#Coin_Temp = 1
TouchDown 0 396 246
Sleep 10
TouchUp 0
GoTo :Coin_Temp
ElseIf #Price == 3 And #Coin_Temp == 1
#Coin_Temp = 2
TouchDown 0 396 246
Sleep 10
TouchUp 0
TouchDown 0 459 225
sleep 10
TouchUp 0
Else
TouchDown 0 396 246
sleep 10
TouchUp 0
EndIf
:Coin_Temp
Sleep 10
TouchDown 0 414 348
Sleep 10
TouchUp 0
Sleep 150
TouchPress 0 508 258
Sleep 10
GoTo :SelectTrays

:Pick_Other
If #Step == 1
Goto :Left_Right
elseIf #Step == 2
Goto :GreenButton
EndIf
:Left_Right
Sleep 100
If #Left_Right == 1
// Left side
touchPress 0 140 144
sleep 10
touchPress 0 140 144
sleep 50
ElseIf #Left_Right == 2
// Right Side
touchPress 0 497 142
sleep 10
touchPress 0 497 142
sleep 50
EndIf
sleep 1000
#Step = 2
Goto :Shop

:GreenButton
Sleep 500
GetColor #Green_button 47 440
GetColor #Shop_OtherFarm 337 133
GetColor #Full_Barn 278 328
GetColor #Bar_OtherFarm 430 63
If #Full_Barn = -25102
#Times = 0
Goto :Run_Loading3
ElseIf #Bar_OtherFarm = 2246497 And #Shop_OtherFarm = 6475519
#Times = 0
Goto :Run_Loading3
Elseif #Green_button = 3596302
#Times = 0
Goto :Run_Loading3
Else
Sleep 500
Goto :Green_Button_Press2
EndIF
:Run_Loading3
Sleep 100
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 1
touchUp 0
sleep 10
touchDown 0 30 450
sleep 50
touchUp 0
Sleep 1000
#Step = 1
Goto :Loading

You might also like