AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript Struct Reference
Inheritance diagram for instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript:
InstanceScript ZoneScript

Public Member Functions

 instance_utgarde_keep_InstanceMapScript (Map *pMap)
 
void Initialize () override
 
bool IsEncounterInProgress () const override
 
bool SetBossState (uint32 type, EncounterState state) override
 
void OnPlayerEnter (Player *plr) override
 
void OnCreatureCreate (Creature *creature) override
 
void OnGameObjectCreate (GameObject *go) override
 
void SetData (uint32 type, uint32 data) override
 
uint32 GetData (uint32 id) const override
 
void ReadSaveDataMore (std::istringstream &data) override
 
void WriteSaveDataMore (std::ostringstream &data) override
 
bool CheckAchievementCriteriaMeet (uint32 criteria_id, Player const *, Unit const *, uint32) override
 
- Public Member Functions inherited from InstanceScript
 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
 
CreatureGetCreature (uint32 type)
 
GameObjectGetGameObject (uint32 type)
 
virtual void OnPlayerEnter (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 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)
 
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
 
- Public Member Functions inherited from ZoneScript
 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)
 

Public Attributes

uint32 m_auiEncounter [MAX_ENCOUNTER]
 
uint32 ForgeEventMask
 
std::string str_data
 
ObjectGuid GO_ForgeBellowGUID [3]
 
ObjectGuid GO_ForgeFireGUID [3]
 
ObjectGuid GO_ForgeAnvilGUID [3]
 
ObjectGuid GO_PortcullisGUID [2]
 
ObjectGuid NPC_SpecialDrakeGUID
 
bool bRocksAchiev
 
- Public Attributes inherited from InstanceScript
Mapinstance
 
TaskScheduler scheduler
 

Additional Inherited Members

- Static Public Member Functions inherited from InstanceScript
static std::string GetBossStateName (uint8 state)
 
- Protected Member Functions inherited from InstanceScript
void SetHeaders (std::string const &dataHeaders)
 
void SetBossNumber (uint32 number)
 
void SetPersistentDataCount (uint32 number)
 
void LoadBossBoundaries (BossBoundaryData const &data)
 
void LoadDoorData (DoorData const *data)
 
void LoadMinionData (MinionData const *data)
 
void LoadObjectData (ObjectData const *creatureData, ObjectData const *gameObjectData)
 
void LoadSummonData (ObjectData const *data)
 
void SetSummoner (Creature *creature)
 
void AddObject (Creature *obj, bool add=true)
 
void RemoveObject (Creature *obj)
 
void AddObject (GameObject *obj, bool add=true)
 
void RemoveObject (GameObject *obj)
 
void AddObject (WorldObject *obj, uint32 type, bool add=true)
 
void RemoveObject (WorldObject *obj, uint32 type)
 
void AddDoor (GameObject *door, bool add=true)
 
void RemoveDoor (GameObject *door)
 
void AddMinion (Creature *minion, bool add=true)
 
void RemoveMinion (Creature *minion)
 
void UpdateDoorState (GameObject *door)
 
void UpdateMinionState (Creature *minion, EncounterState state)
 
bool ReadSaveDataHeaders (std::istringstream &data)
 
void ReadSaveDataBossStates (std::istringstream &data)
 
void ReadSavePersistentData (std::istringstream &data)
 
virtual void ReadSaveDataMore (std::istringstream &)
 
void WriteSaveDataHeaders (std::ostringstream &data)
 
void WriteSaveDataBossStates (std::ostringstream &data)
 
void WritePersistentData (std::ostringstream &data)
 
virtual void WriteSaveDataMore (std::ostringstream &)
 

Detailed Description

Constructor & Destructor Documentation

◆ instance_utgarde_keep_InstanceMapScript()

instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::instance_utgarde_keep_InstanceMapScript ( Map pMap)
inline
45 : InstanceScript(pMap)
46 {
50 }
ObjectData const creatureData[]
Definition: instance_utgarde_keep.cpp:23
#define DataHeader
Definition: blackrock_depths.h:23
uint32 const EncounterCount
Definition: blackrock_spire.h:23
Definition: InstanceScript.h:142
void SetBossNumber(uint32 number)
Definition: InstanceScript.h:285
void SetHeaders(std::string const &dataHeaders)
Definition: InstanceScript.cpp:141
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
Definition: InstanceScript.cpp:176

References creatureData, DataHeader, EncounterCount, InstanceScript::LoadObjectData(), InstanceScript::SetBossNumber(), and InstanceScript::SetHeaders().

Member Function Documentation

◆ CheckAchievementCriteriaMeet()

bool instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::CheckAchievementCriteriaMeet ( uint32  criteria_id,
Player const *  ,
Unit const *  ,
uint32   
)
inlineoverridevirtual

Reimplemented from InstanceScript.

320 {
321 switch (criteria_id)
322 {
323 case 7231: // On The Rocks
324 return bRocksAchiev;
325 }
326 return false;
327 }
bool bRocksAchiev
Definition: instance_utgarde_keep.cpp:62

References bRocksAchiev.

◆ GetData()

uint32 instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::GetData ( uint32  id) const
inlineoverridevirtual

Reimplemented from ZoneScript.

290 {
291 switch (id)
292 {
293 case DATA_KELESETH:
295 case DATA_INGVAR:
296 return m_auiEncounter[id];
297 case DATA_FORGE_1:
298 case DATA_FORGE_2:
299 case DATA_FORGE_3:
300 return ForgeEventMask & (uint32)(1 << (id - 100));
301 }
302
303 return 0;
304 }
std::uint32_t uint32
Definition: Define.h:107
@ DATA_FORGE_2
Definition: utgarde_keep.h:46
@ DATA_KELESETH
Definition: utgarde_keep.h:31
@ DATA_FORGE_1
Definition: utgarde_keep.h:45
@ DATA_FORGE_3
Definition: utgarde_keep.h:47
@ DATA_INGVAR
Definition: utgarde_keep.h:33
@ DATA_DALRONN_AND_SKARVALD
Definition: utgarde_keep.h:32
uint32 ForgeEventMask
Definition: instance_utgarde_keep.cpp:53
uint32 m_auiEncounter[MAX_ENCOUNTER]
Definition: instance_utgarde_keep.cpp:52

References DATA_DALRONN_AND_SKARVALD, DATA_FORGE_1, DATA_FORGE_2, DATA_FORGE_3, DATA_INGVAR, DATA_KELESETH, ForgeEventMask, and m_auiEncounter.

◆ Initialize()

void instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::Initialize ( )
inlineoverridevirtual

Reimplemented from InstanceScript.

65 {
66 memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
68
69 bRocksAchiev = true;
70 }

References bRocksAchiev, ForgeEventMask, and m_auiEncounter.

◆ IsEncounterInProgress()

bool instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::IsEncounterInProgress ( ) const
inlineoverridevirtual

Reimplemented from InstanceScript.

73 {
75 return true;
76
77 for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
78 if (m_auiEncounter[i] == IN_PROGRESS) return true;
79
80 return false;
81 }
std::uint8_t uint8
Definition: Define.h:109
#define MAX_ENCOUNTER
Definition: violet_hold.h:21
@ IN_PROGRESS
Definition: InstanceScript.h:58
virtual bool IsEncounterInProgress() const
Definition: InstanceScript.cpp:125

References IN_PROGRESS, InstanceScript::IsEncounterInProgress(), m_auiEncounter, and MAX_ENCOUNTER.

◆ OnCreatureCreate()

void instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::OnCreatureCreate ( Creature creature)
inlineoverridevirtual

Reimplemented from InstanceScript.

113 {
114 switch (creature->GetEntry())
115 {
117 if (creature->GetPositionX() < 250.0f) NPC_SpecialDrakeGUID = creature->GetGUID();
118 break;
119 }
120
122 }
@ NPC_ENSLAVED_PROTO_DRAKE
Definition: utgarde_keep.h:81
uint32 GetEntry() const
Definition: Object.h:112
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
float GetPositionX() const
Definition: Position.h:116
void OnCreatureCreate(Creature *creature) override
Definition: InstanceScript.cpp:58
ObjectGuid NPC_SpecialDrakeGUID
Definition: instance_utgarde_keep.cpp:61

References Object::GetEntry(), Object::GetGUID(), Position::GetPositionX(), NPC_ENSLAVED_PROTO_DRAKE, NPC_SpecialDrakeGUID, and InstanceScript::OnCreatureCreate().

◆ OnGameObjectCreate()

void instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::OnGameObjectCreate ( GameObject go)
inlineoverridevirtual

Reimplemented from InstanceScript.

125 {
126 switch (go->GetEntry())
127 {
128 case GO_BELLOW_1:
129 GO_ForgeBellowGUID[0] = go->GetGUID();
131 break;
132 case GO_BELLOW_2:
133 GO_ForgeBellowGUID[1] = go->GetGUID();
135 break;
136 case GO_BELLOW_3:
137 GO_ForgeBellowGUID[2] = go->GetGUID();
139 break;
140 case GO_FORGEFIRE_1:
141 GO_ForgeFireGUID[0] = go->GetGUID();
143 break;
144 case GO_FORGEFIRE_2:
145 GO_ForgeFireGUID[1] = go->GetGUID();
147 break;
148 case GO_FORGEFIRE_3:
149 GO_ForgeFireGUID[2] = go->GetGUID();
151 break;
153 GO_ForgeAnvilGUID[0] = go->GetGUID();
155 break;
157 GO_ForgeAnvilGUID[1] = go->GetGUID();
159 break;
161 GO_ForgeAnvilGUID[2] = go->GetGUID();
163 break;
165 GO_PortcullisGUID[0] = go->GetGUID();
167 break;
169 GO_PortcullisGUID[1] = go->GetGUID();
171 break;
172 }
173 }
@ GO_FORGEFIRE_3
Definition: utgarde_keep.h:61
@ GO_GIANT_PORTCULLIS_1
Definition: utgarde_keep.h:67
@ GO_BELLOW_3
Definition: utgarde_keep.h:57
@ GO_GLOWING_ANVIL_1
Definition: utgarde_keep.h:63
@ GO_GLOWING_ANVIL_2
Definition: utgarde_keep.h:64
@ GO_BELLOW_1
Definition: utgarde_keep.h:55
@ GO_GIANT_PORTCULLIS_2
Definition: utgarde_keep.h:68
@ GO_BELLOW_2
Definition: utgarde_keep.h:56
@ GO_FORGEFIRE_2
Definition: utgarde_keep.h:60
@ GO_GLOWING_ANVIL_3
Definition: utgarde_keep.h:65
@ GO_FORGEFIRE_1
Definition: utgarde_keep.h:59
@ DONE
Definition: InstanceScript.h:60
static ObjectGuid const Empty
Definition: ObjectGuid.h:120
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition: InstanceScript.cpp:113
ObjectGuid GO_ForgeAnvilGUID[3]
Definition: instance_utgarde_keep.cpp:58
ObjectGuid GO_ForgeFireGUID[3]
Definition: instance_utgarde_keep.cpp:57
ObjectGuid GO_PortcullisGUID[2]
Definition: instance_utgarde_keep.cpp:59
ObjectGuid GO_ForgeBellowGUID[3]
Definition: instance_utgarde_keep.cpp:56

References DONE, ObjectGuid::Empty, ForgeEventMask, Object::GetEntry(), Object::GetGUID(), GO_BELLOW_1, GO_BELLOW_2, GO_BELLOW_3, GO_ForgeAnvilGUID, GO_ForgeBellowGUID, GO_FORGEFIRE_1, GO_FORGEFIRE_2, GO_FORGEFIRE_3, GO_ForgeFireGUID, GO_GIANT_PORTCULLIS_1, GO_GIANT_PORTCULLIS_2, GO_GLOWING_ANVIL_1, GO_GLOWING_ANVIL_2, GO_GLOWING_ANVIL_3, GO_PortcullisGUID, InstanceScript::HandleGameObject(), and m_auiEncounter.

◆ OnPlayerEnter()

void instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::OnPlayerEnter ( Player plr)
inlineoverridevirtual

Reimplemented from InstanceScript.

95 {
97 {
98 c->SetReactState(REACT_PASSIVE);
99 c->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
100 if (plr && plr->GetTeamId() == TEAM_HORDE)
101 {
102 if (!c->IsVisible())
103 c->SetVisible(true);
104 }
105 else if (c->IsVisible())
106 {
107 c->SetVisible(false);
108 }
109 }
110 }
@ DATA_DARK_RANGER_MARRAH
Definition: utgarde_keep.h:40
@ TEAM_HORDE
Definition: SharedDefines.h:761
@ REACT_PASSIVE
Definition: Unit.h:548
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
Definition: Creature.h:43
TeamId GetTeamId(bool original=false) const
Definition: Player.h:2091
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:103

References DATA_DARK_RANGER_MARRAH, InstanceScript::GetCreature(), Player::GetTeamId(), REACT_PASSIVE, TEAM_HORDE, and UNIT_FLAG_NON_ATTACKABLE.

◆ ReadSaveDataMore()

void instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::ReadSaveDataMore ( std::istringstream &  data)
inlineoverridevirtual

Reimplemented from InstanceScript.

307 {
308 data >> m_auiEncounter[0];
309 data >> m_auiEncounter[1];
310 data >> m_auiEncounter[2];
311 data >> ForgeEventMask;
312 }

References ForgeEventMask, and m_auiEncounter.

◆ SetBossState()

bool instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::SetBossState ( uint32  type,
EncounterState  state 
)
inlineoverridevirtual

Reimplemented from InstanceScript.

84 {
85 if (!InstanceScript::SetBossState(type, state))
86 return false;
87
88 if (type == DATA_KELESETH && state == NOT_STARTED)
89 bRocksAchiev = true;
90
91 return true;
92 }
@ NOT_STARTED
Definition: InstanceScript.h:57
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:373

References bRocksAchiev, DATA_KELESETH, NOT_STARTED, and InstanceScript::SetBossState().

◆ SetData()

void instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::SetData ( uint32  type,
uint32  data 
)
inlineoverridevirtual

Reimplemented from ZoneScript.

176 {
177 switch (type)
178 {
180 bRocksAchiev = false;
181 break;
183 if (data == NOT_STARTED)
184 {
186 if (c->isDead())
187 {
188 c->AI()->DoAction(-1);
189 c->Respawn();
190 }
191
193 if (c->isDead())
194 c->Respawn();
195
197 {
198 c->AI()->DoAction(-1);
199 c->DespawnOrUnsummon();
200 }
201
203 c->DespawnOrUnsummon();
204
205 }
206
207 if (data == DONE)
208 {
210 {
211 c->AI()->DoAction(-1);
212 c->DespawnOrUnsummon();
213 }
214
216 c->DespawnOrUnsummon();
217
218 }
219
220 m_auiEncounter[1] = data;
221 break;
224 {
226 c->SetLootMode(1);
227 c->loot.clear();
228 if (uint32 lootid = c->GetCreatureTemplate()->lootid)
229 c->loot.FillLoot(lootid, LootTemplates_Creature, c->GetLootRecipient(), false, false, c->GetLootMode(), c);
230 if (c->GetLootMode())
231 c->loot.generateMoneyLoot(c->GetCreatureTemplate()->mingold, c->GetCreatureTemplate()->maxgold);
232 c->DestroyForNearbyPlayers();
233 c->SetVisible(true);
234 }
235 break;
238 {
239 c->AI()->DoAction(-1);
241 c->SetLootMode(1);
242 c->loot.clear();
243 if (uint32 lootid = c->GetCreatureTemplate()->lootid)
244 c->loot.FillLoot(lootid, LootTemplates_Creature, c->GetLootRecipient(), false, false, c->GetLootMode(), c);
245 if (c->GetLootMode())
246 c->loot.generateMoneyLoot(c->GetCreatureTemplate()->mingold, c->GetCreatureTemplate()->maxgold);
247 c->DestroyForNearbyPlayers();
248 c->SetVisible(true);
249 }
250 break;
251 case DATA_INGVAR:
252 if (data == DONE)
253 {
256 }
257 m_auiEncounter[2] = data;
258 break;
259 case DATA_FORGE_1:
260 case DATA_FORGE_2:
261 case DATA_FORGE_3:
262 if (data == NOT_STARTED)
263 {
264 HandleGameObject(GO_ForgeBellowGUID[type - 100], false);
265 HandleGameObject(GO_ForgeFireGUID[type - 100], false);
266 HandleGameObject(GO_ForgeAnvilGUID[type - 100], false);
267 ForgeEventMask &= ~((uint32)(1 << (type - 100)));
268 }
269 else
270 {
271 HandleGameObject(GO_ForgeBellowGUID[type - 100], true);
272 HandleGameObject(GO_ForgeFireGUID[type - 100], true);
273 HandleGameObject(GO_ForgeAnvilGUID[type - 100], true);
274 ForgeEventMask |= (uint32)(1 << (type - 100));
275 }
276 break;
279 c->AI()->SetData(28, 6);
280 break;
281 }
282
283 if (data == DONE)
284 {
285 SaveToDB();
286 }
287 }
@ DATA_SPECIAL_DRAKE
Definition: utgarde_keep.h:43
@ DATA_UNLOCK_DALRONN_LOOT
Definition: utgarde_keep.h:50
@ DATA_DALRONN
Definition: utgarde_keep.h:36
@ DATA_ON_THE_ROCKS_ACHIEV
Definition: utgarde_keep.h:41
@ DATA_SKARVALD_GHOST
Definition: utgarde_keep.h:39
@ DATA_UNLOCK_SKARVALD_LOOT
Definition: utgarde_keep.h:49
@ DATA_SKARVALD
Definition: utgarde_keep.h:37
@ DATA_DALRONN_GHOST
Definition: utgarde_keep.h:38
@ UNIT_DYNFLAG_TAPPED_BY_PLAYER
Definition: SharedDefines.h:3124
@ UNIT_DYNFLAG_TAPPED
Definition: SharedDefines.h:3123
@ UNIT_DYNFLAG_LOOTABLE
Definition: SharedDefines.h:3121
LootStore LootTemplates_Creature("creature_loot_template", "creature entry", true)
Map * instance
Definition: InstanceScript.h:148
void SaveToDB()
Definition: InstanceScript.cpp:41
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3317

References bRocksAchiev, DATA_DALRONN, DATA_DALRONN_AND_SKARVALD, DATA_DALRONN_GHOST, DATA_FORGE_1, DATA_FORGE_2, DATA_FORGE_3, DATA_INGVAR, DATA_ON_THE_ROCKS_ACHIEV, DATA_SKARVALD, DATA_SKARVALD_GHOST, DATA_SPECIAL_DRAKE, DATA_UNLOCK_DALRONN_LOOT, DATA_UNLOCK_SKARVALD_LOOT, DONE, ForgeEventMask, Map::GetCreature(), InstanceScript::GetCreature(), GO_ForgeAnvilGUID, GO_ForgeBellowGUID, GO_ForgeFireGUID, GO_PortcullisGUID, InstanceScript::HandleGameObject(), InstanceScript::instance, LootTemplates_Creature, m_auiEncounter, NOT_STARTED, NPC_SpecialDrakeGUID, InstanceScript::SaveToDB(), UNIT_DYNFLAG_LOOTABLE, UNIT_DYNFLAG_TAPPED, and UNIT_DYNFLAG_TAPPED_BY_PLAYER.

◆ WriteSaveDataMore()

void instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::WriteSaveDataMore ( std::ostringstream &  data)
inlineoverridevirtual

Reimplemented from InstanceScript.

315 {
316 data << m_auiEncounter[0] << ' ' << m_auiEncounter[1] << ' ' << m_auiEncounter[2] << ' ' << ForgeEventMask;
317 }

References ForgeEventMask, and m_auiEncounter.

Member Data Documentation

◆ bRocksAchiev

bool instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::bRocksAchiev

◆ ForgeEventMask

uint32 instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::ForgeEventMask

◆ GO_ForgeAnvilGUID

ObjectGuid instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::GO_ForgeAnvilGUID[3]

Referenced by OnGameObjectCreate(), and SetData().

◆ GO_ForgeBellowGUID

ObjectGuid instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::GO_ForgeBellowGUID[3]

Referenced by OnGameObjectCreate(), and SetData().

◆ GO_ForgeFireGUID

ObjectGuid instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::GO_ForgeFireGUID[3]

Referenced by OnGameObjectCreate(), and SetData().

◆ GO_PortcullisGUID

ObjectGuid instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::GO_PortcullisGUID[2]

Referenced by OnGameObjectCreate(), and SetData().

◆ m_auiEncounter

uint32 instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::m_auiEncounter[MAX_ENCOUNTER]

◆ NPC_SpecialDrakeGUID

ObjectGuid instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::NPC_SpecialDrakeGUID

Referenced by OnCreatureCreate(), and SetData().

◆ str_data

std::string instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::str_data