-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.lua
More file actions
147 lines (109 loc) · 4.14 KB
/
Copy pathmain.lua
File metadata and controls
147 lines (109 loc) · 4.14 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
--
init("0", 1)
--setScreenScale(1536,2048)
width,height = getScreenSize()
sysLog("width: "..width.."; height: "..height)
require "utils"
require "party_info"
require "yuhun_info"
require "inCombat"
require "tansuo"
require "xuche"
require "tupo"
require "spec"
require "richang"
require '悬赏封印'
pos = require("bblibs/pos")
dict = createOcrDict("dict.txt")
id = createHUD() --创建一个HUD
my_toast(id,"欢迎使用大便脚本!") --显示HUD内容
function main()
ret,results = showUI("ui.json")
if ret==0 then
toast("您选择了取消,停止脚本运行")
lua_exit()
else
toast_screensize()
--↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓获取UI配置↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
-------------------------------------------个人突破--------------------------------------
if results['100'] == '0' then
tupo_ret,tupo_results = showUI("tupo.json")
return main_tupo(tupo_ret,tupo_results)
-------------------------------------------石距--------------------------------------
elseif results['100'] == '1' then
dialog("功能开发中, 请关注更新日志,将于最近上线")
-------------------------------------------御魂10--------------------------------------
elseif results['100'] == '2' then
yh_ret,yh_results = showUI("yuhun.json")
return main_yh(yh_ret,yh_results)
-------------------------------------------阴阳寮续车--------------------------------------
elseif results['100'] == '3' then
xu_che()
-------------------------------------------探索--------------------------------------
elseif results['100'] == '4' then
ts_ret,ts_results = showUI("tansuo.json")
return main_tansuo(ts_ret, ts_results)
-------------------------------------------业原火--------------------------------------
elseif results['100'] == '5' then
enter_yeyuanhuo()
yyh_ret,yyh_results = showUI("yeyuanhuo.json")
return main_yeyuanhuo(yyh_ret,yyh_results)
-------------------------------------------妖气封印--------------------------------------
elseif results['100'] == '6' then
yqfy_ret,yqfy_results = showUI("yqfy.json")
return main_yqfy(yqfy_ret, yqfy_results)
-------------------------------------------日常杂项--------------------------------------
elseif results['100'] == '7' then
richang_ret,richang_results = showUI("richang.json")
main_richang(richang_ret,richang_results)
-------------------------------------------开发中--------------------------------------
else
dialog("你tm什么都没设置,玩儿我吧?")
lua_exit()
end
end
end
function in_party()
local statue = party_statue()
while statue == 1 do
mSleep(500)
my_toast(id, '等待队伍开始')
statue = party_statue()
end
if statue == 2 then
my_toast(id, '进入战斗')
mSleep(500)
else
my_toast(id, '队长跑了,自己开始队伍')
tap(1547, 1157)
if_outof_sushi()
sleepRandomLag(1000)
end
end
main()
--[[
enter_main_function()
my_swip(200, 1250, 1800, 1250, 50)
local feng_x, feng_y = myFindColor(悬赏)
if feng_x > -1 then tap(feng_x, feng_y) else sysLog('couldnt find feng') end
]]--
斗鱼 = {0x3d3934,"0|12|0x34312c,7|-6|0xccc4ba,13|-3|0x33302b,7|6|0x2d2925,12|7|0x58544e,20|5|0x4e4a45,23|9|0x4c4843",90,1245,726,1588,778}
太鼓 = {0x807a73,"6|0|0x3e3a36,4|3|0x494540,0|8|0x625e58,10|7|0x37342f,13|5|0xc9c1b8,19|5|0x36322e,19|0|0x312e29,18|15|0x3b3732,8|-12|0x5a554f",90,1245,726,1588,778}
local d_x, d_y = myFindColor(斗鱼)
local t_x, t_y = myFindColor(太鼓)
------------------------------------------------------------------------------
-----------------------------------------------------------------------------
--[[
find_yaoqi(海坊主)
find_yaoqi(小黑)
find_yaoqi(经验)
find_yaoqi(金币)
find_yaoqi(椒图)
find_yaoqi(二口女)
find_yaoqi(骨女)
find_yaoqi(哥哥)
find_yaoqi(饿鬼)
--snapshot("invite_na.png", 697,693,805,734); --全屏截图(分辨率1080*1920)
--]]
--/User/Library/XXIDEHelper/xsp/Temp/5星.png
--page 2