JS脚本归档 (#599)
This commit is contained in:
22
repo/js/周本-公子/assets/recover.json
Normal file
22
repo/js/周本-公子/assets/recover.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "未命名路径",
|
||||
"type": "collect",
|
||||
"author": "柒叶子",
|
||||
"version": "1.0",
|
||||
"description": "前往周本",
|
||||
"bgiVersion": "0.35.1"
|
||||
},
|
||||
"positions": [
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"x":1468.0986328125,
|
||||
"y":1998.05859375 ,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
},
|
||||
]
|
||||
}
|
||||
22
repo/js/周本-公子/assets/tp.json
Normal file
22
repo/js/周本-公子/assets/tp.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "未命名路径",
|
||||
"type": "collect",
|
||||
"author": "柒叶子",
|
||||
"version": "1.0",
|
||||
"description": "前往周本",
|
||||
"bgiVersion": "0.35.1"
|
||||
},
|
||||
"positions": [
|
||||
|
||||
{
|
||||
"id": 1,
|
||||
"x": 254.453125,
|
||||
"y": -904.5771484375,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
},
|
||||
]
|
||||
}
|
||||
67
repo/js/周本-公子/main.js
Normal file
67
repo/js/周本-公子/main.js
Normal file
@@ -0,0 +1,67 @@
|
||||
(async function () {
|
||||
const food = 'yueliang';
|
||||
await sleep(1000);
|
||||
await pathingScript.runFile("assets/recover.json");
|
||||
await sleep(5000);
|
||||
await pathingScript.runFile("assets/tp.json");
|
||||
await sleep(1000);
|
||||
keyDown("w");
|
||||
await sleep(2000);
|
||||
keyUp("w");
|
||||
await sleep(1000);
|
||||
keyPress("F");
|
||||
await sleep(2000);
|
||||
click(1725, 1020);//单人挑战
|
||||
await sleep(2000);
|
||||
click(1725, 1020);//开始挑战
|
||||
await sleep(15000);
|
||||
keyPress("1");
|
||||
await sleep(1000);//切回钟离
|
||||
keyPress("B");//打开背包
|
||||
await sleep(2000);
|
||||
click(863, 51);//选择食物
|
||||
await sleep(1000);
|
||||
click(170, 1020);//筛选
|
||||
await sleep(1000);
|
||||
click(195, 1020);//重置
|
||||
await sleep(1000);
|
||||
click(110, 110);//输入名字
|
||||
await sleep(1000);
|
||||
for (const char of food) {
|
||||
keyPress(char);
|
||||
await sleep(500);
|
||||
}
|
||||
keyPress("SPACE");
|
||||
await sleep(500);
|
||||
click(490, 1020);//确认筛选
|
||||
await sleep(1000);
|
||||
click(180, 180);//选择第一个食物
|
||||
await sleep(1000);
|
||||
click(1690, 1015);//使用
|
||||
await sleep(1000);
|
||||
keyPress("ESCAPE");
|
||||
await sleep(1500);
|
||||
|
||||
await dispatcher.runTask(new SoloTask("AutoFight"));
|
||||
keyPress("1");
|
||||
await sleep(1000);//切回钟离
|
||||
keyDown("s");
|
||||
await sleep(2400);//再次校准位置
|
||||
keyUp("s");
|
||||
keyDown("w");
|
||||
await sleep(2400);
|
||||
keyUp("w");
|
||||
await sleep(1000);
|
||||
keyPress("F");//领奖
|
||||
await sleep(1000);
|
||||
click(950, 750);//使用树脂
|
||||
await sleep(6000);
|
||||
click(975, 1000);//退出秘境
|
||||
await sleep(1000);
|
||||
keyPress("ESCAPE");//退出秘境:避免挑战失败无法退出
|
||||
await sleep(500);
|
||||
click(950, 750);//点击确认:避免挑战失败无法退出
|
||||
await sleep(3500);
|
||||
keyPress("ESCAPE");//退出秘境:避免挑战失败无法退出
|
||||
await sleep(7500);
|
||||
})();
|
||||
14
repo/js/周本-公子/manifest.json
Normal file
14
repo/js/周本-公子/manifest.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "黄金屋自动刷取",
|
||||
"version": "1.1",
|
||||
"description": "建议队伍:钟离(必须一号位)、芙芙、精通雷神、6命芭芭拉。脚本需要在调度器设置里开启路径追踪行走配置,选择切换的队伍,打开允许在JsScript中使用,打开战斗配置,选择战斗策略,推荐使用战斗脚本(周本队后退版),关闭战斗结束拾取物品和万叶拾取,最后根据队伍大致表现,填入合适的战斗超时时间,(周本队后退版)建议180s,此外周本压力较大,会强制使用美味的月亮派,请提前准备",
|
||||
"authors": [
|
||||
{
|
||||
"name": "柒叶子",
|
||||
"link": "https://github.com/511760049"
|
||||
}
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
8
repo/js/周本-公子/周本队后退版.txt
Normal file
8
repo/js/周本-公子/周本队后退版.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
钟离 s(2.4),e(hold)
|
||||
雷电将军 e
|
||||
芭芭拉 e
|
||||
钟离 s(2.4),e(hold)
|
||||
芙宁娜 q,e
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user