48
archive/js/自动杂货商购买/assets/咖啡厅露泽店主阿鲁埃.json
Normal file
48
archive/js/自动杂货商购买/assets/咖啡厅露泽店主阿鲁埃.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "咖啡厅露泽店主阿鲁埃",
|
||||
"type": "collect",
|
||||
"author": "吉吉喵",
|
||||
"version": "1.0",
|
||||
"description": "寻路咖啡厅露泽店主阿鲁埃",
|
||||
"bgiVersion": "0.35.1"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 4649.4873046875,
|
||||
"y": 3467.8935546875,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 4627.564453125,
|
||||
"y": 3470.357421875,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 4604.40869140625,
|
||||
"y": 3510.25,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "stop_flying",
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 4601.98388671875,
|
||||
"y": 3515.368896484375,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
40
archive/js/自动杂货商购买/assets/枫丹杂货商布希柯.json
Normal file
40
archive/js/自动杂货商购买/assets/枫丹杂货商布希柯.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "达莫维百货店主布希柯",
|
||||
"type": "collect",
|
||||
"author": "吉吉喵",
|
||||
"version": "1.0",
|
||||
"description": "达莫维百货 店主布希柯",
|
||||
"bgiVersion": "0.35.1"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 4514.18,
|
||||
"y": 3630.4,
|
||||
"action_params": "",
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 4514.2802734375,
|
||||
"y": 3604.35498046875,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "stop_flying",
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 4470.1357421875,
|
||||
"y": 3562.072265625,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
28
archive/js/自动杂货商购买/assets/璃月杂货商东升.json
Normal file
28
archive/js/自动杂货商购买/assets/璃月杂货商东升.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "璃月杂货商东升",
|
||||
"type": "collect",
|
||||
"author": "吉吉喵",
|
||||
"version": "1.0",
|
||||
"description": "购买杂货",
|
||||
"bgiVersion": "0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "force_tp",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 267.92,
|
||||
"y": -665.01
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 257.6142578125,
|
||||
"y": -681.96826171875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
36
archive/js/自动杂货商购买/assets/稻妻九十九物店主.json
Normal file
36
archive/js/自动杂货商购买/assets/稻妻九十九物店主.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "稻妻九十九物店主",
|
||||
"type": "collect",
|
||||
"author": "吉吉喵",
|
||||
"version": "1.0",
|
||||
"description": "购买杂货",
|
||||
"bgiVersion": "0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "force_tp",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": -4402.56,
|
||||
"y": -3052.88
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -4409.03125,
|
||||
"y": -3067.2666015625,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -4403.66796875,
|
||||
"y": -3071.9619140625,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
44
archive/js/自动杂货商购买/assets/稻妻志村屋店主.json
Normal file
44
archive/js/自动杂货商购买/assets/稻妻志村屋店主.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "稻妻志村屋店主",
|
||||
"type": "collect",
|
||||
"author": "吉吉喵",
|
||||
"version": "1.0",
|
||||
"description": "购买鱼肉+螃蟹",
|
||||
"bgiVersion": "0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "force_tp",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": -4402.56,
|
||||
"y": -3052.88
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -4409.03125,
|
||||
"y": -3067.2666015625,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -4421.849609375,
|
||||
"y": -3084.564453125,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": -4425.07421875,
|
||||
"y": -3082.072265625,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
20
archive/js/自动杂货商购买/assets/纳塔杂货商布纳马.json
Normal file
20
archive/js/自动杂货商购买/assets/纳塔杂货商布纳马.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "纳塔杂货商",
|
||||
"type": "collect",
|
||||
"author": "吉吉喵",
|
||||
"version": "1.0",
|
||||
"description": "购买杂货",
|
||||
"bgiVersion": "0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "force_tp",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 9046.666015625,
|
||||
"y": -1855.35791015625
|
||||
}
|
||||
]
|
||||
}
|
||||
207
archive/js/自动杂货商购买/main.js
Normal file
207
archive/js/自动杂货商购买/main.js
Normal file
@@ -0,0 +1,207 @@
|
||||
(async function () {
|
||||
setGameMetrics(1920, 1080, 1);
|
||||
|
||||
async function AutoPath() {
|
||||
log.info("开始执行自动寻路任务");
|
||||
|
||||
const isGrocerySelected = settings["稻妻杂货商"];
|
||||
const isCharcoalSelected = settings["稻妻志村屋店主"];
|
||||
const isLiyueGrocerySelected = settings["璃月杂货商"];
|
||||
const isNataGrocerySelected = settings["纳塔杂货商"];
|
||||
const isFengdanGrocerySelected = settings["枫丹杂货商"]; // 新增枫丹杂货商选项
|
||||
const isCafeLuzheSelected = settings["咖啡厅露泽店主"]; // 新增咖啡厅露泽店主阿鲁埃选项
|
||||
const clickCount1 = Number(settings["点击购买次数1"]) || 11;
|
||||
const clickCount2 = Number(settings["点击购买次数2"]) || 12;
|
||||
const clickCount3 = Number(settings["点击购买次数3"]) || 11;
|
||||
const clickCount4 = Number(settings["点击购买次数4"]) || 9;
|
||||
|
||||
const groceryFilePath = `assets/稻妻九十九物店主.json`;
|
||||
const charcoalFilePath = `assets/稻妻志村屋店主.json`;
|
||||
const liyueGroceryFilePath = `assets/璃月杂货商东升.json`;
|
||||
const nataGroceryFilePath = `assets/纳塔杂货商布纳马.json`;
|
||||
const fengdanGroceryFilePath = `assets/枫丹杂货商布希柯.json`; // 新增枫丹杂货商路径文件
|
||||
const cafeLuzheFilePath = `assets/咖啡厅露泽店主阿鲁埃.json`; // 新增咖啡厅露泽店主阿鲁埃路径文件
|
||||
|
||||
try {
|
||||
if (isGrocerySelected) {
|
||||
log.info(`加载路径文件:${groceryFilePath}`);
|
||||
await pathingScript.runFile(groceryFilePath);
|
||||
log.info("路径文件执行完成");
|
||||
|
||||
log.info("执行稻妻杂货商的按键操作...");
|
||||
keyDown("w");
|
||||
await sleep(200);
|
||||
keyUp("w");
|
||||
await sleep(1000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
|
||||
await click(1300, 650); await sleep(1000);
|
||||
await click(1300, 650); await sleep(1000);
|
||||
await click(1600, 1020); await sleep(1000);
|
||||
|
||||
for (let i = 0; i < clickCount1; i++) {
|
||||
await click(1600, 1020); await sleep(1000);
|
||||
await click(1181, 600); await sleep(200);
|
||||
await click(1291, 600); await sleep(500);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
if (isCharcoalSelected) {
|
||||
log.info(`加载路径文件:${charcoalFilePath}`);
|
||||
await pathingScript.runFile(charcoalFilePath);
|
||||
log.info("路径文件执行完成");
|
||||
|
||||
log.info("执行稻妻志村屋店主的按键操作...");
|
||||
keyDown("w");
|
||||
await sleep(200);
|
||||
keyUp("w");
|
||||
await sleep(1000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1600, 540); await sleep(1000);
|
||||
await click(1600, 540); await sleep(1000);
|
||||
|
||||
for (let i = 0; i < 2; i++) {
|
||||
await click(1050, 520); await sleep(1000);
|
||||
await click(1600, 1020); await sleep(1000);
|
||||
await click(1181, 600); await sleep(200);
|
||||
await click(1291, 600); await sleep(500);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
if (isLiyueGrocerySelected) {
|
||||
log.info(`加载路径文件:${liyueGroceryFilePath}`);
|
||||
await pathingScript.runFile(liyueGroceryFilePath);
|
||||
log.info("路径文件执行完成");
|
||||
|
||||
log.info("执行璃月杂货商东升的按键操作...");
|
||||
keyDown("w");
|
||||
await sleep(200);
|
||||
keyUp("w");
|
||||
await sleep(1000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
|
||||
await click(1300, 650); await sleep(1000);
|
||||
await click(1300, 650); await sleep(1000);
|
||||
await click(1600, 1020); await sleep(1000);
|
||||
|
||||
for (let i = 0; i < clickCount2; i++) {
|
||||
await click(1600, 1020); await sleep(1000);
|
||||
await click(1181, 600); await sleep(200);
|
||||
await click(1291, 600); await sleep(500);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
if (isNataGrocerySelected) {
|
||||
log.info(`加载路径文件:${nataGroceryFilePath}`);
|
||||
await pathingScript.runFile(nataGroceryFilePath);
|
||||
log.info("路径文件执行完成");
|
||||
|
||||
log.info("执行纳塔杂货商布纳马的按键操作...");
|
||||
|
||||
keyDown("w");
|
||||
await sleep(4800);
|
||||
keyUp("w");
|
||||
keyDown("a");
|
||||
await sleep(780);
|
||||
keyUp("a");
|
||||
keyDown("w");
|
||||
await sleep(1200);
|
||||
keyUp("w");
|
||||
keyDown("a");
|
||||
await sleep(220);
|
||||
keyUp("a");
|
||||
await sleep(1000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1180, 290); await sleep(1000);
|
||||
await click(1180, 290); await sleep(1000);
|
||||
|
||||
for (let i = 0; i < clickCount4; i++) {
|
||||
await click(1600, 1020); await sleep(1000);
|
||||
await click(1181, 600); await sleep(200);
|
||||
await click(1291, 600); await sleep(500);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
if (isFengdanGrocerySelected) { // 新增枫丹杂货商的逻辑
|
||||
log.info(`加载路径文件:${fengdanGroceryFilePath}`);
|
||||
await pathingScript.runFile(fengdanGroceryFilePath);
|
||||
log.info("路径文件执行完成");
|
||||
|
||||
log.info("执行枫丹杂货商布希柯的按键操作...");
|
||||
keyDown("w");
|
||||
await sleep(200);
|
||||
keyUp("w");
|
||||
await sleep(1000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1150, 520); await sleep(1000);
|
||||
await click(1150, 520); await sleep(1000);
|
||||
|
||||
for (let i = 0; i < clickCount3; i++) {
|
||||
await click(1600, 1020); await sleep(1000);
|
||||
await click(1181, 600); await sleep(200);
|
||||
await click(1291, 600); await sleep(500);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
if (isCafeLuzheSelected) {
|
||||
log.info(`加载路径文件:${cafeLuzheFilePath}`);
|
||||
await pathingScript.runFile(cafeLuzheFilePath);
|
||||
log.info("路径文件执行完成");
|
||||
|
||||
log.info("执行咖啡厅露泽店主阿鲁埃的按键操作...");
|
||||
keyDown("w");
|
||||
await sleep(100);
|
||||
keyUp("w");
|
||||
await sleep(1000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1600, 540); await sleep(1000);
|
||||
await click(1600, 540); await sleep(1000);
|
||||
|
||||
await click(1050, 520); await sleep(1000);
|
||||
await click(1600, 1020); await sleep(1000);
|
||||
await click(1181, 600); await sleep(200);
|
||||
await click(1291, 600); await sleep(500);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
await click(1300, 780); await sleep(1000);
|
||||
}
|
||||
|
||||
// 最后点击退出按钮
|
||||
log.info("点击退出按钮...");
|
||||
await click(1845, 45); // 假设退出按钮的坐标是 (1845, 45)
|
||||
await sleep(1000);
|
||||
} catch (error) {
|
||||
log.error(`执行路径文件或操作时发生错误:${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
await AutoPath();
|
||||
})();
|
||||
13
archive/js/自动杂货商购买/manifest.json
Normal file
13
archive/js/自动杂货商购买/manifest.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "购买食材杂货",
|
||||
"version": "1.1",
|
||||
"description": "寻路杂货商,枫丹有咖啡豆、秃秃豆,璃月有豆腐、杏仁,稻妻有豆腐,顺路有点鱼蟹,这几个路线短快。用法:放入BetterGI中User中JsScript文件夹内。已屏蔽纳塔杂货商,解开选项即恢复。在纳塔杂货商购买时,移动速度不宜过快;在纳塔杂货商购买时,如撞到npc将无法正常寻路。",
|
||||
"authors": [
|
||||
{
|
||||
"name": "吉吉喵"
|
||||
}
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
52
archive/js/自动杂货商购买/settings.json
Normal file
52
archive/js/自动杂货商购买/settings.json
Normal file
@@ -0,0 +1,52 @@
|
||||
[
|
||||
{
|
||||
"name": "稻妻杂货商",
|
||||
"type": "checkbox",
|
||||
"label": "是否前往稻妻杂货商购买杂货"
|
||||
},
|
||||
{
|
||||
"name": "点击购买次数1",
|
||||
"type": "input-text",
|
||||
"label": "稻妻杂货商购买次数【默认11次】"
|
||||
},
|
||||
{
|
||||
"name": "璃月杂货商",
|
||||
"type": "checkbox",
|
||||
"label": "是否前往璃月杂货商购买杂货"
|
||||
},
|
||||
{
|
||||
"name": "点击购买次数2",
|
||||
"type": "input-text",
|
||||
"label": "璃月杂货商购买次数【默认12次】"
|
||||
},
|
||||
{
|
||||
"name": "枫丹杂货商",
|
||||
"type": "checkbox",
|
||||
"label": "是否前往枫丹杂货商购买杂货"
|
||||
},
|
||||
{
|
||||
"name": "点击购买次数3",
|
||||
"type": "input-text",
|
||||
"label": "枫丹杂货商购买次数【默认11次】"
|
||||
},
|
||||
{
|
||||
"name": "稻妻志村屋店主",
|
||||
"type": "checkbox",
|
||||
"label": "是否前往稻妻志村屋店主购买【鱼肉10个、螃蟹10个】"
|
||||
},
|
||||
{
|
||||
"name": "咖啡厅露泽店主",
|
||||
"type": "checkbox",
|
||||
"label": "是否前往枫丹咖啡厅露泽店主购买【咖啡豆100个】"
|
||||
}//,
|
||||
// {
|
||||
// "name": "纳塔杂货商",
|
||||
// "type": "checkbox",
|
||||
// "label": "纳塔杂货商"
|
||||
// },
|
||||
// {
|
||||
// "name": "点击购买次数4",
|
||||
// "type": "input-text",
|
||||
// "label": "默认循环点击9次"
|
||||
// }
|
||||
]
|
||||
Reference in New Issue
Block a user