修正第一个点位不是传送的问题,文件夹重命名

This commit is contained in:
Traveler07
2024-10-31 21:44:00 +08:00
parent 107b9ee9c4
commit 3276ae33e6
19 changed files with 38 additions and 6 deletions

View File

@@ -24,14 +24,46 @@ w(async function () {
await performGameActions(); await performGameActions();
} }
} }
async function AutoPath(locationName,time) { async function AutoPath(locationName, time) {
//传入路径以及循环次数
let filePath = `assets/AutoPath/${locationName}.json`; let filePath = `assets/AutoPath/${locationName}.json`;
await pathingScript.runFile(filePath); await pathingScript.runFile(filePath);
await runGameActionsMultipleTimes(time) await runGameActionsMultipleTimes(time)
} }
await AutoPath('木材-却砂木_璃月_9个',2) async function KeyMouse(locationName, sec, x, y) {
await AutoPath('木材-桦木_蒙德_15个',100) //传入路径,秒数,坐标
await AutoPath('木材-杉木_蒙德_12个',100) if (x !== undefined && y !== undefined) {
await AutoPath('木材-松木_蒙德_24个',80) await genshin.tp(x, y);
await sleep(1000);
}
let filePath = `assets/KeyMouse/${locationName}.json`;
await keyMouseScript.runFile(filePath);
await sleep(sec * 1000); // 将秒转换为毫秒
}
await AutoPath('松木_蒙德_24个', 84)
await AutoPath('业果木15个(辉木15个)', 134)
await AutoPath('刺葵木6个', 334)
await AutoPath('却砂木12个', 167)
await AutoPath('垂香木15个', 134)
await AutoPath('御伽木9个(孔雀木6个)', 334)
await AutoPath('悬铃木18个', 112)
await AutoPath('杉木_蒙德_12个', 167)
await AutoPath('枫木9个', 223)
await AutoPath('柽木15个', 134)
await AutoPath('桦木_蒙德_15个', 134)
await AutoPath('梦见木12个', 167)
await AutoPath('椴木9个(悬铃木9个)', 223)
await AutoPath('灰灰楼木6个', 334)
// await AutoPath('燃爆木15个', 0)
await AutoPath('燃爆木6个(白栗栎木6个)', 334)
await AutoPath('白梣木15个', 134)
await AutoPath('竹节30个', 67)
await AutoPath('萃华木6个(垂香木3个)', 334)
await AutoPath('证悟木15个(业果木6个)', 134)
await AutoPath('香柏木27个', 75)
await KeyMouse('炬木15个',3, 8359.7548828125, -2868.03515625)
// await keyDown('',5,8353.4921875,-2853.8505859375)
})(); })();

View File

@@ -5,7 +5,7 @@
"description": "小道具自动伐木,单个树种满后,前往下一个树种", "description": "小道具自动伐木,单个树种满后,前往下一个树种",
"authors": [ "authors": [
{ {
"name": "½", "name": "½"
} }
], ],
"main": "main.js" "main": "main.js"