-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmain.py
More file actions
93 lines (72 loc) · 2.65 KB
/
main.py
File metadata and controls
93 lines (72 loc) · 2.65 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
from config.config import data,check_path
import lib.adb_command as adb
import lib.api as api
import plugins.active as active
import lib.find as f
import plugins.Turn as Turn
import plugins.auto_battle as auto
from plugins import wilderness, mission, refresh_battle
# import cv2 as cv
# from time import sleep
# import os
# import decisions.decision_1 as de1
import plugins.wilderness as wilderness
import plugins.mission as mission
import plugins.path as path
# from config.mappoint import clickcard
import time
import plugins.autopass as autopass
import plugins.mail as mail
import multiprocessing
def init():
#adb初始化
check_path()
device = adb.is_device_connected()
if not device:
print("Error: 未连接设备,请回看上面的错误信息")
exit(1)
#检测游戏是否运行,如果没有运行就启动游戏
adb.is_game_on()
api.get_screen_shot()
init()
#开始执行
#检测游戏是否运行,如果没有运行就启动游戏
#path.to_menu()
#换号(如不需要,请注释掉)
#path.login('account','password')
##看看能不能直接进入意志解析,能就直接打,不能就去打本
# path.to_menu()
# active.to_resource()
# res=f.find(active.IMAGE_ANALYSIS)
# print(res)
# if res[2] >0.6:
# print('白嫖解析')
# active.Auto_Active(active.IMAGE_ANALYSIS, 7, 2,False,1)
##尝试白嫖结束
# active.Auto_Active(active.IMAGE_HARVEST, 4, 4,True,1)
# path.to_menu()
# active.Auto_Active(active.IMAGE_HARVEST, 4, 4,True,1)
# p = multiprocessing.Process(wilderness.wild_start())
# p.start()
# p.join(timeout=70) # 设置超时时间为70 秒
# if p.is_alive():
# print("方法执行超时,跳过")
# p.terminate()
# autopass.pass_start()#自动领点唱机
# mission.mission_start()#自动领任务
# mail.mail_start()#自动领邮件
# 自动收菜把下面的注释取消掉就可以运行:
# wilderness.wild_start()
# active.Auto_Active(active.IMAGE_ANALYSIS, 5, 2) # 圣遗物狗粮本 等级5 复现2
# active.Auto_Active(active.IMAGE_MINTAGE_AESTHETICS, 6, 2)# 钱本 等级6 复现2
# active.Auto_Active(active.IMAGE_THE_POUSSIERE, 6, 2)# 经验本 等级6 复现2
# mission.mission_start()
# 自动战斗:
# t = Turn.Turn()
# t.team = ['Eternity','Anan','Sotheby','Bkornblume'] #这里是你的角色名,请去 cards/aname.py 对照英文填写,可以多写把你常用的角色加入。
# auto.checkTurn(t)
# 自动凹技能+敌人行动
#team = ['Lilya', 'BalloonParty', 'Sonetto', 'Bkornblume']
#expected_ally_list = [{('侧风起飞', 1): 2}, {('钟型摆动', 1): 2}]
# 需要自行进入战斗界面后,执行该方法
#refresh_battle.start(team, expected_ally_list, {})