|
| instance_old_hillsbrad_InstanceMapScript (Map *map) |
|
void | Initialize () override |
|
void | OnPlayerEnter (Player *player) override |
|
void | CleanupInstance () |
|
void | OnCreatureCreate (Creature *creature) override |
|
void | OnGameObjectCreate (GameObject *gameobject) override |
|
void | SetData (uint32 type, uint32 data) override |
|
uint32 | GetData (uint32 data) const override |
|
ObjectGuid | GetGuidData (uint32 data) const override |
|
void | Update (uint32 diff) override |
|
void | Reposition (Creature *thrall) |
|
void | EnsureGridLoaded () |
|
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) |
|
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_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::Update |
( |
uint32 |
diff | ) |
|
|
inlineoverridevirtual |
Reimplemented from InstanceScript.
194 {
197 {
199 {
202
205 {
208 orc->MovePosition(pos,
frand(1.0f, 3.0f) + 15.0f * (
float)
rand_norm(), (
float)
rand_norm() *
static_cast<float>(2 * M_PI));
209 orc->GetMotionMaster()->MovePoint(1, pos);
211 }
212
215 {
216 gobject->SetRespawnTime(0);
217 gobject->UpdateObjectVisibility(true);
218 }
219 break;
220 }
222 {
225
227 {
231 if (
Player* player = itr->GetSource())
233 }
234
237 {
238 gobject->SetRespawnTime(0);
239 gobject->UpdateObjectVisibility(true);
240 }
241
246
249 break;
250 }
252 {
255 break;
256 }
258 {
260 {
261 if (!thrall->IsAlive())
262 {
265 thrall->SetVisible(false);
267 thrall->setDeathState(DeathState::Dead);
268 thrall->Respawn();
269 thrall->SetVisible(true);
271 }
272 else
273 thrall->AI()->Reset();
274 }
275 break;
276 }
277 }
278 }
float frand(float min, float max)
Definition: Random.cpp:57
double rand_norm()
Definition: Random.cpp:77
bool roll_chance_i(int chance)
Definition: Random.h:59
static Position const instancePositions[INSTANCE_POSITIONS_COUNT]
Definition: instance_old_hillsbrad.cpp:24
@ NPC_LIEUTENANT_DRAKE
Definition: old_hillsbrad.h:48
@ NPC_LODGE_QUEST_TRIGGER
Definition: old_hillsbrad.h:50
@ EMOTE_ONESHOT_CHEER
Definition: SharedDefines.h:1898
@ UNIT_STAND_STATE_STAND
Definition: UnitDefines.h:32
bool IsEmpty() const
Definition: LinkedList.h:97
Definition: LinkedList.h:139
uint32 ExecuteEvent()
Definition: EventMap.cpp:114
void Update(uint32 time)
Definition: EventMap.h:54
Definition: GameObject.h:120
Definition: ObjectGuid.h:118
Definition: Position.h:27
Definition: Player.h:1081
GameObject * GetGameObject(ObjectGuid const guid)
Definition: Map.cpp:3322
PlayerList const & GetPlayers() const
Definition: Map.h:484
TempSummon * SummonCreature(uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=nullptr, uint32 duration=0, WorldObject *summoner=nullptr, uint32 spellId=0, uint32 vehId=0, bool visibleBySummonerOnly=false)
Definition: Object.cpp:2174
Definition: MapRefMgr.h:26
iterator begin()
Definition: MapRefMgr.h:36
iterator end()
Definition: MapRefMgr.h:37
References _attemptsCount, _encounterProgress, _events, _finalFlamesSet, _initalFlamesSet, _prisonersSet, _thrallGUID, MapRefMgr::begin(), DATA_ESCORT_PROGRESS, InstanceScript::DoUpdateWorldState(), EMOTE_ONESHOT_CHEER, ENCOUNTER_PROGRESS_BARRELS, ENCOUNTER_PROGRESS_NONE, MapRefMgr::end(), EnsureGridLoaded(), EVENT_FINAL_BARRELS_FLAME, EVENT_INITIAL_BARRELS_FLAME, EVENT_SUMMON_LIEUTENANT, EVENT_THRALL_REPOSITION, EventMap::ExecuteEvent(), frand(), Map::GetCreature(), Map::GetGameObject(), Map::GetPlayers(), InstanceScript::instance, instancePositions, LinkedListHead::IsEmpty(), Map::LoadGrid(), NPC_LIEUTENANT_DRAKE, NPC_LODGE_QUEST_TRIGGER, rand_norm(), Reposition(), roll_chance_i(), InstanceScript::SaveToDB(), SetData(), Map::SummonCreature(), UNIT_STAND_STATE_STAND, EventMap::Update(), and WORLD_STATE_BARRELS_PLANTED.