|
| instance_mount_hyjal_InstanceMapScript (Map *map) |
|
void | Initialize () override |
|
bool | IsEncounterInProgress () const override |
|
void | OnGameObjectCreate (GameObject *go) override |
|
void | OnCreatureCreate (Creature *creature) override |
|
ObjectGuid | GetGuidData (uint32 identifier) const override |
|
void | SetData (uint32 type, uint32 data) override |
|
uint32 | GetData (uint32 type) const override |
|
void | ReadSaveDataMore (std::istringstream &data) override |
|
void | WriteSaveDataMore (std::ostringstream &data) 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) |
|
| 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_hyjal::instance_mount_hyjal_InstanceMapScript::OnCreatureCreate |
( |
Creature * |
creature | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
105 {
107 {
110 break;
113 break;
116 break;
119 break;
122 break;
125 break;
128 break;
131 break;
132 }
133 }
@ KAZROGAL
Definition: hyjal.h:86
@ AZGALOR
Definition: hyjal.h:87
@ TYRANDE
Definition: hyjal.h:81
@ ANETHERON
Definition: hyjal.h:85
@ ARCHIMONDE
Definition: hyjal.h:88
@ JAINA
Definition: hyjal.h:79
@ RAGE_WINTERCHILL
Definition: hyjal.h:84
@ THRALL
Definition: hyjal.h:80
uint32 GetEntry() const
Definition: Object.h:109
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
References ANETHERON, Anetheron, ARCHIMONDE, Archimonde, AZGALOR, Azgalor, Object::GetEntry(), Object::GetGUID(), JAINA, JainaProudmoore, KAZROGAL, Kazrogal, RAGE_WINTERCHILL, RageWinterchill, THRALL, Thrall, TYRANDE, and TyrandeWhisperwind.
void instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData |
( |
uint32 |
type, |
|
|
uint32 |
data |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
161 {
162 switch (type)
163 {
166 break;
169 break;
172 break;
174 {
177 {
179 break;
180
182
184 if (creature)
185 {
187
190 {
194 return;
195
197 {
198 if (
Player* player = i->GetSource())
199 {
202 player->SendDirectMessage(&packet);
203 player->PlayDirectSound(10986, player);
204 }
205 }
206 }
207 }
208 }
209 }
210 break;
213 break;
216 break;
218 if (data)
220 else
223 break;
226 {
228 {
230 {
231
233 }
234 }
235 }
236 break;
241 break;
246 break;
251 break;
254 break;
255 }
256
257
258
260 {
262 }
263 }
constexpr auto DAY
Definition: Common.h:58
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:44
@ DONE
Definition: InstanceScript.h:59
@ SPECIAL
Definition: InstanceScript.h:60
@ WORLD_STATE_ENEMYCOUNT
Definition: hyjal.h:63
@ NPC_WORLD_TRIGGER_TINY
Definition: hyjal.h:89
@ TYPE_RETREAT
Definition: hyjal.h:56
@ DATA_RESET_RAIDDAMAGE
Definition: hyjal.h:55
@ DATA_RESET_TRASH_COUNT
Definition: hyjal.h:51
#define MINRAIDDAMAGE
Definition: hyjal_trash.h:24
#define YELL_EFFORTS
Definition: instance_hyjal.cpp:40
@ CHAT_MSG_MONSTER_YELL
Definition: SharedDefines.h:3138
@ LANG_UNIVERSAL
Definition: SharedDefines.h:707
bool IsEmpty() const
Definition: LinkedList.h:97
Definition: LinkedList.h:139
static size_t BuildChatPacket(WorldPacket &data, ChatMsg chatType, Language language, ObjectGuid senderGUID, ObjectGuid receiverGUID, std::string_view message, uint8 chatTag, std::string const &senderName="", std::string const &receiverName="", uint32 achievementId=0, bool gmMessage=false, std::string const &channelName="")
Definition: Chat.cpp:192
Definition: Creature.h:46
Map * GetMap() const
Definition: Object.h:517
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:2318
Definition: ObjectGuid.h:120
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
Definition: Player.h:1046
void SetVisible(bool x)
Definition: Unit.cpp:14129
Map * instance
Definition: InstanceScript.h:146
void SaveToDB()
Definition: InstanceScript.cpp:41
void DoRespawnGameObject(ObjectGuid guid, uint32 timeToDespawn=MINUTE)
Definition: InstanceScript.cpp:487
void DoUpdateWorldState(uint32 worldstateId, uint32 worldstateValue)
Definition: InstanceScript.cpp:519
bool IsDungeon() const
Definition: Map.h:447
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3293
PlayerList const & GetPlayers() const
Definition: Map.h:484
Definition: MapRefMgr.h:26
iterator begin()
Definition: MapRefMgr.h:36
iterator end()
Definition: MapRefMgr.h:37
Definition: WorldPacket.h:27
References allianceRetreat, ArchiYell, Azgalor, MapRefMgr::begin(), ChatHandler::BuildChatPacket(), CHAT_MSG_MONSTER_YELL, DATA_ALLIANCE_RETREAT, DATA_ANETHERONEVENT, DATA_ARCHIMONDEEVENT, DATA_AZGALOREVENT, DATA_HORDE_RETREAT, DATA_KAZROGALEVENT, DATA_RAGEWINTERCHILLEVENT, DATA_RAIDDAMAGE, DATA_RESET_RAIDDAMAGE, DATA_RESET_TRASH_COUNT, DATA_TRASH, DAY, DONE, InstanceScript::DoRespawnGameObject(), InstanceScript::DoUpdateWorldState(), ElfGate, MapRefMgr::end(), Map::GetCreature(), WorldObject::GetMap(), Map::GetPlayers(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), InstanceScript::HandleGameObject(), HordeGate, hordeRetreat, InstanceScript::instance, Map::IsDungeon(), LinkedListHead::IsEmpty(), LANG_UNIVERSAL, m_auiEncounter, m_uiAncientGemGUID, MINRAIDDAMAGE, NPC_WORLD_TRIGGER_TINY, RaidDamage, InstanceScript::SaveToDB(), Unit::SetVisible(), SPECIAL, WorldObject::SummonCreature(), TEMPSUMMON_TIMED_DESPAWN, Trash, TYPE_RETREAT, WORLD_STATE_ENEMYCOUNT, and YELL_EFFORTS.