|
| 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 |
|
ObjectGuid | GetGuidData (uint32 id) const 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) |
|
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_utgarde_keep::instance_utgarde_keep_InstanceMapScript::SetData |
( |
uint32 |
type, |
|
|
uint32 |
data |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
172 {
173 switch(type)
174 {
179 break;
182 break;
185 {
187 if( c->isDead() )
188 {
189 c->AI()->DoAction(-1);
190 c->Respawn();
191 }
193 if( c->isDead() )
194 c->Respawn();
196 {
197 c->AI()->DoAction(-1);
198 c->DespawnOrUnsummon();
199 }
202 c->DespawnOrUnsummon();
204 }
206 {
208 {
209 c->AI()->DoAction(-1);
210 c->DespawnOrUnsummon();
211 }
214 c->DespawnOrUnsummon();
216 }
217
219 break;
222 {
224 c->SetLootMode(1);
225 c->loot.clear();
226 if (
uint32 lootid = c->GetCreatureTemplate()->lootid)
227 c->loot.FillLoot(lootid,
LootTemplates_Creature, c->GetLootRecipient(),
false,
false, c->GetLootMode(), c);
228 if (c->GetLootMode())
229 c->loot.generateMoneyLoot(c->GetCreatureTemplate()->mingold, c->GetCreatureTemplate()->maxgold);
230 c->DestroyForNearbyPlayers();
231 c->SetVisible(true);
232 }
233 break;
236 {
237 c->AI()->DoAction(-1);
239 c->SetLootMode(1);
240 c->loot.clear();
241 if (
uint32 lootid = c->GetCreatureTemplate()->lootid)
242 c->loot.FillLoot(lootid,
LootTemplates_Creature, c->GetLootRecipient(),
false,
false, c->GetLootMode(), c);
243 if (c->GetLootMode())
244 c->loot.generateMoneyLoot(c->GetCreatureTemplate()->mingold, c->GetCreatureTemplate()->maxgold);
245 c->DestroyForNearbyPlayers();
246 c->SetVisible(true);
247 }
248 break;
251 {
254 }
256 break;
261 {
266 }
267 else
268 {
273 }
274 break;
277 c->AI()->SetData(28, 6);
278 break;
279 }
280
282 {
284 }
285 }
@ NOT_STARTED
Definition: InstanceScript.h:56
LootStore LootTemplates_Creature("creature_loot_template", "creature entry", true)
@ DATA_SPECIAL_DRAKE
Definition: utgarde_keep.h:37
@ DATA_UNLOCK_DALRONN_LOOT
Definition: utgarde_keep.h:44
@ DATA_ON_THE_ROCKS_ACHIEV
Definition: utgarde_keep.h:35
@ DATA_UNLOCK_SKARVALD_LOOT
Definition: utgarde_keep.h:43
@ UNIT_DYNFLAG_TAPPED_BY_PLAYER
Definition: SharedDefines.h:3096
@ UNIT_DYNFLAG_TAPPED
Definition: SharedDefines.h:3095
@ UNIT_DYNFLAG_LOOTABLE
Definition: SharedDefines.h:3093
void Clear()
Definition: ObjectGuid.h:140
void SaveToDB()
Definition: InstanceScript.cpp:41
References bRocksAchiev, ObjectGuid::Clear(), DATA_DALRONN_AND_SKARVALD, DATA_FORGE_1, DATA_FORGE_2, DATA_FORGE_3, DATA_INGVAR, DATA_KELESETH, DATA_ON_THE_ROCKS_ACHIEV, DATA_SPECIAL_DRAKE, DATA_UNLOCK_DALRONN_LOOT, DATA_UNLOCK_SKARVALD_LOOT, DONE, ForgeEventMask, Map::GetCreature(), GO_ForgeAnvilGUID, GO_ForgeBellowGUID, GO_ForgeFireGUID, GO_PortcullisGUID, InstanceScript::HandleGameObject(), InstanceScript::instance, LootTemplates_Creature, m_auiEncounter, NOT_STARTED, NPC_DalronnGhostGUID, NPC_DalronnGUID, NPC_SkarvaldGhostGUID, NPC_SkarvaldGUID, NPC_SpecialDrakeGUID, InstanceScript::SaveToDB(), UNIT_DYNFLAG_LOOTABLE, UNIT_DYNFLAG_TAPPED, and UNIT_DYNFLAG_TAPPED_BY_PLAYER.