|
| 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 | Load (char const *data) |
|
virtual void | CreatureLooted (Creature *, LootType) |
|
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 | 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 () |
|
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 (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 | OnCreatureEvade (Creature *) |
|
virtual void | SetGuidData (uint32, ObjectGuid) |
|
virtual uint64 | GetData64 (uint32) const |
|
virtual void | SetData64 (uint32, uint64) |
|
virtual void | ProcessEvent (WorldObject *, uint32) |
|
void instance_stratholme::instance_stratholme_InstanceMapScript::OnGameObjectCreate |
( |
GameObject * |
go | ) |
|
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
180 {
182 {
189 break;
195 break;
201 break;
207 break;
213 break;
219 break;
225 break;
231 break;
236 break;
240 break;
244 break;
248 break;
252 break;
253 default:
254 break;
255 }
256 }
void SetGoState(GOState state)
Definition GameObject.cpp:2462
void AllowSaveToDB(bool enable)
Definition GameObject.h:360
@ 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
ObjectGuid _zigguratDoorsGUID4
Definition instance_stratholme.cpp:604
ObjectGuid _zigguratDoorsGUID1
Definition instance_stratholme.cpp:601
ObjectGuid _zigguratDoorsGUID2
Definition instance_stratholme.cpp:602
ObjectGuid _zigguratDoorsGUID5
Definition instance_stratholme.cpp:605
ObjectGuid _zigguratDoorsGUID3
Definition instance_stratholme.cpp:603
uint32 GetData(uint32 type) const override
Definition instance_stratholme.cpp:403
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 |
127 {
129 {
132
134 }
136 {
137 for (
uint32 i = 0; i < 33; ++i)
142 }
144 {
146 }
148 {
153 }
154 }
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
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:2174
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition Object.cpp:2468
Position const SlaughterPos
Definition instance_stratholme.cpp:54
@ 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
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.
289 {
290 switch (type)
291 {
293 {
295 {
300
303 }
304 break;
305 }
307 {
310
314
316 break;
317 }
319 {
322
326
328 break;
329 }
331 {
334
338
340 break;
341 }
343 {
346 return;
347 }
350 break;
353 {
355 {
356 if (barthilas->IsAlive())
357 {
360 }
361 }
362 }
364 break;
365 }
366
368 }
@ GO_STATE_READY
Definition GameObjectData.h:690
@ IN_PROGRESS
Definition InstanceScript.h:59
@ DONE
Definition InstanceScript.h:61
void DoCastSpellOnPlayers(uint32 spell)
Definition InstanceScript.cpp:694
Position const BarthilasPos
Definition instance_stratholme.cpp:53
@ 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
void CheckZiggurats()
Definition instance_stratholme.cpp:258
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, 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.
422 {
424
426
427 for (
uint8 i = 0; i < 2; i++)
428 {
429
431 break;
432
433
435 {
436 if (
Player* player = itr->GetSource())
437 {
438
439 if (!player->IsGameMaster() && player->IsWithinDist2d(
aGateTrap[i].m_positionX,
aGateTrap[i].m_positionY, 5.5f))
440 {
441
443 return;
444
446
447
452
454
455 if (i == 0)
456 {
457
459
461
463 }
464 else if (i == 1)
465 {
466
468
470
472 }
473 }
474 }
475 }
476 }
477
478 const int GATE1 = 0;
479 const int GATE2 = 1;
480
481 switch (
events.ExecuteEvent())
482 {
485 break;
488 break;
491 break;
494 break;
497 break;
500 break;
502 {
506 {
508 {
509 case 10:
511 break;
512 case 5:
515 ysida->AI()->SetData(1, 1);
516 break;
517 case 0:
520 break;
521 }
522 }
523
526 else
528
530 break;
531 }
533 {
536 {
538 {
542 }
543 else
545 }
546 break;
547 }
549 {
551 break;
552 }
554 {
558 if (
Player* player = i->GetSource())
559 if (player->GetDistance2d(4034.97f, -3402.13f) < 50.0f)
560 {
562 return;
563 }
564
566 break;
567 }
569 {
570 for (
uint8 i = 0; i < 5; ++i)
572 {
573 guard->SetWalk(true);
574 guard->GetMotionMaster()->MovePoint(0,
BlackGuardPos[i + 5]);
576 if (i == 0 && guard->AI())
578 }
579
582 break;
583 }
584 default:
585 break;
586 }
587 }
@ EMOTE_ONESHOT_ATTACK1H
Definition SharedDefines.h:1926
Definition LinkedList.h:139
bool IsEmpty() const
Definition LinkedList.h:97
Definition MapRefMgr.h:26
iterator begin()
Definition MapRefMgr.h:36
iterator end()
Definition MapRefMgr.h:37
PlayerList const & GetPlayers() const
Definition Map.h:333
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:17754
bool IsAlive() const
Definition Unit.h:1707
void HandleEmoteCommand(uint32 emoteId)
Definition Unit.cpp:2011
bool IsInCombat() const
Definition Unit.h:893
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2459
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
@ 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
void gate_delay(int gate)
Definition instance_stratholme.cpp:615
void gate_critter_delay(int gate)
Definition instance_stratholme.cpp:627
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(), 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().