mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Instance/Halls of Reflection/Lich King event: Implement loot chest in heroic mode and rename chest variables.
This commit is contained in:
@@ -1089,9 +1089,9 @@ class npc_jaina_or_sylvanas_escape_hor : public CreatureScript
|
||||
break;
|
||||
case EVENT_ESCAPE_27:
|
||||
if (_instance->GetData(DATA_TEAM_IN_INSTANCE) == ALLIANCE)
|
||||
me->SummonGameObject(GO_CAPTAIN_CHEST_1, ChestPos.GetPositionX(), ChestPos.GetPositionY(), ChestPos.GetPositionZ(), ChestPos.GetOrientation(), 0, 0, 0, 0, 720000);
|
||||
me->SummonGameObject(IsHeroic() ? GO_CAPTAIN_CHEST_HORDE_HEROIC : GO_CAPTAIN_CHEST_HORDE_NORMAL, ChestPos.GetPositionX(), ChestPos.GetPositionY(), ChestPos.GetPositionZ(), ChestPos.GetOrientation(), 0, 0, 0, 0, 720000);
|
||||
else
|
||||
me->SummonGameObject(GO_CAPTAIN_CHEST_3, ChestPos.GetPositionX(), ChestPos.GetPositionY(), ChestPos.GetPositionZ(), ChestPos.GetOrientation(), 0, 0, 0, 0, 720000);
|
||||
me->SummonGameObject(IsHeroic() ? GO_CAPTAIN_CHEST_ALLIANCE_HEROIC : GO_CAPTAIN_CHEST_ALLIANCE_NORMAL, ChestPos.GetPositionX(), ChestPos.GetPositionY(), ChestPos.GetPositionZ(), ChestPos.GetOrientation(), 0, 0, 0, 0, 720000);
|
||||
me->SummonGameObject(GO_PORTAL, FinalPortalPos.GetPositionX(), FinalPortalPos.GetPositionY(), FinalPortalPos.GetPositionZ(), FinalPortalPos.GetOrientation(), 0, 0, 0, 0, 720000);
|
||||
if (Creature* lichking = ObjectAccessor::GetCreature(*me, _lichkingGUID))
|
||||
lichking->DespawnOrUnsummon(1);
|
||||
|
||||
@@ -95,10 +95,10 @@ enum GameObjects
|
||||
GO_ORGRIM_HAMMER = 201599,
|
||||
GO_PORTAL = 202079,
|
||||
|
||||
GO_CAPTAIN_CHEST_1 = 202212, //3145
|
||||
GO_CAPTAIN_CHEST_2 = 201710, //30357
|
||||
GO_CAPTAIN_CHEST_3 = 202337, //3246
|
||||
GO_CAPTAIN_CHEST_4 = 202336, //3333
|
||||
GO_CAPTAIN_CHEST_HORDE_NORMAL = 202212, //3145
|
||||
GO_CAPTAIN_CHEST_ALLIANCE_NORMAL = 201710, //30357
|
||||
GO_CAPTAIN_CHEST_HORDE_HEROIC = 202337, //3246
|
||||
GO_CAPTAIN_CHEST_ALLIANCE_HEROIC = 202336, //3333
|
||||
};
|
||||
|
||||
enum HorWorldStates
|
||||
|
||||
Reference in New Issue
Block a user