Instance/Halls of Reflection/Lich King event: Implement loot chest in heroic mode and rename chest variables.

This commit is contained in:
xjose93
2013-11-22 16:04:09 +01:00
parent 82d4ed5615
commit 86e0c7d856
2 changed files with 6 additions and 6 deletions

View File

@@ -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);

View File

@@ -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