From 99191e8a22b85c4f6045735ef470f0d23d5cad7c Mon Sep 17 00:00:00 2001 From: 5117600049 <511760049@qq.com> Date: Fri, 14 Feb 2025 17:50:11 +0800 Subject: [PATCH] Add files via upload (#326) --- .../assets/枫丹购买狗粮.json | 21 +++ .../assets/璃月购买狗粮1.json | 39 ++++++ .../assets/璃月购买狗粮2.json | 48 +++++++ .../assets/稻妻购买狗粮.json | 39 ++++++ .../assets/纳塔购买狗粮.json | 21 +++ .../assets/蒙德购买狗粮.json | 47 +++++++ .../assets/须弥购买狗粮.json | 57 +++++++++ repo/js/PurchaseArtifacts/main.js | 120 ++++++++++++++++++ repo/js/PurchaseArtifacts/manifest.json | 14 ++ repo/js/PurchaseArtifacts/settings.json | 11 ++ 10 files changed, 417 insertions(+) create mode 100644 repo/js/PurchaseArtifacts/assets/枫丹购买狗粮.json create mode 100644 repo/js/PurchaseArtifacts/assets/璃月购买狗粮1.json create mode 100644 repo/js/PurchaseArtifacts/assets/璃月购买狗粮2.json create mode 100644 repo/js/PurchaseArtifacts/assets/稻妻购买狗粮.json create mode 100644 repo/js/PurchaseArtifacts/assets/纳塔购买狗粮.json create mode 100644 repo/js/PurchaseArtifacts/assets/蒙德购买狗粮.json create mode 100644 repo/js/PurchaseArtifacts/assets/须弥购买狗粮.json create mode 100644 repo/js/PurchaseArtifacts/main.js create mode 100644 repo/js/PurchaseArtifacts/manifest.json create mode 100644 repo/js/PurchaseArtifacts/settings.json diff --git a/repo/js/PurchaseArtifacts/assets/枫丹购买狗粮.json b/repo/js/PurchaseArtifacts/assets/枫丹购买狗粮.json new file mode 100644 index 00000000..308208b5 --- /dev/null +++ b/repo/js/PurchaseArtifacts/assets/枫丹购买狗粮.json @@ -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": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/PurchaseArtifacts/assets/璃月购买狗粮1.json b/repo/js/PurchaseArtifacts/assets/璃月购买狗粮1.json new file mode 100644 index 00000000..3485a925 --- /dev/null +++ b/repo/js/PurchaseArtifacts/assets/璃月购买狗粮1.json @@ -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": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/PurchaseArtifacts/assets/璃月购买狗粮2.json b/repo/js/PurchaseArtifacts/assets/璃月购买狗粮2.json new file mode 100644 index 00000000..c90fd4ec --- /dev/null +++ b/repo/js/PurchaseArtifacts/assets/璃月购买狗粮2.json @@ -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": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/PurchaseArtifacts/assets/稻妻购买狗粮.json b/repo/js/PurchaseArtifacts/assets/稻妻购买狗粮.json new file mode 100644 index 00000000..15c2778d --- /dev/null +++ b/repo/js/PurchaseArtifacts/assets/稻妻购买狗粮.json @@ -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": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/PurchaseArtifacts/assets/纳塔购买狗粮.json b/repo/js/PurchaseArtifacts/assets/纳塔购买狗粮.json new file mode 100644 index 00000000..935f1c1e --- /dev/null +++ b/repo/js/PurchaseArtifacts/assets/纳塔购买狗粮.json @@ -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": "" + }, + ] +} \ No newline at end of file diff --git a/repo/js/PurchaseArtifacts/assets/蒙德购买狗粮.json b/repo/js/PurchaseArtifacts/assets/蒙德购买狗粮.json new file mode 100644 index 00000000..3078e3ac --- /dev/null +++ b/repo/js/PurchaseArtifacts/assets/蒙德购买狗粮.json @@ -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": "" + }, + + + + ] + + +} + + + diff --git a/repo/js/PurchaseArtifacts/assets/须弥购买狗粮.json b/repo/js/PurchaseArtifacts/assets/须弥购买狗粮.json new file mode 100644 index 00000000..52644862 --- /dev/null +++ b/repo/js/PurchaseArtifacts/assets/须弥购买狗粮.json @@ -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": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/PurchaseArtifacts/main.js b/repo/js/PurchaseArtifacts/main.js new file mode 100644 index 00000000..ff3015e3 --- /dev/null +++ b/repo/js/PurchaseArtifacts/main.js @@ -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(); +})(); diff --git a/repo/js/PurchaseArtifacts/manifest.json b/repo/js/PurchaseArtifacts/manifest.json new file mode 100644 index 00000000..af440a71 --- /dev/null +++ b/repo/js/PurchaseArtifacts/manifest.json @@ -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" +} \ No newline at end of file diff --git a/repo/js/PurchaseArtifacts/settings.json b/repo/js/PurchaseArtifacts/settings.json new file mode 100644 index 00000000..08178437 --- /dev/null +++ b/repo/js/PurchaseArtifacts/settings.json @@ -0,0 +1,11 @@ +[ + { + "name": "holdingState", + "type": "select", + "label": "(有无龙骨花凝珠?默认NO)", + "options": [ + "YES", + "NO" + ] + }, +] \ No newline at end of file