UpdateV2.0
1.加入点位失败跳过,现在不会因为一个点位卡住导致从头运行 2.将路径追踪任务统一移至末尾 3.增加点位,补齐100个
This commit is contained in:
172
repo/js/AutoArtifacts/assets/AutoPath/新枫科院西南.json
Normal file
172
repo/js/AutoArtifacts/assets/AutoPath/新枫科院西南.json
Normal file
@@ -0,0 +1,172 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "狗粮_枫丹_新枫科院西南_7",
|
||||
"type": "collect",
|
||||
"author": "Tim",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.34.5"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 4498.15283203125,
|
||||
"y": 4710.76953125
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 4506.90283203125,
|
||||
"y": 4702.208984375,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 4552.33740234375,
|
||||
"y": 4736.5859375,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "stop_flying"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 4560.65234375,
|
||||
"y": 4742.57080078125,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 4563.89404296875,
|
||||
"y": 4744.2626953125,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 4535.875,
|
||||
"y": 4712.6259765625,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 4531.185546875,
|
||||
"y": 4695.47314453125,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": 4529.67724609375,
|
||||
"y": 4688.33154296875,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"x": 4515.7763671875,
|
||||
"y": 4650.41015625,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"x": 4514.59326171875,
|
||||
"y": 4642.2392578125,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"x": 4475.4970703125,
|
||||
"y": 4580.6748046875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"x": 4459.51806640625,
|
||||
"y": 4587.0107421875,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"x": 4456.41064453125,
|
||||
"y": 4590.609375,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"x": 4462.94482421875,
|
||||
"y": 4598.68408203125,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"x": 4449.888671875,
|
||||
"y": 4605.63671875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"x": 4442.71826171875,
|
||||
"y": 4581.05419921875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"x": 4444.21533203125,
|
||||
"y": 4573.728515625,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"x": 4414.876953125,
|
||||
"y": 4577.3935546875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"x": 4421.197265625,
|
||||
"y": 4588.96044921875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"x": 4429.11376953125,
|
||||
"y": 4583.23095703125,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
52
repo/js/AutoArtifacts/assets/AutoPath/无郁绸林.json
Normal file
52
repo/js/AutoArtifacts/assets/AutoPath/无郁绸林.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "狗粮_须弥_无郁绸林_3",
|
||||
"type": "collect",
|
||||
"author": "Tim",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.34.5"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 2399.9599609375,
|
||||
"y": 143.537109375
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 2351.107421875,
|
||||
"y": 106.96728515625,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "stop_flying"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 2346.341796875,
|
||||
"y": 106.56591796875,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 2346.32470703125,
|
||||
"y": 105.763671875,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 2349.3916015625,
|
||||
"y": 103.44921875,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
52
repo/js/AutoArtifacts/assets/AutoPath/欧庇克莱歌剧院东南.json
Normal file
52
repo/js/AutoArtifacts/assets/AutoPath/欧庇克莱歌剧院东南.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "狗粮_枫丹_欧庇克莱歌剧院东南_2",
|
||||
"type": "collect",
|
||||
"author": "Tim",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.34.5"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 3595.5517578125,
|
||||
"y": 3254.333251953125,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 3615.38427734375,
|
||||
"y": 3265.42529296875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 3614.9833984375,
|
||||
"y": 3276.674072265625,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 3589.9384765625,
|
||||
"y": 3296.404296875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 3585.0244140625,
|
||||
"y": 3290.032958984375,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
52
repo/js/AutoArtifacts/assets/AutoPath/神的棋盘.json
Normal file
52
repo/js/AutoArtifacts/assets/AutoPath/神的棋盘.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "狗粮_神的棋盘_3",
|
||||
"type": "collect",
|
||||
"author": "Tim",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.34.5"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 5759.43017578125,
|
||||
"y": -1307.9384765625
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 5760.14404296875,
|
||||
"y": -1302.51318359375,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 5767.37353515625,
|
||||
"y": -1283.07470703125,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 5760.84521484375,
|
||||
"y": -1277.82470703125,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 5760.22265625,
|
||||
"y": -1270.0185546875,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
92
repo/js/AutoArtifacts/assets/AutoPath/越石村.json
Normal file
92
repo/js/AutoArtifacts/assets/AutoPath/越石村.json
Normal file
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "",
|
||||
"type": "collect",
|
||||
"author": "Tim",
|
||||
"version": "1.0",
|
||||
"description": "狗粮_越石村_5个",
|
||||
"bgiVersion": "0.34.5"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": -4023.3095703125,
|
||||
"y": -4428.8203125,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -3982.544921875,
|
||||
"y": -4430.77734375,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -3983.2109375,
|
||||
"y": -4435.841796875,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": -3977.1396484375,
|
||||
"y": -4439.125,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": -3971.015625,
|
||||
"y": -4439.1259765625,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": -3969.3662109375,
|
||||
"y": -4434.59375,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": -3965.8349609375,
|
||||
"y": -4435.943359375,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": -3966.7236328125,
|
||||
"y": -4425.2958984375,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"x": -3972.904296875,
|
||||
"y": -4425.287109375,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"x": -3978.61328125,
|
||||
"y": -4424.3828125,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,8 @@
|
||||
dispatcher.addTimer(new RealtimeTimer("AutoPick"));
|
||||
|
||||
async function logTaskStart() {
|
||||
const messages = [
|
||||
const messages = [
|
||||
'此脚本运行时间约45-50分钟',
|
||||
'确保地图的按键为M键',
|
||||
'左上角派蒙头像未被其他悬浮窗遮挡',
|
||||
'游戏以60帧运行',
|
||||
@@ -21,22 +22,28 @@
|
||||
}
|
||||
}
|
||||
|
||||
async function KeyMouse(locationName, sec, x, y)
|
||||
{
|
||||
async function KeyMouse(locationName, sec, x, y) {
|
||||
try {
|
||||
if (x !== undefined && y !== undefined) {
|
||||
log.info(`前往 ${locationName}`);
|
||||
await genshin.tp(x, y);
|
||||
await sleep(1000);
|
||||
}
|
||||
|
||||
let filePath = `assets/KeyMouse/${locationName}.json`;
|
||||
await keyMouseScript.runFile(filePath);
|
||||
let filePath = `assets/KeyMouse/${locationName}.json`;
|
||||
await keyMouseScript.runFile(filePath);
|
||||
} catch (error) {
|
||||
log.error(`执行 ${locationName} 脚本时发生错误`);
|
||||
}
|
||||
await sleep(sec * 1000); // 将秒转换为毫秒
|
||||
}
|
||||
|
||||
async function AutoPath(locationName) {
|
||||
try {
|
||||
let filePath = `assets/AutoPath/${locationName}.json`;
|
||||
await pathingScript.runFile(filePath);
|
||||
await pathingScript.runFile(filePath);
|
||||
} catch (error) {
|
||||
log.error(`执行 ${locationName} 路径时发生错误`);
|
||||
}
|
||||
await sleep(2000);
|
||||
}
|
||||
|
||||
@@ -57,17 +64,13 @@
|
||||
await KeyMouse('解除冰元素附着', 4, -255, 629);
|
||||
await KeyMouse('地中之盐', 2, -164, 1183);
|
||||
await KeyMouse('望舒客栈', 2, 330, 874);
|
||||
await AutoPath('荻花洲');
|
||||
await KeyMouse('荻花洲西', 2, 730, 1062);
|
||||
await KeyMouse('望舒客栈西', 2, 730, 1062);
|
||||
await KeyMouse('轻策庄', 2, 547, 1767);
|
||||
await AutoPath('轻策庄');
|
||||
await KeyMouse('沉玉谷码头', 2, 1113, 1948);
|
||||
await KeyMouse('沉玉谷狗洞', 2, 1114, 1948);
|
||||
await KeyMouse('奥藏山', 2, 1451, 1029);
|
||||
await KeyMouse('酒窖', 2, 730, 1062);
|
||||
await AutoPath('酒窖');
|
||||
await AutoPath('渌华池');
|
||||
logTimeTaken(startTime);
|
||||
|
||||
log.info('前往地区:稻妻')
|
||||
@@ -76,7 +79,6 @@
|
||||
await KeyMouse('炉心1', 2, -3289, -3654);
|
||||
await KeyMouse('炉心2', 2, -3289, -3654);
|
||||
await KeyMouse('绝美我心', 2, -1315, -3776);
|
||||
await AutoPath('望泷村西南');
|
||||
await KeyMouse('沉眠之庭1', 2, -4185, -4244);
|
||||
await KeyMouse('沉眠之庭2', 2, -4185, -4244);
|
||||
await KeyMouse('浅濑神社', 2, -3698, -4689);
|
||||
@@ -90,8 +92,6 @@
|
||||
await KeyMouse('须弥城东', 2, 2694, -416);
|
||||
await KeyMouse('须弥城西北1', 2, 2876, -292);
|
||||
await KeyMouse('须弥城西北2', 2, 2876, -292);
|
||||
await AutoPath('化城郭西');
|
||||
await AutoPath('二净甸神像');
|
||||
await KeyMouse('圣显厅南', 2, 4271, -1666);
|
||||
await KeyMouse('圣显厅西', 2, 4775, -1437);
|
||||
await KeyMouse('神的棋盘', 2, 5759, -1309);
|
||||
@@ -101,7 +101,6 @@
|
||||
await KeyMouse('枫丹廷1', 2, 4509, 3630);
|
||||
await KeyMouse('枫丹廷2', 2, 4509, 3630);
|
||||
await KeyMouse('欧庇克莱歌剧院东南', 2, 3595, 3254);
|
||||
await AutoPath('莫尔泰神像');
|
||||
await KeyMouse('芒索斯山东1', 2, 4985, 4463);
|
||||
await KeyMouse('芒索斯山东2', 2, 4985, 4463);
|
||||
await KeyMouse('学术会堂', 2, 4144, 4424);
|
||||
@@ -129,7 +128,21 @@
|
||||
|
||||
log.info('前往地区:其他')
|
||||
await KeyMouse('精石铜城', 2, 6323, 821);
|
||||
|
||||
await AutoPath('荻花洲');
|
||||
await AutoPath('轻策庄');
|
||||
await AutoPath('酒窖');
|
||||
await AutoPath('渌华池');
|
||||
await AutoPath('望泷村西南');
|
||||
await AutoPath('越石村');
|
||||
await AutoPath('化城郭西');
|
||||
await AutoPath('二净甸神像');
|
||||
await AutoPath('无郁绸林');
|
||||
await AutoPath('塔尼特营地');
|
||||
await AutoPath('神的棋盘');
|
||||
await AutoPath('莫尔泰神像');
|
||||
await AutoPath('欧庇克莱歌剧院东南');
|
||||
await AutoPath('新枫科院西南');
|
||||
await AutoPath('新枫科院宿舍');
|
||||
// 计算并输出总时长
|
||||
const endTime = Date.now();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "自动狗粮",
|
||||
"version": "1.9",
|
||||
"version": "2.0",
|
||||
"description": "自动调查离传送点较近的狗粮。请使用琳妮特前台,双风共鸣。并保证所有传送点都已经激活!",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user