|
| instance_molten_core_InstanceMapScript (Map *map) |
|
void | OnPlayerEnter (Player *) override |
|
void | OnCreatureCreate (Creature *creature) override |
|
void | OnCreatureRemove (Creature *creature) override |
|
void | OnGameObjectCreate (GameObject *go) override |
|
ObjectGuid | GetGuidData (uint32 type) const override |
|
bool | SetBossState (uint32 bossId, EncounterState state) override |
|
void | DoAction (int32 action) override |
|
void | SummonMajordomoExecutus () |
|
bool | CheckMajordomoExecutus () const |
|
| 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_molten_core::instance_molten_core_InstanceMapScript::OnCreatureCreate |
( |
Creature * |
creature | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
79 {
81 {
83 {
85 break;
86 }
88 {
90 break;
91 }
93 {
95 break;
96 }
98 {
100 break;
101 }
103 {
105 break;
106 }
113 {
115 break;
116 }
117 }
118 }
@ NPC_RAGNAROS
Definition: molten_core.h:60
@ NPC_FLAMEWALKER
Definition: molten_core.h:71
@ NPC_MAJORDOMO_EXECUTUS
Definition: molten_core.h:86
@ NPC_FLAMEWALKER_PROTECTOR
Definition: molten_core.h:79
@ NPC_GARR
Definition: molten_core.h:66
@ NPC_GOLEMAGG_THE_INCINERATOR
Definition: molten_core.h:74
@ NPC_CORE_RAGER
Definition: molten_core.h:75
@ NPC_FIRESWORN
Definition: molten_core.h:67
@ NPC_FLAMEWALKER_HEALER
Definition: molten_core.h:87
@ NPC_FLAMEWALKER_ELITE
Definition: molten_core.h:88
@ NPC_FLAMEWALKER_PRIEST
Definition: molten_core.h:83
uint32 GetEntry() const
Definition: Object.h:112
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
void AddMinion(Creature *minion, bool add=true)
Definition: InstanceScript.cpp:334
References _garrGUID, _golemaggGUID, _golemaggMinionsGUIDS, _majordomoExecutusGUID, _ragnarosGUID, InstanceScript::AddMinion(), Object::GetEntry(), Object::GetGUID(), NPC_CORE_RAGER, NPC_FIRESWORN, NPC_FLAMEWALKER, NPC_FLAMEWALKER_ELITE, NPC_FLAMEWALKER_HEALER, NPC_FLAMEWALKER_PRIEST, NPC_FLAMEWALKER_PROTECTOR, NPC_GARR, NPC_GOLEMAGG_THE_INCINERATOR, NPC_MAJORDOMO_EXECUTUS, and NPC_RAGNAROS.
void instance_molten_core::instance_molten_core_InstanceMapScript::OnGameObjectCreate |
( |
GameObject * |
go | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
142 {
144 {
146 {
148 break;
149 }
157 {
159 {
161 {
162 continue;
163 }
164
166 {
168 }
169 else
170 {
172 }
173 }
174
175 break;
176 }
184 {
186 {
188 {
189 continue;
190 }
191
193 {
195 }
196 else
197 {
199 }
200 }
201 break;
202 }
204 {
206 break;
207 }
209 {
211 break;
212 }
214 {
216 {
218 }
219 break;
220 }
221 }
222 }
constexpr auto WEEK
Definition: Common.h:50
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
std::chrono::seconds Seconds
Seconds shorthand typedef.
Definition: Duration.h:30
constexpr uint8 MAX_MC_LINKED_BOSS_OBJ
Definition: instance_molten_core.cpp:42
MCBossObject const linkedBossObjData[MAX_MC_LINKED_BOSS_OBJ]
Definition: instance_molten_core.cpp:43
@ GO_RUNE_ZETH
Definition: molten_core.h:106
@ GO_CIRCLE_GARR
Definition: molten_core.h:98
@ GO_LAVA_STEAM
Definition: molten_core.h:111
@ GO_LAVA_SPLASH
Definition: molten_core.h:112
@ GO_CIRCLE_GOLEMAGG
Definition: molten_core.h:97
@ GO_CIRCLE_SULFURON
Definition: molten_core.h:94
@ GO_RUNE_MAZJ
Definition: molten_core.h:105
@ GO_CACHE_OF_THE_FIRELORD
Definition: molten_core.h:93
@ GO_RUNE_KORO
Definition: molten_core.h:108
@ GO_CIRCLE_GEDDON
Definition: molten_core.h:95
@ GO_CIRCLE_SHAZZRAH
Definition: molten_core.h:96
@ GO_RUNE_BLAZ
Definition: molten_core.h:104
@ GO_RUNE_THERI
Definition: molten_core.h:107
@ GO_RUNE_MOHN
Definition: molten_core.h:103
@ GO_LAVA_BURST
Definition: molten_core.h:113
@ GO_CIRCLE_GEHENNAS
Definition: molten_core.h:100
@ GO_RUNE_KRESS
Definition: molten_core.h:102
@ GO_CIRCLE_MAGMADAR
Definition: molten_core.h:99
void UseDoorOrButton(uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr)
Definition: GameObject.cpp:1429
void DespawnOrUnsummon(Milliseconds delay=0ms, Seconds forcedRespawnTime=0s)
Definition: GameObject.cpp:933
uint32 bossId
Definition: instance_molten_core.cpp:37
ObjectGuid _cacheOfTheFirelordGUID
Definition: instance_molten_core.cpp:422
std::unordered_map< uint32, ObjectGuid > _circlesGUIDs
Definition: instance_molten_core.cpp:409
std::unordered_map< uint32, ObjectGuid > _runesGUIDs
Definition: instance_molten_core.cpp:410
References _cacheOfTheFirelordGUID, _circlesGUIDs, _lavaSplashGUID, _lavaSteamGUID, _ragnarosGUID, _runesGUIDs, MCBossObject::bossId, GameObject::DespawnOrUnsummon(), DONE, InstanceScript::GetBossState(), Map::GetCreature(), Object::GetEntry(), Object::GetGUID(), GO_CACHE_OF_THE_FIRELORD, GO_CIRCLE_GARR, GO_CIRCLE_GEDDON, GO_CIRCLE_GEHENNAS, GO_CIRCLE_GOLEMAGG, GO_CIRCLE_MAGMADAR, GO_CIRCLE_SHAZZRAH, GO_CIRCLE_SULFURON, GO_LAVA_BURST, GO_LAVA_SPLASH, GO_LAVA_STEAM, GO_RUNE_BLAZ, GO_RUNE_KORO, GO_RUNE_KRESS, GO_RUNE_MAZJ, GO_RUNE_MOHN, GO_RUNE_THERI, GO_RUNE_ZETH, IN_MILLISECONDS, InstanceScript::instance, linkedBossObjData, MAX_MC_LINKED_BOSS_OBJ, GameObject::UseDoorOrButton(), and WEEK.
bool instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState |
( |
uint32 |
bossId, |
|
|
EncounterState |
state |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
246 {
248 {
249 return false;
250 }
251
253 {
255 {
256 cache->SetRespawnTime(7 *
DAY);
258 }
259 }
261 {
262 switch (state)
263 {
266 {
268 {
270 {
272 if (minion && minion->
isDead())
273 {
275 }
276 }
277 }
278 break;
279 }
281 {
283 {
285 {
287 {
289 }
290 }
291 }
292 break;
293 }
295 {
297 {
299 {
301 {
303 }
304 }
306 }
307 break;
308 }
309 default:
310 break;
311 }
312 }
313
315 {
317 {
320 }
321
323 {
326 }
327
329 {
331 }
332 }
333
334 return true;
335 }
constexpr auto DAY
Definition: Common.h:49
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ FAIL
Definition: InstanceScript.h:59
@ NOT_STARTED
Definition: InstanceScript.h:57
@ SPELL_CORE_RAGER_QUIET_SUICIDE
Definition: molten_core.h:118
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition: CreatureAI.cpp:95
void Respawn(bool force=false)
Definition: Creature.cpp:2030
CreatureAI * AI() const
Definition: Creature.h:143
Definition: GameObject.h:121
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
bool isDead() const
Definition: Unit.h:1206
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:351
GameObject * GetGameObject(ObjectGuid const guid)
Definition: Map.cpp:3319
References _cacheOfTheFirelordGUID, _circlesGUIDs, _golemaggMinionsGUIDS, _runesGUIDs, CheckMajordomoExecutus(), DATA_GOLEMAGG, DATA_MAJORDOMO_EXECUTUS, DAY, DONE, FAIL, Map::GetCreature(), Map::GetGameObject(), IN_MILLISECONDS, IN_PROGRESS, InstanceScript::instance, Unit::isDead(), NOT_STARTED, Creature::Respawn(), InstanceScript::SetBossState(), SPELL_CORE_RAGER_QUIET_SUICIDE, SummonMajordomoExecutus(), and WEEK.