|
| 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) |
|
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) |
|
| 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.
173 {
175 {
182 break;
188 break;
194 break;
200 break;
206 break;
212 break;
218 break;
224 break;
229 break;
233 break;
237 break;
241 break;
245 break;
246 }
247 }
@ 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 UpdateSaveToDb(bool enable)
Definition: GameObject.cpp:2585
ObjectGuid _zigguratDoorsGUID4
Definition: instance_stratholme.cpp:580
ObjectGuid _zigguratDoorsGUID1
Definition: instance_stratholme.cpp:577
ObjectGuid _zigguratDoorsGUID2
Definition: instance_stratholme.cpp:578
ObjectGuid _zigguratDoorsGUID5
Definition: instance_stratholme.cpp:581
ObjectGuid _zigguratDoorsGUID3
Definition: instance_stratholme.cpp:579
uint32 GetData(uint32 type) const override
Definition: instance_stratholme.cpp:381
References _gauntletGateGUID, _slaughterGateGUID, _slaughterProgress, _trapGatesGUIDs, _zigguratDoorsGUID1, _zigguratDoorsGUID2, _zigguratDoorsGUID3, _zigguratDoorsGUID4, _zigguratDoorsGUID5, _zigguratState1, _zigguratState2, _zigguratState3, 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, TYPE_ZIGGURAT3, and GameObject::UpdateSaveToDb().
void instance_stratholme::instance_stratholme_InstanceMapScript::ProcessSlaughterEvent |
( |
| ) |
|
|
inline |
119 {
121 {
124
125 Position pos = {4032.20f, -3378.06f, 119.75f, 4.67f};
127 }
129 {
130 for (
uint32 i = 0; i < 33; ++i)
135 }
137 {
139 }
141 {
146 }
147 }
@ 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
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:49
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition: Object.cpp:2443
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:2154
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, 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.
281 {
282 switch (type)
283 {
285 {
287 {
292
296 }
297 break;
298 }
300 {
303
307
309 break;
310 }
312 {
315
319
321 break;
322 }
324 {
327
331
333 break;
334 }
336 {
339 return;
340 }
343 break;
344 }
345
347 }
@ GO_STATE_READY
Definition: GameObjectData.h:691
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ SAY_BARON_INIT_YELL
Definition: stratholme.h:85
@ TYPE_BARON_FIGHT
Definition: stratholme.h:32
@ DATA_BARON_RUN_NONE
Definition: stratholme.h:35
@ DATA_BARON_RUN_GATE
Definition: stratholme.h:36
@ TYPE_BARON_RUN
Definition: stratholme.h:28
void DoCastSpellOnPlayers(uint32 spell)
Definition: InstanceScript.cpp:649
void CheckZiggurats()
Definition: instance_stratholme.cpp:249
References _baronRivendareGUID, _baronRunProgress, _baronRunTime, _postboxesOpened, _zigguratDoorsGUID1, _zigguratDoorsGUID2, _zigguratDoorsGUID3, _zigguratDoorsGUID5, _zigguratState1, _zigguratState2, _zigguratState3, CheckZiggurats(), DATA_BARON_RUN_GATE, DATA_BARON_RUN_NONE, InstanceScript::DoCastSpellOnPlayers(), EVENT_BARON_TIME, Map::GetCreature(), Map::GetGameObject(), 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_MALLOW, TYPE_ZIGGURAT1, TYPE_ZIGGURAT2, and TYPE_ZIGGURAT3.
void instance_stratholme::instance_stratholme_InstanceMapScript::Update |
( |
uint32 |
diff | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
398 {
400
402
403 for (
uint8 i = 0; i < 2; i++)
404 {
405
407 break;
408
409
411 {
412 if (
Player* player = itr->GetSource())
413 {
414
416 {
417
419 return;
420
422
423
428
430
431 if (i == 0)
432 {
433
435
437
439 }
440 else if (i == 1)
441 {
442
444
446
448 }
449 }
450 }
451 }
452 }
453
454 const int GATE1 = 0;
455 const int GATE2 = 1;
456
457 switch (
events.ExecuteEvent())
458 {
461 break;
464 break;
467 break;
470 break;
473 break;
476 break;
478 {
483 {
485 {
486 case 10:
488 break;
489 case 5:
492 ysida->AI()->SetData(1, 1);
493 break;
494 case 0:
497 break;
498 }
499 }
500
503 else
505
507 break;
508 }
510 {
514 {
516 {
520 }
521 else
523 }
524 break;
525 }
527 {
528 Position pos = {3941.75f, -3393.06f, 119.70f, 0.0f};
530 break;
531 }
533 {
537 if (
Player* player = i->GetSource())
538 if (player->GetDistance2d(4034.97f, -3402.13f) < 50.0f)
539 {
541 return;
542 }
543
545 break;
546 }
548 {
549 for (
uint8 i = 0; i < 5; ++i)
551 {
552 guard->SetWalk(true);
553 guard->GetMotionMaster()->MovePoint(0,
BlackGuardPos[i + 5]);
555 if (i == 0 && guard->AI())
557 }
558
561 break;
562 }
563 }
564 }
const Position BlackGuardPos[10]
Definition: instance_stratholme.cpp:25
static const Position aGateTrap[]
Definition: instance_stratholme.cpp:47
@ 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
@ 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:2434
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:17956
bool IsAlive() const
Definition: Unit.h:1822
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:1980
bool IsInCombat() const
Definition: Unit.h:1702
PlayerList const & GetPlayers() const
Definition: Map.h:485
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:590
void gate_critter_delay(int gate)
Definition: instance_stratholme.cpp:602
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, 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().