Files
bettergi-scripts-list/repo/js/公子周本/main.js
5117600049 99b7f6aff7 7个周本自动js脚本、自动购买狗粮改进、王狼自动刷取改进 (#432)
* manifest.json

* main.js

* Update main.js

* Update manifest.json

* Update main.js

* Add files via upload
2025-03-12 20:05:29 +08:00

62 lines
1.4 KiB
JavaScript

(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(10000);
})();