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);
|
||||
};
|
||||
|
||||
})();
|
||||
14
repo/js/使用料理/manifest.json
Normal file
14
repo/js/使用料理/manifest.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "料理使用",
|
||||
"version": "1.0",
|
||||
"description": "请输入料理名称常见部分的拼音小写,比如月亮派输入yueliang",
|
||||
"authors": [
|
||||
{
|
||||
"name": "柒叶子",
|
||||
"link": "https://github.com/511760049"
|
||||
}
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
7
repo/js/使用料理/settings.json
Normal file
7
repo/js/使用料理/settings.json
Normal file
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{
|
||||
"name": "foodName",
|
||||
"type": "input-text",
|
||||
"label": "请输入料理名称常见部分的拼音小写(月亮派,yueliang)"
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user