JS脚本:周本2.2更新 (#899)

* 周本2.2更新

* Update repo/js/周本3-公子/main.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update repo/js/周本11-火龙/assets/tp.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
5117600049
2025-05-22 02:57:37 +08:00
committed by GitHub
parent d4d2fb5686
commit d4097a8ee4
38 changed files with 1713 additions and 365 deletions

View File

@@ -22,7 +22,7 @@
"x": -239.8662109375,
"y": 2235.255859375,
"type": "path",
"move_mode": "walk",
"move_mode": "dash",
"action": "",
"action_params": ""
},
@@ -31,7 +31,7 @@
"x": -243.6318359375,
"y": 2219.89599609375,
"type": "path",
"move_mode": "walk",
"move_mode": "dash",
"action": "",
"action_params": ""
},
@@ -40,7 +40,7 @@
"x": -250.318359375,
"y": 2200.3515625,
"type": "path",
"move_mode": "climb",
"move_mode": "fly",
"action": "",
"action_params": ""
},
@@ -49,7 +49,7 @@
"x": -263.7783203125,
"y": 2142.494140625,
"type": "path",
"move_mode": "walk",
"move_mode": "dash",
"action": "",
"action_params": ""
},
@@ -58,7 +58,7 @@
"x": -266.06640625,
"y": 2100.711669921875,
"type": "path",
"move_mode": "walk",
"move_mode": "dash",
"action": "",
"action_params": ""
},
@@ -85,7 +85,7 @@
"x": -280.3447265625,
"y": 1999.419921875,
"type": "target",
"move_mode": "walk",
"move_mode": "dash",
"action": "",
"action_params": ""
}

View File

@@ -14,7 +14,7 @@
"x": -264.44921875,
"y": 1991.2685546875,
"type": "path",
"move_mode": "walk",
"move_mode": "dash",
"action": "",
"action_params": ""
},
@@ -23,7 +23,7 @@
"x": -248.8486328125,
"y": 1984.78125,
"type": "target",
"move_mode": "walk",
"move_mode": "dash",
"action": "",
"action_params": ""
}

View File

@@ -1,7 +1,41 @@
(async function () {
//吃料理
async function eatFood() {
let foodName = settings.foodName ?? 0;
if(foodName){
const foodSum = foodName.split('-');
log.info("开始吃菜");
await sleep(1000);
keyPress("B");//打开背包
await sleep(2000);
click(863, 51);//选择食物
await sleep(1000);
for(let i = 0; i < foodSum.length; i++){
click(170, 1020);//筛选
await sleep(1000);
click(195, 1020);//重置
await sleep(1000);
click(110, 110);//输入名字
await sleep(1000);
inputText(foodSum[i]);
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 pathingScript.runFile("assets/前往狼王.json");
await sleep(1000);
await eatFood();//嗑药
keyPress("F");
await sleep(13000);
await dispatcher.runTask(new SoloTask("AutoFight"));

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "王狼自动刷取",
"version": "2.0",
"version": "2.2",
"description": "建议钟离、芙芙和优质后台(精通雷神、草神等),另外看情况更改自动战斗的超时时间",
"authors": [
{

View File

@@ -0,0 +1,7 @@
[
{
"name": "foodName",
"type": "input-text",
"label": "请输入料理名称,多食物用法(攻击-药剂-防御)"
}
]