313 naralex->SetDisableGravity(
true);
314 naralex->GetMotionMaster()->MovePath(
PATH_NARALEX,
false);
323 naralex->DespawnOrUnsummon();
bool roll_chance(float chance, PseudoRandomDistributionState &state)
void CloseGossipMenuFor(Player *player)
@ FACTION_ESCORTEE_N_NEUTRAL_ACTIVE
void AttackStart(Unit *victim) override
== Triggered Actions Requested ==================
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
Creature * GetCreature(uint32 type)
EncounterState GetBossState(uint32 id) const
void MovePath(uint32 pathId, bool repeatable, Optional< Milliseconds > duration={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< std::pair< Milliseconds, Milliseconds > > waitTimeRangeAtPathEnd={}, Optional< float > wanderDistanceAtPathEnds={}, Optional< bool > followPathBackwardsFromEndToStart={}, Optional< bool > exactSplinePath={}, bool generatePath=true, Optional< MovementFadeObject > fadeObject={}, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
void SendPreparedGossip(WorldObject *source)
void PrepareGossipMenu(WorldObject *source, uint32 menuId, bool showQuests=false)
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCast(uint32 spellId)
void SetFaction(uint32 faction) override
MotionMaster * GetMotionMaster()
void RemoveNpcFlag(NPCFlags flags)
void SetFacingTo(float ori, bool force=true, uint32 movementId=EVENT_FACE)
bool SetDisableGravity(bool disable, bool updateAnimTier=true, bool updatePlayHoverAnim=true)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void SummonCreatureGroup(uint8 group, std::list< TempSummon * > *list=nullptr)
bool HealthBelowPct(uint32 pct) const
void JustEngagedWith(Unit *who) override
void WaypointPathEnded(uint32, uint32 pathId) override
void DoAction(int32 action) override
void UpdateAI(uint32 diff) override
npc_disciple_of_naralex(Creature *creature)
bool OnGossipSelect(Player *player, uint32, uint32) override
bool OnGossipHello(Player *player) override
void JustSummoned(Creature *summoned) override
InstanceScript * _instance
void AddSC_wailing_caverns()
@ SPELL_NARALEXS_AWAKENING
@ SPELL_SERPENTINE_CLEANSING
#define RegisterWailingCavernsCreatureAI(ai_name)