45 if (player->FindNearestCreature(38930, 15.0f,
true))
52 player->GetClosePoint(x, y, z, player->GetObjectSize() / 3, -10.0f);
55 zuni->GetMotionMaster()->MoveFollow(player, 2.5f,
M_PI);
57 zuni->SendPlaySound(21368,
false);
77 if (!player->HasAura(116219))
79 player->CastSpell(player, 116219);
80 lorewalkerZan->AI()->Talk(0, player);
98 if (!player->HasAura(104571))
100 player->CastSpell(player, 104593);
121 wugou->SetOwnerGUID(0);
123 wugou->DespawnOrUnsummon(4000);
144 shu->SetOwnerGUID(0);
146 shu->DespawnOrUnsummon(7000);
169 if (!player->GetAura(92571))
173 huojinMonk->CastSpell(player, 92571);
174 huojinMonk->AI()->Talk(0);
198 if (!player->GetAura(116220))
202 if (chiahui->FindNearestCreature(54958, 45.0f,
true))
203 chiahui->AI()->Talk(0);
207 if (lin->FindNearestCreature(54958, 45.0f,
true))
210 chiahui->CastSpell(player, 116220);
235 if (!player->GetAura(116219))
239 ji->CastSpell(player, 116219);
267 std::list<Creature*> lorvos;
268 player->GetCreatureListWithEntryInGrid(lorvos,
NPC_LORVO, 15.0f);
271 for (std::list<Creature*>::iterator itr = lorvos.begin(); itr != lorvos.end(); ++itr)
273 if ((*itr)->IsAlive() && (*itr)->GetGUIDLow() == 224519)
275 (*itr)->AI()->Talk(0);
286 aysa->AI()->Talk(0, player);
308 if (!player->GetAura(116220))
312 guang->AI()->Talk(0, player);
313 guang->CastSpell(player, 116220);
329 player->CastSpell(player, 108590);
355 creature->AI()->Talk(0, player);
383 go->UseDoorOrButton();
409 if (player->IsAlive() && !player->IsInCombat())
510 pPosition =
WorldLocation(571, 3733.68f, 3563.25f, 290.812f, 3.665192f);
513 pPosition =
WorldLocation(571, 3802.38f, 3585.95f, 49.5765f, 0.0f);
518 pPosition =
WorldLocation(571, 3687.91f, 3577.28f, 473.342f);
526 player->TeleportTo(pPosition);
601 shark->AI()->AttackStart(player);
638 uint32 triggerId = trigger->id;
691 float x = 0.0f, y = 0.0f, z = 0.0f;
693 if (!player->IsAlive())
696 uint32 triggerId = trigger->id;
767 if (stormforgedMonitor)
771 if (stormforgedEradictor)
775 if (stormforgedMonitor)
778 stormforgedMonitor->
SetWalk(
false);
785 if (stormforgedEradictor)
@ TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
@ TEMPSUMMON_TIMED_DESPAWN
@ TEMPSUMMON_CORPSE_TIMED_DESPAWN
@ QUEST_STATUS_INCOMPLETE
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange)
@ UNIT_STATE_IGNORE_PATHFINDING
@ QUEST_MEETING_A_GREAT_ONE
@ QUEST_THE_MAKERS_OVERLOOK
@ SPELL_UNGORO_TO_SHOLAZAR_TELEPORT
@ SPELL_SHOLAZAR_TO_UNGORO_TELEPORT
@ QUEST_PASSION_OF_SHEN_ZIN_SU
Position const stormforgedEradictorPosition
const Position WugouPosMandori
@ QUEST_SCENT_OF_LARKORWI
const Position ShuPosMandori
@ QUEST_AYSA_OF_THE_TUSHUI
void AddSC_areatrigger_scripts()
@ AREATRIGGER_TALK_COOLDOWN
Position const stormforgedMonitorPosition
@ QUEST_DISCIPLE_CHALLENGE
@ AT_SPELL_FORCE_REACTION
@ QUEST_THE_SPIRITS_GUARDIAN
@ SPELL_CREATE_TRUE_POWER_OF_THE_TEMPEST
@ QUEST_STRENGTH_OF_THE_TEMPEST
@ NPC_STORMFORGED_ERADICTOR
@ QUEST_THE_LONESOME_WATCHER
@ NPC_STORMFORGED_MONITOR
@ QUEST_MEETING_A_GREAT_ONE
AreaTrigger_at_area_52_entrance()
std::map< uint32, time_t > _triggerTimes
bool OnTrigger(Player *player, AreaTriggerEntry const *trigger) OVERRIDE
bool OnTrigger(Player *player, AreaTriggerEntry const *trigger) OVERRIDE
std::map< uint32, time_t > _triggerTimes
AreaTrigger_at_brewfest()
AreaTrigger_at_chamber_of_whispers_entrance()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_coilfang_waterfall()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_darkspear_isle()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_dawning_span()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_dawning_valley2()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_dawning_valley()
uint64 stormforgedEradictorGUID
uint64 stormforgedMonitorGUID
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_frostgrips_hollow()
bool OnTrigger(Player *player, AreaTriggerEntry const *trigger) OVERRIDE
AreaTrigger_at_fus_pond()
AreaTrigger_at_last_rites()
bool OnTrigger(Player *player, AreaTriggerEntry const *trigger) OVERRIDE
AreaTrigger_at_legion_teleporter()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_mandori_village_shu()
AreaTrigger_at_mandori_village_wugou()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_nats_landing()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_pool_of_reflection()
AreaTrigger_at_scent_larkorwi()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_sholazar_waygate()
bool OnTrigger(Player *player, AreaTriggerEntry const *trigger) OVERRIDE
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_shrine_of_inner_light()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_stormwright_shelf()
AreaTrigger_at_the_dawning_valley()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTrigger_at_wu_song_village()
bool OnTrigger(Player *player, AreaTriggerEntry const *) OVERRIDE
AreaTriggerScript(const char *name)
void MovePath(uint32 path_id, bool repeatable)
MotionMaster * GetMotionMaster()
void AddUnitState(uint32 f)
static Creature * GetCreature(WorldObject &object, uint64 guid)
bool SetWalk(bool enable)
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const