添加“传送至指定合成台”js脚本 (#672)
* Add files via upload * 传送至指定合成台 * Delete repo/js/蒙德合成台.json * Delete repo/js/main.js * Delete repo/js/manifest.json * Delete repo/js/settings.json * Delete repo/js/枫丹合成台.json * Delete repo/js/璃月合成台.json * Delete repo/js/稻妻合成台.json * Update settings.json
This commit is contained in:
30
repo/js/传送至指定合成台/assets/枫丹合成台.json
Normal file
30
repo/js/传送至指定合成台/assets/枫丹合成台.json
Normal file
@@ -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": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
39
repo/js/传送至指定合成台/assets/璃月合成台.json
Normal file
39
repo/js/传送至指定合成台/assets/璃月合成台.json
Normal file
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
39
repo/js/传送至指定合成台/assets/稻妻合成台.json
Normal file
39
repo/js/传送至指定合成台/assets/稻妻合成台.json
Normal file
@@ -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": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
39
repo/js/传送至指定合成台/assets/蒙德合成台.json
Normal file
39
repo/js/传送至指定合成台/assets/蒙德合成台.json
Normal file
@@ -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": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
28
repo/js/传送至指定合成台/main.js
Normal file
28
repo/js/传送至指定合成台/main.js
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
)();
|
||||
14
repo/js/传送至指定合成台/manifest.json
Normal file
14
repo/js/传送至指定合成台/manifest.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "传送至指定合成台",
|
||||
"version": "1.0",
|
||||
"description": "传送至指定合成,不建议传送到蒙德合成台(勾八蒂玛乌斯和玛格丽特)",
|
||||
"authors": [
|
||||
{
|
||||
"name": "naralan",
|
||||
"link": ""
|
||||
}
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
15
repo/js/传送至指定合成台/settings.json
Normal file
15
repo/js/传送至指定合成台/settings.json
Normal file
@@ -0,0 +1,15 @@
|
||||
[
|
||||
{
|
||||
"name": "location",
|
||||
"type": "select",
|
||||
"label": "指定合成台",
|
||||
"options": [
|
||||
"蒙德合成台",
|
||||
"璃月合成台",
|
||||
"稻妻合成台",
|
||||
//"须弥合成台",
|
||||
//"纳塔合成台",
|
||||
"枫丹合成台"
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user