133 { 3805.453f, -682.9075f, 222.2917f, 2.793398f },
134 { 3807.508f, -691.0882f, 221.9688f, 2.094395f },
135 { 3797.228f, -690.3555f, 222.5019f, 1.134464f },
136 { 3804.038f, -672.3098f, 222.5019f, 4.578917f },
137 { 3815.097f, -680.2596f, 221.9777f, 2.86234f },
138 { 3798.05f, -680.611f, 222.9825f, 6.038839f },
174 switch (
urand (0, 1))
184 switch (
urand (0, 2))
195 switch (
urand (0, 3))
206 switch (
urand (0, 2))
216 switch (
urand (0, 2))
239 for (
uint8 ii = 0; ii < 3; ++ii)
241 std::list<Creature*> creatureList;
243 for (
Creature* creature : creatureList)
267 creature->SetEntry(entry);
268 creature->SetDisplayId(model);
276 for (
uint8 i = 0; i < 10; ++i)
279 creature->SetFacingToObject(
me);
388 if (!tree || !player)
403 tree->
Attack(player,
true);
507 switch (spellInfo->
Id)
624 if (
Unit* summoner = casterSummon->GetSummonerUnit())
656 if (
Unit* passenger = vehicle->GetPassenger(0))
695 if (!caster || !target)
702 switch (aura->GetStackAmount())
First const & RAND(First const &first, Second const &second, Rest const &... rest)
DB2Storage< BroadcastTextEntry > sBroadcastTextStore("BroadcastText.db2", &BroadcastTextLoadInfo::Instance)
uint32 urand(uint32 min, uint32 max)
#define RegisterCreatureAI(ai_name)
#define RegisterSpellScript(spell_script)
void GetCreatureListWithEntryInGrid(Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
void CloseGossipMenuFor(Player *player)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ AURA_EFFECT_HANDLE_REAL_OR_REAPPLY_MASK
@ SPELL_AURA_PERIODIC_DAMAGE
#define SpellEffectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
@ UNIT_NPC_FLAG_SPELLCLICK
@ UNIT_FLAG_PLAYER_CONTROLLED
void PreventDefaultAction()
HookList< EffectPeriodicHandler > OnEffectPeriodic
HookList< EffectApplyHandler > AfterEffectApply
SpellEffectInfo const & GetEffectInfo(SpellEffIndex effIndex) const
virtual void Remove(AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)=0
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void SetImmuneToAll(bool apply) override
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 Player * ToPlayer(Object *o)
int32 CalcValue(WorldObject const *caster=nullptr, int32 const *basePoints=nullptr, Unit const *target=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Creature * GetHitCreature() const
HookList< HitHandler > AfterHit
HookList< EffectHandler > OnEffectHit
Unit * GetHitUnit() const
int32 GetEffectValue() const
HookList< EffectHandler > OnEffectHitTarget
SpellInfo const * GetSpellInfo() const
float GetHealthPct() const
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void SetFaction(uint32 faction) override
MotionMaster * GetMotionMaster()
void RemoveNpcFlag(NPCFlags flags)
Unit * GetCharmerOrOwner() const
bool Attack(Unit *victim, bool meleeAttack)
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
bool SetWalk(bool enable)
void SetFacingTo(float const ori, bool force=true)
void SetUnitFlag(UnitFlags flags)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
void PeriodicTick(AuraEffect const *)
bool Validate(SpellInfo const *spellInfo) override
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *spellInfo) override
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *spellInfo) override
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
void HandleDummy(SpellEffIndex)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
void UpdateAI(uint32 diff) override
ObjectGuid audienceList[10]
void MovementInform(uint32 type, uint32 id) override
void UpdateAI(uint32 diff) override
npc_commander_eligor_dawnbringer(Creature *creature)
void ChangeImage(uint32 entry, uint32 model, uint8 text)
uint32 RenewRecoveryChecker
npc_wyrmrest_defender(Creature *creature)
bool OnGossipSelect(Player *player, uint32 menuId, uint32 gossipListId) override
bool renewRecoveryCanCheck
void OnCharmed(bool) override
void SpellHit(WorldObject *, SpellInfo const *spellInfo) override
void UpdateAI(uint32 diff) override
void AddSC_dragonblight()
CommanderEligorDawnbringer
@ MODEL_IMAGE_OF_BLAUMEUX
@ MODEL_IMAGE_OF_GROBBULUS
@ MODEL_IMAGE_OF_RAZUVIOUS
@ MODEL_IMAGE_OF_THADDIUS
@ MODEL_IMAGE_OF_FAERLINA
@ NPC_IMAGE_OF_ANUBREKHAN
@ MODEL_IMAGE_OF_PATCHWERK
@ SPELL_HEROIC_IMAGE_CHANNEL
@ MODEL_IMAGE_OF_SAPPHIRON
@ MODEL_IMAGE_OF_ANUBREKHAN
@ MODEL_IMAGE_OF_KELTHUZAD
Position const PosTalkLocations[6]
@ SPELL_PRIEST_IMAGE_MALE
@ SPELL_PRIEST_IMAGE_FEMALE
@ QUEST_DEFENDING_WYRMREST_TEMPLE
@ SPELL_WYRMREST_DEFENDER_MOUNT
@ BOSS_EMOTE_ON_LOW_HEALTH
@ SPELL_DEFENDER_ON_LOW_HEALTH_EMOTE
@ SPELL_TORTURER_KILL_CREDIT
@ SPELL_BRANDING_IRON_IMPACT
@ SPELL_TELE_SURGE_NEEDLE
@ SPELL_TELE_MOONREST_GARDENS
@ SPELL_MIRROR_IMAGE_AURA
uint32 const AudienceMobs[3]
@ SPELL_BANSHEES_MAGIC_MIRROR
@ SPELL_BALLISTA_KNOCKBACK