拆分自動化合礦取礦 (#452)
* 拆分自動化合礦取礦 拆分自動化合礦取礦、讓使用者更簡單明了的使用 * Delete repo/js/到枫丹打鐵合礦領礦 directory
This commit is contained in:
67
repo/js/到枫丹打鐵領礦/assets/AutoPath/到枫丹打鐵.json
Normal file
67
repo/js/到枫丹打鐵領礦/assets/AutoPath/到枫丹打鐵.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "到枫丹打鐵",
|
||||
"type": "collect",
|
||||
"author": "密柑魚",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.42.3"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 4514.18,
|
||||
"y": 3630.3999999999996,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 4520.380859375,
|
||||
"y": 3606.239501953125,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"action_params": "",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 4560.19189453125,
|
||||
"y": 3598.05615234375,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"action_params": "",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 4581.005859375,
|
||||
"y": 3599.1630859375,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"action_params": "",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 4579.8,
|
||||
"y": 3605.452,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
"type": "path",
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 4579.85,
|
||||
"y": 3605.45,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
"type": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
47
repo/js/到枫丹打鐵領礦/main.js
Normal file
47
repo/js/到枫丹打鐵領礦/main.js
Normal file
@@ -0,0 +1,47 @@
|
||||
(async function () {
|
||||
|
||||
async function AutoPath(locationName) {
|
||||
try {
|
||||
let filePath = `assets/AutoPath/${locationName}.json`;
|
||||
await pathingScript.runFile(filePath);
|
||||
} catch (error) {
|
||||
log.error(`执行 ${locationName} 路径时发生错误`);
|
||||
log.error(error.message);
|
||||
}
|
||||
await sleep(2000);
|
||||
}
|
||||
|
||||
|
||||
setGameMetrics(1920, 1080, 2);// 设置游戏窗口大小和DPI
|
||||
|
||||
log.info("前往枫丹鐵匠位置");
|
||||
await AutoPath(`到枫丹打鐵`);
|
||||
log.info("到逹枫丹鐵匠位置");
|
||||
await sleep(2000);
|
||||
log.info("對話進入任鍛造頁面");
|
||||
await sleep(2000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
click(1300, 505);
|
||||
await sleep(2000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
|
||||
// 點擊 "鍛造隊列"
|
||||
click(600, 150);
|
||||
await sleep(1000);
|
||||
// 點擊 "全部領取"
|
||||
click(160, 1010);
|
||||
await sleep(1000);
|
||||
// 點擊 "確認"
|
||||
click(970, 910);
|
||||
await sleep(1000);
|
||||
|
||||
log.info("領取結束,退出畫面");
|
||||
// 退出鍛造頁面
|
||||
click(1845, 45);
|
||||
await sleep(1000);
|
||||
|
||||
})();
|
||||
12
repo/js/到枫丹打鐵領礦/manifest.json
Normal file
12
repo/js/到枫丹打鐵領礦/manifest.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "传送到枫丹鐵匠領礦",
|
||||
"version": "1.0",
|
||||
"description": "到枫丹鐵匠店領取合成武器升級材料,配合'传送到枫丹鐵匠合礦'能自動化合礦領礦。註1:使用時請先禁用任何生存位使用技能。",
|
||||
"authors": [
|
||||
{
|
||||
"name": "蜜柑魚"
|
||||
}
|
||||
],
|
||||
"main": "main.js"
|
||||
}
|
||||
Reference in New Issue
Block a user