Scripts/Halls of Reflection: Falric/Marwyn
This is a Work in Progress script by WishToDie based on the work found at http://www.trinitycore.org/f/topic/7192-patch-halls-of-reflections/
This commit is contained in:
1 parent
364f08fcbc
commit
1136d90bac
6 files changed
+1305
-623
No files matched your search
@@ -19,7 +19,7 @@
|
||||
#include "ScriptedCreature.h"
|
||||
#include "halls_of_reflection.h"
|
||||
|
||||
enum Yells
|
||||
enum Texts
|
||||
{
|
||||
SAY_AGGRO = 0,
|
||||
SAY_SLAY = 1,
|
||||
@@ -68,14 +68,14 @@ public:
|
||||
uiHopelessnessCount = 0;
|
||||
|
||||
if (instance)
|
||||
instance->SetData(DATA_FALRIC_EVENT, NOT_STARTED);
|
||||
instance->SetBossState(DATA_FALRIC_EVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
if (instance)
|
||||
instance->SetData(DATA_FALRIC_EVENT, IN_PROGRESS);
|
||||
instance->SetBossState(DATA_FALRIC_EVENT, IN_PROGRESS);
|
||||
|
||||
events.ScheduleEvent(EVENT_QUIVERING_STRIKE, 23000);
|
||||
events.ScheduleEvent(EVENT_IMPENDING_DESPAIR, 9000);
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
Talk(SAY_DEATH);
|
||||
|
||||
if (instance)
|
||||
instance->SetData(DATA_FALRIC_EVENT, DONE);
|
||||
instance->SetBossState(DATA_FALRIC_EVENT, DONE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "ScriptedCreature.h"
|
||||
#include "halls_of_reflection.h"
|
||||
|
||||
enum Yells
|
||||
enum Texts
|
||||
{
|
||||
SAY_AGGRO = 0,
|
||||
SAY_SLAY = 1,
|
||||
@@ -63,14 +63,14 @@ public:
|
||||
boss_horAI::Reset();
|
||||
|
||||
if (instance)
|
||||
instance->SetData(DATA_MARWYN_EVENT, NOT_STARTED);
|
||||
instance->SetBossState(DATA_MARWYN_EVENT, NOT_STARTED);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
if (instance)
|
||||
instance->SetData(DATA_MARWYN_EVENT, IN_PROGRESS);
|
||||
instance->SetBossState(DATA_MARWYN_EVENT, IN_PROGRESS);
|
||||
|
||||
events.ScheduleEvent(EVENT_OBLITERATE, 30000); /// @todo Check timer
|
||||
events.ScheduleEvent(EVENT_WELL_OF_CORRUPTION, 13000);
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
Talk(SAY_DEATH);
|
||||
|
||||
if (instance)
|
||||
instance->SetData(DATA_MARWYN_EVENT, DONE);
|
||||
instance->SetBossState(DATA_MARWYN_EVENT, DONE);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
|
||||
+561
-293
File diff suppressed because it is too large.
Load diff
@@ -18,49 +18,78 @@
|
||||
#ifndef DEF_HALLS_OF_REFLECTION_H
|
||||
#define DEF_HALLS_OF_REFLECTION_H
|
||||
|
||||
#define HoRScriptName "instance_halls_of_reflection"
|
||||
#define MAX_ENCOUNTER 3
|
||||
|
||||
/* Halls of Reflection encounters:
|
||||
0- Falric
|
||||
1- Marwyn
|
||||
2- The Lich King
|
||||
*/
|
||||
|
||||
enum Data
|
||||
{
|
||||
DATA_FALRIC_EVENT,
|
||||
DATA_MARWYN_EVENT,
|
||||
DATA_LICHKING_EVENT,
|
||||
DATA_WAVE_COUNT,
|
||||
DATA_TEAM_IN_INSTANCE,
|
||||
};
|
||||
DATA_FALRIC_EVENT = 0,
|
||||
DATA_MARWYN_EVENT = 1,
|
||||
DATA_LICHKING_EVENT = 2,
|
||||
DATA_INTRO_EVENT = 3,
|
||||
DATA_FROSWORN_EVENT = 4,
|
||||
|
||||
enum Data64
|
||||
{
|
||||
DATA_FALRIC,
|
||||
DATA_MARWYN,
|
||||
DATA_LICHKING,
|
||||
DATA_FROSTMOURNE,
|
||||
DATA_WAVE_COUNT = 5,
|
||||
DATA_TEAM_IN_INSTANCE = 6,
|
||||
DATA_FROSTMOURNE = 7,
|
||||
DATA_FROSTWORN_DOOR = 8,
|
||||
};
|
||||
|
||||
enum Creatures
|
||||
{
|
||||
NPC_JAINA_PART1 = 37221,
|
||||
NPC_SYLVANAS_PART1 = 37223,
|
||||
NPC_UTHER = 37225,
|
||||
NPC_LICH_KING_PART1 = 37226,
|
||||
NPC_LORALEN = 37779,
|
||||
NPC_KORELN = 37582,
|
||||
|
||||
NPC_FALRIC = 38112,
|
||||
NPC_MARWYN = 38113,
|
||||
NPC_LICH_KING_EVENT = 37226,
|
||||
NPC_LICH_KING_BOSS = 36954,
|
||||
|
||||
NPC_UTHER = 37225,
|
||||
NPC_JAINA_PART1 = 37221,
|
||||
NPC_JAINA_PART2 = 36955,
|
||||
NPC_SYLVANAS_PART1 = 37223,
|
||||
NPC_SYLVANAS_PART2 = 37554,
|
||||
|
||||
NPC_WAVE_MERCENARY = 38177,
|
||||
NPC_WAVE_FOOTMAN = 38173,
|
||||
NPC_WAVE_RIFLEMAN = 38176,
|
||||
NPC_WAVE_PRIEST = 38175,
|
||||
NPC_WAVE_MAGE = 38172,
|
||||
|
||||
NPC_FROSTWORN_GENERAL = 36723,
|
||||
NPC_REFLECTION = 37068, // 37107 for tank only?
|
||||
|
||||
NPC_JAINA_PART2 = 36955,
|
||||
NPC_SYLVANAS_PART2 = 37554,
|
||||
NPC_LICH_KING_PART2 = 36954,
|
||||
NPC_BARTLETT = 37182, // High Captain Justin Bartlett
|
||||
NPC_KORM = 37833, // Sky-Reaver Korm Blackscar
|
||||
NPC_ICE_WALL = 37014, // Ice Wall Target
|
||||
};
|
||||
|
||||
enum GameObjects
|
||||
{
|
||||
GO_FROSTMOURNE = 202302,
|
||||
GO_FROSTMOURNE_ALTAR = 202236,
|
||||
GO_FRONT_DOOR = 201976,
|
||||
GO_ARTHAS_DOOR = 197341,
|
||||
GO_ENTRANCE_DOOR = 201976,
|
||||
GO_FROSTWORN_DOOR = 197341,
|
||||
GO_ARTHAS_DOOR = 197342,
|
||||
//GO_ESCAPE_DOOR = 197343, // always open ?
|
||||
|
||||
GO_ICE_WALL = 201385,
|
||||
GO_CAVE = 201596,
|
||||
|
||||
GO_STAIRS_SKYBREAKER = 201709,
|
||||
GO_SKYBREAKER = 201598,
|
||||
GO_STAIRS_ORGRIM_HAMMER = 202211,
|
||||
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
|
||||
};
|
||||
|
||||
enum HorWorldStates
|
||||
@@ -75,6 +104,21 @@ enum Actions
|
||||
ACTION_ENTER_COMBAT,
|
||||
};
|
||||
|
||||
enum TrashGeneralSpells
|
||||
{
|
||||
// General spells
|
||||
SPELL_WELL_OF_SOULS = 72630, // cast when spawn(become visible)
|
||||
SPELL_SPIRIT_ACTIVATE = 72130, // cast when unit activates
|
||||
};
|
||||
|
||||
enum InstanceEvents
|
||||
{
|
||||
EVENT_SPAWN_WAVES = 1,
|
||||
EVENT_NEXT_WAVE = 2,
|
||||
EVENT_DO_WIPE = 3,
|
||||
EVENT_ADD_WAVE = 4,
|
||||
};
|
||||
|
||||
// Base class for FALRIC and MARWYN
|
||||
// handled the summonList and the notification events to/from the InstanceScript
|
||||
struct boss_horAI : ScriptedAI
|
||||
@@ -92,14 +136,10 @@ struct boss_horAI : ScriptedAI
|
||||
{
|
||||
events.Reset();
|
||||
me->SetVisible(false);
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE|UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC|UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
}
|
||||
|
||||
void DamageTaken(Unit* /*who*/, uint32 &uiDamage)
|
||||
{
|
||||
if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
|
||||
uiDamage = 0;
|
||||
if (instance->GetData(DATA_WAVE_COUNT) != NOT_STARTED)
|
||||
instance->ProcessEvent(0, EVENT_DO_WIPE);
|
||||
}
|
||||
|
||||
void DoAction(int32 actionID)
|
||||
@@ -107,11 +147,7 @@ struct boss_horAI : ScriptedAI
|
||||
switch (actionID)
|
||||
{
|
||||
case ACTION_ENTER_COMBAT: // called by InstanceScript when boss shall enter in combat.
|
||||
// Just in case. Should have been done by InstanceScript
|
||||
me->SetVisible(true);
|
||||
|
||||
// Reset flags
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE|UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC|UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
me->SetReactState(REACT_AGGRESSIVE);
|
||||
|
||||
if (Unit* unit = me->SelectNearestTarget())
|
||||
@@ -125,32 +161,6 @@ struct boss_horAI : ScriptedAI
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
summons.Summon(summoned);
|
||||
|
||||
if (Unit* target = summoned->SelectNearestTarget())
|
||||
{
|
||||
if (summoned->AI())
|
||||
summoned->AI()->AttackStart(target);
|
||||
else
|
||||
{
|
||||
summoned->GetMotionMaster()->MoveChase(target);
|
||||
summoned->Attack(target, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (summoned->AI())
|
||||
summoned->AI()->DoZoneInCombat();
|
||||
}
|
||||
|
||||
void SummonedCreatureDespawn(Creature* summoned)
|
||||
{
|
||||
summons.Despawn(summoned);
|
||||
if (summons.empty())
|
||||
{
|
||||
if (summoned->isAlive())
|
||||
instance->SetData(DATA_WAVE_COUNT, NOT_STARTED);
|
||||
else
|
||||
instance->SetData(DATA_WAVE_COUNT, SPECIAL);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+367
-260
@@ -19,84 +19,47 @@
|
||||
#include "ScriptedCreature.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "halls_of_reflection.h"
|
||||
#include "Player.h"
|
||||
|
||||
#define MAX_ENCOUNTER 3
|
||||
const Position JainaSpawnPos = {5236.659f, 1929.894f, 707.7781f, 0.8726646f}; // Jaina Spawn Position
|
||||
const Position SylvanasSpawnPos = {5236.667f, 1929.906f, 707.7781f, 0.8377581f}; // Sylvanas Spawn Position
|
||||
const Position GeneralSpawnPos = {5415.538f, 2117.842f, 707.7781f, 3.944444f}; // Frostsworn General
|
||||
|
||||
/* Halls of Reflection encounters:
|
||||
0- Falric
|
||||
1- Marwyn
|
||||
2- The Lich King
|
||||
*/
|
||||
|
||||
enum eEnum
|
||||
static Position SpawnPos[] =
|
||||
{
|
||||
ENCOUNTER_WAVE_MERCENARY = 6,
|
||||
ENCOUNTER_WAVE_FOOTMAN = 10,
|
||||
ENCOUNTER_WAVE_RIFLEMAN = 6,
|
||||
ENCOUNTER_WAVE_PRIEST = 6,
|
||||
ENCOUNTER_WAVE_MAGE = 6,
|
||||
};
|
||||
|
||||
enum Events
|
||||
{
|
||||
EVENT_NONE,
|
||||
EVENT_NEXT_WAVE,
|
||||
EVENT_START_LICH_KING,
|
||||
};
|
||||
|
||||
static Position PriestSpawnPos[ENCOUNTER_WAVE_PRIEST] =
|
||||
{
|
||||
{5277.74f, 2016.88f, 707.778f, 5.96903f},
|
||||
{5295.88f, 2040.34f, 707.778f, 5.07891f},
|
||||
{5320.37f, 1980.13f, 707.778f, 2.00713f},
|
||||
{5280.51f, 1997.84f, 707.778f, 0.296706f},
|
||||
{5302.45f, 2042.22f, 707.778f, 4.90438f},
|
||||
{5306.57f, 1977.47f, 707.778f, 1.50098f},
|
||||
};
|
||||
|
||||
static Position MageSpawnPos[ENCOUNTER_WAVE_MAGE] =
|
||||
{
|
||||
{5312.75f, 2037.12f, 707.778f, 4.59022f},
|
||||
{5309.58f, 2042.67f, 707.778f, 4.69494f},
|
||||
{5275.08f, 2008.72f, 707.778f, 6.21337f},
|
||||
{5279.65f, 2004.66f, 707.778f, 0.069813f},
|
||||
{5275.48f, 2001.14f, 707.778f, 0.174533f},
|
||||
{5316.7f, 2041.55f, 707.778f, 4.50295f},
|
||||
};
|
||||
|
||||
static Position MercenarySpawnPos[ENCOUNTER_WAVE_MERCENARY] =
|
||||
{
|
||||
{5302.25f, 1972.41f, 707.778f, 1.37881f},
|
||||
{5311.03f, 1972.23f, 707.778f, 1.64061f},
|
||||
{5277.36f, 1993.23f, 707.778f, 0.401426f},
|
||||
{5318.7f, 2036.11f, 707.778f, 4.2237f},
|
||||
{5335.72f, 1996.86f, 707.778f, 2.74017f},
|
||||
{5299.43f, 1979.01f, 707.778f, 1.23918f},
|
||||
};
|
||||
|
||||
static Position FootmenSpawnPos[ENCOUNTER_WAVE_FOOTMAN] =
|
||||
{
|
||||
{5306.06f, 2037, 707.778f, 4.81711f},
|
||||
{5344.15f, 2007.17f, 707.778f, 3.15905f},
|
||||
{5337.83f, 2010.06f, 707.778f, 3.22886f},
|
||||
{5343.29f, 1999.38f, 707.778f, 2.9147f},
|
||||
{5340.84f, 1992.46f, 707.778f, 2.75762f},
|
||||
{5325.07f, 1977.6f, 707.778f, 2.07694f},
|
||||
{5336.6f, 2017.28f, 707.778f, 3.47321f},
|
||||
{5313.82f, 1978.15f, 707.778f, 1.74533f},
|
||||
{5280.63f, 2012.16f, 707.778f, 6.05629f},
|
||||
{5322.96f, 2040.29f, 707.778f, 4.34587f},
|
||||
};
|
||||
|
||||
static Position RiflemanSpawnPos[ENCOUNTER_WAVE_RIFLEMAN] =
|
||||
{
|
||||
{5343.47f, 2015.95f, 707.778f, 3.49066f},
|
||||
{5337.86f, 2003.4f, 707.778f, 2.98451f},
|
||||
{5319.16f, 1974, 707.778f, 1.91986f},
|
||||
{5299.25f, 2036, 707.778f, 5.02655f},
|
||||
{5295.64f, 1973.76f, 707.778f, 1.18682f},
|
||||
{5282.9f, 2019.6f, 707.778f, 5.88176f},
|
||||
{5309.577f, 2042.668f, 707.7781f, 4.694936f},
|
||||
{5295.885f, 2040.342f, 707.7781f, 5.078908f},
|
||||
{5340.836f, 1992.458f, 707.7781f, 2.757620f},
|
||||
{5325.072f, 1977.597f, 707.7781f, 2.076942f},
|
||||
{5277.365f, 1993.229f, 707.7781f, 0.401426f},
|
||||
{5275.479f, 2001.135f, 707.7781f, 0.174533f},
|
||||
{5302.448f, 2042.222f, 707.7781f, 4.904375f},
|
||||
{5343.293f, 1999.384f, 707.7781f, 2.914700f},
|
||||
{5295.635f, 1973.757f, 707.7781f, 1.186824f},
|
||||
{5311.031f, 1972.229f, 707.7781f, 1.640610f},
|
||||
{5275.076f, 2008.724f, 707.7781f, 6.213372f},
|
||||
{5316.701f, 2041.550f, 707.7781f, 4.502949f},
|
||||
{5344.150f, 2007.168f, 707.7781f, 3.159046f},
|
||||
{5319.158f, 1973.998f, 707.7781f, 1.919862f},
|
||||
{5302.247f, 1972.415f, 707.7781f, 1.378810f},
|
||||
{5277.739f, 2016.882f, 707.7781f, 5.969026f},
|
||||
{5322.964f, 2040.288f, 707.7781f, 4.345870f},
|
||||
{5343.467f, 2015.951f, 707.7781f, 3.490659f},
|
||||
{5313.820f, 1978.146f, 707.7781f, 1.745329f},
|
||||
{5279.649f, 2004.656f, 707.7781f, 0.069814f},
|
||||
{5306.057f, 2037.002f, 707.7781f, 4.817109f},
|
||||
{5337.865f, 2003.403f, 707.7781f, 2.984513f},
|
||||
{5299.434f, 1979.009f, 707.7781f, 1.239184f},
|
||||
{5312.752f, 2037.122f, 707.7781f, 4.590216f},
|
||||
{5335.724f, 1996.859f, 707.7781f, 2.740167f},
|
||||
{5280.632f, 2012.156f, 707.7781f, 6.056293f},
|
||||
{5320.369f, 1980.125f, 707.7781f, 2.007129f},
|
||||
{5306.572f, 1977.474f, 707.7781f, 1.500983f},
|
||||
{5336.599f, 2017.278f, 707.7781f, 3.473205f},
|
||||
{5282.897f, 2019.597f, 707.7781f, 5.881760f},
|
||||
{5318.704f, 2036.108f, 707.7781f, 4.223697f},
|
||||
{5280.513f, 1997.842f, 707.7781f, 0.296706f},
|
||||
{5337.833f, 2010.057f, 707.7781f, 3.228859f},
|
||||
{5299.250f, 2035.998f, 707.7781f, 5.026548f},
|
||||
};
|
||||
|
||||
class instance_halls_of_reflection : public InstanceMapScript
|
||||
@@ -104,53 +67,37 @@ class instance_halls_of_reflection : public InstanceMapScript
|
||||
public:
|
||||
instance_halls_of_reflection() : InstanceMapScript("instance_halls_of_reflection", 668) { }
|
||||
|
||||
InstanceScript* GetInstanceScript(InstanceMap* map) const
|
||||
{
|
||||
return new instance_halls_of_reflection_InstanceMapScript(map);
|
||||
}
|
||||
|
||||
struct instance_halls_of_reflection_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_halls_of_reflection_InstanceMapScript(Map* map) : InstanceScript(map) {};
|
||||
|
||||
uint64 uiFalric;
|
||||
uint64 uiMarwyn;
|
||||
uint64 uiLichKingEvent;
|
||||
uint64 uiJainaPart1;
|
||||
uint64 uiSylvanasPart1;
|
||||
|
||||
uint64 uiFrostmourne;
|
||||
uint64 uiFrostmourneAltar;
|
||||
uint64 uiArthasDoor;
|
||||
uint64 uiFrontDoor;
|
||||
|
||||
uint32 uiEncounter[MAX_ENCOUNTER];
|
||||
uint32 uiTeamInInstance;
|
||||
uint32 uiWaveCount;
|
||||
bool bIntroDone;
|
||||
|
||||
EventMap events;
|
||||
instance_halls_of_reflection_InstanceMapScript(Map* map) : InstanceScript(map) {}
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
SetBossNumber(MAX_ENCOUNTER);
|
||||
events.Reset();
|
||||
_falricGUID = 0;
|
||||
_marwynGUID = 0;
|
||||
_jainaOrSylvanasPart1GUID = 0;
|
||||
_frostwornGeneralGUID = 0;
|
||||
_frostmourneGUID = 0;
|
||||
_entranceDoorGUID = 0;
|
||||
_frostwornDoorGUID = 0;
|
||||
_arthasDoorGUID = 0;
|
||||
_teamInInstance = 0;
|
||||
_waveCount = 0;
|
||||
_introEvent = NOT_STARTED;
|
||||
_frostwornGeneral = NOT_STARTED;
|
||||
|
||||
uiFalric = 0;
|
||||
uiMarwyn = 0;
|
||||
uiLichKingEvent = 0;
|
||||
uiJainaPart1 = 0;
|
||||
uiSylvanasPart1 = 0;
|
||||
for (uint8 i = 0; i < 8; i++)
|
||||
{
|
||||
waveGuidList[i].clear();
|
||||
}
|
||||
}
|
||||
|
||||
uiFrostmourne = 0;
|
||||
uiFrostmourneAltar = 0;
|
||||
uiArthasDoor = 0;
|
||||
uiFrontDoor = 0;
|
||||
uiTeamInInstance = 0;
|
||||
uiWaveCount = 0;
|
||||
bIntroDone = false;
|
||||
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
uiEncounter[i] = NOT_STARTED;
|
||||
void OnPlayerEnter(Player* player)
|
||||
{
|
||||
if (!_teamInInstance)
|
||||
_teamInInstance = player->GetTeam();
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
@@ -158,53 +105,57 @@ public:
|
||||
Map::PlayerList const &players = instance->GetPlayers();
|
||||
if (!players.isEmpty())
|
||||
if (Player* player = players.begin()->getSource())
|
||||
uiTeamInInstance = player->GetTeam();
|
||||
_teamInInstance = player->GetTeam();
|
||||
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case NPC_JAINA_PART1:
|
||||
case NPC_SYLVANAS_PART1:
|
||||
_jainaOrSylvanasPart1GUID = creature->GetGUID();
|
||||
break;
|
||||
case NPC_FALRIC:
|
||||
uiFalric = creature->GetGUID();
|
||||
_falricGUID = creature->GetGUID();
|
||||
break;
|
||||
case NPC_MARWYN:
|
||||
uiMarwyn = creature->GetGUID();
|
||||
_marwynGUID = creature->GetGUID();
|
||||
break;
|
||||
case NPC_LICH_KING_EVENT:
|
||||
uiLichKingEvent = creature->GetGUID();
|
||||
break;
|
||||
case NPC_JAINA_PART1:
|
||||
uiJainaPart1 = creature->GetGUID();
|
||||
break;
|
||||
case NPC_SYLVANAS_PART1:
|
||||
uiSylvanasPart1 = creature->GetGUID();
|
||||
case NPC_FROSTWORN_GENERAL:
|
||||
_frostwornGeneralGUID = creature->GetGUID();
|
||||
if (GetBossState(DATA_MARWYN_EVENT) == DONE)
|
||||
if (Creature* general = instance->GetCreature(_frostwornGeneralGUID))
|
||||
general->SetPhaseMask(1, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
/// @todo init state depending on encounters
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_FROSTMOURNE:
|
||||
uiFrostmourne = go->GetGUID();
|
||||
_frostmourneGUID = go->GetGUID();
|
||||
go->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND);
|
||||
HandleGameObject(0, false, go);
|
||||
if (GetData(DATA_INTRO_EVENT) == DONE)
|
||||
go->SetPhaseMask(2, true);
|
||||
break;
|
||||
case GO_FROSTMOURNE_ALTAR:
|
||||
uiFrostmourneAltar = go->GetGUID();
|
||||
case GO_ENTRANCE_DOOR:
|
||||
_entranceDoorGUID = go->GetGUID();
|
||||
go->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND);
|
||||
HandleGameObject(0, true, go);
|
||||
break;
|
||||
case GO_FRONT_DOOR:
|
||||
uiFrontDoor = go->GetGUID();
|
||||
case GO_FROSTWORN_DOOR:
|
||||
_frostwornDoorGUID = go->GetGUID();
|
||||
go->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND);
|
||||
HandleGameObject(0, true, go);
|
||||
if (GetBossState(DATA_MARWYN_EVENT) == DONE)
|
||||
HandleGameObject(0, true, go);
|
||||
else
|
||||
HandleGameObject(0, false, go);
|
||||
break;
|
||||
case GO_ARTHAS_DOOR:
|
||||
uiArthasDoor = go->GetGUID();
|
||||
_arthasDoorGUID = go->GetGUID();
|
||||
go->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND);
|
||||
|
||||
if (uiEncounter[1] == DONE)
|
||||
if (GetBossState(DATA_FROSWORN_EVENT) == DONE)
|
||||
HandleGameObject(0, true, go);
|
||||
else
|
||||
HandleGameObject(0, false, go);
|
||||
@@ -212,61 +163,108 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
bool SetBossState(uint32 type, EncounterState state)
|
||||
{
|
||||
if (type == DATA_WAVE_COUNT && data == SPECIAL)
|
||||
{
|
||||
bIntroDone = true;
|
||||
events.ScheduleEvent(EVENT_NEXT_WAVE, 10000);
|
||||
return;
|
||||
}
|
||||
|
||||
if (uiWaveCount && data == NOT_STARTED)
|
||||
DoWipe();
|
||||
if (!InstanceScript::SetBossState(type, state))
|
||||
return false;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case DATA_FALRIC_EVENT:
|
||||
uiEncounter[0] = data;
|
||||
if (data == DONE)
|
||||
if (state == DONE)
|
||||
events.ScheduleEvent(EVENT_NEXT_WAVE, 60000);
|
||||
break;
|
||||
case DATA_MARWYN_EVENT:
|
||||
uiEncounter[1] = data;
|
||||
if (data == DONE)
|
||||
HandleGameObject(uiArthasDoor, true);
|
||||
if (state == DONE)
|
||||
{
|
||||
HandleGameObject(_entranceDoorGUID, true);
|
||||
HandleGameObject(_frostwornDoorGUID, true);
|
||||
if (Creature* general = instance->GetCreature(_frostwornGeneralGUID))
|
||||
general->SetPhaseMask(1, true);
|
||||
}
|
||||
break;
|
||||
case DATA_LICHKING_EVENT:
|
||||
uiEncounter[2] = data;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (data == DONE)
|
||||
SaveToDB();
|
||||
return true;
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
if (_waveCount && data == NOT_STARTED)
|
||||
ProcessEvent(0, EVENT_DO_WIPE);
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case DATA_INTRO_EVENT:
|
||||
if (data == IN_PROGRESS)
|
||||
{
|
||||
if (!_introEvent)
|
||||
{
|
||||
if (_teamInInstance == ALLIANCE)
|
||||
instance->SummonCreature(NPC_JAINA_PART1, JainaSpawnPos);
|
||||
else
|
||||
instance->SummonCreature(NPC_SYLVANAS_PART1, SylvanasSpawnPos);
|
||||
}
|
||||
}
|
||||
_introEvent = data;
|
||||
break;
|
||||
case DATA_WAVE_COUNT:
|
||||
if (data == SPECIAL)
|
||||
events.ScheduleEvent(EVENT_NEXT_WAVE, 10000);
|
||||
break;
|
||||
case DATA_FROSWORN_EVENT:
|
||||
if (data == DONE)
|
||||
{
|
||||
HandleGameObject(_arthasDoorGUID, true);
|
||||
// spawn Jaina part 2
|
||||
// spawn LK part 2
|
||||
}
|
||||
_frostwornGeneral = data;
|
||||
break;
|
||||
}
|
||||
|
||||
SaveToDB();
|
||||
}
|
||||
|
||||
uint32 GetData(uint32 type) const
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case DATA_FALRIC_EVENT: return uiEncounter[0];
|
||||
case DATA_MARWYN_EVENT: return uiEncounter[1];
|
||||
case DATA_LICHKING_EVENT: return uiEncounter[2];
|
||||
case DATA_WAVE_COUNT: return uiWaveCount;
|
||||
case DATA_TEAM_IN_INSTANCE: return uiTeamInInstance;
|
||||
case DATA_WAVE_COUNT:
|
||||
return _waveCount;
|
||||
case DATA_TEAM_IN_INSTANCE:
|
||||
return _teamInInstance;
|
||||
case DATA_INTRO_EVENT:
|
||||
return _introEvent;
|
||||
case DATA_FROSWORN_EVENT:
|
||||
return _frostwornGeneral;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64 GetData64(uint32 identifier) const
|
||||
uint64 GetData64(uint32 type) const
|
||||
{
|
||||
switch (identifier)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_FALRIC: return uiFalric;
|
||||
case DATA_MARWYN: return uiMarwyn;
|
||||
case DATA_LICHKING: return uiLichKingEvent;
|
||||
case DATA_FROSTMOURNE: return uiFrostmourne;
|
||||
case DATA_FALRIC_EVENT:
|
||||
return _falricGUID;
|
||||
case DATA_MARWYN_EVENT:
|
||||
return _marwynGUID;
|
||||
case DATA_FROSWORN_EVENT:
|
||||
return _frostwornGeneralGUID;
|
||||
case DATA_FROSTWORN_DOOR:
|
||||
return _frostwornDoorGUID;
|
||||
case DATA_FROSTMOURNE:
|
||||
return _frostmourneGUID;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -277,7 +275,7 @@ public:
|
||||
OUT_SAVE_INST_DATA;
|
||||
|
||||
std::ostringstream saveStream;
|
||||
saveStream << "H R 1 " << uiEncounter[0] << ' ' << uiEncounter[1] << ' ' << uiEncounter[2];
|
||||
saveStream << "H R " << GetBossSaveData() << _introEvent << ' ' << _frostwornGeneral;
|
||||
|
||||
OUT_SAVE_INST_DATA_COMPLETE;
|
||||
return saveStream.str();
|
||||
@@ -294,115 +292,82 @@ public:
|
||||
OUT_LOAD_INST_DATA(in);
|
||||
|
||||
char dataHead1, dataHead2;
|
||||
uint16 version;
|
||||
uint16 data0, data1, data2;
|
||||
|
||||
std::istringstream loadStream(in);
|
||||
loadStream >> dataHead1 >> dataHead2 >> version >> data0 >> data1 >> data2;
|
||||
loadStream >> dataHead1 >> dataHead2;
|
||||
|
||||
if (dataHead1 == 'H' && dataHead2 == 'R')
|
||||
{
|
||||
uiEncounter[0] = data0;
|
||||
uiEncounter[1] = data1;
|
||||
uiEncounter[2] = data2;
|
||||
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
if (uiEncounter[i] == IN_PROGRESS)
|
||||
uiEncounter[i] = NOT_STARTED;
|
||||
{
|
||||
uint32 tmpState;
|
||||
loadStream >> tmpState;
|
||||
if (tmpState == IN_PROGRESS || tmpState > SPECIAL)
|
||||
tmpState = NOT_STARTED;
|
||||
|
||||
} else OUT_LOAD_INST_DATA_FAIL;
|
||||
SetBossState(i, EncounterState(tmpState));
|
||||
}
|
||||
|
||||
if (uiEncounter[0] == DONE || uiEncounter[1] == DONE)
|
||||
bIntroDone = true;
|
||||
uint32 temp = 0;
|
||||
loadStream >> temp;
|
||||
if (temp == DONE)
|
||||
SetData(DATA_INTRO_EVENT, DONE);
|
||||
else
|
||||
SetData(DATA_INTRO_EVENT, NOT_STARTED);
|
||||
|
||||
loadStream >> temp;
|
||||
if (temp == DONE)
|
||||
SetData(DATA_FROSWORN_EVENT, DONE);
|
||||
else
|
||||
SetData(DATA_FROSWORN_EVENT, NOT_STARTED);
|
||||
}
|
||||
else
|
||||
OUT_LOAD_INST_DATA_FAIL;
|
||||
|
||||
OUT_LOAD_INST_DATA_COMPLETE;
|
||||
}
|
||||
|
||||
void AddWave()
|
||||
// wave scheduling,checked when wave npcs die
|
||||
void OnUnitDeath(Unit* unit)
|
||||
{
|
||||
DoUpdateWorldState(WORLD_STATE_HOR, 1);
|
||||
DoUpdateWorldState(WORLD_STATE_HOR_WAVE_COUNT, uiWaveCount);
|
||||
Creature* creature = unit->ToCreature();
|
||||
if (!creature)
|
||||
return;
|
||||
|
||||
switch (uiWaveCount)
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
if (Creature* pFalric = instance->GetCreature(uiFalric))
|
||||
SpawnWave(pFalric);
|
||||
break;
|
||||
case 5:
|
||||
if (GetData(DATA_FALRIC_EVENT) == DONE)
|
||||
events.ScheduleEvent(EVENT_NEXT_WAVE, 10000);
|
||||
else if (Creature* pFalric = instance->GetCreature(uiFalric))
|
||||
if (pFalric->AI())
|
||||
pFalric->AI()->DoAction(ACTION_ENTER_COMBAT);
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
if (Creature* pMarwyn = instance->GetCreature(uiMarwyn))
|
||||
SpawnWave(pMarwyn);
|
||||
break;
|
||||
case 10:
|
||||
if (GetData(DATA_MARWYN_EVENT) != DONE) // wave should not have been started if DONE. Check anyway to avoid bug exploit!
|
||||
if (Creature* pMarwyn = instance->GetCreature(uiMarwyn))
|
||||
if (pMarwyn->AI())
|
||||
pMarwyn->AI()->DoAction(ACTION_ENTER_COMBAT);
|
||||
case NPC_WAVE_MERCENARY:
|
||||
case NPC_WAVE_FOOTMAN:
|
||||
case NPC_WAVE_RIFLEMAN:
|
||||
case NPC_WAVE_PRIEST:
|
||||
case NPC_WAVE_MAGE:
|
||||
uint32 deadNpcs = 0;
|
||||
if (_waveCount < 5)
|
||||
{
|
||||
for (std::set<uint64>::const_iterator itr = waveGuidList[_waveCount-1].begin(); itr != waveGuidList[_waveCount-1].end(); ++itr)
|
||||
if ((instance->GetCreature(*itr)->isDying()) || (instance->GetCreature(*itr)->isDead()))
|
||||
deadNpcs++;
|
||||
|
||||
// because the current npc returns isAlive when OnUnitDeath happens
|
||||
// we check if the number of dead npcs is equal to the list-1
|
||||
if (deadNpcs == waveGuidList[_waveCount-1].size() - 1)
|
||||
events.ScheduleEvent(EVENT_NEXT_WAVE, 10000);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (std::set<uint64>::const_iterator itr = waveGuidList[_waveCount-2].begin(); itr != waveGuidList[_waveCount-2].end(); ++itr)
|
||||
if ((instance->GetCreature(*itr)->isDying()) || (instance->GetCreature(*itr)->isDead()))
|
||||
deadNpcs++;
|
||||
|
||||
// because the current npc returns isAlive when OnUnitDeath happens
|
||||
// we check if the number of dead npcs is equal to the list-1
|
||||
if (deadNpcs == waveGuidList[_waveCount-2].size() - 1)
|
||||
events.ScheduleEvent(EVENT_NEXT_WAVE, 10000);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Wipe has been detected. Perform cleanup and reset.
|
||||
void DoWipe()
|
||||
{
|
||||
uiWaveCount = 0;
|
||||
events.Reset();
|
||||
DoUpdateWorldState(WORLD_STATE_HOR, 1);
|
||||
DoUpdateWorldState(WORLD_STATE_HOR_WAVE_COUNT, uiWaveCount);
|
||||
HandleGameObject(uiFrontDoor, true);
|
||||
|
||||
/// @todo
|
||||
// in case of wipe, the event is normally restarted by jumping into the center of the room.
|
||||
// As I can't find a trigger area there, just respawn Jaina/Sylvanas so the event may be restarted.
|
||||
if (Creature* pJaina = instance->GetCreature(uiJainaPart1))
|
||||
pJaina->Respawn();
|
||||
if (Creature* pSylvanas = instance->GetCreature(uiSylvanasPart1))
|
||||
pSylvanas->Respawn();
|
||||
|
||||
if (Creature* pFalric = instance->GetCreature(uiFalric))
|
||||
pFalric->SetVisible(false);
|
||||
if (Creature* pMarwyn = instance->GetCreature(uiMarwyn))
|
||||
pMarwyn->SetVisible(false);
|
||||
}
|
||||
|
||||
// spawn a wave on behalf of the summoner.
|
||||
void SpawnWave(Creature* summoner)
|
||||
{
|
||||
uint32 index;
|
||||
|
||||
summoner->SetVisible(true);
|
||||
|
||||
/// @todo do composition at random. # of spawn also depends on uiWaveCount
|
||||
// As of now, it is just one of each.
|
||||
index = urand(0, ENCOUNTER_WAVE_MERCENARY-1);
|
||||
summoner->SummonCreature(NPC_WAVE_MERCENARY, MercenarySpawnPos[index], TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 0);
|
||||
|
||||
index = urand(0, ENCOUNTER_WAVE_FOOTMAN-1);
|
||||
summoner->SummonCreature(NPC_WAVE_FOOTMAN, FootmenSpawnPos[index], TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 0);
|
||||
|
||||
index = urand(0, ENCOUNTER_WAVE_RIFLEMAN-1);
|
||||
summoner->SummonCreature(NPC_WAVE_RIFLEMAN, RiflemanSpawnPos[index], TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 0);
|
||||
|
||||
index = urand(0, ENCOUNTER_WAVE_PRIEST-1);
|
||||
summoner->SummonCreature(NPC_WAVE_PRIEST, PriestSpawnPos[index], TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 0);
|
||||
|
||||
index = urand(0, ENCOUNTER_WAVE_MAGE-1);
|
||||
summoner->SummonCreature(NPC_WAVE_MAGE, MageSpawnPos[index], TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 0);
|
||||
}
|
||||
|
||||
void Update(uint32 diff)
|
||||
{
|
||||
if (!instance->HavePlayers())
|
||||
@@ -413,16 +378,158 @@ public:
|
||||
switch (events.ExecuteEvent())
|
||||
{
|
||||
case EVENT_NEXT_WAVE:
|
||||
uiWaveCount++;
|
||||
AddWave();
|
||||
break;
|
||||
case EVENT_START_LICH_KING:
|
||||
/// @todo
|
||||
_waveCount++;
|
||||
ProcessEvent(0, EVENT_ADD_WAVE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessEvent(WorldObject* /*go*/, uint32 eventId)
|
||||
{
|
||||
switch (eventId)
|
||||
{
|
||||
// spawning all wave npcs at once
|
||||
case EVENT_SPAWN_WAVES:
|
||||
DoUpdateWorldState(WORLD_STATE_HOR, 1);
|
||||
DoUpdateWorldState(WORLD_STATE_HOR_WAVE_COUNT, _waveCount);
|
||||
{
|
||||
std::vector<uint32> possibilityList,tempList;
|
||||
uint32 posIndex = 0;
|
||||
|
||||
possibilityList.push_back(NPC_WAVE_MERCENARY);
|
||||
possibilityList.push_back(NPC_WAVE_FOOTMAN);
|
||||
possibilityList.push_back(NPC_WAVE_RIFLEMAN);
|
||||
possibilityList.push_back(NPC_WAVE_PRIEST);
|
||||
possibilityList.push_back(NPC_WAVE_MAGE);
|
||||
|
||||
// iterate each wave
|
||||
for (uint8 i = 0; i < 8; i++)
|
||||
{
|
||||
tempList = possibilityList;
|
||||
|
||||
uint64 guid = i <= 3 ? _falricGUID : _marwynGUID;
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
tempList.erase(tempList.begin() + urand(0, tempList.size() - 1));
|
||||
tempList.erase(tempList.begin() + urand(0, tempList.size() - 1));
|
||||
}
|
||||
else if (i == 1 || i == 2 || i == 4 || i == 5)
|
||||
tempList.erase(tempList.begin() + urand(0, tempList.size() - 1));
|
||||
|
||||
for (uint8 itr = 0; itr < tempList.size(); ++itr)
|
||||
{
|
||||
if (Creature* falric = instance->GetCreature(guid))
|
||||
if (Creature* temp = falric->SummonCreature(tempList[itr], SpawnPos[posIndex], TEMPSUMMON_DEAD_DESPAWN))
|
||||
waveGuidList[i].insert(temp->GetGUID());
|
||||
posIndex++;
|
||||
}
|
||||
|
||||
tempList.clear();
|
||||
}
|
||||
}
|
||||
SetData(DATA_WAVE_COUNT, SPECIAL);
|
||||
break;
|
||||
case EVENT_ADD_WAVE:
|
||||
DoUpdateWorldState(WORLD_STATE_HOR, 1);
|
||||
DoUpdateWorldState(WORLD_STATE_HOR_WAVE_COUNT, _waveCount);
|
||||
HandleGameObject(_entranceDoorGUID, false);
|
||||
|
||||
switch (_waveCount)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
for (std::set<uint64>::const_iterator itr = waveGuidList[_waveCount-1].begin(); itr != waveGuidList[_waveCount-1].end(); ++itr)
|
||||
{
|
||||
if (Creature* temp = instance->GetCreature(*itr))
|
||||
{
|
||||
temp->CastSpell(temp, SPELL_SPIRIT_ACTIVATE, true);
|
||||
temp->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC|UNIT_FLAG_IMMUNE_TO_NPC|UNIT_FLAG_NOT_SELECTABLE);
|
||||
temp->AI()->DoZoneInCombat();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (GetBossState(DATA_FALRIC_EVENT) == DONE)
|
||||
events.ScheduleEvent(EVENT_NEXT_WAVE, 10000);
|
||||
else
|
||||
if (Creature* falric = instance->GetCreature(_falricGUID))
|
||||
if (falric->AI())
|
||||
falric->AI()->DoAction(ACTION_ENTER_COMBAT);
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
for (std::set<uint64>::const_iterator itr = waveGuidList[_waveCount-2].begin(); itr != waveGuidList[_waveCount-2].end(); ++itr)
|
||||
{
|
||||
if (Creature* temp = instance->GetCreature(*itr))
|
||||
{
|
||||
temp->CastSpell(temp, SPELL_SPIRIT_ACTIVATE, true);
|
||||
temp->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC|UNIT_FLAG_IMMUNE_TO_NPC|UNIT_FLAG_NOT_SELECTABLE);
|
||||
temp->AI()->DoZoneInCombat();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
if (GetBossState(DATA_MARWYN_EVENT) != DONE) // wave should not have been started if DONE. Check anyway to avoid bug exploit!
|
||||
if (Creature* marwyn = instance->GetCreature(_marwynGUID))
|
||||
if (marwyn->AI())
|
||||
marwyn->AI()->DoAction(ACTION_ENTER_COMBAT);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case EVENT_DO_WIPE:
|
||||
//SetData(DATA_WAVE_COUNT, NOT_STARTED);
|
||||
_waveCount = 0;
|
||||
events.Reset();
|
||||
DoUpdateWorldState(WORLD_STATE_HOR, 1);
|
||||
DoUpdateWorldState(WORLD_STATE_HOR_WAVE_COUNT, _waveCount);
|
||||
HandleGameObject(_entranceDoorGUID, true);
|
||||
|
||||
if (Creature* falric = instance->GetCreature(_falricGUID))
|
||||
falric->SetVisible(false);
|
||||
if (Creature* marwyn = instance->GetCreature(_marwynGUID))
|
||||
marwyn->SetVisible(false);
|
||||
|
||||
//despawn wave npcs
|
||||
for (uint8 i = 0; i < 8; i++)
|
||||
{
|
||||
for (std::set<uint64>::const_iterator itr = waveGuidList[i].begin(); itr != waveGuidList[i].end(); ++itr)
|
||||
instance->GetCreature(*itr)->DespawnOrUnsummon();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
uint64 _falricGUID;
|
||||
uint64 _marwynGUID;
|
||||
uint64 _jainaOrSylvanasPart1GUID;
|
||||
uint64 _frostwornGeneralGUID;
|
||||
|
||||
uint64 _frostmourneGUID;
|
||||
uint64 _entranceDoorGUID;
|
||||
uint64 _frostwornDoorGUID;
|
||||
uint64 _arthasDoorGUID;
|
||||
uint64 _escapeDoorGUID;
|
||||
|
||||
uint32 _teamInInstance;
|
||||
uint32 _waveCount;
|
||||
uint32 _introEvent;
|
||||
uint32 _frostwornGeneral;
|
||||
|
||||
EventMap events;
|
||||
|
||||
std::set<uint64> waveGuidList[8];
|
||||
};
|
||||
|
||||
InstanceScript* GetInstanceScript(InstanceMap* map) const
|
||||
{
|
||||
return new instance_halls_of_reflection_InstanceMapScript(map);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_instance_halls_of_reflection()
|
||||
|
||||
Reference in new issue
Block a user