7个周本自动js脚本、自动购买狗粮改进、王狼自动刷取改进 (#432)
* manifest.json * main.js * Update main.js * Update manifest.json * Update main.js * Add files via upload
This commit is contained in:
36
repo/js/使用料理/main.js
Normal file
36
repo/js/使用料理/main.js
Normal file
@@ -0,0 +1,36 @@
|
||||
(async function () {
|
||||
let foodName = settings.foodName ?? 0;
|
||||
if(foodName){
|
||||
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);
|
||||
//恢复类食物click(75, 265);
|
||||
//攻击类食物click(75, 350);
|
||||
//冒险类食物click(75, 435);
|
||||
//防御类食物click(75, 520);
|
||||
//药剂click(75, 610);
|
||||
for (const char of foodName) {
|
||||
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);
|
||||
};
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user