JS脚本:自动回能bug修复 (#797)

* 测试

* 你的提交信息

* 周本全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

* 打牌、周本bug 修复

* 新增两个周本,以及减少了了进入周本的时间

* Update settings.json

* 自动回能BUG修复
This commit is contained in:
5117600049
2025-05-13 00:30:53 +08:00
committed by GitHub
parent 11e6a938bd
commit bc863369ff
5 changed files with 12 additions and 11 deletions

View File

@@ -1 +0,0 @@
{"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"}]}

View File

@@ -0,0 +1 @@
{"info":{"name":"","type":""},"positions":[{"x":-1559.08,"y":2492.51,"type":"teleport","move_mode":"walk"}]}

View File

@@ -45,9 +45,9 @@ const autoNavigateToReward = async () => {
}
// 前进一小步
keyDown("w");
await sleep(500);
await sleep(400);
keyUp("w");
await sleep(100); // 等待角色移动稳定
await sleep(200); // 等待角色移动稳定
}
}
@@ -110,7 +110,9 @@ async function autoFightAndEndDetection() {
}
}
await genshin.tp(-1559.08,2492.51);//传送到副本
let recovery = settings.recovery ?? 0;
await genshin.tp(2297.6201171875,-824.5869140625);
await pathingScript.runFile("assets/tp.json");
await sleep(1000);
keyDown("w");
await sleep(3000);
@@ -130,8 +132,7 @@ await autoNavigateToReward();
keyPress("F");
await autoFightAndEndDetection();//一直战斗直到检测到结束
await sleep(1000);
await pathingScript.runFile("assets/recover.json");
await sleep(1000);
await genshin.tp(2297.6201171875,-824.5869140625);//传送到神像回血
log.info("能量充满,任务结束");
await sleep(1000);
})();

View File

@@ -1,8 +1,8 @@
{
"manifest_version": 1,
"name": "自动回能",
"version": "1.0",
"description": "没有什么特别的需求,但是队伍练度不要太不然30级的 QQ 人都打不过",
"version": "1.1",
"description": "没有什么特别的需求,但是队伍练度不要太离谱不然35级的 QQ 人都打不过",
"authors": [
{
"name": "柒叶子",