Exiles Reach: script Captain Garrick's summon after the ride + questgiver flag

The phase-15017 regular spawn wasn't reliably showing Garrick (245394) for
the player. Summon him on the ride quest reward in front of Wrathion with
the QUESTGIVER npcflag set, so Stocking Up (55194) / Repair Yourself (85678)
are offered. Also set npcflag=2 on 245394 in the DB (it had 0, so it never
presented as a quest giver).
This commit is contained in:
devbox
2026-08-24 17:25:40 +10:00
parent a4b6ec1100
commit 988874e403
3 changed files with 17 additions and 0 deletions
@@ -0,0 +1,2 @@
-- Exiles Reach: Captain Garrick (245394) must be a quest-giver (npcflag bit 0x2)
UPDATE `creature_template` SET `npcflag` = `npcflag` | 2 WHERE `entry` = 245394;
@@ -229,6 +229,19 @@ public:
if (questId == QUEST_RIDE_OF_THE_SCIENTIFICALLY_ENHANCED_BOAR || questId == QUEST_H_THE_REDEATHER) if (questId == QUEST_RIDE_OF_THE_SCIENTIFICALLY_ENHANCED_BOAR || questId == QUEST_H_THE_REDEATHER)
if (player->GetQuestStatus(questId) == QUEST_STATUS_REWARDED) if (player->GetQuestStatus(questId) == QUEST_STATUS_REWARDED)
s_mowedDownUndead.clear(); s_mowedDownUndead.clear();
// After the ride is handed in, Captain Garrick appears in front of
// Wrathion to grant the next quests (Stocking Up / Repair Yourself).
if (questId == QUEST_RIDE_OF_THE_SCIENTIFICALLY_ENHANCED_BOAR && player->GetQuestStatus(questId) == QUEST_STATUS_REWARDED)
if (!player->FindNearestCreature(NPC_OGRE_RUINS_POST_TORGOK_GARRICK, 50.0f, true))
if (Creature* wrathion = player->FindNearestCreature(NPC_OGRE_RUINS_WRATHION, 100.0f, true))
{
Position pos = wrathion->GetPosition();
pos.RelocateOffset({ 4.0f, 0.0f });
if (Creature* garrick = player->SummonCreature(NPC_OGRE_RUINS_POST_TORGOK_GARRICK, pos,
TEMPSUMMON_MANUAL_DESPAWN, 0s, 0U, 0U, player->GetGUID()))
garrick->SetNpcFlag(UNIT_NPC_FLAG_QUESTGIVER);
}
} }
}; };
@@ -349,6 +349,8 @@ enum ExileReachHelpers
NPC_OGRE_RUINS_TORGOK_FIGHTER_H = 167145, NPC_OGRE_RUINS_TORGOK_FIGHTER_H = 167145,
NPC_OGRE_RUINS_CADAVER_KILL_CREDIT = 165150, NPC_OGRE_RUINS_CADAVER_KILL_CREDIT = 165150,
NPC_OGRE_RUINS_TORGOK = 162817, NPC_OGRE_RUINS_TORGOK = 162817,
NPC_OGRE_RUINS_WRATHION = 156799,
NPC_OGRE_RUINS_POST_TORGOK_GARRICK = 245394,
NPC_OGRE_RUINS_ALARIA = 156803, NPC_OGRE_RUINS_ALARIA = 156803,
NPC_OGRE_RUINS_BJORN = 154300, NPC_OGRE_RUINS_BJORN = 154300,
NPC_OGRE_RUINS_KEELA_BEFORE_HARPY_ROOST = 156804, NPC_OGRE_RUINS_KEELA_BEFORE_HARPY_ROOST = 156804,