510 Spark->setActive(
true);
573 float radius = 50.0f;
574 std::list<Player*> players;
579 for (std::list<Player*>::const_iterator itr = players.begin(); itr != players.end(); ++itr)
586 std::list<GameObject*> FlagList;
589 if (!FlagList.empty())
591 for (std::list<GameObject*>::const_iterator itr = FlagList.begin(); itr != FlagList.end(); ++itr)
std::chrono::seconds Seconds
Seconds shorthand typedef.
@ TEMPSUMMON_CORPSE_TIMED_DESPAWN
@ QUEST_STATUS_INCOMPLETE
uint32 urand(uint32 min, uint32 max)
bool roll_chance_i(int chance)
#define RegisterSpellScript(spell_script)
void CloseGossipMenuFor(Player *player)
@ FACTION_ESCORTEE_N_NEUTRAL_PASSIVE
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
#define SpellEffectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
NPCFlags
Non Player Character flags.
@ UNIT_FLAG_PLAYER_CONTROLLED
void PreventDefaultAction()
HookList< EffectPeriodicHandler > OnEffectPeriodic
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< float > closeEnoughDistance={})
static ObjectGuid GetGUID(Object const *o)
static Player * ToPlayer(Object *o)
uint32 GetQuestId() const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
HookList< EffectHandler > OnEffectHit
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
void SetHealth(uint64 val)
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
NPCFlags GetNpcFlags() const
void SetFaction(uint32 faction) override
MotionMaster * GetMotionMaster()
void SetFacingToObject(WorldObject const *object, bool force=true)
bool Attack(Unit *victim, bool meleeAttack)
uint32 GetFaction() const override
uint64 CountPctFromMaxHealth(int32 pct) const
void SetUnitFlag(UnitFlags flags)
void ReplaceAllNpcFlags(NPCFlags flags)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveUnitFlag(UnitFlags flags)
void GetGameObjectListWithEntryInGrid(Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
TempSummon * SummonCreature(uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
bool IsFriendlyTo(WorldObject const *target) const
CreatureAI * GetAI(Creature *creature) const override
npc_engineer_spark_overgrind()
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
void PeriodicTick(AuraEffect const *)
TC_GAME_API Player * GetPlayer(Map const *, ObjectGuid const &guid)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
static void VisitWorldObjects(WorldObject const *obj, T &visitor, float radius, bool dont_load=true)
void Start(bool isActiveAttacker=true, ObjectGuid playerGUID=ObjectGuid::Empty, Quest const *quest=nullptr, bool instantRespawn=false, bool canLoopPath=false)
virtual void UpdateEscortAI(uint32 diff)
void LoadPath(uint32 pathId)
Player * GetPlayerForEscort()
constexpr float GetPositionX() const
constexpr float GetPositionY() const
float GetAbsoluteAngle(float x, float y) const
constexpr float GetPositionZ() const
void SpellHit(WorldObject *caster, SpellInfo const *spellInfo) override
void MoveInLineOfSight(Unit *who) override
void JustEngagedWith(Unit *) override
npc_draenei_survivorAI(Creature *creature)
void UpdateAI(uint32 diff) override
bool OnGossipSelect(Player *player, uint32, uint32) override
void JustEngagedWith(Unit *who) override
npc_engineer_spark_overgrindAI(Creature *creature)
void UpdateAI(uint32 diff) override
void DespawnNagaFlag(bool despawn)
uint32 NextStep(uint8 step)
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *) override
npc_geezleAI(Creature *creature)
void MoveInLineOfSight(Unit *) override
npc_injured_draeneiAI(Creature *creature)
void JustEngagedWith(Unit *) override
void UpdateAI(uint32) override
void UpdateEscortAI(uint32 diff) override
npc_magwinAI(Creature *creature)
void OnQuestAccept(Player *player, Quest const *quest) override
void WaypointReached(uint32 waypointId, uint32) override
void JustEngagedWith(Unit *who) override
@ SPELL_FISHED_UP_RED_SNAPPER
void AddSC_azuremyst_isle()