Add files via upload (#326)

This commit is contained in:
5117600049
2025-02-14 17:50:11 +08:00
committed by GitHub
parent 1b0cbb4061
commit 99191e8a22
10 changed files with 417 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{
"info": {
"name": "未命名路径",
"type": "collect",
"author": "柒叶子",
"version": "1.0",
"description": "枫丹购买狗粮",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"x": 4516.61794921875,
"y": 3456.2869921875,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,39 @@
{
"info": {
"name": "未命名路径",
"type": "collect",
"author": "柒叶子",
"version": "1.0",
"description": "璃月购买狗粮1",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 366.74609375,
"y": -502.52587890625,
"action_params": ""
},
{
"id": 2,
"x": 360.026171875,
"y": -491.16474609375,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": ""
},
{
"id": 3,
"x": 340.1712890625,
"y": -471.7400390625,
"type": "target",
"move_mode": "walk",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,48 @@
{
"info": {
"name": "未命名路径",
"type": "collect",
"author": "柒叶子",
"version": "1.0",
"description": "璃月购买狗粮2",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 366.748046875,
"y": -502.51904296875,
"action_params": ""
},
{
"id": 2,
"x": 378.5673828125,
"y": -532.35009765625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 330.466796875,
"y": -585.69921875,
"type": "path",
"move_mode": "run",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 340.091796875,
"y": -593.6611328125,
"type": "path",
"move_mode": "run",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,39 @@
{
"info": {
"name": "未命名路径",
"type": "collect",
"author": "柒叶子",
"version": "1.0",
"description": "稻妻购买狗粮",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -3812.6689453125,
"y": -2546.5498046875,
"action_params": ""
},
{
"id": 2,
"x": -3812.25,
"y": -2580.9189453125,
"type": "path",
"move_mode": "run",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -3786.482421875,
"y": -2578.1767578125,
"type": "path",
"move_mode": "run",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,21 @@
{
"info": {
"name": "未命名路径",
"type": "collect",
"author": "柒叶子",
"version": "1.0",
"description": "纳塔购买狗粮",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"x": 9057.61328125,
"y": -1845.81005859375,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
]
}

View File

@@ -0,0 +1,47 @@
{
"info": {
"name": "未命名路径",
"type": "collect",
"author": "柒叶子",
"version": "1.0",
"description": "蒙德购买狗粮",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -867.7177734375,
"y": 2281.383544921875,
"action_params": ""
},
{
"id": 2,
"x": -886.9833984375,
"y": 2277.64013671875,
"type": "path",
"move_mode": "run",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -913.4878515625,
"y": 2292.123046875,
"type": "target",
"move_mode": "walk",
"action": "",
"action_params": ""
},
]
}

View File

@@ -0,0 +1,57 @@
{
"info": {
"name": "未命名路径",
"type": "collect",
"author": "柒叶子",
"version": "1.0",
"description": "须弥购买狗粮",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2694.060546875,
"y": -416.48193359375,
"action_params": ""
},
{
"id": 2,
"x": 2708.060546875,
"y": -409.96875,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": ""
},
{
"id": 3,
"x": 2724.205078125,
"y": -404.39892578125,
"type": "path",
"move_mode": "run",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 2747.06640625,
"y": -409.5048828125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": 2765.72265625,
"y": -389.4873046875,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,120 @@
(async function () {
log.info('开始购买狗粮');
async function Purchase(locationName) {
let filePath = `assets/${locationName}.json`;
await pathingScript.runFile(filePath);
}
//读取配置
let holdingState = settings.holdingState != undefined ? settings.holdingState : '';
//基本购买流程
async function Shopping() {
await sleep(1500);
keyPress("F"); await sleep(1200);//对话
keyPress("F"); await sleep(1800);//对话
keyPress("F"); await sleep(1200);//对话
keyPress("F"); await sleep(1800);//对话
click(1690, 1020); await sleep(500); // 购买
click(1170, 780); await sleep(400); // 确定
click(1690, 1020); await sleep(200); // 点击空白处
click(1690, 1020); await sleep(400); // 购买
click(1170, 780); await sleep(400); // 确定
click(1690, 1020); await sleep(200); // 点击空白处
click(1690, 1020); await sleep(400); // 购买
click(1170, 780); await sleep(400); // 确定
click(1690, 1020); await sleep(200); // 点击空白处
click(1690, 1020); await sleep(400); // 购买
click(1170, 780); await sleep(400); // 确定
click(1690, 1020); await sleep(200); // 点击空白处
click(1690, 1020); await sleep(400); // 购买
click(1170, 780); await sleep(400); // 确定
click(1690, 1020); await sleep(200); // 点击空白处
keyPress("ESCAPE"); await sleep(2000);
}
await Purchase('蒙德购买狗粮');
await Shopping();
//调整时间
await sleep(1500);
keyPress("ESCAPE"); await sleep(1500);
click(45, 715); await sleep(1500);
moveMouseTo(1440,510 );
leftButtonDown(); await sleep(1500);
moveMouseTo(1290,590 );await sleep(1000);
moveMouseTo(1440,330 );await sleep(1000);
moveMouseTo(1580,590 );await sleep(1000);
leftButtonUp();await sleep(500);
click(1440, 1025); await sleep(16000);
keyPress("ESCAPE"); await sleep(1000);
keyPress("ESCAPE"); await sleep(1000);
await Purchase('璃月购买狗粮1');
await Shopping();
await Purchase('璃月购买狗粮2');
await sleep(1500);
keyPress("F"); await sleep(1200);
keyPress("F"); await sleep(1800);
if (holdingState == 'YES') keyPress("s");
await sleep(500);
keyPress("F"); await sleep(1200);
keyPress("F"); await sleep(1800);
click(1690, 1020); await sleep(500);
click(1170, 780); await sleep(400);
click(1690, 1020); await sleep(200);
click(1690, 1020); await sleep(400);
click(1170, 780); await sleep(400);
click(1690, 1020); await sleep(200);
click(1690, 1020); await sleep(400);
click(1170, 780); await sleep(400);
click(1690, 1020); await sleep(200);
click(1690, 1020); await sleep(400);
click(1170, 780); await sleep(400);
click(1690, 1020); await sleep(200);
click(1690, 1020); await sleep(400);
click(1170, 780); await sleep(400);
click(1690, 1020); await sleep(200);
keyPress("ESCAPE"); await sleep(2000);
await Purchase('稻妻购买狗粮');
await sleep(1000);
keyPress("F"); await sleep(1500);
await Shopping();
await Purchase('须弥购买狗粮');
await Shopping();
await Purchase('枫丹购买狗粮');
await sleep(1000);
keyDown("d");
await sleep(2000);
keyUp("d");
keyDown("a");
await sleep(300);
keyUp("a");
keyDown("w");
await sleep(6100);
keyUp("w");
keyDown("d");
await sleep(300);
keyUp("d");
keyDown("s");
await sleep(2000);
keyPress("SPACE");
await sleep(800);
keyUp("s");
await Shopping();
await Purchase('纳塔购买狗粮');
await sleep(1000);
keyDown("a");
await sleep(500);
keyUp("a");
await Shopping();
})();

View File

@@ -0,0 +1,14 @@
{
"manifest_version": 1,
"name": "自动购买狗粮(7点位)",
"version": "1.0",
"description": "购买狗粮每周3刷新用价值23.3体力的摩拉换价值38.2体力的狗粮血赚。龙骨花凝珠没出售的需要选择Js设置。由于存在地下区域路径追踪不可用建议使用固定队伍(双风成女行走),最后记得调度器里再设置下",
"authors": [
{
"name": "柒叶子",
"link": "https://github.com/511760049"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,11 @@
[
{
"name": "holdingState",
"type": "select",
"label": "有无龙骨花凝珠默认NO",
"options": [
"YES",
"NO"
]
},
]