fix(Scripts/Ulduar): Add emote for opening of the Ancient Gate of the Keepers (#18949)

add ancient gate emote
This commit is contained in:
Jelle Meeus
2024-05-26 18:11:50 +02:00
committed by GitHub
parent bb19dbf3c9
commit 29dda79638
3 changed files with 22 additions and 2 deletions
@@ -0,0 +1,4 @@
--
DELETE FROM `creature_text` WHERE (`CreatureID` = 22515) AND (`GroupID` = 19);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(22515, 19, 0, 'The Ancient Gate of the Keepers unlocks!', 41, 0, 100, 0, 0, 0, 34401, 0, 'Ulduar - The Ancient Gate of the Keepers unlocks!');
@@ -124,6 +124,9 @@ public:
ObjectGuid m_brannBronzebeardBaseCamp; ObjectGuid m_brannBronzebeardBaseCamp;
uint32 m_algalonTimer; uint32 m_algalonTimer;
// Ancient Gate
const Position triggerAncientGatePosition = { 1883.65f, 269.272f, 418.406f };
// Shared // Shared
EventMap _events; EventMap _events;
bool m_mimironTramUsed; bool m_mimironTramUsed;
@@ -667,9 +670,18 @@ public:
case TYPE_FREYA: case TYPE_FREYA:
m_auiEncounter[type] = data; m_auiEncounter[type] = data;
if (GetData(TYPE_MIMIRON) == DONE && GetData(TYPE_FREYA) == DONE && GetData(TYPE_HODIR) == DONE && GetData(TYPE_THORIM) == DONE) if (GetData(TYPE_MIMIRON) == DONE && GetData(TYPE_FREYA) == DONE && GetData(TYPE_HODIR) == DONE && GetData(TYPE_THORIM) == DONE)
{
scheduler.Schedule(45s, [this](TaskContext /*context*/)
{ {
if (GameObject* go = instance->GetGameObject(m_keepersgateGUID)) if (GameObject* go = instance->GetGameObject(m_keepersgateGUID))
{
go->RemoveGameObjectFlag(GO_FLAG_LOCKED); go->RemoveGameObjectFlag(GO_FLAG_LOCKED);
if (Creature* trigger = instance->SummonCreature(NPC_ANCIENT_GATE_WORLD_TRIGGER, triggerAncientGatePosition, nullptr, 10*IN_MILLISECONDS))
{
trigger->AI()->Talk(EMOTE_ANCIENT_GATE_UNLOCKED);
}
}
});
} }
if (type == TYPE_MIMIRON && data == IN_PROGRESS) // after reaching him without tram and starting the fight if (type == TYPE_MIMIRON && data == IN_PROGRESS) // after reaching him without tram and starting the fight
m_mimironTramUsed = true; m_mimironTramUsed = true;
@@ -290,6 +290,10 @@ enum UlduarMisc
// Freya, Hodir, Mimiron, Thorim // Freya, Hodir, Mimiron, Thorim
EVENT_KEEPER_TELEPORTED = 62941, EVENT_KEEPER_TELEPORTED = 62941,
// Ancient Gate
NPC_ANCIENT_GATE_WORLD_TRIGGER = 22515,
EMOTE_ANCIENT_GATE_UNLOCKED = 19,
// Yogg-Saron // Yogg-Saron
ACTION_SARA_UPDATE_SUMMON_KEEPERS = 4, ACTION_SARA_UPDATE_SUMMON_KEEPERS = 4,
KEEPER_FREYA = 0, KEEPER_FREYA = 0,