|
| instance_blackrock_spireMapScript (InstanceMap *map) |
|
void | CreatureLooted (Creature *creature, LootType loot) override |
|
void | OnCreatureCreate (Creature *creature) override |
|
void | OnGameObjectCreate (GameObject *go) override |
|
bool | SetBossState (uint32 type, EncounterState state) override |
|
void | ProcessEvent (WorldObject *, uint32 eventId) override |
|
void | SetData (uint32 type, uint32 data) override |
|
uint32 | GetData (uint32 type) const override |
|
void | SummonSolakarWave (uint8 number) |
|
ObjectGuid | GetGuidData (uint32 type) const override |
|
void | Update (uint32 diff) override |
|
void | Dragonspireroomstore () |
|
void | Dragonspireroomcheck () |
|
| InstanceScript (Map *map) |
|
| ~InstanceScript () override |
|
virtual void | Initialize () |
|
virtual void | Load (char const *data) |
|
virtual std::string | GetSaveData () |
|
void | SaveToDB () |
|
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 | OnPlayerLeave (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 | DoRespawnGameObject (uint32 type) |
|
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 () |
|
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 (WorldPackets::WorldState::InitWorldStates &) |
|
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 |
|
TeamId | GetTeamIdInInstance () const |
|
void | SetTeamIdInInstance (TeamId teamId) |
|
bool | IsTwoFactionInstance () const |
|
| ZoneScript () |
|
virtual | ~ZoneScript () |
|
virtual uint32 | GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data) |
|
virtual uint32 | GetGameObjectEntry (ObjectGuid::LowType, uint32 entry) |
|
virtual void | OnUnitDeath (Unit *) |
|
virtual void | OnCreatureEvade (Creature *) |
|
virtual void | SetGuidData (uint32, ObjectGuid) |
|
virtual uint64 | GetData64 (uint32) const |
|
virtual void | SetData64 (uint32, uint64) |
|
void instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck |
( |
| ) |
|
|
inline |
611 {
614
615 for (
uint8 i = 0; i < 7; ++i)
616 {
617 bool _mobAlive = false;
619 if (!rune)
620 continue;
621
623 {
625 {
628 _mobAlive = true;
629 }
630 }
631
633 {
635
637 {
640 break;
643 break;
646 break;
649 break;
652 break;
655 break;
658 break;
659 default:
660 break;
661 }
662 }
663 }
664
668 {
676 }
677 }
std::uint8_t uint8
Definition Define.h:109
@ GO_STATE_ACTIVE
Definition GameObjectData.h:689
@ DONE
Definition InstanceScript.h:61
@ GO_HALL_RUNE_4
Definition blackrock_spire.h:125
@ GO_HALL_RUNE_6
Definition blackrock_spire.h:127
@ GO_HALL_RUNE_1
Definition blackrock_spire.h:122
@ GO_HALL_RUNE_7
Definition blackrock_spire.h:128
@ GO_HALL_RUNE_3
Definition blackrock_spire.h:124
@ GO_HALL_RUNE_5
Definition blackrock_spire.h:126
@ GO_HALL_RUNE_2
Definition blackrock_spire.h:123
@ DATA_HALL_RUNE_3
Definition blackrock_spire.h:50
@ DATA_HALL_RUNE_1
Definition blackrock_spire.h:48
@ DATA_HALL_RUNE_2
Definition blackrock_spire.h:49
@ DATA_DRAGONSPIRE_ROOM
Definition blackrock_spire.h:47
@ DATA_HALL_RUNE_7
Definition blackrock_spire.h:54
@ DATA_HALL_RUNE_6
Definition blackrock_spire.h:53
@ DATA_HALL_RUNE_5
Definition blackrock_spire.h:52
@ DATA_HALL_RUNE_4
Definition blackrock_spire.h:51
Definition GameObject.h:120
GOState GetGoState() const
Definition GameObject.h:204
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition InstanceScript.cpp:125
Map * instance
Definition InstanceScript.h:149
EncounterState GetBossState(uint32 id) const
Definition InstanceScript.h:242
GameObject * GetGameObject(ObjectGuid const guid)
Definition Map.cpp:2503
Creature * GetCreature(ObjectGuid const guid)
Definition Map.cpp:2498
Definition ObjectGuid.h:118
static ObjectGuid const Empty
Definition ObjectGuid.h:120
bool IsAlive() const
Definition Unit.h:1707
GuidVector runecreaturelist[7]
Definition instance_blackrock_spire.cpp:702
bool SetBossState(uint32 type, EncounterState state) override
Definition instance_blackrock_spire.cpp:296
ObjectGuid go_roomrunes[7]
Definition instance_blackrock_spire.cpp:700
ObjectGuid go_doors
Definition instance_blackrock_spire.cpp:697
ObjectGuid go_emberseerin
Definition instance_blackrock_spire.cpp:696
References DATA_DRAGONSPIRE_ROOM, DATA_HALL_RUNE_1, DATA_HALL_RUNE_2, DATA_HALL_RUNE_3, DATA_HALL_RUNE_4, DATA_HALL_RUNE_5, DATA_HALL_RUNE_6, DATA_HALL_RUNE_7, DONE, ObjectGuid::Empty, InstanceScript::GetBossState(), Map::GetCreature(), Object::GetEntry(), Map::GetGameObject(), GameObject::GetGoState(), go_doors, go_emberseerin, GO_HALL_RUNE_1, GO_HALL_RUNE_2, GO_HALL_RUNE_3, GO_HALL_RUNE_4, GO_HALL_RUNE_5, GO_HALL_RUNE_6, GO_HALL_RUNE_7, go_roomrunes, GO_STATE_ACTIVE, InstanceScript::HandleGameObject(), InstanceScript::instance, Unit::IsAlive(), runecreaturelist, and SetBossState().
Referenced by Update().
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::GetGuidData |
( |
uint32 |
type | ) |
const |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
475 {
476 switch (type)
477 {
546 default:
547 break;
548 }
549
551 }
@ GO_EMBERSEER_RUNE_3
Definition blackrock_spire.h:132
@ GO_EMBERSEER_RUNE_7
Definition blackrock_spire.h:136
@ GO_EMBERSEER_IN
Definition blackrock_spire.h:113
@ GO_EMBERSEER_RUNE_4
Definition blackrock_spire.h:133
@ GO_EMBERSEER_OUT
Definition blackrock_spire.h:115
@ GO_EMBERSEER_RUNE_2
Definition blackrock_spire.h:131
@ GO_UROK_PILE
Definition blackrock_spire.h:141
@ GO_DOORS
Definition blackrock_spire.h:114
@ GO_PORTCULLIS_ACTIVE
Definition blackrock_spire.h:139
@ GO_EMBERSEER_RUNE_1
Definition blackrock_spire.h:130
@ GO_EMBERSEER_RUNE_5
Definition blackrock_spire.h:134
@ GO_UROK_CHALLENGE
Definition blackrock_spire.h:142
@ GO_EMBERSEER_RUNE_6
Definition blackrock_spire.h:135
@ DATA_THE_BEAST
Definition blackrock_spire.h:43
@ DATA_HIGHLORD_OMOKK
Definition blackrock_spire.h:31
@ DATA_HALYCON
Definition blackrock_spire.h:38
@ DATA_PYROGAURD_EMBERSEER
Definition blackrock_spire.h:40
@ DATA_WARMASTER_VOONE
Definition blackrock_spire.h:33
@ DATA_QUARTERMASTER_ZIGRIS
Definition blackrock_spire.h:36
@ DATA_GYTH
Definition blackrock_spire.h:42
@ DATA_GIZRUL_THE_SLAVENER
Definition blackrock_spire.h:37
@ DATA_WARCHIEF_REND_BLACKHAND
Definition blackrock_spire.h:41
@ DATA_GENERAL_DRAKKISATH
Definition blackrock_spire.h:44
@ DATA_SHADOW_HUNTER_VOSHGAJIN
Definition blackrock_spire.h:32
@ DATA_OVERLORD_WYRMTHALAK
Definition blackrock_spire.h:39
@ DATA_UROK_DOOMHOWL
Definition blackrock_spire.h:35
@ DATA_MOTHER_SMOLDERWEB
Definition blackrock_spire.h:34
ObjectGuid WarchiefRendBlackhand
Definition instance_blackrock_spire.cpp:691
ObjectGuid WarMasterVoone
Definition instance_blackrock_spire.cpp:683
ObjectGuid UrokDoomhowl
Definition instance_blackrock_spire.cpp:685
ObjectGuid GeneralDrakkisath
Definition instance_blackrock_spire.cpp:695
ObjectGuid QuartermasterZigris
Definition instance_blackrock_spire.cpp:686
ObjectGuid PyroguardEmberseer
Definition instance_blackrock_spire.cpp:690
ObjectGuid Halycon
Definition instance_blackrock_spire.cpp:688
ObjectGuid ShadowHunterVoshgajin
Definition instance_blackrock_spire.cpp:682
ObjectGuid go_portcullis_active
Definition instance_blackrock_spire.cpp:703
ObjectGuid go_urokChallenge
Definition instance_blackrock_spire.cpp:705
ObjectGuid TheBeast
Definition instance_blackrock_spire.cpp:694
ObjectGuid OverlordWyrmthalak
Definition instance_blackrock_spire.cpp:689
ObjectGuid MotherSmolderweb
Definition instance_blackrock_spire.cpp:684
ObjectGuid GizrultheSlavener
Definition instance_blackrock_spire.cpp:687
ObjectGuid HighlordOmokk
Definition instance_blackrock_spire.cpp:681
ObjectGuid go_urokPile
Definition instance_blackrock_spire.cpp:704
ObjectGuid go_emberseerout
Definition instance_blackrock_spire.cpp:698
ObjectGuid go_emberseerrunes[7]
Definition instance_blackrock_spire.cpp:701
ObjectGuid Gyth
Definition instance_blackrock_spire.cpp:692
References DATA_GENERAL_DRAKKISATH, DATA_GIZRUL_THE_SLAVENER, DATA_GYTH, DATA_HALYCON, DATA_HIGHLORD_OMOKK, DATA_MOTHER_SMOLDERWEB, DATA_OVERLORD_WYRMTHALAK, DATA_PYROGAURD_EMBERSEER, DATA_QUARTERMASTER_ZIGRIS, DATA_SHADOW_HUNTER_VOSHGAJIN, DATA_THE_BEAST, DATA_UROK_DOOMHOWL, DATA_WARCHIEF_REND_BLACKHAND, DATA_WARMASTER_VOONE, ObjectGuid::Empty, GeneralDrakkisath, GizrultheSlavener, GO_DOORS, go_doors, GO_EMBERSEER_IN, GO_EMBERSEER_OUT, GO_EMBERSEER_RUNE_1, GO_EMBERSEER_RUNE_2, GO_EMBERSEER_RUNE_3, GO_EMBERSEER_RUNE_4, GO_EMBERSEER_RUNE_5, GO_EMBERSEER_RUNE_6, GO_EMBERSEER_RUNE_7, go_emberseerin, go_emberseerout, go_emberseerrunes, GO_HALL_RUNE_1, GO_HALL_RUNE_2, GO_HALL_RUNE_3, GO_HALL_RUNE_4, GO_HALL_RUNE_5, GO_HALL_RUNE_6, GO_HALL_RUNE_7, GO_PORTCULLIS_ACTIVE, go_portcullis_active, go_roomrunes, GO_UROK_CHALLENGE, GO_UROK_PILE, go_urokChallenge, go_urokPile, Gyth, Halycon, HighlordOmokk, MotherSmolderweb, OverlordWyrmthalak, PyroguardEmberseer, QuartermasterZigris, ShadowHunterVoshgajin, TheBeast, UrokDoomhowl, WarchiefRendBlackhand, and WarMasterVoone.
void instance_blackrock_spire::instance_blackrock_spireMapScript::OnCreatureCreate |
( |
Creature * |
creature | ) |
|
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
115 {
117 {
119 [[fallthrough]];
122 break;
125 break;
128 break;
131 break;
134 break;
137 break;
140 break;
143 break;
146 break;
149 break;
154 break;
157 {
159 }
160
163 break;
166 break;
169 break;
172 break;
177 break;
180 break;
183 break;
184 }
185 }
@ IN_PROGRESS
Definition InstanceScript.h:59
@ NPC_MOTHER_SMOLDERWEB
Definition blackrock_spire.h:65
@ NPC_UROK_ENFORCER
Definition blackrock_spire.h:92
@ NPC_FINKLE_EINHORN
Definition blackrock_spire.h:93
@ NPC_GENERAL_DRAKKISATH
Definition blackrock_spire.h:75
@ NPC_HALYCON
Definition blackrock_spire.h:69
@ NPC_SHADOW_HUNTER_VOSHGAJIN
Definition blackrock_spire.h:63
@ NPC_WARCHIEF_REND_BLACKHAND
Definition blackrock_spire.h:72
@ NPC_OVERLORD_WYRMTHALAK
Definition blackrock_spire.h:70
@ NPC_QUARTERMASTER_ZIGRIS
Definition blackrock_spire.h:67
@ NPC_UROK_DOOMHOWL
Definition blackrock_spire.h:66
@ NPC_HIGHLORD_OMOKK
Definition blackrock_spire.h:62
@ NPC_UROK_MAGUS
Definition blackrock_spire.h:91
@ NPC_GIZRUL_THE_SLAVENER
Definition blackrock_spire.h:68
@ NPC_GYTH
Definition blackrock_spire.h:73
@ NPC_PYROGAURD_EMBERSEER
Definition blackrock_spire.h:71
@ NPC_CHROMATIC_ELITE_GUARD
Definition blackrock_spire.h:94
@ NPC_LORD_VICTOR_NEFARIUS
Definition blackrock_spire.h:80
@ NPC_WARMASTER_VOONE
Definition blackrock_spire.h:64
@ SAY_FINKLE_GANG
Definition blackrock_spire.h:105
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition CreatureAI.cpp:50
CreatureAI * AI() const
Definition Creature.h:141
void DisappearAndDie()
Definition Creature.cpp:373
void AddMinion(Creature *minion, bool add=true)
Definition InstanceScript.cpp:358
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:112
ObjectGuid LordVictorNefarius
Definition instance_blackrock_spire.cpp:693
std::vector< ObjectGuid > UrokMobs
Definition instance_blackrock_spire.cpp:707
References InstanceScript::AddMinion(), Creature::AI(), DATA_GYTH, DATA_PYROGAURD_EMBERSEER, Creature::DisappearAndDie(), DONE, GeneralDrakkisath, InstanceScript::GetBossState(), Object::GetEntry(), Object::GetGUID(), GizrultheSlavener, Gyth, Halycon, HighlordOmokk, IN_PROGRESS, LordVictorNefarius, MotherSmolderweb, NPC_CHROMATIC_ELITE_GUARD, NPC_FINKLE_EINHORN, NPC_GENERAL_DRAKKISATH, NPC_GIZRUL_THE_SLAVENER, NPC_GYTH, NPC_HALYCON, NPC_HIGHLORD_OMOKK, NPC_LORD_VICTOR_NEFARIUS, NPC_MOTHER_SMOLDERWEB, NPC_OVERLORD_WYRMTHALAK, NPC_PYROGAURD_EMBERSEER, NPC_QUARTERMASTER_ZIGRIS, NPC_SHADOW_HUNTER_VOSHGAJIN, NPC_THE_BEAST, NPC_UROK_DOOMHOWL, NPC_UROK_ENFORCER, NPC_UROK_MAGUS, NPC_WARCHIEF_REND_BLACKHAND, NPC_WARMASTER_VOONE, OverlordWyrmthalak, PyroguardEmberseer, QuartermasterZigris, SAY_FINKLE_GANG, ShadowHunterVoshgajin, CreatureAI::Talk(), TheBeast, UrokDoomhowl, UrokMobs, WarchiefRendBlackhand, and WarMasterVoone.
void instance_blackrock_spire::instance_blackrock_spireMapScript::OnGameObjectCreate |
( |
GameObject * |
go | ) |
|
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
188 {
190 {
194 break;
199 break;
204 break;
209 break;
214 break;
219 break;
224 break;
229 break;
234 break;
239 break;
244 break;
249 break;
254 break;
259 break;
264 break;
269 break;
274 break;
279 break;
282 break;
285 break;
288 break;
289 default:
290 break;
291 }
292
294 }
@ GO_UROK_CIRCLE
Definition blackrock_spire.h:143
void OnGameObjectCreate(GameObject *go) override
Definition InstanceScript.cpp:85
std::vector< ObjectGuid > go_urokOgreCirles
Definition instance_blackrock_spire.cpp:706
References DATA_DRAGONSPIRE_ROOM, DATA_GYTH, DATA_HALL_RUNE_1, DATA_HALL_RUNE_2, DATA_HALL_RUNE_3, DATA_HALL_RUNE_4, DATA_HALL_RUNE_5, DATA_HALL_RUNE_6, DATA_HALL_RUNE_7, DATA_PYROGAURD_EMBERSEER, DONE, ObjectGuid::Empty, InstanceScript::GetBossState(), Object::GetEntry(), Object::GetGUID(), GO_DOORS, go_doors, GO_EMBERSEER_IN, GO_EMBERSEER_OUT, GO_EMBERSEER_RUNE_1, GO_EMBERSEER_RUNE_2, GO_EMBERSEER_RUNE_3, GO_EMBERSEER_RUNE_4, GO_EMBERSEER_RUNE_5, GO_EMBERSEER_RUNE_6, GO_EMBERSEER_RUNE_7, go_emberseerin, go_emberseerout, go_emberseerrunes, GO_HALL_RUNE_1, GO_HALL_RUNE_2, GO_HALL_RUNE_3, GO_HALL_RUNE_4, GO_HALL_RUNE_5, GO_HALL_RUNE_6, GO_HALL_RUNE_7, GO_PORTCULLIS_ACTIVE, go_portcullis_active, go_roomrunes, GO_UROK_CHALLENGE, GO_UROK_CIRCLE, GO_UROK_PILE, go_urokChallenge, go_urokOgreCirles, go_urokPile, InstanceScript::HandleGameObject(), and InstanceScript::OnGameObjectCreate().
void instance_blackrock_spire::instance_blackrock_spireMapScript::SetData |
( |
uint32 |
type, |
|
|
uint32 |
data |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
351 {
352 switch (type)
353 {
356 {
359 }
360 break;
362 switch (data)
363 {
366 {
368 }
369 break;
372 {
374 {
375 creature->DespawnOrUnsummon();
376 }
377 }
381 break;
383 break;
384 }
386 break;
389 break;
392 {
394 {
397 {
398 challenge->Delete();
399 }
401 {
403 pile->Respawn();
404 }
406 {
408 {
409 circle->Delete();
410 }
411 }
412 for (
auto const& mobGUID :
UrokMobs)
413 {
415 {
416 mob->DespawnOrUnsummon();
417 }
418 }
419 }
420 }
421 break;
422 default:
423 break;
424 }
425 }
@ GO_READY
Definition GameObject.h:111
Events
Definition alterac_valley.cpp:53
@ AREATRIGGER
Definition blackrock_spire.h:102
@ AREATRIGGER_DRAGONSPIRE_HALL
Definition blackrock_spire.h:103
@ EVENT_SOLAKAR_WAVE
Definition instance_blackrock_spire.cpp:39
@ EVENT_DRAGONSPIRE_ROOM_STORE
Definition instance_blackrock_spire.cpp:36
void SetData(uint32 type, uint32 data) override
Definition instance_blackrock_spire.cpp:350
References AREATRIGGER, AREATRIGGER_DRAGONSPIRE_HALL, CurrentSolakarWave, DATA_DRAGONSPIRE_ROOM, DATA_SOLAKAR_FLAMEWREATH, DATA_UROK_DOOMHOWL, DATA_VAELASTRASZ, DONE, EVENT_DRAGONSPIRE_ROOM_STORE, EVENT_SOLAKAR_WAVE, FAIL, InstanceScript::GetBossState(), Map::GetCreature(), Map::GetGameObject(), GO_READY, go_urokChallenge, go_urokOgreCirles, go_urokPile, IN_PROGRESS, InstanceScript::instance, NOT_STARTED, SetBossState(), SetData(), SolakarState, SolakarSummons, UrokMobs, and VaelastraszState.
Referenced by SetData().