|
| instance_utgarde_keep_InstanceMapScript (Map *pMap) |
|
void | Initialize () override |
|
bool | IsEncounterInProgress () const 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 |
|
| 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) |
|
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 |
|
| 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_utgarde_keep::instance_utgarde_keep_InstanceMapScript::SetData |
( |
uint32 |
type, |
|
|
uint32 |
data |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
160 {
161 switch (type)
162 {
167 break;
170 break;
173 {
175 if (c->isDead())
176 {
177 c->AI()->DoAction(-1);
178 c->Respawn();
179 }
180
182 if (c->isDead())
183 c->Respawn();
184
186 {
187 c->AI()->DoAction(-1);
188 c->DespawnOrUnsummon();
189 }
190
192 c->DespawnOrUnsummon();
193
194 }
195
197 {
199 {
200 c->AI()->DoAction(-1);
201 c->DespawnOrUnsummon();
202 }
203
205 c->DespawnOrUnsummon();
206
207 }
208
210 break;
213 {
215 c->SetLootMode(1);
216 c->loot.clear();
217 if (
uint32 lootid = c->GetCreatureTemplate()->lootid)
218 c->loot.FillLoot(lootid,
LootTemplates_Creature, c->GetLootRecipient(),
false,
false, c->GetLootMode(), c);
219 if (c->GetLootMode())
220 c->loot.generateMoneyLoot(c->GetCreatureTemplate()->mingold, c->GetCreatureTemplate()->maxgold);
221 c->DestroyForNearbyPlayers();
222 c->SetVisible(true);
223 }
224 break;
227 {
228 c->AI()->DoAction(-1);
230 c->SetLootMode(1);
231 c->loot.clear();
232 if (
uint32 lootid = c->GetCreatureTemplate()->lootid)
233 c->loot.FillLoot(lootid,
LootTemplates_Creature, c->GetLootRecipient(),
false,
false, c->GetLootMode(), c);
234 if (c->GetLootMode())
235 c->loot.generateMoneyLoot(c->GetCreatureTemplate()->mingold, c->GetCreatureTemplate()->maxgold);
236 c->DestroyForNearbyPlayers();
237 c->SetVisible(true);
238 }
239 break;
242 {
245 }
247 break;
252 {
257 }
258 else
259 {
264 }
265 break;
268 c->AI()->SetData(28, 6);
269 break;
270 }
271
273 {
275 }
276 }
@ NOT_STARTED
Definition: InstanceScript.h:57
LootStore LootTemplates_Creature("creature_loot_template", "creature entry", true)
@ DATA_SPECIAL_DRAKE
Definition: utgarde_keep.h:39
@ DATA_UNLOCK_DALRONN_LOOT
Definition: utgarde_keep.h:46
@ DATA_DALRONN
Definition: utgarde_keep.h:32
@ DATA_ON_THE_ROCKS_ACHIEV
Definition: utgarde_keep.h:37
@ DATA_SKARVALD_GHOST
Definition: utgarde_keep.h:35
@ DATA_UNLOCK_SKARVALD_LOOT
Definition: utgarde_keep.h:45
@ DATA_SKARVALD
Definition: utgarde_keep.h:33
@ DATA_DALRONN_GHOST
Definition: utgarde_keep.h:34
@ UNIT_DYNFLAG_TAPPED_BY_PLAYER
Definition: SharedDefines.h:3124
@ UNIT_DYNFLAG_TAPPED
Definition: SharedDefines.h:3123
@ UNIT_DYNFLAG_LOOTABLE
Definition: SharedDefines.h:3121
Map * instance
Definition: InstanceScript.h:148
void SaveToDB()
Definition: InstanceScript.cpp:41
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3314
References bRocksAchiev, DATA_DALRONN, DATA_DALRONN_AND_SKARVALD, DATA_DALRONN_GHOST, DATA_FORGE_1, DATA_FORGE_2, DATA_FORGE_3, DATA_INGVAR, DATA_KELESETH, 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.