|
| instance_stratholme_InstanceMapScript (Map *map) |
|
void | Initialize () override |
|
void | OnPlayerEnter (Player *player) override |
|
void | OnCreatureCreate (Creature *creature) override |
|
void | ProcessSlaughterEvent () |
|
void | OnUnitDeath (Unit *unit) override |
|
void | OnGameObjectCreate (GameObject *go) override |
|
void | CheckZiggurats () |
|
void | DoSpawnPlaguedCritters (uint8, Player *player) |
|
void | SetData (uint32 type, uint32 data) override |
|
void | ReadSaveDataMore (std::istringstream &data) override |
|
void | WriteSaveDataMore (std::ostringstream &data) override |
|
uint32 | GetData (uint32 type) const override |
|
void | Update (uint32 diff) 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_stratholme::instance_stratholme_InstanceMapScript::OnGameObjectCreate |
( |
GameObject * |
go | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
182 {
184 {
191 break;
197 break;
203 break;
209 break;
215 break;
221 break;
227 break;
233 break;
238 break;
242 break;
246 break;
250 break;
254 break;
255 default:
256 break;
257 }
258 }
@ GO_PORT_TRAP_GATE_4
Definition: stratholme.h:78
@ GO_PORT_TRAP_GATE_1
Definition: stratholme.h:75
@ GO_SLAUGTHER_GATE
Definition: stratholme.h:72
@ GO_GAUNTLET_DOOR_1
Definition: stratholme.h:64
@ GO_ZIGGURAT_DOORS4
Definition: stratholme.h:69
@ GO_HALL_OF_HIGH_COMMAND
Definition: stratholme.h:63
@ GO_ZIGGURAT_DOORS1
Definition: stratholme.h:66
@ GO_PORT_TRAP_GATE_3
Definition: stratholme.h:77
@ GO_ZIGGURAT_DOORS5
Definition: stratholme.h:70
@ GO_GAUNTLET_GATE
Definition: stratholme.h:71
@ GO_ZIGGURAT_DOORS2
Definition: stratholme.h:67
@ GO_PORT_TRAP_GATE_2
Definition: stratholme.h:76
@ GO_ZIGGURAT_DOORS3
Definition: stratholme.h:68
@ GO_GAUNTLET_DOOR_2
Definition: stratholme.h:65
@ GO_CRUSADER_SQUARE_DOOR
Definition: stratholme.h:61
@ GO_SLAUGHTER_GATE_SIDE
Definition: stratholme.h:73
@ GO_HOARD_DOOR
Definition: stratholme.h:62
void SetGoState(GOState state)
Definition: GameObject.cpp:2477
void AllowSaveToDB(bool enable)
Definition: GameObject.h:362
ObjectGuid _zigguratDoorsGUID4
Definition: instance_stratholme.cpp:610
ObjectGuid _zigguratDoorsGUID1
Definition: instance_stratholme.cpp:607
ObjectGuid _zigguratDoorsGUID2
Definition: instance_stratholme.cpp:608
ObjectGuid _zigguratDoorsGUID5
Definition: instance_stratholme.cpp:611
ObjectGuid _zigguratDoorsGUID3
Definition: instance_stratholme.cpp:609
uint32 GetData(uint32 type) const override
Definition: instance_stratholme.cpp:407
References _gauntletGateGUID, _slaughterGateGUID, _slaughterProgress, _trapGatesGUIDs, _zigguratDoorsGUID1, _zigguratDoorsGUID2, _zigguratDoorsGUID3, _zigguratDoorsGUID4, _zigguratDoorsGUID5, _zigguratState1, _zigguratState2, _zigguratState3, GameObject::AllowSaveToDB(), GetData(), Object::GetEntry(), Object::GetGUID(), GO_CRUSADER_SQUARE_DOOR, GO_GAUNTLET_DOOR_1, GO_GAUNTLET_DOOR_2, GO_GAUNTLET_GATE, GO_HALL_OF_HIGH_COMMAND, GO_HOARD_DOOR, GO_PORT_TRAP_GATE_1, GO_PORT_TRAP_GATE_2, GO_PORT_TRAP_GATE_3, GO_PORT_TRAP_GATE_4, GO_SLAUGHTER_GATE_SIDE, GO_SLAUGTHER_GATE, GO_STATE_ACTIVE, GO_ZIGGURAT_DOORS1, GO_ZIGGURAT_DOORS2, GO_ZIGGURAT_DOORS3, GO_ZIGGURAT_DOORS4, GO_ZIGGURAT_DOORS5, GameObject::SetGoState(), TYPE_ZIGGURAT1, TYPE_ZIGGURAT2, and TYPE_ZIGGURAT3.
void instance_stratholme::instance_stratholme_InstanceMapScript::ProcessSlaughterEvent |
( |
| ) |
|
|
inline |
129 {
131 {
134
136 }
138 {
139 for (
uint32 i = 0; i < 33; ++i)
144 }
146 {
148 }
150 {
155 }
156 }
@ SAY_BRAON_SUMMON_RAMSTEIN
Definition: stratholme.h:90
@ SAY_BARON_GUARD_DEAD
Definition: stratholme.h:91
@ EVENT_SPAWN_MINDLESS
Definition: stratholme.h:94
@ EVENT_SPAWN_BLACK_GUARD
Definition: stratholme.h:96
Position const SlaughterPos
Definition: instance_stratholme.cpp:54
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
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition: Object.cpp:2455
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:2163
References _baronRivendareGUID, _slaughterProgress, _zigguratDoorsGUID5, Creature::AI(), EVENT_SPAWN_BLACK_GUARD, EVENT_SPAWN_MINDLESS, WorldObject::FindNearestGameObject(), Map::GetCreature(), Map::GetGameObject(), GO_SLAUGHTER_GATE_SIDE, GO_STATE_ACTIVE, InstanceScript::instance, NPC_RAMSTEIN_THE_GORGER, SAY_BARON_GUARD_DEAD, SAY_BRAON_SUMMON_RAMSTEIN, SlaughterPos, Map::SummonCreature(), and CreatureAI::Talk().
Referenced by OnUnitDeath(), and Update().
void instance_stratholme::instance_stratholme_InstanceMapScript::SetData |
( |
uint32 |
type, |
|
|
uint32 |
data |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
292 {
293 switch (type)
294 {
296 {
298 {
303
307 }
308 break;
309 }
311 {
314
318
320 break;
321 }
323 {
326
330
332 break;
333 }
335 {
338
342
344 break;
345 }
347 {
350 return;
351 }
354 break;
357 {
359 {
360 if (barthilas->IsAlive())
361 {
364 }
365 }
366 }
368 break;
369 }
370
372 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ GO_STATE_READY
Definition: GameObjectData.h:691
@ SAY_BARON_INIT_YELL
Definition: stratholme.h:85
@ TYPE_BARON_FIGHT
Definition: stratholme.h:30
@ DATA_BARON_RUN_NONE
Definition: stratholme.h:34
@ DATA_BARON_RUN_GATE
Definition: stratholme.h:35
@ TYPE_BARON_RUN
Definition: stratholme.h:26
Position const BarthilasPos
Definition: instance_stratholme.cpp:53
void DoCastSpellOnPlayers(uint32 spell)
Definition: InstanceScript.cpp:650
void CheckZiggurats()
Definition: instance_stratholme.cpp:260
References _baronRivendareGUID, _baronRunProgress, _baronRunTime, _barthilasGUID, _barthilasrunProgress, _postboxesOpened, _zigguratDoorsGUID1, _zigguratDoorsGUID2, _zigguratDoorsGUID3, _zigguratDoorsGUID5, _zigguratState1, _zigguratState2, _zigguratState3, BarthilasPos, CheckZiggurats(), DATA_BARON_RUN_GATE, DATA_BARON_RUN_NONE, InstanceScript::DoCastSpellOnPlayers(), DONE, EVENT_BARON_TIME, Map::GetCreature(), Map::GetGameObject(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GO_STATE_ACTIVE, GO_STATE_READY, IN_PROGRESS, InstanceScript::instance, Map::LoadGrid(), InstanceScript::SaveToDB(), SAY_BARON_INIT_YELL, SPELL_BARON_ULTIMATUM, TYPE_BARON_FIGHT, TYPE_BARON_RUN, TYPE_BARTHILAS_RUN, TYPE_MALLOW, TYPE_ZIGGURAT1, TYPE_ZIGGURAT2, and TYPE_ZIGGURAT3.
void instance_stratholme::instance_stratholme_InstanceMapScript::Update |
( |
uint32 |
diff | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
426 {
428
430
431 for (
uint8 i = 0; i < 2; i++)
432 {
433
435 break;
436
437
439 {
440 if (
Player* player = itr->GetSource())
441 {
442
444 {
445
447 return;
448
450
451
456
458
459 if (i == 0)
460 {
461
463
465
467 }
468 else if (i == 1)
469 {
470
472
474
476 }
477 }
478 }
479 }
480 }
481
482 const int GATE1 = 0;
483 const int GATE2 = 1;
484
485 switch (
events.ExecuteEvent())
486 {
489 break;
492 break;
495 break;
498 break;
501 break;
504 break;
506 {
511 {
513 {
514 case 10:
516 break;
517 case 5:
520 ysida->AI()->SetData(1, 1);
521 break;
522 case 0:
525 break;
526 }
527 }
528
531 else
533
535 break;
536 }
538 {
542 {
544 {
548 }
549 else
551 }
552 break;
553 }
555 {
557 break;
558 }
560 {
564 if (
Player* player = i->GetSource())
565 if (player->GetDistance2d(4034.97f, -3402.13f) < 50.0f)
566 {
568 return;
569 }
570
572 break;
573 }
575 {
576 for (
uint8 i = 0; i < 5; ++i)
578 {
579 guard->SetWalk(true);
580 guard->GetMotionMaster()->MovePoint(0,
BlackGuardPos[i + 5]);
582 if (i == 0 && guard->AI())
584 }
585
588 break;
589 }
590 default:
591 break;
592 }
593 }
@ EVENT_GATE1_TRAP
Definition: stratholme.h:98
@ SAY_BLACK_GUARD_INIT
Definition: stratholme.h:84
@ SAY_BARON_10M
Definition: stratholme.h:87
@ SAY_BARON_0M
Definition: stratholme.h:89
@ EVENT_GATE1_DELAY
Definition: stratholme.h:99
@ EVENT_GATE1_CRITTER_DELAY
Definition: stratholme.h:100
@ SAY_BARON_5M
Definition: stratholme.h:88
@ EVENT_GATE2_CRITTER_DELAY
Definition: stratholme.h:103
@ EVENT_GATE2_DELAY
Definition: stratholme.h:102
@ EVENT_EXECUTE_PRISONER
Definition: stratholme.h:97
@ EVENT_GATE2_TRAP
Definition: stratholme.h:101
@ NPC_YSIDA
Definition: stratholme.h:49
Position const MindlessUndeadPos
Definition: instance_stratholme.cpp:52
const Position BlackGuardPos[10]
Definition: instance_stratholme.cpp:24
static const Position aGateTrap[]
Definition: instance_stratholme.cpp:46
@ EMOTE_ONESHOT_ATTACK1H
Definition: SharedDefines.h:1926
bool IsEmpty() const
Definition: LinkedList.h:97
Definition: LinkedList.h:139
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
float m_positionX
Definition: Position.h:56
float m_positionY
Definition: Position.h:57
static void Kill(Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition: Unit.cpp:17658
bool IsAlive() const
Definition: Unit.h:1204
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:1984
bool IsInCombat() const
Definition: Unit.h:820
PlayerList const & GetPlayers() const
Definition: Map.h:486
Definition: MapRefMgr.h:26
iterator begin()
Definition: MapRefMgr.h:36
iterator end()
Definition: MapRefMgr.h:37
void gate_delay(int gate)
Definition: instance_stratholme.cpp:621
void gate_critter_delay(int gate)
Definition: instance_stratholme.cpp:633
References _baronRivendareGUID, _baronRunTime, _gateTrapsCooldown, _trapGatesGUIDs, _trappedPlayerGUID, _zigguratDoorsGUID4, aGateTrap, Creature::AI(), MapRefMgr::begin(), BlackGuardPos, InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), InstanceScript::DoUseDoorOrButton(), EMOTE_ONESHOT_ATTACK1H, MapRefMgr::end(), EVENT_BARON_TIME, EVENT_EXECUTE_PRISONER, EVENT_FORCE_SLAUGHTER_EVENT, EVENT_GATE1_CRITTER_DELAY, EVENT_GATE1_DELAY, EVENT_GATE1_TRAP, EVENT_GATE2_CRITTER_DELAY, EVENT_GATE2_DELAY, EVENT_GATE2_TRAP, EVENT_SPAWN_BLACK_GUARD, EVENT_SPAWN_MINDLESS, WorldObject::FindNearestCreature(), gate_critter_delay(), gate_delay(), Map::GetCreature(), Map::GetGameObject(), Map::GetPlayers(), GO_STATE_ACTIVE, Unit::HandleEmoteCommand(), IN_MILLISECONDS, InstanceScript::instance, Unit::IsAlive(), LinkedListHead::IsEmpty(), Unit::IsInCombat(), Unit::Kill(), Map::LoadGrid(), Position::m_positionX, Position::m_positionY, MindlessUndeadPos, MINUTE, NPC_BLACK_GUARD, NPC_MINDLESS_UNDEAD, NPC_YSIDA, ProcessSlaughterEvent(), InstanceScript::SaveToDB(), SAY_BARON_0M, SAY_BARON_10M, SAY_BARON_5M, SAY_BLACK_GUARD_INIT, SPELL_BARON_ULTIMATUM, Map::SummonCreature(), and CreatureAI::Talk().