0326更改-01
This commit is contained in:
parent
a6454d45ed
commit
1e89c897f5
17
common.py
17
common.py
@ -212,7 +212,7 @@ def monitor_battle_status():
|
|||||||
global battle_monitor_timer
|
global battle_monitor_timer
|
||||||
isfire()
|
isfire()
|
||||||
if not zhuoguiisover:
|
if not zhuoguiisover:
|
||||||
battle_monitor_timer = threading.Timer(2, monitor_battle_status)
|
battle_monitor_timer = threading.Timer(3, monitor_battle_status)
|
||||||
battle_monitor_timer.start()
|
battle_monitor_timer.start()
|
||||||
else:
|
else:
|
||||||
stop_battle_monitor_timer()
|
stop_battle_monitor_timer()
|
||||||
@ -223,7 +223,7 @@ def start_battle_monitor_timer():
|
|||||||
global battle_monitor_timer
|
global battle_monitor_timer
|
||||||
if battle_monitor_timer is not None:
|
if battle_monitor_timer is not None:
|
||||||
battle_monitor_timer.cancel()
|
battle_monitor_timer.cancel()
|
||||||
battle_monitor_timer = threading.Timer(2, monitor_battle_status)
|
battle_monitor_timer = threading.Timer(3, monitor_battle_status)
|
||||||
battle_monitor_timer.start()
|
battle_monitor_timer.start()
|
||||||
print("战斗状态监控已启动")
|
print("战斗状态监控已启动")
|
||||||
|
|
||||||
@ -234,17 +234,6 @@ def stop_battle_monitor_timer():
|
|||||||
battle_monitor_timer = None
|
battle_monitor_timer = None
|
||||||
print("战斗状态监控已停止")
|
print("战斗状态监控已停止")
|
||||||
|
|
||||||
def check_shuangbei():
|
|
||||||
global shuangbeidianshu
|
|
||||||
print("开始检测双倍点数")
|
|
||||||
res_guaji1 = zhaotu("挂机1.png")
|
|
||||||
res_guaji = zhaotu("挂机.png")
|
|
||||||
res_guaji_last = res_guaji or res_guaji1
|
|
||||||
if res_guaji_last is not None:
|
|
||||||
lingqushuangbei.lingqu(res_guaji_last)
|
|
||||||
print("双倍领取完成")
|
|
||||||
else:
|
|
||||||
print("未找到挂机入口,双倍检测失败")
|
|
||||||
|
|
||||||
def denglu():
|
def denglu():
|
||||||
while True:
|
while True:
|
||||||
@ -456,7 +445,7 @@ def alllive_task(num):
|
|||||||
# 战斗状态监控
|
# 战斗状态监控
|
||||||
isfire()
|
isfire()
|
||||||
|
|
||||||
duiwu.shifoukaping()
|
# duiwu.shifoukaping()
|
||||||
|
|
||||||
start_alllive_task_timer(num)
|
start_alllive_task_timer(num)
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ def lingqu(zuobiao):
|
|||||||
if ylq_num >= 4:
|
if ylq_num >= 4:
|
||||||
if ylq_num >= 1000:
|
if ylq_num >= 1000:
|
||||||
ylq_num = 1000
|
ylq_num = 1000
|
||||||
|
shuangbeidianshu = ylq_num
|
||||||
print(f"正常领取结束,开始任务", ylq_num)
|
print(f"正常领取结束,开始任务", ylq_num)
|
||||||
common.shuangbei = True
|
common.shuangbei = True
|
||||||
common.closeAllbtn()
|
common.closeAllbtn()
|
||||||
|
BIN
res/img/baotu_zx/听听无妨.png
Normal file
BIN
res/img/baotu_zx/听听无妨.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
res/img/shimen/不打自招.png
Normal file
BIN
res/img/shimen/不打自招.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
19
zhuogui.py
19
zhuogui.py
@ -29,14 +29,15 @@ def zhuogui():
|
|||||||
global battle_count # 声明全局变量
|
global battle_count # 声明全局变量
|
||||||
|
|
||||||
# 开始时检测一次双倍点数
|
# 开始时检测一次双倍点数
|
||||||
common.check_shuangbei()
|
lingqushuangbei.lingqushuangbei()
|
||||||
if common.shuangbei is False:
|
if common.shuangbei is False:
|
||||||
print("双倍点数不足,停止捉鬼任务")
|
print("双倍点数不足,停止捉鬼任务")
|
||||||
return
|
return
|
||||||
|
|
||||||
print("开始捉鬼")
|
print("开始捉鬼")
|
||||||
|
|
||||||
# 先执行退出队伍
|
# 先执行退出队伍
|
||||||
duiwu.tuichuzudui()
|
# duiwu.tuichuzudui()
|
||||||
|
|
||||||
# 启动战斗状态监控定时任务
|
# 启动战斗状态监控定时任务
|
||||||
common.start_battle_monitor_timer()
|
common.start_battle_monitor_timer()
|
||||||
@ -61,12 +62,6 @@ def zhuogui():
|
|||||||
common.stop_battle_monitor_timer()
|
common.stop_battle_monitor_timer()
|
||||||
return
|
return
|
||||||
|
|
||||||
# 检查战斗状态
|
|
||||||
if common.isfire():
|
|
||||||
print("----------战斗中----------")
|
|
||||||
sleep(60)
|
|
||||||
continue
|
|
||||||
|
|
||||||
res_zdsb = common.zhaotu("战斗失败.png")
|
res_zdsb = common.zhaotu("战斗失败.png")
|
||||||
if res_zdsb is not None:
|
if res_zdsb is not None:
|
||||||
print("找到战斗失败")
|
print("找到战斗失败")
|
||||||
@ -75,12 +70,20 @@ def zhuogui():
|
|||||||
duiwu.tuichuzudui()
|
duiwu.tuichuzudui()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# 检查战斗状态
|
||||||
|
if common.isfire():
|
||||||
|
print("----------战斗中----------")
|
||||||
|
sleep(60)
|
||||||
|
continue
|
||||||
|
sleep(10)
|
||||||
|
|
||||||
print("判断状态1")
|
print("判断状态1")
|
||||||
if common.isfire():
|
if common.isfire():
|
||||||
print("----------战斗中----------")
|
print("----------战斗中----------")
|
||||||
sleep(60)
|
sleep(60)
|
||||||
continue
|
continue
|
||||||
sleep(10)
|
sleep(10)
|
||||||
|
|
||||||
print("判断状态2")
|
print("判断状态2")
|
||||||
if common.isfire():
|
if common.isfire():
|
||||||
print("----------再次判断战斗中----------")
|
print("----------再次判断战斗中----------")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user