JS 使用历练点完成每日委托 支持到冒险家协会_挪德卡莱領取领取奖励 (#2382)

* 增加選項 冒险家协会_挪德卡莱

* JS 使用历练点完成每日委托 支持到冒险家协会_挪德卡莱領取领取奖励

支持到冒险家协会_挪德卡莱領取领取奖励

* Add files via upload

* 上傳回正確的路徑
This commit is contained in:
this-Fish
2025-11-21 09:34:04 +08:00
committed by GitHub
parent 973cdd0f0d
commit 9d6a4f1cda
4 changed files with 52 additions and 11 deletions

View File

@@ -0,0 +1,40 @@
{
"info": {
"authors": [
{
"links": "",
"name": "蜜柑魚"
}
],
"bgi_version": "0.45.0",
"description": "",
"enable_monster_loot_split": false,
"last_modified_time": 1762368339000,
"map_match_method": "",
"map_name": "Teyvat",
"name": "冒险家协会_挪德卡莱",
"tags": [],
"type": "collect",
"version": "1.0"
},
"positions": [
{
"action": "",
"action_params": "",
"id": 1,
"move_mode": "walk",
"type": "teleport",
"x": 9458.0341796875,
"y": 1660.66455078125
},
{
"action": "combat_script",
"action_params": "wait(0.5)",
"id": 2,
"move_mode": "walk",
"type": "target",
"x": 9461.4208984375,
"y": 1663.5849609375
}
]
}

View File

@@ -34,7 +34,7 @@ const settingsNotDoublePoints = settings.notDoublePoints || false;
const settingsAppointFriendName = settings.appointFriendName ? settings.appointFriendName.trim() : "";
// 读取冒险家协会的指定地区
const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用枫丹兜底
const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用蒙德兜底
/**
* @returns {Promise<void>}
@@ -325,9 +325,9 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
} else {
for (let i = 0; i < 10; i++) {
const ro8 = captureGameRegion();
let paimonMenu = ro8.Find(paimonMenuRo);
let CoOpMode = ro8.Find(CoOpModeRo);
let MyFriends = ro8.Find(MyFriendsRo);
let paimonMenu = ro8.find(paimonMenuRo);
let CoOpMode = ro8.find(CoOpModeRo);
let MyFriends = ro8.find(MyFriendsRo);
ro8.dispose();
if (CoOpMode.isExist() || MyFriends.isExist()) {
log.info("继续申请");
@@ -337,7 +337,7 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
await click(960, 540);
for (let i = 0; i < 30; i++) {
const ro9 = captureGameRegion();
let paimonMenu = ro9.Find(paimonMenuRo);
let paimonMenu = ro9.find(paimonMenuRo);
ro9.dispose();
if (paimonMenu.isExist()) {
break;
@@ -423,7 +423,7 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
log.info("等待界面响应");
for (let i = 0; i < 30; i++) {
const ro20 = captureGameRegion();
let res = ro20.Find(paimonMenuRo);
let res = ro20.find(paimonMenuRo);
ro20.dispose();
if (res.isEmpty()) {
await click(960, 540);
@@ -502,7 +502,7 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
await sleep(2000);
const ro27 = captureGameRegion();
let AdventurerHandbookButton = ro27.Find(AdventurerHandbookButtonRo);
let AdventurerHandbookButton = ro27.find(AdventurerHandbookButtonRo);
ro27.dispose();
if (AdventurerHandbookButton.isExist()) {
log.info("识别到冒险之证按钮");
@@ -526,7 +526,7 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
await sleep(2000)
const ro28 = captureGameRegion();
let EncounterPointsStageRewardsButton = ro28.Find(Cannot_receive);
let EncounterPointsStageRewardsButton = ro28.find(Cannot_receive);
ro28.dispose();
if (EncounterPointsStageRewardsButton.isExist()) {
log.info("识别到 完成所有任務");
@@ -569,7 +569,7 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
log.info("等待界面响应");
for (let i = 0; i < 10; i++) {
const ro26 = captureGameRegion();
let res = ro26.Find(paimonMenuRo);
let res = ro26.find(paimonMenuRo);
ro26.dispose();
if (res.isEmpty()) {
await click(960, 540);

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "使用历练点完成每日委托",
"version": "2.0.1",
"version": "2.0.2",
"bgi_version": "0.44.1",
"description": "使用历练点完成每日委托:\n支持进入好友尘歌壶使用历练点领取双倍好感(队伍中小于等于两人时,能使队伍中两人获得双倍好感)\n支持进入好友尘歌壶后让指定位置角色离队\n能指定星期几执行星期几不执行\n前往冒险家协会领取奖励",
"authors": [

View File

@@ -59,7 +59,8 @@
"蒙德",
"璃月",
"稻妻",
"枫丹"
"枫丹",
"挪德卡莱"
],
"default": "蒙德"
},