mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
fix(Scripts/Ulduar): Add emote for opening of the Ancient Gate of the Keepers (#18949)
add ancient gate emote
This commit is contained in:
@@ -124,6 +124,9 @@ public:
|
||||
ObjectGuid m_brannBronzebeardBaseCamp;
|
||||
uint32 m_algalonTimer;
|
||||
|
||||
// Ancient Gate
|
||||
const Position triggerAncientGatePosition = { 1883.65f, 269.272f, 418.406f };
|
||||
|
||||
// Shared
|
||||
EventMap _events;
|
||||
bool m_mimironTramUsed;
|
||||
@@ -668,8 +671,17 @@ public:
|
||||
m_auiEncounter[type] = data;
|
||||
if (GetData(TYPE_MIMIRON) == DONE && GetData(TYPE_FREYA) == DONE && GetData(TYPE_HODIR) == DONE && GetData(TYPE_THORIM) == DONE)
|
||||
{
|
||||
if (GameObject* go = instance->GetGameObject(m_keepersgateGUID))
|
||||
go->RemoveGameObjectFlag(GO_FLAG_LOCKED);
|
||||
scheduler.Schedule(45s, [this](TaskContext /*context*/)
|
||||
{
|
||||
if (GameObject* go = instance->GetGameObject(m_keepersgateGUID))
|
||||
{
|
||||
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
|
||||
m_mimironTramUsed = true;
|
||||
|
||||
@@ -290,6 +290,10 @@ enum UlduarMisc
|
||||
// Freya, Hodir, Mimiron, Thorim
|
||||
EVENT_KEEPER_TELEPORTED = 62941,
|
||||
|
||||
// Ancient Gate
|
||||
NPC_ANCIENT_GATE_WORLD_TRIGGER = 22515,
|
||||
EMOTE_ANCIENT_GATE_UNLOCKED = 19,
|
||||
|
||||
// Yogg-Saron
|
||||
ACTION_SARA_UPDATE_SUMMON_KEEPERS = 4,
|
||||
KEEPER_FREYA = 0,
|
||||
|
||||
Reference in New Issue
Block a user