JS脚本:自动周本全部升级至2.0,以及打牌流程优化 (#674)
* 测试 * 你的提交信息 * 周本全2.0更新以及打牌更新 * Update manifest.json * Update manifest.json * Update manifest.json * Update manifest.json * Update manifest.json * Update manifest.json * Update manifest.json * Update manifest.json * Update manifest.json
This commit is contained in:
BIN
repo/js/周本10-仆人/assets/box.png
Normal file
BIN
repo/js/周本10-仆人/assets/box.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1018 B |
1
repo/js/周本10-仆人/assets/recover.json
Normal file
1
repo/js/周本10-仆人/assets/recover.json
Normal file
@@ -0,0 +1 @@
|
||||
{"info":{"name":"","type":""},"positions":[{"x":2297.6201171875,"y":-824.5869140625,"type":"teleport","move_mode":"walk"},{"x":2292.62109375,"y":-826.0419921875,"type":"path","move_mode":"walk"}]}
|
||||
22
repo/js/周本10-仆人/assets/tp.json
Normal file
22
repo/js/周本10-仆人/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": 4935.07861328125,
|
||||
"y": 4183.38818359375,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
},
|
||||
]
|
||||
}
|
||||
75
repo/js/周本10-仆人/assets/老版本.js
Normal file
75
repo/js/周本10-仆人/assets/老版本.js
Normal file
@@ -0,0 +1,75 @@
|
||||
(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("ESCAPE");//点击任意处
|
||||
await sleep(2000);
|
||||
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);
|
||||
keyDown("w");
|
||||
await sleep(7600);
|
||||
keyUp("w");
|
||||
await dispatcher.runTask(new SoloTask("AutoFight"));
|
||||
await sleep(30000);//等待柱子碎裂
|
||||
keyPress("1");
|
||||
await sleep(1000);//切回钟离
|
||||
|
||||
|
||||
keyDown("w");//居中大法
|
||||
keyDown("d");
|
||||
await sleep(12500);
|
||||
keyUp("d");
|
||||
await sleep(12500);
|
||||
keyUp("w");
|
||||
keyDown("s");
|
||||
await sleep(25000);
|
||||
keyUp("s");
|
||||
keyDown("w");
|
||||
await sleep(4300);
|
||||
keyUp("w");
|
||||
|
||||
await sleep(1000);
|
||||
keyPress("F");//领奖
|
||||
await sleep(1000);
|
||||
click(950, 750);//使用树脂
|
||||
await sleep(6000);
|
||||
click(975, 1000);//退出秘境
|
||||
await sleep(10000);
|
||||
})();
|
||||
Reference in New Issue
Block a user