From 69701f8bc5c1c932bc129ff4d4ca00bf228e2488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B7=E4=B8=AA=E5=90=8D=E5=AD=97=E5=A5=BD=E9=9A=BE?= =?UTF-8?q?=E7=9A=84=E5=96=B5?= <25520958+MisakaAldrich@users.noreply.github.com> Date: Mon, 3 Nov 2025 23:26:36 +0800 Subject: [PATCH] =?UTF-8?q?JS:=20=E8=8A=99=E5=AE=81=E5=A8=9C=E6=9A=97?= =?UTF-8?q?=E6=9D=80=E6=B5=81=20(#2306)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/pathing/纳塔-海浪中的莎孚.json | 67 +++++++++++++ .../Assets/pathing/纳塔-科西霍.json | 94 +++++++++++++++++++ .../README.md | 8 +- .../main.js | 30 +++--- .../manifest.json | 7 +- .../settings.json | 39 +++++++- 6 files changed, 229 insertions(+), 16 deletions(-) create mode 100644 repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/Assets/pathing/纳塔-海浪中的莎孚.json create mode 100644 repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/Assets/pathing/纳塔-科西霍.json diff --git a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/Assets/pathing/纳塔-海浪中的莎孚.json b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/Assets/pathing/纳塔-海浪中的莎孚.json new file mode 100644 index 000000000..52d84aa4b --- /dev/null +++ b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/Assets/pathing/纳塔-海浪中的莎孚.json @@ -0,0 +1,67 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "起个名字好难的喵" + } + ], + "bgi_version": "0.45.0", + "description": "", + "enable_monster_loot_split": false, + "last_modified_time": 1762182496344, + "map_match_method": "", + "map_name": "Teyvat", + "name": "纳塔-海浪中的莎孚", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 7796.244140625, + "y": -1872.90380859375 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "walk", + "type": "path", + "x": 7805.5322265625, + "y": -1882.408203125 + }, + { + "action": "combat_script", + "action_params": "keypress(VK_T)", + "id": 3, + "move_mode": "walk", + "type": "orientation", + "x": 7813.25, + "y": -1890.07470703125 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "walk", + "type": "path", + "x": 7845.3125, + "y": -1858.2470703125 + }, + { + "action": "", + "action_params": "", + "id": 5, + "move_mode": "walk", + "type": "target", + "x": 7882.5078125, + "y": -1807.60546875 + } + ] +} \ No newline at end of file diff --git a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/Assets/pathing/纳塔-科西霍.json b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/Assets/pathing/纳塔-科西霍.json new file mode 100644 index 000000000..2a1e3dd4a --- /dev/null +++ b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/Assets/pathing/纳塔-科西霍.json @@ -0,0 +1,94 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "起个名字好难的喵" + } + ], + "bgi_version": "0.45.0", + "description": "", + "enable_monster_loot_split": false, + "last_modified_time": 1762178447159, + "map_match_method": "", + "map_name": "Teyvat", + "name": "纳塔-科西霍", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 8582.28125, + "y": -2674.958984375 + }, + { + "action": "stop_flying", + "action_params": "", + "id": 2, + "move_mode": "fly", + "type": "path", + "x": 8556.7958984375, + "y": -2679.421875 + }, + { + "action": "combat_script", + "action_params": "keypress(VK_T)", + "id": 3, + "move_mode": "walk", + "type": "orientation", + "x": 8557.037109375, + "y": -2682.09765625 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "walk", + "type": "path", + "x": 8547.7119140625, + "y": -2680.9638671875 + }, + { + "action": "", + "action_params": "", + "id": 5, + "move_mode": "walk", + "type": "path", + "x": 8542.6298828125, + "y": -2698.3046875 + }, + { + "action": "", + "action_params": "", + "id": 6, + "move_mode": "walk", + "type": "path", + "x": 8547.0205078125, + "y": -2713.3857421875 + }, + { + "action": "", + "action_params": "", + "id": 7, + "move_mode": "walk", + "type": "path", + "x": 8532.0595703125, + "y": -2717.0693359375 + }, + { + "action": "", + "action_params": "", + "id": 8, + "move_mode": "walk", + "type": "target", + "x": 8485.6533203125, + "y": -2750.7275390625 + } + ] +} \ No newline at end of file diff --git a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/README.md b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/README.md index c21d178d0..e51f8f96b 100644 --- a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/README.md +++ b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/README.md @@ -1,7 +1,13 @@ 用于芙宁娜海鲜挂机暗杀地方传奇 + 目前已知适用科西霍和海浪中的莎孚,需加入调度器中使用 + 1、队伍1号位芙宁娜,234号随意,推荐双水队伍,可以吃药增伤; + 2、按照B站一些逃课视频到达指定位置,附身一只水龙或草龙到石块上; + 3、确保指定位置周围没有其他可以直接附身的龙魂,以免误操作; + 4、可以在附身状态下开启,也可以在角色状态下开启,循环开启前均会先附身; -5、0命芙芙世界等级8的情况下:科西霍循环6-10次、海浪中的莎孚循环14-18次,时间充裕的情况下可以按最低循环次数多尝试,避免误杀没拿到成就。 \ No newline at end of file + +5、0命芙芙世界等级8的情况下:科西霍循环6-10次、海浪中的莎孚循环14-18次;0命芙芙世界等级9的情况下,击败科西霍的次数约为13次,时间充裕的情况下可以按最低循环次数多尝试,避免误杀没拿到成就,同时欢迎大家分享配队面板和参考循环次数。 \ No newline at end of file diff --git a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/main.js b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/main.js index 83a3feca4..9326d0f4f 100644 --- a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/main.js +++ b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/main.js @@ -1,35 +1,41 @@ (async function () { - setGameMetrics(2560, 1440, 1.5); // 设置游戏窗口大小和DPI - - log.info("循环开始执行,确保1号位芙宁娜,建议使用双水队提升伤害") + if (settings.target == "科西霍") { + await pathingScript.runFile("Assets/pathing/纳塔-科西霍.json"); + } else if (settings.target == "海浪中的莎孚") { + await pathingScript.runFile("Assets/pathing/纳塔-海浪中的莎孚.json"); + } + log.info("循环开始执行,确保正确设置芙宁娜在队伍中的序号,建议使用双水队提升伤害") log.info("正在附身纳塔龙") keyPress("T");//附身纳塔龙 await sleep(2000); log.info("附身纳塔龙完成") - for (let i = 0; i < settings.cycle_times; ++i) { + const offField = "VK_" + settings.Furina + const onField = "VK_" + settings.onField + + for (let i = 0; i < settings.cycleTimes; ++i) { log.info("正在执行第" + (i + 1) + "次"); - keyDown("Q");//脱身纳塔龙 + keyDown("VK_Q");//脱身纳塔龙 await sleep(1200); - keyUp("Q"); + keyUp("VK_Q"); await sleep(100); leftButtonClick();//下落攻击快速落地 - await sleep(500); - - keyPress("1");//切换芙芙 await sleep(1000); - keyPress("E");//释放芙芙元素战技 + keyPress(offField);//切换芙芙 + await sleep(1000); + + keyPress("VK_E");//释放芙芙元素战技 await sleep(800); - keyPress("2");//芙芙切后台触发剧团 + keyPress(onField);//芙芙切后台触发剧团 await sleep(500); - keyPress("T");//附身纳塔龙 + keyPress("VK_T");//附身纳塔龙 await sleep(28500); log.info("第" + (i + 1) + "次执行完成") diff --git a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/manifest.json b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/manifest.json index 0efa90808..6f0167eee 100644 --- a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/manifest.json +++ b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "芙芙挂机暗杀流", - "version": "1.0", + "version": "1.1", "bgi_version": "0.37.2", "description": "", "authors": [ @@ -10,6 +10,11 @@ "links": "https://github.com/MisakaAldrich" } ], + "tags": [ + "芙宁娜", + "地方传奇", + "挂机暗杀" + ], "settings_ui": "settings.json", "main": "main.js" } \ No newline at end of file diff --git a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/settings.json b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/settings.json index 342d27da4..e4d988407 100644 --- a/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/settings.json +++ b/repo/js/FurinaSalonSolitaireOusiaDefeatLocalLegend/settings.json @@ -1,7 +1,42 @@ [ { - "name": "cycle_times", + "name": "target", + "type": "select", + "label": "暗杀目标", + "options": [ + "科西霍", + "海浪中的莎孚", + "自己去" + ], + "default": "科西霍" + }, + { + "name": "cycleTimes", "type": "input-text", - "label": "循环次数" + "label": "芙宁娜海鲜释放次数" + }, + { + "name": "Furina", + "type": "select", + "label": "芙宁娜在队伍中的序号", + "options": [ + "1", + "2", + "3", + "4" + ], + "default": "1" + }, + { + "name": "onField", + "type": "select", + "label": "暗杀时站场角色的序号", + "options": [ + "1", + "2", + "3", + "4" + ], + "default": "2" } ] \ No newline at end of file