Skip to content

Commit 4125616

Browse files
committed
添加实时辅助任务
1 parent abbadab commit 4125616

8 files changed

Lines changed: 251 additions & 0 deletions

File tree

assets/interface.json

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555
"option": [
5656
"循环次数"
5757
]
58+
},
59+
{
60+
"name": "实时辅助",
61+
"entry": "RealTimeTaskMain",
62+
"option": [
63+
"RealTimeCheckInterval",
64+
"RealTimeAutoSkip",
65+
"RealTimeAutoTeleport"
66+
]
5867
}
5968
],
6069
"option": {
@@ -164,6 +173,155 @@
164173
}
165174
}
166175
}
176+
},
177+
"RealTimeCheckInterval": {
178+
"type": "input",
179+
"label": "检测间隔 (ms)",
180+
"description": "两次检测之间的间隔,单位毫秒",
181+
"inputs": [
182+
{
183+
"name": "interval",
184+
"default": "500",
185+
"pipeline_type": "int",
186+
"verify": "^\\d+$"
187+
}
188+
],
189+
"pipeline_override": {
190+
"RealTimeSleep": {
191+
"post_delay": "{interval}"
192+
}
193+
}
194+
},
195+
"RealTimeAutoSkip": {
196+
"type": "switch",
197+
"label": "自动剧情",
198+
"description": "是否自动跳过剧情",
199+
"cases": [
200+
{
201+
"name": "Yes",
202+
"label": "开启",
203+
"option": ["RealTimeAutoSkipAll"]
204+
},
205+
{
206+
"name": "No",
207+
"label": "关闭",
208+
"pipeline_override": {
209+
"RealTimeSkipPlot": {
210+
"enabled": false
211+
}
212+
}
213+
}
214+
],
215+
"default_case": "Yes"
216+
},
217+
"RealTimeAutoSkipAll": {
218+
"type": "switch",
219+
"label": "自动跳过全部剧情",
220+
"description": "检测到跳过按钮时自动点击",
221+
"cases": [
222+
{
223+
"name": "Yes",
224+
"pipeline_override": {
225+
"RealTimeSkipPlot": {
226+
"enabled": true
227+
}
228+
}
229+
},
230+
{
231+
"name": "No",
232+
"pipeline_override": {
233+
"RealTimeSkipPlot": {
234+
"enabled": false
235+
}
236+
}
237+
}
238+
],
239+
"default_case": "Yes"
240+
},
241+
"RealTimeAutoTeleport": {
242+
"type": "switch",
243+
"label": "自动传送",
244+
"description": "检测到特定传送点时自动点击传送",
245+
"cases": [
246+
{
247+
"name": "Yes",
248+
"label": "开启",
249+
"option": ["RealTimeAutoTeleportWitte", "RealTimeAutoTeleportPhone"]
250+
},
251+
{
252+
"name": "No",
253+
"label": "关闭",
254+
"pipeline_override": {
255+
"RealTimeTeleportWitte": {
256+
"enabled": false
257+
},
258+
"RealTimeTeleportPhone": {
259+
"enabled": false
260+
}
261+
}
262+
}
263+
],
264+
"default_case": "No"
265+
},
266+
"RealTimeAutoTeleportWitte": {
267+
"type": "switch",
268+
"label": "维特海默塔",
269+
"description": "是否检测维特海默塔的传送点",
270+
"cases": [
271+
{
272+
"name": "Yes",
273+
"pipeline_override": {
274+
"RealTimeTeleportWitte": {
275+
"enabled": true
276+
},
277+
"RealTimeConfirmTeleportWitte": {
278+
"enabled": true
279+
}
280+
}
281+
},
282+
{
283+
"name": "No",
284+
"pipeline_override": {
285+
"RealTimeTeleportWitte": {
286+
"enabled": false
287+
},
288+
"RealTimeConfirmTeleportWitte": {
289+
"enabled": false
290+
}
291+
}
292+
}
293+
],
294+
"default_case": "Yes"
295+
},
296+
"RealTimeAutoTeleportPhone": {
297+
"type": "switch",
298+
"label": "ReroRero电话亭",
299+
"description": "是否检测ReroRero电话亭的传送点",
300+
"cases": [
301+
{
302+
"name": "Yes",
303+
"pipeline_override": {
304+
"RealTimeTeleportPhone": {
305+
"enabled": true
306+
},
307+
"RealTimeConfirmTeleportPhone": {
308+
"enabled": true
309+
}
310+
}
311+
},
312+
{
313+
"name": "No",
314+
"pipeline_override": {
315+
"RealTimeTeleportPhone": {
316+
"enabled": false
317+
},
318+
"RealTimeConfirmTeleportPhone": {
319+
"enabled": false
320+
}
321+
}
322+
}
323+
],
324+
"default_case": "Yes"
167325
}
168326
}
169327
}
65.4 KB
Binary file not shown.
2.46 KB
Loading
4.7 KB
Loading
5.34 KB
Loading
21.1 KB
Loading
22.1 KB
Loading
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"RealTimeTaskMain": {
3+
"recognition": "DirectHit",
4+
"action": "DoNothing",
5+
"next": [
6+
"RealTimeSkipPlot",
7+
"RealTimeTeleportWitte",
8+
"RealTimeTeleportPhone",
9+
"RealTimeSleep"
10+
]
11+
},
12+
"RealTimeSkipPlot": {
13+
"recognition": {
14+
"type": "TemplateMatch",
15+
"param": {
16+
"template": "realtime_assist/skip_story_btn.png",
17+
"roi": [1000, 600, 200, 80],
18+
"threshold": 0.8
19+
}
20+
},
21+
"action": {
22+
"type": "Click"
23+
},
24+
"post_delay": 500,
25+
"next": ["RealTimeSleep"]
26+
},
27+
"RealTimeTeleportWitte": {
28+
"recognition": {
29+
"type": "TemplateMatch",
30+
"param": {
31+
"template": "realtime_assist/teleport_target_witte.png",
32+
"roi": [0, 0, 1280, 720],
33+
"threshold": 0.8
34+
}
35+
},
36+
"action": {
37+
"type": "Click"
38+
},
39+
"post_delay": 500,
40+
"next": ["RealTimeConfirmTeleportWitte"]
41+
},
42+
"RealTimeConfirmTeleportWitte": {
43+
"recognition": {
44+
"type": "TemplateMatch",
45+
"param": {
46+
"template": "realtime_assist/teleport_btn_witte.png",
47+
"roi": [0, 0, 1280, 720],
48+
"threshold": 0.8
49+
}
50+
},
51+
"action": {
52+
"type": "Click"
53+
},
54+
"post_delay": 2000,
55+
"next": ["RealTimeSleep"]
56+
},
57+
"RealTimeTeleportPhone": {
58+
"recognition": {
59+
"type": "TemplateMatch",
60+
"param": {
61+
"template": "realtime_assist/teleport_target_phone.png",
62+
"roi": [0, 0, 1280, 720],
63+
"threshold": 0.8
64+
}
65+
},
66+
"action": {
67+
"type": "Click"
68+
},
69+
"post_delay": 500,
70+
"next": ["RealTimeConfirmTeleportPhone"]
71+
},
72+
"RealTimeConfirmTeleportPhone": {
73+
"recognition": {
74+
"type": "TemplateMatch",
75+
"param": {
76+
"template": "realtime_assist/teleport_btn_phone.png",
77+
"roi": [0, 0, 1280, 720],
78+
"threshold": 0.8
79+
}
80+
},
81+
"action": {
82+
"type": "Click"
83+
},
84+
"post_delay": 2000,
85+
"next": ["RealTimeSleep"]
86+
},
87+
"RealTimeSleep": {
88+
"recognition": "DirectHit",
89+
"action": "DoNothing",
90+
"post_delay": 500,
91+
"next": ["RealTimeTaskMain"]
92+
}
93+
}

0 commit comments

Comments
 (0)