-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathyb.py
More file actions
70 lines (54 loc) · 1.57 KB
/
yb.py
File metadata and controls
70 lines (54 loc) · 1.57 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
63
64
65
66
67
68
69
70
import util.screen as screen
import util.util as util
import time
# 运镖
# 分辩率使用配置5
# 即在屏幕平铺5个游戏号窗口,支持同时压镖5个账号
class YunBiao():
count = 0
def __init__(self):
self.run()
# self.loop()
def run(self):
print('运镖:running....')
if util.clickNpc('biao') == False:
return
print('正在跑步向前,寻找郑镖头...预计16秒')
time.sleep(16)
print('16秒结束...')
# 弹出任务
if util.clickSelectAll():
print('开始领取任务')
time.sleep(8)
# 确认压镖
res = util.clickCenterAll('images/yb/confirm.png')
if res == False:
print('运镖已结束')
return
print('领取任务成功')
time.sleep(20)
self.count = self.count + res
# 启动循环任务
self.loop()
# 循环任务
def loop(self):
if util.stop :
print('按下空格键 任务结束')
return
if self.count >= 15 :
print('运镖任务END')
return
# 弹出任务 点击
if util.clickSelectAll():
print('运镖任务')
time.sleep(2)
box = util.clickCenterAll('images/yb/confirm.png')
if box:
self.count = self.count + box
print('确认运镖')
print('count', self.count)
time.sleep(3)
print('loop...')
return self.loop()
util.start_listen()
YunBiao()