-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstartFarmerSF80.py
More file actions
62 lines (58 loc) · 1.03 KB
/
Copy pathstartFarmerSF80.py
File metadata and controls
62 lines (58 loc) · 1.03 KB
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
from msmFarmerCfg import setConfig, charMove, castSkill, toggleAuto
import time
import random
import json
config = """{
"device": {
"host": "127.0.0.1",
"port": 5037,
"name": "emulator-5554"
},
"autobattle": {
"durAuto": 15,
"durManual": 60,
"manualOn": 1,
"manualFirst": 1
},
"movement": {
"distMin": 0.2,
"distMax": 0.6,
"stepsMin": 6,
"stepsMax": 9
},
"skills": {
"distribution": [0, 2, 2, 2],
"buttons": ["skill1"],
"waitMin": 0.3,
"waitMax": 0.5
},
"buffs": {
"enabled": 1,
"buttons": ["skill4"],
"cdMin": 45,
"cdMax": 60,
"waitMin": 0.4,
"waitMax": 0.9,
"toggleNeeded": 0,
"toggleButton": "toggle"
},
"summons": {
"enabled": 1,
"buttons": ["skill5"],
"cdMin": 250,
"cdMax": 290,
"waitMin": 0.4,
"waitMax": 0.9
}
}"""
config_dict = json.loads(config)
# Allowing time to toggle to BlueStacks
time.sleep(2.5)
setConfig(config_dict)
toggleAuto()
# Looping through farming
while True:
castSkill()
time.sleep(random.uniform(0.2,0.4))
charMove()
time.sleep(random.uniform(0.3,0.5))