|
| | instance_sunken_temple_InstanceMapScript (Map *map) |
| |
| void | Initialize () override |
| |
| void | OnCreatureCreate (Creature *creature) override |
| |
| void | OnUnitDeath (Unit *unit) override |
| |
| void | OnGameObjectCreate (GameObject *gameobject) override |
| |
| void | SetData (uint32 type, uint32 data) override |
| |
| uint32 | GetData (uint32 type) const override |
| |
| void | Update (uint32 diff) override |
| |
| void | ReadSaveDataMore (std::istringstream &data) override |
| |
| void | WriteSaveDataMore (std::ostringstream &data) 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 | OnPlayerEnter (Player *) |
| |
| 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_sunken_temple::instance_sunken_temple_InstanceMapScript::OnGameObjectCreate |
( |
GameObject * |
gameobject | ) |
|
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
78 {
80 {
88 {
91 }
92 break;
96 break;
100 break;
105 }
106 }
@ GO_STATE_ACTIVE
Definition GameObjectData.h:691
@ DONE
Definition InstanceScript.h:61
@ GO_FLAG_NOT_SELECTABLE
Definition SharedDefines.h:1618
void SetGoState(GOState state)
Definition GameObject.cpp:2469
void RemoveGameObjectFlag(GameObjectFlags flags)
Definition GameObject.h:218
void ReplaceAllGameObjectFlags(GameObjectFlags flags)
Definition GameObject.h:219
Map * instance
Definition InstanceScript.h:149
GameObject * SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true)
Definition Object.cpp:2306
GameObject * SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
Definition Object.cpp:2373
float GetPositionZ() const
Definition Position.h:123
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122
ObjectGuid _forcefieldGUID
Definition instance_sunken_temple.cpp:196
@ DEFENDERS_COUNT
Definition sunken_temple.h:29
@ MAX_STATUE_PHASE
Definition sunken_temple.h:28
@ GO_ATALAI_IDOL
Definition sunken_temple.h:45
@ GO_ATALAI_STATUE6
Definition sunken_temple.h:44
@ GO_IDOL_OF_HAKKAR
Definition sunken_temple.h:46
@ GO_ATALAI_STATUE5
Definition sunken_temple.h:43
@ GO_ATALAI_STATUE4
Definition sunken_temple.h:42
@ GO_ATALAI_STATUE2
Definition sunken_temple.h:40
@ GO_ATALAI_STATUE3
Definition sunken_temple.h:41
@ GO_ATALAI_LIGHT2
Definition sunken_temple.h:47
@ GO_FORCEFIELD
Definition sunken_temple.h:48
@ GO_ATALAI_STATUE1
Definition sunken_temple.h:39
References _defendersKilled, _encounters, _forcefieldGUID, _statuePhase, DEFENDERS_COUNT, DONE, Object::GetEntry(), Object::GetGUID(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GO_ATALAI_IDOL, GO_ATALAI_LIGHT2, GO_ATALAI_STATUE1, GO_ATALAI_STATUE2, GO_ATALAI_STATUE3, GO_ATALAI_STATUE4, GO_ATALAI_STATUE5, GO_ATALAI_STATUE6, GO_FLAG_NOT_SELECTABLE, GO_FORCEFIELD, GO_IDOL_OF_HAKKAR, GO_STATE_ACTIVE, InstanceScript::instance, MAX_STATUE_PHASE, GameObject::RemoveGameObjectFlag(), GameObject::ReplaceAllGameObjectFlags(), GameObject::SetGoState(), Map::SummonGameObject(), WorldObject::SummonGameObject(), and TYPE_ATAL_ALARION.
| void instance_sunken_temple::instance_sunken_temple_InstanceMapScript::SetData |
( |
uint32 |
type, |
|
|
uint32 |
data |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
109 {
110 switch (type)
111 {
114 break;
118 {
120 jammal->AI()->Talk(0);
123 }
124 break;
127 {
130 creature->SetInCombatWithZone();
131 }
132 break;
137 break;
138 }
139
141 }
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Definition EventMap.cpp:48
Definition GameObject.h:120
void SaveToDB()
Definition InstanceScript.cpp:41
GameObject * GetGameObject(ObjectGuid const &guid)
Definition Map.cpp:2362
bool IsGridLoaded(GridCoord const &gridCoord) const
Definition Map.cpp:204
Definition ObjectGuid.h:118
EventMap _events
Definition instance_sunken_temple.cpp:200
@ DATA_ERANIKUS_FIGHT
Definition sunken_temple.h:27
References _defendersKilled, _dragonkinList, _encounters, _events, _forcefieldGUID, _jammalanGUID, DATA_DEFENDER_KILLED, DATA_ERANIKUS_FIGHT, DATA_STATUES, DEFENDERS_COUNT, Map::GetCreature(), Map::GetGameObject(), GO_STATE_ACTIVE, InstanceScript::instance, Map::IsGridLoaded(), InstanceScript::SaveToDB(), EventMap::ScheduleEvent(), TYPE_ATAL_ALARION, TYPE_HAKKAR_EVENT, and TYPE_JAMMAL_AN.