|
| instance_violet_hold_InstanceMapScript (Map *pMap) |
|
void | Initialize () override |
|
bool | IsEncounterInProgress () const override |
|
void | OnCreatureCreate (Creature *creature) override |
|
void | OnGameObjectCreate (GameObject *go) override |
|
void | SetData (uint32 type, uint32 data) override |
|
void | SetGuidData (uint32 type, ObjectGuid data) override |
|
uint32 | GetData (uint32 type) const override |
|
ObjectGuid | GetGuidData (uint32 identifier) const override |
|
void | StartBossEncounter (uint8 uiBoss) |
|
void | Update (uint32 diff) override |
|
void | OnPlayerEnter (Player *plr) override |
|
bool | DoNeedCleanup (bool enter) |
|
void | InstanceCleanup () |
|
bool | CheckAchievementCriteriaMeet (uint32 criteria_id, Player const *, Unit const *, uint32) override |
|
void | ReadSaveDataMore (std::istringstream &data) override |
|
void | WriteSaveDataMore (std::ostringstream &data) override |
|
| InstanceScript (Map *map) |
|
| ~InstanceScript () override |
|
virtual void | Initialize () |
|
virtual void | Load (char const *data) |
|
virtual void | CreatureLooted (Creature *, LootType) |
|
virtual std::string | GetSaveData () |
|
void | SaveToDB () |
|
virtual void | Update (uint32) |
|
virtual bool | IsEncounterInProgress () const |
|
void | OnCreatureCreate (Creature *creature) override |
|
void | OnCreatureRemove (Creature *creature) override |
|
void | OnGameObjectCreate (GameObject *go) override |
|
void | OnGameObjectRemove (GameObject *go) override |
|
ObjectGuid | GetObjectGuid (uint32 type) const |
|
ObjectGuid | GetGuidData (uint32 type) const override |
|
Creature * | GetCreature (uint32 type) |
|
GameObject * | GetGameObject (uint32 type) |
|
virtual void | OnPlayerEnter (Player *) |
|
virtual void | OnPlayerAreaUpdate (Player *, uint32, uint32) |
|
virtual void | OnPlayerInWaterStateUpdate (Player *, bool) |
|
void | HandleGameObject (ObjectGuid guid, bool open, GameObject *go=nullptr) |
|
void | DoUseDoorOrButton (ObjectGuid guid, uint32 withRestoreTime=0, bool useAlternativeState=false) |
|
void | DoRespawnGameObject (ObjectGuid guid, uint32 timeToDespawn=MINUTE) |
|
void | DoRespawnCreature (ObjectGuid guid, bool force=false) |
|
void | DoRespawnCreature (uint32 type, bool force=false) |
|
void | DoUpdateWorldState (uint32 worldstateId, uint32 worldstateValue) |
|
void | DoSendNotifyToInstance (char const *format,...) |
|
void | DoUpdateAchievementCriteria (AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, Unit *unit=nullptr) |
|
void | DoStartTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry) |
|
void | DoStopTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry) |
|
void | DoRemoveAurasDueToSpellOnPlayers (uint32 spell) |
|
void | DoCastSpellOnPlayers (uint32 spell) |
|
void | DoCastSpellOnPlayer (Player *player, uint32 spell, bool includePets, bool includeControlled) |
|
bool | ServerAllowsTwoSideGroups () |
|
virtual bool | SetBossState (uint32 id, EncounterState state) |
|
EncounterState | GetBossState (uint32 id) const |
|
CreatureBoundary const * | GetBossBoundary (uint32 id) const |
|
BossInfo const * | GetBossInfo (uint32 id) const |
|
uint32 | GetPersistentData (uint32 index) const |
|
void | StorePersistentData (uint32 index, uint32 data) |
|
virtual bool | CheckAchievementCriteriaMeet (uint32, Player const *, Unit const *=nullptr, uint32=0) |
|
virtual bool | CheckRequiredBosses (uint32, Player const *=nullptr) const |
|
void | SetCompletedEncountersMask (uint32 newMask, bool save) |
|
uint32 | GetCompletedEncounterMask () const |
|
void | SendEncounterUnit (uint32 type, Unit *unit=nullptr, uint8 param1=0, uint8 param2=0) |
|
virtual void | FillInitialWorldStates (WorldPacket &) |
|
uint32 | GetEncounterCount () const |
|
void | MarkAreaTriggerDone (uint32 id) |
|
void | ResetAreaTriggerDone (uint32 id) |
|
bool | IsAreaTriggerDone (uint32 id) const |
|
virtual void | DoAction (int32) |
|
void | DoForAllMinions (uint32 id, std::function< void(Creature *)> exec) |
|
void | StoreGameObjectState (ObjectGuid::LowType spawnId, uint8 state) |
|
uint8 | GetStoredGameObjectState (ObjectGuid::LowType spawnId) const |
|
void | LoadInstanceSavedGameobjectStateData () |
|
bool | IsBossDone (uint32 bossId) const |
|
bool | AllBossesDone () const |
|
bool | AllBossesDone (std::initializer_list< uint32 > bossIds) const |
|
| ZoneScript () |
|
virtual | ~ZoneScript () |
|
virtual uint32 | GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data) |
|
virtual uint32 | GetGameObjectEntry (ObjectGuid::LowType, uint32 entry) |
|
virtual void | OnCreatureCreate (Creature *) |
|
virtual void | OnCreatureRemove (Creature *) |
|
virtual void | OnGameObjectCreate (GameObject *) |
|
virtual void | OnGameObjectRemove (GameObject *) |
|
virtual void | OnUnitDeath (Unit *) |
|
virtual void | OnCreatureEvade (Creature *) |
|
virtual ObjectGuid | GetGuidData (uint32) const |
|
virtual void | SetGuidData (uint32, ObjectGuid) |
|
virtual uint64 | GetData64 (uint32) const |
|
virtual void | SetData64 (uint32, uint64) |
|
virtual uint32 | GetData (uint32) const |
|
virtual void | SetData (uint32, uint32) |
|
virtual void | ProcessEvent (WorldObject *, uint32) |
|
void instance_violet_hold::instance_violet_hold_InstanceMapScript::InstanceCleanup |
( |
| ) |
|
|
inline |
556 {
558 return;
560
561
564 {
567 }
568
569
571 for (
uint8 i = 0; i < 4; ++i)
573 {
574 c->DespawnOrUnsummon();
575 c->SetRespawnTime(3);
577 c->SetVisible(false);
578 else
579 c->SetVisible(true);
581 }
582
583
585 c->DespawnOrUnsummon();
587
588
591 c->DespawnOrUnsummon();
592
594
595
597 c->RemoveAllAuras();
598
599
601
603 {
604
613
614
625 }
626
627
637 }
@ WORLD_STATE_VH_SHOW
Definition: violet_hold.h:94
#define MAX_ENCOUNTER
Definition: violet_hold.h:21
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1607
@ DONE
Definition: InstanceScript.h:60
@ REACT_AGGRESSIVE
Definition: Unit.h:550
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
Definition: Creature.h:43
Definition: GameObject.h:120
Definition: ObjectGuid.h:118
void Clear()
Definition: ObjectGuid.h:138
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition: InstanceScript.cpp:113
void DoUpdateWorldState(uint32 worldstateId, uint32 worldstateValue)
Definition: InstanceScript.cpp:603
GameObject * GetGameObject(ObjectGuid const guid)
Definition: Map.cpp:3322
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3317
ObjectGuid GO_MoraggCellGUID
Definition: instance_violet_hold.cpp:61
ObjectGuid NPC_MoraggGUID
Definition: instance_violet_hold.cpp:76
ObjectGuid GO_ErekemLeftGuardCellGUID
Definition: instance_violet_hold.cpp:64
ObjectGuid GO_XevozzCellGUID
Definition: instance_violet_hold.cpp:67
ObjectGuid NPC_SinclariGUID
Definition: instance_violet_hold.cpp:71
ObjectGuid NPC_ZuramatGUID
Definition: instance_violet_hold.cpp:82
GuidSet trashMobs
Definition: instance_violet_hold.cpp:70
ObjectGuid GO_LavanthorCellGUID
Definition: instance_violet_hold.cpp:66
ObjectGuid NPC_CyanigosaGUID
Definition: instance_violet_hold.cpp:83
ObjectGuid NPC_GuardGUID[4]
Definition: instance_violet_hold.cpp:72
ObjectGuid GO_MainGateGUID
Definition: instance_violet_hold.cpp:59
ObjectGuid GO_IchoronCellGUID
Definition: instance_violet_hold.cpp:65
ObjectGuid NPC_XevozzGUID
Definition: instance_violet_hold.cpp:81
ObjectGuid NPC_LavanthorGUID
Definition: instance_violet_hold.cpp:80
ObjectGuid GO_ZuramatCellGUID
Definition: instance_violet_hold.cpp:68
ObjectGuid GO_ErekemCellGUID
Definition: instance_violet_hold.cpp:62
ObjectGuid GO_ErekemRightGuardCellGUID
Definition: instance_violet_hold.cpp:63
References bDefensesUsed, CLEANED, ObjectGuid::Clear(), DONE, InstanceScript::DoUpdateWorldState(), ObjectGuid::Empty, EncounterStatus, EVENT_CHECK_PLAYERS, GateHealth, Map::GetCreature(), Map::GetGameObject(), GO_ActivationCrystalGUID, GO_ErekemCellGUID, GO_ErekemLeftGuardCellGUID, GO_ErekemRightGuardCellGUID, GO_FLAG_NOT_SELECTABLE, GO_IchoronCellGUID, GO_LavanthorCellGUID, GO_MainGateGUID, GO_MoraggCellGUID, GO_XevozzCellGUID, GO_ZuramatCellGUID, InstanceScript::HandleGameObject(), InstanceScript::instance, m_auiEncounter, MAX_ENCOUNTER, NOT_STARTED, NPC_CyanigosaGUID, NPC_DoorSealGUID, NPC_ErekemGuardGUID, NPC_ErekemGUID, NPC_GuardGUID, NPC_IchoronGUID, NPC_LavanthorGUID, NPC_MoraggGUID, NPC_PortalGUID, NPC_SinclariGUID, NPC_XevozzGUID, NPC_ZuramatGUID, REACT_AGGRESSIVE, trashMobs, UNIT_FLAG_NON_ATTACKABLE, WaveCount, and WORLD_STATE_VH_SHOW.
Referenced by OnPlayerEnter(), SetData(), and Update().
void instance_violet_hold::instance_violet_hold_InstanceMapScript::OnCreatureCreate |
( |
Creature * |
creature | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
109 {
111 {
114 break;
116 for (
uint8 i = 0; i < 4; ++i)
118 {
120 break;
121 }
122 break;
125 break;
128 break;
131 break;
132
135 break;
138 break;
141 break;
144 break;
147 break;
151 else
153 break;
156 break;
159 break;
160 }
161 }
@ NPC_EREKEM_GUARD
Definition: violet_hold.h:45
@ NPC_PRISON_DOOR_SEAL
Definition: violet_hold.h:33
@ NPC_LAVANTHOR
Definition: violet_hold.h:41
@ NPC_EREKEM
Definition: violet_hold.h:44
@ NPC_MORAGG
Definition: violet_hold.h:46
@ NPC_VIOLET_HOLD_GUARD
Definition: violet_hold.h:37
@ NPC_CYANIGOSA
Definition: violet_hold.h:47
@ NPC_ICHORON
Definition: violet_hold.h:42
@ NPC_ZURAMAT
Definition: violet_hold.h:43
@ NPC_SINCLARI
Definition: violet_hold.h:36
@ NPC_XEVOZZ
Definition: violet_hold.h:40
@ NPC_TELEPORTATION_PORTAL
Definition: violet_hold.h:31
@ NPC_DEFENSE_DUMMY_TARGET
Definition: violet_hold.h:34
@ SPELL_ARCANE_LIGHTNING
Definition: violet_hold.h:104
@ IMMUNITY_ID
Definition: SharedDefines.h:1400
uint32 GetEntry() const
Definition: Object.h:115
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL)
Definition: Unit.cpp:13389
References Unit::ApplySpellImmune(), Object::GetEntry(), Object::GetGUID(), IMMUNITY_ID, NPC_CYANIGOSA, NPC_CyanigosaGUID, NPC_DEFENSE_DUMMY_TARGET, NPC_DoorSealGUID, NPC_EREKEM, NPC_EREKEM_GUARD, NPC_ErekemGuardGUID, NPC_ErekemGUID, NPC_GuardGUID, NPC_ICHORON, NPC_IchoronGUID, NPC_LAVANTHOR, NPC_LavanthorGUID, NPC_MORAGG, NPC_MoraggGUID, NPC_PortalGUID, NPC_PRISON_DOOR_SEAL, NPC_SINCLARI, NPC_SinclariGUID, NPC_TELEPORTATION_PORTAL, NPC_VIOLET_HOLD_GUARD, NPC_XEVOZZ, NPC_XevozzGUID, NPC_ZURAMAT, NPC_ZuramatGUID, and SPELL_ARCANE_LIGHTNING.
void instance_violet_hold::instance_violet_hold_InstanceMapScript::SetData |
( |
uint32 |
type, |
|
|
uint32 |
data |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
204 {
205 switch (type)
206 {
208 {
209 if (data)
211 const Position pos = {1919.09546f, 812.29724f, 86.2905f, M_PI};
213 }
214 break;
217 {
222 }
223 break;
226 break;
229 break;
234 {
237 }
239 break;
243 else
245 break;
252 {
258 {
260 c->DespawnOrUnsummon();
261 c->SetRespawnTime(3);
262 }
263 }
267 break;
271 break;
274 break;
275 }
276 }
@ NPC_DEFENSE_SYSTEM
Definition: violet_hold.h:32
@ DATA_ACHIEV
Definition: violet_hold.h:151
@ DATA_START_INSTANCE
Definition: violet_hold.h:133
@ DATA_BOSS_DIED
Definition: violet_hold.h:145
@ DATA_PORTAL_DEFEATED
Definition: violet_hold.h:136
@ DATA_DECRASE_DOOR_HEALTH
Definition: violet_hold.h:144
@ DATA_FAILED
Definition: violet_hold.h:146
@ DATA_ACTIVATE_DEFENSE_SYSTEM
Definition: violet_hold.h:131
@ DATA_RELEASE_BOSS
Definition: violet_hold.h:143
@ EVENT_SUMMON_PORTAL
Definition: violet_hold.h:120
@ EVENT_GUARDS_FALL_BACK
Definition: violet_hold.h:116
@ SAY_SINCLARI_LEAVING
Definition: instance_violet_hold.cpp:27
@ SAY_SINCLARI_COMPLETE
Definition: instance_violet_hold.cpp:29
Definition: Position.h:27
void SaveToDB()
Definition: InstanceScript.cpp:41
TempSummon * SummonCreature(uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=nullptr, uint32 duration=0, WorldObject *summoner=nullptr, uint32 spellId=0, uint32 vehId=0, bool visibleBySummonerOnly=false)
Definition: Object.cpp:2174
void StartBossEncounter(uint8 uiBoss)
Definition: instance_violet_hold.cpp:332
References bAchiev, bDefensesUsed, CLEANED, DATA_ACHIEV, DATA_ACTIVATE_DEFENSE_SYSTEM, DATA_BOSS_DIED, DATA_DECRASE_DOOR_HEALTH, DATA_FAILED, DATA_PORTAL_DEFEATED, DATA_PORTAL_LOCATION, DATA_RELEASE_BOSS, DATA_START_INSTANCE, DONE, InstanceScript::DoUpdateWorldState(), EncounterStatus, EVENT_GUARDS_FALL_BACK, EVENT_SUMMON_PORTAL, GateHealth, Map::GetCreature(), GO_MainGateGUID, InstanceScript::HandleGameObject(), IN_PROGRESS, InstanceScript::instance, InstanceCleanup(), m_auiEncounter, NOT_STARTED, NPC_DEFENSE_SYSTEM, NPC_SinclariGUID, PortalLocation, InstanceScript::SaveToDB(), SAY_SINCLARI_COMPLETE, SAY_SINCLARI_LEAVING, StartBossEncounter(), Map::SummonCreature(), uiFirstBoss, uiSecondBoss, WaveCount, WORLD_STATE_VH_PRISON_STATE, and WORLD_STATE_VH_SHOW.
Referenced by Update().
void instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter |
( |
uint8 |
uiBoss | ) |
|
|
inline |
333 {
335
336 switch (uiBoss)
337 {
341 if (pBoss)
343 break;
349 if (pBoss)
352 {
355 pGuard1->SetImmuneToNPC(false);
357 }
359 {
362 pGuard2->SetImmuneToNPC(false);
364 }
365 break;
369 if (pBoss)
371 break;
375 if (pBoss)
377 break;
381 if (pBoss)
383 break;
387 if (pBoss)
389 break;
390 }
391
392 if (pBoss)
393 {
400 }
401 }
const Position BossStartMove3
Definition: violet_hold.h:174
const Position BossStartMove22
Definition: violet_hold.h:173
const Position BossStartMove6
Definition: violet_hold.h:177
@ BOSS_XEVOZZ
Definition: violet_hold.h:87
@ BOSS_ZURAMAT
Definition: violet_hold.h:88
@ BOSS_MORAGG
Definition: violet_hold.h:83
@ BOSS_LAVANTHOR
Definition: violet_hold.h:86
@ BOSS_EREKEM
Definition: violet_hold.h:84
@ BOSS_ICHORON
Definition: violet_hold.h:85
const Position BossStartMove2
Definition: violet_hold.h:171
const Position BossStartMove21
Definition: violet_hold.h:172
const Position BossStartMove1
Definition: violet_hold.h:170
const Position BossStartMove4
Definition: violet_hold.h:175
const Position BossStartMove5
Definition: violet_hold.h:176
@ MOVEMENTFLAG_WALKING
Definition: UnitDefines.h:352
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:94
void SetLootMode(uint16 lootMode)
Definition: Creature.h:242
void SetImmuneToNPC(bool apply, bool keepCombat=false)
Definition: Unit.cpp:13620
MotionMaster * GetMotionMaster()
Definition: Unit.h:1620
void RemoveUnitMovementFlag(uint32 f)
Definition: Unit.h:735
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:714
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:213
References BOSS_EREKEM, BOSS_ICHORON, BOSS_LAVANTHOR, BOSS_MORAGG, BOSS_XEVOZZ, BOSS_ZURAMAT, BossStartMove1, BossStartMove2, BossStartMove21, BossStartMove22, BossStartMove3, BossStartMove4, BossStartMove5, BossStartMove6, DONE, Map::GetCreature(), Unit::GetMotionMaster(), GO_ErekemCellGUID, GO_ErekemLeftGuardCellGUID, GO_ErekemRightGuardCellGUID, GO_IchoronCellGUID, GO_LavanthorCellGUID, GO_MoraggCellGUID, GO_XevozzCellGUID, GO_ZuramatCellGUID, InstanceScript::HandleGameObject(), InstanceScript::instance, m_auiEncounter, MOVEMENTFLAG_WALKING, MotionMaster::MovePoint(), NPC_ErekemGuardGUID, NPC_ErekemGUID, NPC_IchoronGUID, NPC_LavanthorGUID, NPC_MoraggGUID, NPC_XevozzGUID, NPC_ZuramatGUID, REACT_AGGRESSIVE, Unit::RemoveUnitFlag(), Unit::RemoveUnitMovementFlag(), Unit::SetImmuneToNPC(), Creature::SetLootMode(), Creature::SetReactState(), UNIT_FLAG_NON_ATTACKABLE, and WaveCount.
Referenced by SetData().
void instance_violet_hold::instance_violet_hold_InstanceMapScript::Update |
( |
uint32 |
diff | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
404 {
406 switch (
events.ExecuteEvent())
407 {
408 case 0:
409 break;
411 {
415 }
416 break;
418 {
419 for (
uint8 i = 0; i < 4; ++i)
421 {
423 c->CombatStop();
426 }
428 }
429 break;
431 {
432 for (
uint8 i = 0; i < 4; ++i)
434 c->SetVisible(false);
436 }
437 break;
439 {
441 {
444 }
447 }
448 break;
450 {
452 {
454 }
456 {
457 c->RemoveAllAuras();
458 }
464
467 {
470 }
472 }
473 break;
479 {
483 {
485 {
490 }
492 }
493 else
494 {
496 {
500 }
502 }
503 }
504 break;
507 {
511 }
512 break;
515 {
517 c->SetImmuneToNPC(false);
518 }
519 break;
520 }
521 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
const Position PortalLocations[]
Definition: violet_hold.h:184
const Position sinclariOutsidePosition
Definition: violet_hold.h:167
@ SPELL_CYANIGOSA_BLUE_AURA
Definition: violet_hold.h:110
@ SPELL_CYANIGOSA_TRANSFORM
Definition: violet_hold.h:109
const Position guardMovePosition
Definition: violet_hold.h:165
const Position MiddleRoomLocation
Definition: violet_hold.h:180
const Position MiddleRoomPortalSaboLocation
Definition: violet_hold.h:168
const Position CyanigosasSpawnLocation
Definition: violet_hold.h:179
@ EVENT_START_ENCOUNTER
Definition: violet_hold.h:119
@ EVENT_GUARDS_DISAPPEAR
Definition: violet_hold.h:117
@ EVENT_CYANIGOSSA_TRANSFORM
Definition: violet_hold.h:121
@ EVENT_SINCLARI_FALL_BACK
Definition: violet_hold.h:118
@ EVENT_CYANIGOSA_ATTACK
Definition: violet_hold.h:122
@ SAY_SINCLARI_DOOR_LOCK
Definition: instance_violet_hold.cpp:28
@ CYANIGOSA_SAY_SPAWN
Definition: instance_violet_hold.cpp:26
@ TEMPSUMMON_DEAD_DESPAWN
Definition: Object.h:52
@ TEMPSUMMON_CORPSE_DESPAWN
Definition: Object.h:50
@ REACT_PASSIVE
Definition: Unit.h:548
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2366
float GetPositionZ() const
Definition: Position.h:118
float GetPositionX() const
Definition: Position.h:116
float GetPositionY() const
Definition: Position.h:117
void SetData(uint32 type, uint32 data) override
Definition: instance_violet_hold.cpp:203
uint32 GetData(uint32 type) const override
Definition: instance_violet_hold.cpp:292
References CYANIGOSA_SAY_SPAWN, CyanigosasSpawnLocation, DATA_ACTIVATE_DEFENSE_SYSTEM, DATA_PORTAL_LOCATION, DoNeedCleanup(), InstanceScript::DoUpdateWorldState(), ObjectGuid::Empty, EVENT_CHECK_PLAYERS, EVENT_CYANIGOSA_ATTACK, EVENT_CYANIGOSSA_TRANSFORM, EVENT_GUARDS_DISAPPEAR, EVENT_GUARDS_FALL_BACK, EVENT_SINCLARI_FALL_BACK, EVENT_START_ENCOUNTER, EVENT_SUMMON_PORTAL, GateHealth, Map::GetCreature(), GetData(), Map::GetGameObject(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GO_ActivationCrystalGUID, GO_FLAG_NOT_SELECTABLE, GO_MainGateGUID, guardMovePosition, InstanceScript::HandleGameObject(), InstanceScript::instance, InstanceCleanup(), MiddleRoomLocation, MiddleRoomPortalSaboLocation, MOVEMENTFLAG_WALKING, NPC_CYANIGOSA, NPC_CyanigosaGUID, NPC_DoorSealGUID, NPC_GuardGUID, NPC_SinclariGUID, NPC_TELEPORTATION_PORTAL, PortalLocations, REACT_PASSIVE, InstanceScript::SaveToDB(), SAY_SINCLARI_DOOR_LOCK, SetData(), sinclariOutsidePosition, SPELL_CYANIGOSA_BLUE_AURA, SPELL_CYANIGOSA_TRANSFORM, WorldObject::SummonCreature(), TEMPSUMMON_CORPSE_DESPAWN, TEMPSUMMON_DEAD_DESPAWN, uiFirstBoss, uiSecondBoss, UNIT_FLAG_NON_ATTACKABLE, urand(), WaveCount, WORLD_STATE_VH_PRISON_STATE, WORLD_STATE_VH_SHOW, and WORLD_STATE_VH_WAVE_COUNT.