diff --git a/repo/js/传送至指定合成台/assets/枫丹合成台.json b/repo/js/传送至指定合成台/assets/枫丹合成台.json new file mode 100644 index 00000000..a867e7ed --- /dev/null +++ b/repo/js/传送至指定合成台/assets/枫丹合成台.json @@ -0,0 +1,30 @@ +{ + "info": { + "name": "枫丹合成台", + "type": "collect", + "author": "naralan", + "version": "1.0", + "description": "", + "bgiVersion": "0.42.3" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": 4509.25, + "y": 3624.5, + "action_params": "" + }, + { + "id": 2, + "action": "", + "move_mode": "walk", + "type": "path", + "x": 4479.5, + "y": 3627.8, + "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 00000000..f7439589 --- /dev/null +++ b/repo/js/传送至指定合成台/assets/璃月合成台.json @@ -0,0 +1,39 @@ +{ + "info": { + "name": "璃月合成台", + "type": "collect", + "author": "naralan", + "version": "1.0", + "description": "", + "bgiVersion": "0.42.3" + }, + "positions": [ + { + "id": 1, + "x": 281.5, + "y": -674, + "action": "", + "move_mode": "walk", + "action_params": "", + "type": "teleport" + }, + { + "id": 2, + "x": 264, + "y": -660, + "action": "", + "move_mode": "walk", + "action_params": "", + "type": "path" + }, + { + "id": 3, + "x": 267.8, + "y": -652.5, + "action": "", + "move_mode": "walk", + "action_params": "", + "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 00000000..5ec1fe0e --- /dev/null +++ b/repo/js/传送至指定合成台/assets/稻妻合成台.json @@ -0,0 +1,39 @@ +{ + "info": { + "name": "稻妻合成台", + "type": "collect", + "author": "naralan", + "version": "1.0", + "description": "", + "bgiVersion": "0.42.3" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": -4399.5, + "y": -3053, + "action_params": "" + }, + { + "id": 3, + "action": "", + "move_mode": "walk", + "type": "path", + "x": -4416.5, + "y": -3076.7, + "action_params": "" + }, + { + "id": 4, + "action": "", + "move_mode": "walk", + "type": "path", + "x": -4434, + "y": -3093.2, + "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 00000000..2c13a179 --- /dev/null +++ b/repo/js/传送至指定合成台/assets/蒙德合成台.json @@ -0,0 +1,39 @@ +{ + "info": { + "name": "蒙德合成台", + "type": "collect", + "author": "naralan", + "version": "1.0", + "description": "", + "bgiVersion": "0.42.3" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": -872.75, + "y": 2275.5, + "action_params": "" + }, + { + "id": 2, + "action": "", + "move_mode": "walk", + "type": "path", + "x": -886, + "y": 2267, + "action_params": "" + }, + { + "id": 2, + "action": "", + "move_mode": "walk", + "type": "path", + "x": -889.8, + "y": 2267.5, + "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 00000000..6dbd35e5 --- /dev/null +++ b/repo/js/传送至指定合成台/main.js @@ -0,0 +1,28 @@ +async function AutoPath(locationName) { + try { + let filePath = `assets/${locationName}.json`; + await pathingScript.runFile(filePath); + sleep(2000); + + return true; + } catch (error) { + log.error(`执行 ${locationName} 路径时发生错误`); + log.error(error.message); + } + + return false; +} +( + async function () { + try { + await genshin.returnMainUi(); + setGameMetrics(1920, 1080, 1) + // 读取配置文件 + let location = settings.location; + await AutoPath(location); + } catch (e) { + log.error("传送失败,请检查设置"); + return; + } + } +)(); \ No newline at end of file diff --git a/repo/js/传送至指定合成台/manifest.json b/repo/js/传送至指定合成台/manifest.json new file mode 100644 index 00000000..ecbc2b36 --- /dev/null +++ b/repo/js/传送至指定合成台/manifest.json @@ -0,0 +1,14 @@ +{ + "manifest_version": 1, + "name": "传送至指定合成台", + "version": "1.0", + "description": "传送至指定合成,不建议传送到蒙德合成台(勾八蒂玛乌斯和玛格丽特)", + "authors": [ + { + "name": "naralan", + "link": "" + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} diff --git a/repo/js/传送至指定合成台/settings.json b/repo/js/传送至指定合成台/settings.json new file mode 100644 index 00000000..cd0958f8 --- /dev/null +++ b/repo/js/传送至指定合成台/settings.json @@ -0,0 +1,15 @@ +[ + { + "name": "location", + "type": "select", + "label": "指定合成台", + "options": [ + "蒙德合成台", + "璃月合成台", + "稻妻合成台", + //"须弥合成台", + //"纳塔合成台", + "枫丹合成台" + ] + } +]