JS脚本:兽肉好感添加两处通知,改用内置方法领取每日奖励;地图追踪:#549 挪位置 (#555)

* JS脚本:兽肉好感添加两处通知

* JS脚本:改用内置方法领取每日奖励

* 地图追踪:#549 挪位置
This commit is contained in:
起个名字好难的喵
2025-04-11 03:38:19 +08:00
committed by GitHub
parent 630c67a0c9
commit 3c002ea817
7 changed files with 14 additions and 10 deletions

View File

@@ -1,11 +1,6 @@
(async function () {
//传送到枫丹
log.info('开始传送到枫丹廷');
let Catherine_Egeria = `assets/AutoPath/冒险家协会_枫丹.json`;
await pathingScript.runFile(Catherine_Egeria);
log.info('开始每日委托或探索派遣,若无退出对话,则说明重复领取或未完成派遣');
// 自动每日或纪行
await keyPress("f");
await genshin.goToAdventurersGuild("枫丹");
await keyPress("F");
dispatcher.addTimer(new RealtimeTimer("AutoSkip", { "forceInteraction": true }));
})();

View File

@@ -1,12 +1,16 @@
{
"manifest_version": 1,
"name": "自动领取委托或派遣",
"version": "1.0",
"version": "1.1",
"description": "自动传送到枫丹并领取每日委托或探索派遣,两个都要请运行两次,建议搭配领取历练点使用",
"authors": [
{
"name": "yemaxul",
"link": "https://github.com/yemaxul"
},
{
"name": "起个名字好难的喵",
"links":"https://github.com/MisakaAldrich"
}
],
"main": "main.js"

View File

@@ -76,8 +76,9 @@
await genshin.tpToStatueOfTheSeven();
await AutoPath(`好感-张牙舞爪的恶党-触发位置(二净甸)`);
} else if (!await comparePosition()){ // 对比触发位置坐标,如果不符合预期坐标则重新执行触发线路
log.info(`导航至好感-张牙舞爪的恶党-触发位置(二净甸)`);
log.info(`导航至突发任务(张牙舞爪的恶党触发位置(二净甸)`);
await AutoPath(`好感-张牙舞爪的恶党-触发位置(二净甸)`);
notification.send(`已抵达突发任务(张牙舞爪的恶党)触发位置`);
}
if (await comparePosition()){
log.info(`当前次数:${i + 1}/${runTimes}`);
@@ -149,7 +150,8 @@
log.info("正在尝试切换至" + settings.partyName);
await genshin.switchParty(settings.partyName);
} catch {
log.warn("队伍切换失败,可能处于联机模式或其他不可切换状态");
log.error("队伍切换失败,可能处于联机模式或其他不可切换状态");
notification.error(`队伍切换失败,可能处于联机模式或其他不可切换状态`);
await genshin.returnMainUi();
}
} else {

View File

@@ -0,0 +1,3 @@
# 食材
## 非特产
### 稻妻