Skip to content

Commit d2fddc0

Browse files
Merge pull request #12 from Hollow-YK/main
添加实时辅助任务
2 parents f050821 + 9209eab commit d2fddc0

7 files changed

Lines changed: 245 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
}
2.46 KB
Loading
4.7 KB
Loading
5.34 KB
Loading
21.1 KB
Loading
22.1 KB
Loading
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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, 0, 1280, 100],
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": [920, 0, 1280, 140],
33+
"threshold": 0.8
34+
}
35+
},
36+
"post_delay": 500,
37+
"next": ["RealTimeConfirmTeleportWitte"]
38+
},
39+
"RealTimeConfirmTeleportWitte": {
40+
"recognition": {
41+
"type": "TemplateMatch",
42+
"param": {
43+
"template": "realtime_assist/teleport_btn_witte.png",
44+
"roi": [920, 600, 1280, 660],
45+
"threshold": 0.8
46+
}
47+
},
48+
"action": {
49+
"type": "Click"
50+
},
51+
"post_delay": 2000,
52+
"next": ["RealTimeSleep"]
53+
},
54+
"RealTimeTeleportPhone": {
55+
"recognition": {
56+
"type": "TemplateMatch",
57+
"param": {
58+
"template": "realtime_assist/teleport_target_phone.png",
59+
"roi": [920, 0, 1280, 140],
60+
"threshold": 0.8
61+
}
62+
},
63+
"post_delay": 500,
64+
"next": ["RealTimeConfirmTeleportPhone"]
65+
},
66+
"RealTimeConfirmTeleportPhone": {
67+
"recognition": {
68+
"type": "TemplateMatch",
69+
"param": {
70+
"template": "realtime_assist/teleport_btn_phone.png",
71+
"roi": [920, 600, 1280, 660],
72+
"threshold": 0.8
73+
}
74+
},
75+
"action": {
76+
"type": "Click"
77+
},
78+
"post_delay": 2000,
79+
"next": ["RealTimeSleep"]
80+
},
81+
"RealTimeSleep": {
82+
"recognition": "DirectHit",
83+
"action": "DoNothing",
84+
"post_delay": 500,
85+
"next": ["RealTimeTaskMain"]
86+
}
87+
}

0 commit comments

Comments
 (0)