|
| instance_eye_of_eternity_InstanceMapScript (Map *pMap) |
|
void | Initialize () override |
|
bool | IsEncounterInProgress () const override |
|
void | OnPlayerEnter (Player *pPlayer) override |
|
void | OnCreatureCreate (Creature *creature) override |
|
void | OnGameObjectCreate (GameObject *go) override |
|
void | SetData (uint32 type, uint32 data) override |
|
ObjectGuid | GetGuidData (uint32 type) const override |
|
void | ProcessEvent (WorldObject *, uint32 eventId) override |
|
void | ReadSaveDataMore (std::istringstream &data) override |
|
void | WriteSaveDataMore (std::ostringstream &data) override |
|
bool | CheckAchievementCriteriaMeet (uint32 criteria_id, Player const *source, Unit const *, uint32) override |
|
| InstanceScript (Map *map) |
|
| ~InstanceScript () override |
|
virtual void | Load (char const *data) |
|
virtual void | CreatureLooted (Creature *, LootType) |
|
virtual std::string | GetSaveData () |
|
void | SaveToDB () |
|
virtual void | Update (uint32) |
|
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 | 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 | OnUnitDeath (Unit *) |
|
virtual void | OnCreatureEvade (Creature *) |
|
virtual void | SetGuidData (uint32, ObjectGuid) |
|
virtual uint64 | GetData64 (uint32) const |
|
virtual void | SetData64 (uint32, uint64) |
|
virtual uint32 | GetData (uint32) const |
|
void instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnPlayerEnter |
( |
Player * |
pPlayer | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
72 {
74 {
75
78 if (go->GetPhaseMask() != 2)
79 go->SetPhaseMask(2, true);
80
81
82 if (pPlayer)
83 {
85 return;
86
88 {
89 c->SetCanFly(true);
91
93 }
94 }
95 }
96 }
@ DONE
Definition InstanceScript.h:61
@ TEMPSUMMON_MANUAL_DESPAWN
Definition Object.h:53
Definition eye_of_eternity.h:111
Definition GameObject.h:120
Map * instance
Definition InstanceScript.h:149
GameObject * GetGameObject(ObjectGuid const guid)
Definition Map.cpp:2503
bool IsAlive() const
Definition Unit.h:1707
uint32 GetFaction() const
Definition Unit.h:817
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition Object.cpp:2368
@ NPC_WYRMREST_SKYTALON
Definition eye_of_eternity.h:49
float GetPositionZ() const
Definition Position.h:123
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122
void ProcessEvent(WorldObject *, uint32 eventId) override
Definition instance_eye_of_eternity.cpp:196
References DONE, EncounterStatus, Unit::GetFaction(), Map::GetGameObject(), Object::GetGUID(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GO_IrisGUID, InstanceScript::instance, Unit::IsAlive(), NPC_WYRMREST_SKYTALON, ProcessEvent(), WorldObject::SummonCreature(), and TEMPSUMMON_MANUAL_DESPAWN.
void instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SetData |
( |
uint32 |
type, |
|
|
uint32 |
data |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
126 {
127 switch (type)
128 {
133 c->AI()->AttackStart(plr);
134 break;
137 switch (data)
138 {
142 {
143 go->SetPhaseMask(1, true);
145 }
147 go->SetPhaseMask(1, true);
149 {
151 go->EnableCollision(true);
152 }
153 break;
156 break;
160 go->SetPhaseMask(1, true);
163 break;
164 }
167 break;
170 {
174 }
175 break;
178 go->SetPhaseMask(2, true);
180 go->SetPhaseMask(2, true);
181 break;
182 }
183 }
std::uint32_t uint32
Definition Define.h:107
@ TEMPSUMMON_TIMED_DESPAWN
Definition Object.h:48
@ GO_DESTRUCTIBLE_REBUILDING
Definition SharedDefines.h:1630
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition InstanceScript.cpp:125
void SaveToDB()
Definition InstanceScript.cpp:41
uint8 GetSpawnMode() const
Definition Map.h:267
uint32 GetPlayersCountExceptGMs() const
Definition Map.cpp:1927
Player * SelectNearestPlayer(float distance=0) const
Definition Object.cpp:2486
@ NPC_WORLD_TRIGGER_LAOI
Definition eye_of_eternity.h:41
@ NPC_ALEXSTRASZA
Definition eye_of_eternity.h:51
@ SPELL_IRIS_ACTIVATED
Definition eye_of_eternity.h:66
@ DATA_ENCOUNTER_STATUS
Definition eye_of_eternity.h:57
@ DATA_SET_IRIS_INACTIVE
Definition eye_of_eternity.h:58
@ DATA_HIDE_IRIS_AND_PORTAL
Definition eye_of_eternity.h:59
@ DATA_IRIS_ACTIVATED
Definition eye_of_eternity.h:56
References bPokeAchiev, DATA_ENCOUNTER_STATUS, DATA_HIDE_IRIS_AND_PORTAL, DATA_IRIS_ACTIVATED, DATA_SET_IRIS_INACTIVE, DONE, EncounterStatus, Map::GetCreature(), Map::GetGameObject(), Map::GetPlayersCountExceptGMs(), Map::GetSpawnMode(), GO_DESTRUCTIBLE_REBUILDING, GO_ExitPortalGUID, GO_IrisGUID, GO_PlatformGUID, InstanceScript::HandleGameObject(), IN_PROGRESS, InstanceScript::instance, NOT_STARTED, NPC_ALEXSTRASZA, NPC_MalygosGUID, NPC_WORLD_TRIGGER_LAOI, InstanceScript::SaveToDB(), WorldObject::SelectNearestPlayer(), SPELL_IRIS_ACTIVATED, WorldObject::SummonCreature(), and TEMPSUMMON_TIMED_DESPAWN.