Skip to content

Commit 82d75dc

Browse files
committed
605完成
1 parent 1479de1 commit 82d75dc

File tree

3 files changed

+278
-4
lines changed

3 files changed

+278
-4
lines changed

src/common/funcList/605_寮宴会.ts

Lines changed: 276 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class Func605 implements IFuncOrigin {
1313
desc: '',
1414
config: [{
1515
name: 'admin',
16-
desc: '是否是寮管理主动开启',
16+
desc: '寮管理主动开启并筹备',
1717
type: 'switch',
1818
default: false,
1919
}]
@@ -165,10 +165,284 @@ export class Func605 implements IFuncOrigin {
165165
oper: [
166166
[center, 1280, 720, 24, 40, 76, 73, 1000],
167167
]
168+
}, { // 11 探索地图界面
169+
desc: '探索地图界面',
170+
oper: [
171+
[center, 1280, 720, 1145, 212, 1163, 227, 1000],
172+
[center, 1280, 720, 1144, 500, 1160, 510, 1000],
173+
[center, 1280, 720, 890, 518, 1000, 558, 1000],
174+
]
175+
}, { // 12 挑战
176+
desc: [
177+
1280, 720,
178+
[
179+
[center, 347, 127, 0x493625],
180+
[center, 892, 140, 0x473524],
181+
[right, 1080, 288, 0x925520],
182+
[right, 1080, 422, 0x5f3d28],
183+
]
184+
],
185+
oper: [
186+
[center, 1280, 720, 1078, 379, 1113, 457, 1000],
187+
]
188+
}, { // 13 狸猫挑战
189+
desc: [
190+
1280, 720,
191+
[
192+
[left, 274, 511, 0x774f31],
193+
[left, 293, 514, 0xfae9ad],
194+
[left, 284, 533, 0x824018],
195+
[left, 282, 520, 0xc48a4e],
196+
[left, 302, 522, 0xf5f5dd],
197+
]
198+
],
199+
oper: [
200+
[center, 1280, 720, 892, 521, 998, 554, 1000],
201+
]
202+
}, { // 14 饿鬼挑战
203+
desc: [
204+
1280, 720,
205+
[
206+
[left, 280, 504, 0xf8dc67],
207+
[left, 276, 510, 0xf8df7d],
208+
[left, 289, 515, 0x655b5c],
209+
[left, 300, 528, 0xf9f9f3],
210+
[left, 300, 551, 0x5078a9],
211+
[left, 313, 537, 0xd5cbce],
212+
]
213+
],
214+
oper: [
215+
[center, 1280, 720, 890, 518, 1000, 558, 1000],
216+
]
217+
}, { // 15 河童挑战
218+
desc: [
219+
1280, 720,
220+
[
221+
[left, 272, 508, 0x446a7d],
222+
[left, 302, 510, 0x5cb297],
223+
[left, 292, 524, 0xae9745],
224+
[left, 285, 544, 0x2c203e],
225+
[left, 300, 548, 0x5156a5],
226+
]
227+
],
228+
oper: [
229+
[center, 1280, 720, 888, 517, 998, 561, 1000],
230+
]
231+
}, { // 16 返回
232+
desc: [
233+
1280, 720,
234+
[
235+
[left, 192, 94, 0x644628],
236+
[right, 1054, 146, 0xe4b6b7],
237+
[right, 1086, 420, 0x8d5321],
238+
[right, 1095, 547, 0x3b2313],
239+
]
240+
],
241+
oper: [
242+
[center, 1280, 720, 1030, 125, 1070, 157, 1000],
243+
]
244+
}, { // 17 第一章
245+
desc: [
246+
1280, 720,
247+
[
248+
[right, 1141, 214, 0xf8f3e0],
249+
[right, 1159, 213, 0xf8f3e0],
250+
[right, 1173, 206, 0xf7f2df],
251+
[right, 1115, 225, 0xe7e1cf],
252+
[right, 1150, 340, 0xf8f3e0],
253+
]
254+
]
255+
}, { // 18 庭院进入探索
256+
desc: '页面是否为庭院_菜单已展开_只支持默认庭院皮肤与默认装饰',
257+
oper: [
258+
[center, 1280, 720, 658, 127, 697, 170, 1000],
259+
]
260+
}, { // 10 探索地图进入秘闻
261+
desc: '探索地图界面',
262+
oper: [
263+
[center, 1280, 720, 544, 636, 602, 701, 1000],
264+
]
265+
}, { // 20 秘闻往下滑动
266+
desc: [1280, 720,
267+
[
268+
[left, 61, 149, 0x532f2c],
269+
[left, 74, 484, 0x573534],
270+
[left, 122, 135, 0x918776],
271+
[right, 763, 134, 0x9c917f],
272+
[right, 1193, 137, 0x552d28],
273+
[right, 836, 178, 0x69413c],
274+
]
275+
],
276+
oper: [
277+
[center, 1280, 720, 758, 587, 803, 618, 1000],
278+
[center, 1280, 720, 751, 27, 799, 56, 1000],
279+
]
280+
}, { // 21 点击荒川秘闻(左)
281+
desc: [1280, 720,
282+
[
283+
[left, 139, 278, 0x717c8d],
284+
[left, 137, 356, 0x707b8c],
285+
[left, 215, 299, 0xe8eaef],
286+
[left, 242, 360, 0xe7e9ee],
287+
[left, 174, 356, 0x222231],
288+
[left, 235, 279, 0xe08275],
289+
]
290+
],
291+
oper: [
292+
[center, 1280, 720, 181, 297, 428, 346, 1000],
293+
]
294+
}, { // 22 进入荒川秘闻
295+
desc: [1280, 720,
296+
[
297+
[right, 955, 204, 0xd0e6e6],
298+
[right, 1158, 192, 0x802f2f],
299+
[right, 1055, 476, 0x183e5d],
300+
[right, 1035, 531, 0x204b68],
301+
[right, 941, 447, 0xdfdee2],
302+
[right, 968, 363, 0x2e345b],
303+
[right, 1010, 347, 0x293172],
304+
]
305+
],
306+
oper: [
307+
[center, 1280, 720, 1150, 606, 1245, 677, 1000],
308+
]
309+
}, { // 23 荒川秘闻往下滑动
310+
desc: [1280, 720,
311+
[
312+
[left, 96, 164, 0xbc9cd4],
313+
[left, 77, 226, 0xa385b7],
314+
[left, 83, 184, 0xb999d2],
315+
[left, 103, 186, 0xbc9bd4],
316+
[left, 142, 66, 0x3a383e],
317+
[right, 1098, 66, 0x3d3b41],
318+
[right, 890, 152, 0xf3f6f7],
319+
]
320+
],
321+
oper: [
322+
[center, 1280, 720, 575, 582, 612, 615, 1000],
323+
[center, 1280, 720, 580, 121, 615, 152, 1000],
324+
]
325+
}, { // 24 荒川秘闻挑战
326+
desc: [1280, 720,
327+
[
328+
[left, 189, 357, 0x782d2c],
329+
[left, 306, 368, 0xb24d44],
330+
[left, 223, 362, 0x7d2e2e],
331+
[center, 350, 428, 0xeba94f],
332+
[center, 368, 410, 0x882111],
333+
[center, 387, 442, 0x231818],
334+
]
335+
],
336+
oper: [
337+
[center, 1280, 720, 198, 395, 289, 450, 1000],
338+
[center, 1280, 720, 1056, 575, 1149, 643, 1000],
339+
]
340+
}, { // 25 点击荒川秘闻(右)
341+
desc: [1280, 720,
342+
[
343+
[center, 489, 282, 0x738294],
344+
[center, 488, 350, 0x6b7888],
345+
[center, 556, 294, 0xe4e1e6],
346+
[center, 560, 319, 0xd6d7de],
347+
[center, 579, 361, 0xe6e7ee],
348+
[center, 639, 295, 0xd6cfc6],
349+
]
350+
],
351+
oper: [
352+
[center, 1280, 720, 181, 297, 428, 346, 1000],
353+
]
168354
}
169355
];
170356
operatorFunc(thisScript: Script, thisOperator: IFuncOperator[]): boolean {
171357
const thisconfig = thisScript.scheme.config['605'];
358+
if (thisScript.global.liao_banquet_collect) {
359+
if (thisScript.oper({
360+
name: '第一章',
361+
operator: [thisOperator[17]]
362+
})) {
363+
thisScript.doPush(thisScript, { text: '宴会筹备失败,请查看。', before() { thisScript.myToast('脚本即将停止,正在上传数据'); } });
364+
thisScript.stop();
365+
sleep(3000);
366+
return;
367+
}
368+
if (thisScript.oper({
369+
name: '探索界面',
370+
operator: [{ desc: thisOperator[11].desc }]
371+
})) {
372+
let point;
373+
if (thisScript.runTimes['2'] === undefined || thisScript.runTimes['2'] < 1) {
374+
point = thisScript.findMultiColor('宴会筹备_狸猫');
375+
} else if (thisScript.runTimes['2'] < 2) {
376+
point = thisScript.findMultiColor('宴会筹备_饿鬼');
377+
} else if (thisScript.runTimes['2'] < 3) {
378+
point = thisScript.findMultiColor('宴会筹备_河童');
379+
} else if (thisScript.runTimes['2'] < 6) {
380+
thisScript.regionClick([thisOperator[19].oper[0]]);
381+
} else {
382+
thisScript.doPush(thisScript, { text: '宴会筹备已完成,请查看。', before() { thisScript.myToast('脚本即将停止,正在上传数据'); } });
383+
thisScript.stop();
384+
sleep(3000);
385+
return;
386+
}
387+
if (point) {
388+
const oper = [[point.x + 5, point.y + 5, point.x + 10, point.y + 10, 2500]];
389+
thisScript.regionClick(oper);
390+
return true;
391+
} else {
392+
thisScript.regionSwipe(thisOperator[11].oper[0], thisOperator[11].oper[1], [1000, 1050], 200);
393+
}
394+
return true;
395+
}
396+
if (thisScript.oper({
397+
name: '打怪确认',
398+
operator: [thisOperator[12], thisOperator[18]]
399+
})) {
400+
return true;
401+
}
402+
if (thisScript.oper({
403+
name: '偏移返回',
404+
operator: [thisOperator[16]]
405+
})) {
406+
return true;
407+
}
408+
const pointA = thisScript.findMultiColor('宴会筹备');
409+
if (pointA) {
410+
const oper = [[pointA.x, pointA.y, pointA.x + 10, pointA.y + 10, 1000]];
411+
thisScript.regionClick(oper);
412+
thisScript.regionClick([thisOperator[11].oper[2]]);
413+
return true;
414+
}
415+
if (thisScript.oper({
416+
name: '进入荒川秘闻',
417+
operator: [thisOperator[21], thisOperator[22], thisOperator[25]]
418+
})) {
419+
return true;
420+
}
421+
if (thisScript.runTimes['2'] === 6) {
422+
thisScript.global.liao_banquet_collect = false;
423+
thisScript.global.liao_banquet_onGoing = true;
424+
return true;
425+
} else if (thisScript.oper({
426+
name: '荒川秘闻挑战',
427+
operator: [thisOperator[24]]
428+
})) {
429+
return true;
430+
}
431+
if (thisScript.oper({
432+
name: '荒川秘闻往下滑动',
433+
operator: [{ desc: thisOperator[23].desc }]
434+
})) {
435+
thisScript.regionSwipe(thisOperator[23].oper[0], thisOperator[23].oper[1], [400, 510], 1000);
436+
return true;
437+
}
438+
if (thisScript.oper({
439+
name: '秘闻往下滑动',
440+
operator: [{ desc: thisOperator[20].desc }]
441+
})) {
442+
thisScript.regionSwipe(thisOperator[20].oper[0], thisOperator[20].oper[1], [400, 510], 1000);
443+
return true;
444+
}
445+
}
172446
if (thisScript.global.liao_banquet_onGoing) {
173447
if (thisScript.oper({
174448
name: '宴会_结束',
@@ -247,7 +521,7 @@ export class Func605 implements IFuncOrigin {
247521
})) {
248522
return true;
249523
}
250-
return false;
251524
}
525+
return false;
252526
}
253527
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const left = 0;
66
const center = 1;
77
const right = 2;
88

9-
export class Func607 implements IFuncOrigin {
10-
id = 607;
9+
export class Func606 implements IFuncOrigin {
10+
id = 606;
1111
name = '阴门之门';
1212
operator: IFuncOperatorOrigin[] = [{ // 检测_是否为首领退治集结页
1313
desc: // 检测_阴门

0 commit comments

Comments
 (0)