update js and pathing scripts

This commit is contained in:
Yang-z
2024-11-21 14:16:07 +08:00
parent 2d9490c270
commit 7e1f979545
14 changed files with 123 additions and 51 deletions

View File

@@ -18,8 +18,8 @@
"move_mode": "run"
},
{
"x": 3900.19775390625,
"y": 2543.629150390625,
"x": 3899.5673828125,
"y": 2543.31640625,
"type": "target",
"move_mode": "walk",
"action":"",
@@ -39,6 +39,12 @@
"move_mode": "walk",
"action":"",
"#" : "2"
},
{
"x": 3879.810546875,
"y": 2521.3203125,
"type": "path",
"move_mode": "walk"
}
]
}

View File

@@ -35,6 +35,14 @@
"action": "",
"#" : "2"
},
{
"x": 3580.36376953125,
"y": 4713.65234375,
"type": "target",
"move_mode": "walk",
"action": "",
"#" : "2"
},
{
"x": 3585.587890625,

View File

@@ -222,6 +222,12 @@
{
"x": 4111.0791015625,
"y": 4668.72021484375,
"type": "target",
"move_mode": "walk"
},
{
"x": 4115.34521484375,
"y": 4671.7236328125,
"type": "path",
"move_mode": "walk"
}

View File

@@ -65,6 +65,12 @@
"move_mode": "walk",
"action": "",
"#": "2"
},
{
"x": -1366.2890625,
"y": -3753.4658203125,
"type": "path",
"move_mode": "walk"
}
]
}

View File

@@ -39,20 +39,12 @@
"move_mode": "run"
},
{
"x": -676.8798828125,
"y": -4045.4677734375,
"x": -677.654296875,
"y": -4045.9296875,
"type": "path",
"move_mode": "run"
},
{
"x": -673.548828125,
"y": -4043.82421875,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "2"
},
{
"x": -672.419921875,
"y": -4043.4560546875,
@@ -61,22 +53,23 @@
"action": "",
"#": "2"
},
{
"x": -673.548828125,
"y": -4043.82421875,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "2"
},
{
"x": -684.21484375,
"y": -4042.994140625,
"x": -682.07421875,
"y": -4042.4619140625,
"type": "path",
"move_mode": "run"
},
{
"x": -687.501953125,
"y": -4042.25390625,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "3"
},
{
"x": -688.423828125,
"y": -4042.2841796875,
@@ -85,6 +78,15 @@
"action": "",
"#": "3"
},
{
"x": -689.103515625,
"y": -4042.796875,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "3"
},
{
"x": -682.83203125,

View File

@@ -193,6 +193,14 @@
"move_mode": "run",
"action": "",
"#": "8"
},
{
"x": -4185.59375,
"y": -4300.9140625,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "8"
}
]
}

View File

@@ -75,9 +75,9 @@
]; // 97个
const pathingE = [
"【额外】狗粮-须弥-水天丛林+7个.json", // 24小时刷新
"【额外】狗粮-纳塔+7个.json", // 凌晨刷新
"【额外】狗粮-枫丹-研究院区-新枫丹科学院南+1个.json"
"【额外】狗粮-须弥-水天丛林+7个.json", // 24小时刷新
"【额外】狗粮-枫丹-研究院区-新枫丹科学院南+1个.json" // 24小时刷新
]; // 15个其中纳塔第2个似乎是一次性的
@@ -116,9 +116,9 @@
// zoom map to 75%
keyPress("M"); await sleep(1000);
for (let i = 0; i < 5; i++) {
click(42, 420); await sleep(500); // zoom out
click(42, 420); await sleep(500); // zoom in
}
click(42, 645); await sleep(1000); // zoom in
click(42, 645); await sleep(1000); // zoom out
keyPress("M"); await sleep(1000);
// 打开自动拾取
@@ -135,7 +135,7 @@
click(200, 150); await sleep(500); // 1
click(200, 220); await sleep(500); // 2
click(200, 300); await sleep(500); // 3
// click(300, 380); await sleep(3000); // 4
// click(200, 380); await sleep(3000); // 4
click(340, 1000); await sleep(1000); // 确认选择
click(1720, 1015); await sleep(1500); // 分解
@@ -183,7 +183,7 @@
// Extra
log.info(`开始执行额外线路。`);
await batch(folderE, pathingE);
keyPress('VK_LBUTTON'); // 砸开罐子拾取
leftButtonClick(); // 砸开罐子拾取
await sleep(5000);
})();

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "狗粮ABE路线自动拾取分解",
"version": "1.1",
"version": "1.2",
"bgi_version": "0.36.1",
"description": "圣遗物狗粮AB路线自动轮换及额外点位拾取途中自动分解。",
"authors": [

View File

@@ -18,8 +18,8 @@
"move_mode": "run"
},
{
"x": 3900.19775390625,
"y": 2543.629150390625,
"x": 3899.5673828125,
"y": 2543.31640625,
"type": "target",
"move_mode": "walk",
"action":"",
@@ -39,6 +39,12 @@
"move_mode": "walk",
"action":"",
"#" : "2"
},
{
"x": 3879.810546875,
"y": 2521.3203125,
"type": "path",
"move_mode": "walk"
}
]
}

View File

@@ -35,6 +35,14 @@
"action": "",
"#" : "2"
},
{
"x": 3580.36376953125,
"y": 4713.65234375,
"type": "target",
"move_mode": "walk",
"action": "",
"#" : "2"
},
{
"x": 3585.587890625,

View File

@@ -222,6 +222,12 @@
{
"x": 4111.0791015625,
"y": 4668.72021484375,
"type": "target",
"move_mode": "walk"
},
{
"x": 4115.34521484375,
"y": 4671.7236328125,
"type": "path",
"move_mode": "walk"
}

View File

@@ -65,6 +65,12 @@
"move_mode": "walk",
"action": "",
"#": "2"
},
{
"x": -1366.2890625,
"y": -3753.4658203125,
"type": "path",
"move_mode": "walk"
}
]
}

View File

@@ -39,20 +39,12 @@
"move_mode": "run"
},
{
"x": -676.8798828125,
"y": -4045.4677734375,
"x": -677.654296875,
"y": -4045.9296875,
"type": "path",
"move_mode": "run"
},
{
"x": -673.548828125,
"y": -4043.82421875,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "2"
},
{
"x": -672.419921875,
"y": -4043.4560546875,
@@ -61,22 +53,23 @@
"action": "",
"#": "2"
},
{
"x": -673.548828125,
"y": -4043.82421875,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "2"
},
{
"x": -684.21484375,
"y": -4042.994140625,
"x": -682.07421875,
"y": -4042.4619140625,
"type": "path",
"move_mode": "run"
},
{
"x": -687.501953125,
"y": -4042.25390625,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "3"
},
{
"x": -688.423828125,
"y": -4042.2841796875,
@@ -85,6 +78,15 @@
"action": "",
"#": "3"
},
{
"x": -689.103515625,
"y": -4042.796875,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "3"
},
{
"x": -682.83203125,

View File

@@ -193,6 +193,14 @@
"move_mode": "run",
"action": "",
"#": "8"
},
{
"x": -4185.59375,
"y": -4300.9140625,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "8"
}
]
}