From ad58c96ff2164fd16386b5365da9e1088d2ba54a Mon Sep 17 00:00:00 2001 From: 5117600049 <511760049@qq.com> Date: Wed, 26 Mar 2025 17:06:50 +0800 Subject: [PATCH] =?UTF-8?q?js=E8=84=9A=E6=9C=AC=EF=BC=9A=E5=A5=B3=E5=A3=AB?= =?UTF-8?q?=E5=91=A8=E6=9C=AC=E8=87=AA=E5=8A=A8=E5=88=B7=E5=8F=96=E3=80=81?= =?UTF-8?q?=E4=B8=80=E6=9D=A1=E9=BE=99=E6=97=A0=E6=A0=91=E8=84=82=E9=A2=86?= =?UTF-8?q?=E5=A5=96=EF=BC=88=E7=94=A8=E4=BA=8E=E5=91=A8=E6=9C=AC=E5=92=8C?= =?UTF-8?q?=E9=A6=96=E9=A2=86=E8=AE=A8=E4=BC=90=E5=90=8E=EF=BC=89+?= =?UTF-8?q?=E5=B0=98=E6=AD=8C=E5=A3=B6=20(#470)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * manifest.json * main.js * Update main.js * Update manifest.json * Update main.js * Add files via upload * Update manifest.json * Update manifest.json * Update manifest.json * Update manifest.json * Update manifest.json * Update 周本队前进版.txt 开启芭芭拉大招释放,提高挑战成功率 * Update manifest.json * Update main.js * Update manifest.json * Update main.js * Update manifest.json * Update manifest.json * js脚本:散兵周本 * Add files via upload --- .../assets/recover.json | 22 ++ .../assets/枫丹.json | 28 +++ .../assets/璃月.json | 60 ++++++ .../assets/稻妻.json | 36 ++++ .../assets/蒙德.json | 44 ++++ .../assets/须弥.json | 68 +++++++ .../main.js | 188 ++++++++++++++++++ .../manifest.json | 14 ++ .../settings.json | 26 +++ repo/js/女士周本/assets/recover.json | 22 ++ repo/js/女士周本/assets/tp.json | 22 ++ repo/js/女士周本/main.js | 47 +++++ repo/js/女士周本/manifest.json | 14 ++ repo/js/女士周本/周本队女士专用后退版.txt | 8 + 14 files changed, 599 insertions(+) create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/recover.json create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/枫丹.json create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/璃月.json create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/稻妻.json create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/蒙德.json create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/须弥.json create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/main.js create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/manifest.json create mode 100644 repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/settings.json create mode 100644 repo/js/女士周本/assets/recover.json create mode 100644 repo/js/女士周本/assets/tp.json create mode 100644 repo/js/女士周本/main.js create mode 100644 repo/js/女士周本/manifest.json create mode 100644 repo/js/女士周本/周本队女士专用后退版.txt diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/recover.json b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/recover.json new file mode 100644 index 000000000..326ad3c56 --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/recover.json @@ -0,0 +1,22 @@ +{ + "info": { + "name": "未命名路径", + "type": "collect", + "author": "柒叶子", + "version": "1.0", + "description": "前往周本", + "bgiVersion": "0.35.1" + }, + "positions": [ + + { + "id": 1, + "x":1468.0986328125, + "y":1998.05859375 , + "type": "teleport", + "move_mode": "walk", + "action": "", + "action_params": "" + }, + ] +} \ No newline at end of file diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/枫丹.json b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/枫丹.json new file mode 100644 index 000000000..066efd672 --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/枫丹.json @@ -0,0 +1,28 @@ +{ + "info": { + "name": "枫丹凯瑟琳", + "type": "collect", + "author": "柒叶子", + "version": "1.0", + "description": "前往枫丹凯瑟琳", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 4509.96044921875, + "y": 3630.826904296875, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": 4495.000794515572, + "y": 3639.75, + "action": "", + "move_mode": "walk", + "type": "path" + } + ] +} \ No newline at end of file diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/璃月.json b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/璃月.json new file mode 100644 index 000000000..895645028 --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/璃月.json @@ -0,0 +1,60 @@ +{ + "info": { + "name": "璃月凯瑟琳", + "type": "collect", + "author": "柒叶子", + "version": "1.0", + "description": "前往璃月凯瑟琳", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 267.958984375, + "y": -665.10888671875, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": 258.3662109375, + "y": -663.82177734375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 246.689453125, + "y": -662.83740234375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": 233.8564453125, + "y": -661.95849609375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 5, + "x": 219.0625, + "y": -657.271484375, + "type": "target", + "move_mode": "walk", + "action": "" + }, + { + "id": 6, + "x": 203.84765625, + "y": -659.7158203125, + "type": "path", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/稻妻.json b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/稻妻.json new file mode 100644 index 000000000..c6696466f --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/稻妻.json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "稻妻凯瑟琳", + "type": "collect", + "author": "柒叶子", + "version": "1.0", + "description": "前往稻妻凯瑟琳", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": -4402.556640625, + "y": -3053.041015625 + }, + { + "id": 2, + "x": -4408.984375, + "y": -3068.2470703125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": -4418.185546875, + "y": -3086.4326171875, + "type": "path", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/蒙德.json b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/蒙德.json new file mode 100644 index 000000000..bf48a5625 --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/蒙德.json @@ -0,0 +1,44 @@ +{ + "info": { + "name": "蒙德凯瑟琳", + "type": "collect", + "author": "柒叶子", + "version": "1.0", + "description": "前往蒙德凯瑟琳", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": -867.6884765625, + "y": 2281.365966796875, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 2, + "x": -882.1455078125, + "y": 2262.399658203125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": -893.3056640625, + "y": 2249.19482421875, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": -914.3564453125, + "y": 2233.071044921875, + "type": "path", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/须弥.json b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/须弥.json new file mode 100644 index 000000000..406edaf67 --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/assets/须弥.json @@ -0,0 +1,68 @@ +{ + "info": { + "name": "须弥凯瑟琳", + "type": "collect", + "author": "柒叶子", + "version": "1.0", + "description": "前往须弥凯瑟琳", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 2786.97265625, + "y": -503.10498046875, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 2, + "x": 2787.900390625, + "y": -494.41162109375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 2786.150390625, + "y": -486.7470703125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": 2781.1748046875, + "y": -483.95751953125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 5, + "x": 2774.4716796875, + "y": -480.65478515625, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 6, + "x": 2771.126953125, + "y": -476.7919921875, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 7, + "x": 2765.76953125, + "y": -476.0498046875, + "type": "path", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/main.js b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/main.js new file mode 100644 index 000000000..2d9271f8f --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/main.js @@ -0,0 +1,188 @@ +(async function () { + + let delay = 2000; + let ksl = settings.kslSelect ?? "枫丹"; + async function kslAutoPath(location) { + let filePath = `assets/${location}.json`; + await pathingScript.runFile(filePath); + } + + // 前往_凯瑟琳 + await kslAutoPath(ksl); + await sleep(1000); + + // 领取邮件 + keyPress("Escape"); + await sleep(1500); + click(50, 605); + await sleep(1500); + click(150, 1015); + await sleep(1500); + click(150, 1015); + await sleep(1500); + keyPress("Escape"); + await sleep(1500); + keyPress("Escape"); + log.info("已完成 领取邮件"); + await sleep(delay); + + + + // 领取历练点 + keyPress("F1"); + await sleep(2500); + click(290, 345); + await sleep(1500); + click(1550, 755); + await sleep(1500); + click(1550, 755); + await sleep(1500); + // click(1670, 235); + keyPress("Escape"); + log.info("已领取历练点"); + await sleep(delay); + + // 领取每日委托奖励 + keyPress("F"); + log.info("按下F键"); + await sleep(1500); + click(960, 540); + await sleep(1500); + click(1380, 425); + await sleep(1500); + click(960, 540); + await sleep(2000); + click(960, 960); + log.info("已领取每日委托奖励"); + await sleep(delay); + + // 重新探索派遣 + keyPress("F"); + await sleep(2000); + click(960, 540); + await sleep(1500); + click(1400, 580); + await sleep(1500); + click(160, 1010); + await sleep(1500); + click(1160, 1020); + await sleep(1500); + keyPress("Escape"); + log.info("已完成重新探索派遣"); + await sleep(delay); + + // 领取纪行奖励 + keyPress("F4"); + await sleep(1500); + click(960, 50); + await sleep(1000); + click(1720, 980); + await sleep(2000); + click(860, 50); + await sleep(1000); + click(1720, 980); + await sleep(1000); + keyPress("Escape"); + await sleep(1000); + keyPress("Escape"); + log.info("已领取纪行奖励"); + await sleep(delay); + +await pathingScript.runFile("assets/recover.json"); +await sleep(5000);//前往神像,避免茶壶放不出来 + + + let teaPot = settings.teaPot ?? 0; + await sleep(1000); + +if(teaPot){ + keyPress("B"); + await sleep(1500); + click(1058, 48); //小道具 + await sleep(800); + click(765, 190); //背包第五个道具 + await sleep(800); + click(1700, 1018); //放置 + await sleep(1500); + keyPress("F"); //进入 + await sleep(20000); + + if (teaPot == "璃月"){ + keyDown("D"); + await sleep(500); + keyUp("D"); + await sleep(500); + }else if(teaPot == "蒙德"){ + keyDown("A"); + await sleep(1200); + keyUp("A"); + await sleep(500); }else if(teaPot == "稻妻"){ + keyDown("A"); + await sleep(1700); + keyUp("A"); + await sleep(500); + keyDown("S"); + await sleep(1700); + keyUp("S"); + await sleep(500); + }else if(teaPot == "须弥"){ + keyDown("D"); + await sleep(1300); + keyUp("D"); + await sleep(500); + }else if(teaPot == "枫丹"){ + keyDown("S"); + await sleep(1300); + keyUp("S"); + await sleep(500); + keyDown("A"); + await sleep(500); + keyUp("A"); + await sleep(500); + }else{ + } + async function buyResin() { +//进入商店 + keyPress("w"); + await sleep(500); + keyPress("w"); + await sleep(500); + keyPress("w"); + await sleep(500); + keyPress("F"); + await sleep(2000); + click(200, 380); //选择树脂 + await sleep(1000); + click(1750, 1010); //兑换 + await sleep(1000); + keyPress("ESCAPE");//点击空白处 + await sleep(500); + keyPress("ESCAPE");//回到对话界面 + await sleep(3000); +} + keyPress("F");//阿圆对话 + await sleep(2500); + click(1081, 955); //跳过对话 + await sleep(2500); +// 检测今天是否是周一 +const today = new Date(); +if (today.getDay() === 1) { // getDay() 返回 0(周日)到 6(周六) + await buyResin();// 如果是周一则购买树脂 +} + click(1383, 430);//信任等阶 + await sleep(2500); + click(1081, 955);//宝钱 + await sleep(2500); + click(1812, 716);//好感度 + await sleep(2500); + click(1863, 48);; + await sleep(5000); + click(1356, 804); + await sleep(2500); + click(1356, 804); + await sleep(1500); +await pathingScript.runFile("assets/recover.json"); +await sleep(5000);//回归大世界,避免后续部分js脚本没有路径追踪卡死 +} + +})(); diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/manifest.json b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/manifest.json new file mode 100644 index 000000000..2c2ae1adc --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/manifest.json @@ -0,0 +1,14 @@ +{ + "manifest_version": 1, + "name": "周本每日领奖", + "version": "1.0", + "description": "完成周本或首领讨伐等不使用浓缩树脂的副本挑战后,前往凯瑟琳领奖、派遣、纪行、尘歌壶。如果是周一会在尘歌壶自动购买树脂", + "authors": [ + { + "name": "柒叶子", + "link": "https://github.com/511760049" + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} diff --git a/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/settings.json b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/settings.json new file mode 100644 index 000000000..515f7caed --- /dev/null +++ b/repo/js/一条龙领奖无树脂(用于周本、首领刷取)+尘歌壶/settings.json @@ -0,0 +1,26 @@ +[ + { + "name": "kslSelect", + "type": "select", + "label": "凯瑟琳(默认枫丹)", + "options": [ + "蒙德", + "璃月", + "稻妻", + "须弥", + "枫丹" + ] + }, + { + "name": "teaPot", + "type": "select", + "label": "宅邸类型(默认不去)", + "options": [ + "蒙德", + "璃月", + "稻妻", + "须弥", + "枫丹" + ] + } +] \ No newline at end of file diff --git a/repo/js/女士周本/assets/recover.json b/repo/js/女士周本/assets/recover.json new file mode 100644 index 000000000..326ad3c56 --- /dev/null +++ b/repo/js/女士周本/assets/recover.json @@ -0,0 +1,22 @@ +{ + "info": { + "name": "未命名路径", + "type": "collect", + "author": "柒叶子", + "version": "1.0", + "description": "前往周本", + "bgiVersion": "0.35.1" + }, + "positions": [ + + { + "id": 1, + "x":1468.0986328125, + "y":1998.05859375 , + "type": "teleport", + "move_mode": "walk", + "action": "", + "action_params": "" + }, + ] +} \ No newline at end of file diff --git a/repo/js/女士周本/assets/tp.json b/repo/js/女士周本/assets/tp.json new file mode 100644 index 000000000..735122672 --- /dev/null +++ b/repo/js/女士周本/assets/tp.json @@ -0,0 +1,22 @@ +{ + "info": { + "name": "未命名路径", + "type": "collect", + "author": "柒叶子", + "version": "1.0", + "description": "前往周本", + "bgiVersion": "0.35.1" + }, + "positions": [ + + { + "id": 1, + "x": -4561.248046875, + "y": -3353.7587890625, + "type": "teleport", + "move_mode": "walk", + "action": "", + "action_params": "" + }, + ] +} \ No newline at end of file diff --git a/repo/js/女士周本/main.js b/repo/js/女士周本/main.js new file mode 100644 index 000000000..1a71dfc7f --- /dev/null +++ b/repo/js/女士周本/main.js @@ -0,0 +1,47 @@ +(async function () { + await sleep(1000); +await pathingScript.runFile("assets/recover.json"); +await sleep(5000); +await pathingScript.runFile("assets/tp.json"); +await sleep(1000); +keyDown("w"); +await sleep(2000); +keyUp("w"); +await sleep(1000); +keyPress("F"); +await sleep(2000); +click(1725, 1020);//单人挑战 +await sleep(2000); +click(1725, 1020);//开始挑战 +await sleep(15000); +keyPress("ESCAPE");//点击任意处 +await sleep(2000); +keyPress("1"); +await sleep(1000);//切回钟离 +keyDown("s"); +await sleep(1000); +keyUp("s"); +await dispatcher.runTask(new SoloTask("AutoFight")); +keyPress("1"); +await sleep(1000);//切回钟离 + +keyDown("s"); +await sleep(2000); +keyUp("s"); + +keyDown("w"); +await sleep(3600); +keyUp("w"); + +keyDown("a"); +await sleep(400); +keyUp("a"); + +await sleep(1000); +keyPress("F");//领奖 +await sleep(1000); +click(950, 750);//使用树脂 +await sleep(6000); +click(975, 1000);//退出秘境 +await sleep(10000); +})(); diff --git a/repo/js/女士周本/manifest.json b/repo/js/女士周本/manifest.json new file mode 100644 index 000000000..96b5c7b44 --- /dev/null +++ b/repo/js/女士周本/manifest.json @@ -0,0 +1,14 @@ +{ + "manifest_version": 1, + "name": "女士周本刷取", + "version": "1.0", + "description": "建议队伍:钟离(必须一号位)、芙芙、火神、6命芭芭拉。脚本需要在调度器设置里开启路径追踪行走配置,选择切换的队伍,打开允许在JsScript中使用,打开战斗配置,选择战斗策略,推荐使用战斗脚本(女士周本队特制版),关闭战斗结束拾取物品和万叶拾取,最后根据队伍大致表现,填入合适的战斗超时时间,(女士周本队特制版)建议300s", + "authors": [ + { + "name": "柒叶子", + "link": "https://github.com/511760049" + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} \ No newline at end of file diff --git a/repo/js/女士周本/周本队女士专用后退版.txt b/repo/js/女士周本/周本队女士专用后退版.txt new file mode 100644 index 000000000..f3181de4a --- /dev/null +++ b/repo/js/女士周本/周本队女士专用后退版.txt @@ -0,0 +1,8 @@ +钟离 s(0.7),e(hold) +玛薇卡 e +芭芭拉 s(0.7),e,q +钟离 s(0.7),e(hold) +芙宁娜 s(0.7),q,e + + +