TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
instance_blackrock_spire::instance_blackrock_spireMapScript Struct Reference

Public Member Functions

 instance_blackrock_spireMapScript (InstanceMap *map)
 
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
 
ObjectGuid GetGuidData (uint32 type) const override
 
void Update (uint32 diff) override
 
void Dragonspireroomstore ()
 
void Dragonspireroomcheck ()
 
- Public Member Functions inherited from InstanceScript
 InstanceScript (Map *map)
 
virtual ~InstanceScript ()
 
virtual void Initialize ()
 
virtual void Load (char const *data)
 
virtual std::string GetSaveData ()
 
void SaveToDB ()
 
virtual bool IsEncounterInProgress () const
 
virtual void OnCreatureRemove (Creature *creature) override
 
virtual void OnGameObjectRemove (GameObject *go) override
 
ObjectGuid GetObjectGuid (uint32 type) const
 
CreatureGetCreature (uint32 type)
 
GameObjectGetGameObject (uint32 type)
 
virtual void OnPlayerEnter (Player *)
 
void HandleGameObject (ObjectGuid guid, bool open, GameObject *go=nullptr)
 
void DoUseDoorOrButton (ObjectGuid guid, uint32 withRestoreTime=0, bool useAlternativeState=false)
 
void DoCloseDoorOrButton (ObjectGuid guid)
 
void DoRespawnGameObject (ObjectGuid guid, uint32 timeToDespawn=MINUTE)
 
void DoUpdateWorldState (uint32 worldstateId, uint32 worldstateValue)
 
void DoSendNotifyToInstance (char const *format,...)
 
void DoUpdateAchievementCriteria (AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, Unit *unit=NULL)
 
void DoStartTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
 
void DoStopTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
 
void DoRemoveAurasDueToSpellOnPlayers (uint32 spell)
 
void DoCastSpellOnPlayers (uint32 spell)
 
bool ServerAllowsTwoSideGroups ()
 
EncounterState GetBossState (uint32 id) const
 
CreatureBoundary constGetBossBoundary (uint32 id) const
 
virtual bool CheckAchievementCriteriaMeet (uint32, Player const *, Unit const *=NULL, uint32=0)
 
virtual bool CheckRequiredBosses (uint32, Player const *=nullptr) const
 
void UpdateEncounterState (EncounterCreditType type, uint32 creditEntry, Unit *source)
 
void SetCompletedEncountersMask (uint32 newMask)
 
uint32 GetCompletedEncounterMask () const
 
void SendEncounterUnit (uint32 type, Unit *unit=NULL, uint8 param1=0, uint8 param2=0)
 
virtual void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &)
 
void UpdatePhasing ()
 
uint32 GetEncounterCount () const
 
- Public Member Functions inherited from ZoneScript
 ZoneScript ()
 
virtual ~ZoneScript ()
 
virtual uint32 GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data)
 
virtual uint32 GetGameObjectEntry (ObjectGuid::LowType, uint32 entry)
 
virtual void OnUnitDeath (Unit *)
 
virtual void SetGuidData (uint32, ObjectGuid)
 
virtual uint64 GetData64 (uint32) const
 
virtual void SetData64 (uint32, uint64)
 
virtual uint32 GetData (uint32) const
 

Protected Attributes

EventMap Events
 
ObjectGuid HighlordOmokk
 
ObjectGuid ShadowHunterVoshgajin
 
ObjectGuid WarMasterVoone
 
ObjectGuid MotherSmolderweb
 
ObjectGuid UrokDoomhowl
 
ObjectGuid QuartermasterZigris
 
ObjectGuid GizrultheSlavener
 
ObjectGuid Halycon
 
ObjectGuid OverlordWyrmthalak
 
ObjectGuid PyroguardEmberseer
 
ObjectGuid WarchiefRendBlackhand
 
ObjectGuid Gyth
 
ObjectGuid LordVictorNefarius
 
ObjectGuid TheBeast
 
ObjectGuid GeneralDrakkisath
 
ObjectGuid go_emberseerin
 
ObjectGuid go_doors
 
ObjectGuid go_emberseerout
 
ObjectGuid go_blackrockaltar
 
ObjectGuid go_roomrunes [7]
 
ObjectGuid go_emberseerrunes [7]
 
ObjectGuid runecreaturelist [7][5]
 
ObjectGuid go_portcullis_active
 
ObjectGuid go_portcullis_tobossrooms
 

Additional Inherited Members

- Static Public Member Functions inherited from InstanceScript
static std::string GetBossStateName (uint8 state)
 
- Public Attributes inherited from InstanceScript
Mapinstance
 
- Protected Member Functions inherited from InstanceScript
void SetHeaders (std::string const &dataHeaders)
 
void SetBossNumber (uint32 number)
 
void LoadBossBoundaries (BossBoundaryData const &data)
 
void LoadDoorData (DoorData const *data)
 
void LoadMinionData (MinionData const *data)
 
void LoadObjectData (ObjectData const *creatureData, ObjectData const *gameObjectData)
 
void AddObject (Creature *obj, bool add)
 
void AddObject (GameObject *obj, bool add)
 
void AddObject (WorldObject *obj, uint32 type, bool add)
 
virtual void AddDoor (GameObject *door, bool add)
 
void AddMinion (Creature *minion, bool add)
 
virtual void UpdateDoorState (GameObject *door)
 
void UpdateMinionState (Creature *minion, EncounterState state)
 
BossInfoGetBossInfo (uint32 id)
 
bool ReadSaveDataHeaders (std::istringstream &data)
 
void ReadSaveDataBossStates (std::istringstream &data)
 
virtual void ReadSaveDataMore (std::istringstream &)
 
void WriteSaveDataHeaders (std::ostringstream &data)
 
void WriteSaveDataBossStates (std::ostringstream &data)
 
virtual void WriteSaveDataMore (std::ostringstream &)
 
bool _SkipCheckRequiredBosses (Player const *player=nullptr) const
 

Constructor & Destructor Documentation

instance_blackrock_spire::instance_blackrock_spireMapScript::instance_blackrock_spireMapScript ( InstanceMap map)
inline
51  : InstanceScript(map)
52  {
55  }
uint32 const EncounterCount
Definition: baradin_hold.h:28
void SetBossNumber(uint32 number)
Definition: InstanceScript.h:258
void SetHeaders(std::string const &dataHeaders)
Definition: InstanceScript.cpp:98
#define DataHeader
Definition: baradin_hold.h:25
InstanceScript(Map *map)
Definition: InstanceScript.h:144

+ Here is the call graph for this function:

Member Function Documentation

void instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck ( )
inline
416  {
417  Creature* mob = NULL;
418  GameObject* rune = NULL;
419 
420  for (uint8 i = 0; i < 7; ++i)
421  {
422  bool _mobAlive = false;
423  rune = instance->GetGameObject(go_roomrunes[i]);
424  if (!rune)
425  continue;
426 
427  if (rune->GetGoState() == GO_STATE_ACTIVE)
428  {
429  for (uint8 ii = 0; ii < 5; ++ii)
430  {
431  mob = instance->GetCreature(runecreaturelist[i][ii]);
432  if (mob && mob->IsAlive())
433  _mobAlive = true;
434  }
435  }
436 
437  if (!_mobAlive && rune->GetGoState() == GO_STATE_ACTIVE)
438  {
439  HandleGameObject(ObjectGuid::Empty, false, rune);
440 
441  switch (rune->GetEntry())
442  {
443  case GO_HALL_RUNE_1:
445  break;
446  case GO_HALL_RUNE_2:
448  break;
449  case GO_HALL_RUNE_3:
451  break;
452  case GO_HALL_RUNE_4:
454  break;
455  case GO_HALL_RUNE_5:
457  break;
458  case GO_HALL_RUNE_6:
460  break;
461  case GO_HALL_RUNE_7:
463  break;
464  default:
465  break;
466  }
467  }
468  }
469 
473  {
476  HandleGameObject(ObjectGuid::Empty, true, door1);
477  if (GameObject* door2 = instance->GetGameObject(go_doors))
478  HandleGameObject(ObjectGuid::Empty, true, door2);
479  }
480  }
Definition: blackrock_spire.h:46
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
GOState GetGoState() const
Definition: GameObject.h:966
bool SetBossState(uint32 type, EncounterState state) override
Definition: instance_blackrock_spire.cpp:222
ObjectGuid runecreaturelist[7][5]
Definition: instance_blackrock_spire.cpp:505
Definition: blackrock_spire.h:101
Definition: blackrock_spire.h:48
Definition: blackrock_spire.h:49
Definition: inflate.h:49
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: blackrock_spire.h:104
Definition: blackrock_spire.h:44
Definition: Creature.h:467
Definition: blackrock_spire.h:105
Definition: blackrock_spire.h:103
ObjectGuid go_emberseerin
Definition: instance_blackrock_spire.cpp:499
Definition: blackrock_spire.h:51
ObjectGuid go_roomrunes[7]
Definition: instance_blackrock_spire.cpp:503
bool IsAlive() const
Definition: Unit.h:1692
Map * instance
Definition: InstanceScript.h:148
Definition: GameObject.h:880
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition: InstanceScript.cpp:397
Definition: blackrock_spire.h:50
Definition: GameObject.h:822
Definition: blackrock_spire.h:47
ObjectGuid go_doors
Definition: instance_blackrock_spire.cpp:500
Creature * GetCreature(ObjectGuid const &guid)
Definition: Map.cpp:3535
uint8_t uint8
Definition: Define.h:152
Definition: blackrock_spire.h:106
uint32 GetEntry() const
Definition: Object.h:107
GameObject * GetGameObject(ObjectGuid const &guid)
Definition: Map.cpp:3545
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
Definition: blackrock_spire.h:102
Definition: blackrock_spire.h:45
Definition: blackrock_spire.h:100

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomstore ( )
inline
389  {
390  uint8 creatureCount;
391 
392  for (uint8 i = 0; i < 7; ++i)
393  {
394  creatureCount = 0;
395 
397  {
398  for (uint8 j = 0; j < 3; ++j)
399  {
400  std::list<Creature*> creatureList;
401  GetCreatureListWithEntryInGrid(creatureList, rune, DragonspireMobs[j], 15.0f);
402  for (std::list<Creature*>::iterator itr = creatureList.begin(); itr != creatureList.end(); ++itr)
403  {
404  if (Creature* creature = *itr)
405  {
406  runecreaturelist[i][creatureCount] = creature->GetGUID();
407  ++creatureCount;
408  }
409  }
410  }
411  }
412  }
413  }
ObjectGuid runecreaturelist[7][5]
Definition: instance_blackrock_spire.cpp:505
TC_GAME_API void GetCreatureListWithEntryInGrid(std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
Definition: ScriptedCreature.cpp:621
uint32 const DragonspireMobs[3]
Definition: instance_blackrock_spire.cpp:30
Definition: Creature.h:467
ObjectGuid go_roomrunes[7]
Definition: instance_blackrock_spire.cpp:503
Map * instance
Definition: InstanceScript.h:148
Definition: GameObject.h:880
uint8_t uint8
Definition: Define.h:152
GameObject * GetGameObject(ObjectGuid const &guid)
Definition: Map.cpp:3545

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::GetGuidData ( uint32  type) const
inlineoverridevirtual

Reimplemented from InstanceScript.

290  {
291  switch (type)
292  {
293  case DATA_HIGHLORD_OMOKK:
294  return HighlordOmokk;
296  return ShadowHunterVoshgajin;
298  return WarMasterVoone;
300  return MotherSmolderweb;
301  case DATA_UROK_DOOMHOWL:
302  return UrokDoomhowl;
304  return QuartermasterZigris;
306  return GizrultheSlavener;
307  case DATA_HALYCON:
308  return Halycon;
310  return OverlordWyrmthalak;
312  return PyroguardEmberseer;
314  return WarchiefRendBlackhand;
315  case DATA_GYTH:
316  return Gyth;
317  case DATA_THE_BEAST:
318  return TheBeast;
320  return GeneralDrakkisath;
321  case GO_EMBERSEER_IN:
322  return go_emberseerin;
323  case GO_DOORS:
324  return go_doors;
325  case GO_EMBERSEER_OUT:
326  return go_emberseerout;
327  case GO_HALL_RUNE_1:
328  return go_roomrunes[0];
329  case GO_HALL_RUNE_2:
330  return go_roomrunes[1];
331  case GO_HALL_RUNE_3:
332  return go_roomrunes[2];
333  case GO_HALL_RUNE_4:
334  return go_roomrunes[3];
335  case GO_HALL_RUNE_5:
336  return go_roomrunes[4];
337  case GO_HALL_RUNE_6:
338  return go_roomrunes[5];
339  case GO_HALL_RUNE_7:
340  return go_roomrunes[6];
341  case GO_EMBERSEER_RUNE_1:
342  return go_emberseerrunes[0];
343  case GO_EMBERSEER_RUNE_2:
344  return go_emberseerrunes[1];
345  case GO_EMBERSEER_RUNE_3:
346  return go_emberseerrunes[2];
347  case GO_EMBERSEER_RUNE_4:
348  return go_emberseerrunes[3];
349  case GO_EMBERSEER_RUNE_5:
350  return go_emberseerrunes[4];
351  case GO_EMBERSEER_RUNE_6:
352  return go_emberseerrunes[5];
353  case GO_EMBERSEER_RUNE_7:
354  return go_emberseerrunes[6];
356  return go_portcullis_active;
359  default:
360  break;
361  }
362  return ObjectGuid::Empty;
363  }
ObjectGuid WarMasterVoone
Definition: instance_blackrock_spire.cpp:486
Definition: blackrock_spire.h:108
Definition: blackrock_spire.h:38
Definition: blackrock_spire.h:110
Definition: blackrock_spire.h:39
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
Definition: blackrock_spire.h:33
Definition: blackrock_spire.h:101
ObjectGuid go_portcullis_tobossrooms
Definition: instance_blackrock_spire.cpp:507
Definition: blackrock_spire.h:32
Definition: blackrock_spire.h:41
ObjectGuid UrokDoomhowl
Definition: instance_blackrock_spire.cpp:488
Definition: blackrock_spire.h:117
Definition: blackrock_spire.h:104
Definition: blackrock_spire.h:105
Definition: blackrock_spire.h:118
Definition: blackrock_spire.h:103
Definition: blackrock_spire.h:114
ObjectGuid Halycon
Definition: instance_blackrock_spire.cpp:491
Definition: blackrock_spire.h:35
ObjectGuid Gyth
Definition: instance_blackrock_spire.cpp:495
ObjectGuid TheBeast
Definition: instance_blackrock_spire.cpp:497
ObjectGuid go_portcullis_active
Definition: instance_blackrock_spire.cpp:506
ObjectGuid go_emberseerin
Definition: instance_blackrock_spire.cpp:499
ObjectGuid OverlordWyrmthalak
Definition: instance_blackrock_spire.cpp:492
ObjectGuid go_roomrunes[7]
Definition: instance_blackrock_spire.cpp:503
Definition: blackrock_spire.h:93
ObjectGuid ShadowHunterVoshgajin
Definition: instance_blackrock_spire.cpp:485
Definition: blackrock_spire.h:28
ObjectGuid go_emberseerout
Definition: instance_blackrock_spire.cpp:501
ObjectGuid go_emberseerrunes[7]
Definition: instance_blackrock_spire.cpp:504
Definition: blackrock_spire.h:109
Definition: blackrock_spire.h:92
ObjectGuid WarchiefRendBlackhand
Definition: instance_blackrock_spire.cpp:494
Definition: blackrock_spire.h:30
Definition: blackrock_spire.h:37
Definition: blackrock_spire.h:31
ObjectGuid go_doors
Definition: instance_blackrock_spire.cpp:500
Definition: blackrock_spire.h:29
Definition: blackrock_spire.h:34
Definition: blackrock_spire.h:113
ObjectGuid PyroguardEmberseer
Definition: instance_blackrock_spire.cpp:493
Definition: blackrock_spire.h:106
ObjectGuid QuartermasterZigris
Definition: instance_blackrock_spire.cpp:489
ObjectGuid GizrultheSlavener
Definition: instance_blackrock_spire.cpp:490
Definition: blackrock_spire.h:40
ObjectGuid GeneralDrakkisath
Definition: instance_blackrock_spire.cpp:498
ObjectGuid MotherSmolderweb
Definition: instance_blackrock_spire.cpp:487
Definition: blackrock_spire.h:102
Definition: blackrock_spire.h:111
ObjectGuid HighlordOmokk
Definition: instance_blackrock_spire.cpp:484
Definition: blackrock_spire.h:91
Definition: blackrock_spire.h:112
Definition: blackrock_spire.h:36
Definition: blackrock_spire.h:100
void instance_blackrock_spire::instance_blackrock_spireMapScript::OnCreatureCreate ( Creature creature)
inlineoverridevirtual

Reimplemented from InstanceScript.

58  {
59  switch (creature->GetEntry())
60  {
61  case NPC_HIGHLORD_OMOKK:
62  HighlordOmokk = creature->GetGUID();
63  break;
65  ShadowHunterVoshgajin = creature->GetGUID();
66  break;
68  WarMasterVoone = creature->GetGUID();
69  break;
71  MotherSmolderweb = creature->GetGUID();
72  break;
73  case NPC_UROK_DOOMHOWL:
74  UrokDoomhowl = creature->GetGUID();
75  break;
77  QuartermasterZigris = creature->GetGUID();
78  break;
80  GizrultheSlavener = creature->GetGUID();
81  break;
82  case NPC_HALYCON:
83  Halycon = creature->GetGUID();
84  break;
86  OverlordWyrmthalak = creature->GetGUID();
87  break;
89  PyroguardEmberseer = creature->GetGUID();
91  creature->DisappearAndDie();
92  break;
94  WarchiefRendBlackhand = creature->GetGUID();
95  if (GetBossState(DATA_GYTH) == DONE)
96  creature->DisappearAndDie();
97  break;
98  case NPC_GYTH:
99  Gyth = creature->GetGUID();
100  break;
101  case NPC_THE_BEAST:
102  TheBeast = creature->GetGUID();
103  break;
105  GeneralDrakkisath = creature->GetGUID();
106  break;
108  LordVictorNefarius = creature->GetGUID();
109  if (GetBossState(DATA_GYTH) == DONE)
110  creature->DisappearAndDie();
111  break;
112  }
113  }
ObjectGuid WarMasterVoone
Definition: instance_blackrock_spire.cpp:486
Definition: blackrock_spire.h:68
Definition: blackrock_spire.h:66
Definition: blackrock_spire.h:74
Definition: blackrock_spire.h:39
ObjectGuid LordVictorNefarius
Definition: instance_blackrock_spire.cpp:496
ObjectGuid UrokDoomhowl
Definition: instance_blackrock_spire.cpp:488
Definition: blackrock_spire.h:63
Definition: inflate.h:49
ObjectGuid Halycon
Definition: instance_blackrock_spire.cpp:491
ObjectGuid Gyth
Definition: instance_blackrock_spire.cpp:495
ObjectGuid TheBeast
Definition: instance_blackrock_spire.cpp:497
Definition: blackrock_spire.h:58
ObjectGuid OverlordWyrmthalak
Definition: instance_blackrock_spire.cpp:492
ObjectGuid ShadowHunterVoshgajin
Definition: instance_blackrock_spire.cpp:485
Definition: blackrock_spire.h:56
Definition: blackrock_spire.h:69
ObjectGuid WarchiefRendBlackhand
Definition: instance_blackrock_spire.cpp:494
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: blackrock_spire.h:37
Definition: blackrock_spire.h:60
Definition: blackrock_spire.h:61
Definition: blackrock_spire.h:65
Definition: blackrock_spire.h:64
ObjectGuid PyroguardEmberseer
Definition: instance_blackrock_spire.cpp:493
ObjectGuid QuartermasterZigris
Definition: instance_blackrock_spire.cpp:489
uint32 GetEntry() const
Definition: Object.h:107
ObjectGuid GizrultheSlavener
Definition: instance_blackrock_spire.cpp:490
ObjectGuid GeneralDrakkisath
Definition: instance_blackrock_spire.cpp:498
Definition: blackrock_spire.h:67
Definition: blackrock_spire.h:62
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
ObjectGuid MotherSmolderweb
Definition: instance_blackrock_spire.cpp:487
Definition: blackrock_spire.h:57
void DisappearAndDie()
Definition: Creature.cpp:256
Definition: blackrock_spire.h:59
ObjectGuid HighlordOmokk
Definition: instance_blackrock_spire.cpp:484

+ Here is the call graph for this function:

void instance_blackrock_spire::instance_blackrock_spireMapScript::OnGameObjectCreate ( GameObject go)
inlineoverridevirtual

Reimplemented from InstanceScript.

116  {
117  switch (go->GetEntry())
118  {
119  case GO_WHELP_SPAWNER:
121  break;
122  case GO_EMBERSEER_IN:
123  go_emberseerin = go->GetGUID();
126  break;
127  case GO_DOORS:
128  go_doors = go->GetGUID();
131  break;
132  case GO_EMBERSEER_OUT:
133  go_emberseerout = go->GetGUID();
136  break;
137  case GO_HALL_RUNE_1:
138  go_roomrunes[0] = go->GetGUID();
141  break;
142  case GO_HALL_RUNE_2:
143  go_roomrunes[1] = go->GetGUID();
146  break;
147  case GO_HALL_RUNE_3:
148  go_roomrunes[2] = go->GetGUID();
151  break;
152  case GO_HALL_RUNE_4:
153  go_roomrunes[3] = go->GetGUID();
156  break;
157  case GO_HALL_RUNE_5:
158  go_roomrunes[4] = go->GetGUID();
161  break;
162  case GO_HALL_RUNE_6:
163  go_roomrunes[5] = go->GetGUID();
166  break;
167  case GO_HALL_RUNE_7:
168  go_roomrunes[6] = go->GetGUID();
171  break;
172  case GO_EMBERSEER_RUNE_1:
173  go_emberseerrunes[0] = go->GetGUID();
176  break;
177  case GO_EMBERSEER_RUNE_2:
178  go_emberseerrunes[1] = go->GetGUID();
181  break;
182  case GO_EMBERSEER_RUNE_3:
183  go_emberseerrunes[2] = go->GetGUID();
186  break;
187  case GO_EMBERSEER_RUNE_4:
188  go_emberseerrunes[3] = go->GetGUID();
191  break;
192  case GO_EMBERSEER_RUNE_5:
193  go_emberseerrunes[4] = go->GetGUID();
196  break;
197  case GO_EMBERSEER_RUNE_6:
198  go_emberseerrunes[5] = go->GetGUID();
201  break;
202  case GO_EMBERSEER_RUNE_7:
203  go_emberseerrunes[6] = go->GetGUID();
206  break;
209  if (GetBossState(DATA_GYTH) == DONE)
211  break;
214  if (GetBossState(DATA_GYTH) == DONE)
216  break;
217  default:
218  break;
219  }
220  }
Definition: blackrock_spire.h:108
Definition: blackrock_spire.h:46
Definition: blackrock_spire.h:110
Definition: blackrock_spire.h:39
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
Definition: blackrock_spire.h:101
Definition: blackrock_spire.h:89
ObjectGuid go_portcullis_tobossrooms
Definition: instance_blackrock_spire.cpp:507
Definition: blackrock_spire.h:48
Definition: blackrock_spire.h:49
Definition: inflate.h:49
Definition: blackrock_spire.h:117
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: blackrock_spire.h:104
Definition: blackrock_spire.h:44
Definition: blackrock_spire.h:105
Definition: blackrock_spire.h:118
Definition: blackrock_spire.h:103
Definition: blackrock_spire.h:114
ObjectGuid go_portcullis_active
Definition: instance_blackrock_spire.cpp:506
ObjectGuid go_emberseerin
Definition: instance_blackrock_spire.cpp:499
Definition: blackrock_spire.h:51
ObjectGuid go_roomrunes[7]
Definition: instance_blackrock_spire.cpp:503
Definition: blackrock_spire.h:93
ObjectGuid go_emberseerout
Definition: instance_blackrock_spire.cpp:501
ObjectGuid go_emberseerrunes[7]
Definition: instance_blackrock_spire.cpp:504
Definition: blackrock_spire.h:79
Definition: blackrock_spire.h:109
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition: InstanceScript.cpp:397
Definition: blackrock_spire.h:50
void CastSpell(Unit *target, uint32 spell, bool triggered=true)
Definition: GameObject.cpp:1833
Definition: blackrock_spire.h:92
Definition: blackrock_spire.h:47
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: blackrock_spire.h:37
ObjectGuid go_doors
Definition: instance_blackrock_spire.cpp:500
Definition: blackrock_spire.h:113
Definition: blackrock_spire.h:106
uint32 GetEntry() const
Definition: Object.h:107
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
Definition: blackrock_spire.h:102
Definition: blackrock_spire.h:111
Definition: blackrock_spire.h:91
Definition: blackrock_spire.h:112
Definition: blackrock_spire.h:45
Definition: blackrock_spire.h:100

+ Here is the call graph for this function:

void instance_blackrock_spire::instance_blackrock_spireMapScript::ProcessEvent ( WorldObject ,
uint32  eventId 
)
inlineoverridevirtual

Reimplemented from ZoneScript.

253  {
254  switch (eventId)
255  {
258  {
259  if (Creature* Emberseer = instance->GetCreature(PyroguardEmberseer))
260  Emberseer->AI()->SetData(1, 1);
261  }
262  break;
263  case EVENT_UROK_DOOMHOWL:
265  {
266 
267  }
268  break;
269  default:
270  break;
271  }
272  }
Definition: blackrock_spire.h:80
Definition: blackrock_spire.h:81
Definition: Creature.h:467
Definition: InstanceScript.h:58
Map * instance
Definition: InstanceScript.h:148
Definition: blackrock_spire.h:37
Definition: blackrock_spire.h:60
Creature * GetCreature(ObjectGuid const &guid)
Definition: Map.cpp:3535
ObjectGuid PyroguardEmberseer
Definition: instance_blackrock_spire.cpp:493
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227

+ Here is the call graph for this function:

bool instance_blackrock_spire::instance_blackrock_spireMapScript::SetBossState ( uint32  type,
EncounterState  state 
)
inlineoverridevirtual

Reimplemented from InstanceScript.

223  {
224  if (!InstanceScript::SetBossState(type, state))
225  return false;
226 
227  switch (type)
228  {
229  case DATA_HIGHLORD_OMOKK:
233  case DATA_UROK_DOOMHOWL:
236  case DATA_HALYCON:
240  case DATA_GYTH:
241  case DATA_THE_BEAST:
244  break;
245  default:
246  break;
247  }
248 
249  return true;
250  }
Definition: blackrock_spire.h:38
Definition: blackrock_spire.h:39
Definition: blackrock_spire.h:33
Definition: blackrock_spire.h:32
Definition: blackrock_spire.h:41
Definition: blackrock_spire.h:44
Definition: blackrock_spire.h:35
Definition: blackrock_spire.h:28
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
Definition: blackrock_spire.h:30
Definition: blackrock_spire.h:37
Definition: blackrock_spire.h:31
Definition: blackrock_spire.h:29
Definition: blackrock_spire.h:34
Definition: blackrock_spire.h:40
Definition: blackrock_spire.h:36

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void instance_blackrock_spire::instance_blackrock_spireMapScript::SetData ( uint32  type,
uint32  data 
)
inlineoverridevirtual

Reimplemented from ZoneScript.

275  {
276  switch (type)
277  {
278  case AREATRIGGER:
279  if (data == AREATRIGGER_DRAGONSPIRE_HALL)
280  {
282  Events.ScheduleEvent(EVENT_DARGONSPIRE_ROOM_STORE, 1000);
283  }
284  default:
285  break;
286  }
287  }
Definition: blackrock_spire.h:82
Definition: instance_blackrock_spire.cpp:34
Definition: inflate.h:49
Definition: blackrock_spire.h:44
Events
Definition: alterac_valley.cpp:51
Definition: blackrock_spire.h:83
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227

+ Here is the call graph for this function:

void instance_blackrock_spire::instance_blackrock_spireMapScript::Update ( uint32  diff)
inlineoverridevirtual

Reimplemented from InstanceScript.

366  {
367  Events.Update(diff);
368 
369  while (uint32 eventId = Events.ExecuteEvent())
370  {
371  switch (eventId)
372  {
375  Events.ScheduleEvent(EVENT_DARGONSPIRE_ROOM_CHECK, 3000);
376  break;
380  Events.ScheduleEvent(EVENT_DARGONSPIRE_ROOM_CHECK, 3000);
381  break;
382  default:
383  break;
384  }
385  }
386  }
void Dragonspireroomstore()
Definition: instance_blackrock_spire.cpp:388
Definition: instance_blackrock_spire.cpp:34
Definition: inflate.h:49
Definition: blackrock_spire.h:44
Events
Definition: alterac_valley.cpp:51
uint32_t uint32
Definition: Define.h:150
Definition: instance_blackrock_spire.cpp:35
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
void Dragonspireroomcheck()
Definition: instance_blackrock_spire.cpp:415

+ Here is the call graph for this function:

Member Data Documentation

EventMap instance_blackrock_spire::instance_blackrock_spireMapScript::Events
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::GeneralDrakkisath
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::GizrultheSlavener
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::go_blackrockaltar
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::go_doors
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::go_emberseerin
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::go_emberseerout
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::go_emberseerrunes[7]
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::go_portcullis_active
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::go_portcullis_tobossrooms
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::go_roomrunes[7]
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::Gyth
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::Halycon
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::HighlordOmokk
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::LordVictorNefarius
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::MotherSmolderweb
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::OverlordWyrmthalak
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::PyroguardEmberseer
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::QuartermasterZigris
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::runecreaturelist[7][5]
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::ShadowHunterVoshgajin
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::TheBeast
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::UrokDoomhowl
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::WarchiefRendBlackhand
protected
ObjectGuid instance_blackrock_spire::instance_blackrock_spireMapScript::WarMasterVoone
protected

The documentation for this struct was generated from the following file: