159 std::list<Creature*> bunnys;
172 bunny->
CastSpell(passenger, spellId,
false);
std::chrono::seconds Seconds
Seconds shorthand typedef.
#define RegisterCreatureAI(ai_name)
@ EMOTE_STATE_USESTANDING
@ EMOTE_STATE_WORK_MINING
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void GetHomePosition(float &x, float &y, float &z, float &ori) const
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
bool HasStringId(std::string_view id) const
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
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={}, bool generatePath=true)
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)
void TalkedToCreature(uint32 entry, ObjectGuid guid)
TaskContext & Schedule(std::chrono::duration< Rep, Period > time, TaskScheduler::task_handler_t task)
TaskScheduler & Schedule(std::chrono::duration< Rep, Period > time, task_handler_t task)
TaskScheduler & Update(success_t const &callback=nullptr)
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
MotionMaster * GetMotionMaster()
void SetEmoteState(Emote emote)
bool SetWalk(bool enable)
void SetFacingTo(float const ori, bool force=true)
Vehicle * GetVehicleKit() const
void KillSelf(bool durabilityLoss=true, bool skipSettingDeathState=false)
Unit * GetPassenger(int8 seatId) const
Gets a passenger on specified seat.
Creature * FindNearestCreatureWithOptions(float range, FindCreatureOptions const &options) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
void GetCreatureListWithOptionsInGrid(Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
CreatureAI * GetAI(Creature *creature) const override
constexpr float GetPositionX() const
constexpr float GetPositionY() const
constexpr float GetOrientation() const
constexpr float GetPositionZ() const
npc_frozen_mountaineerAI(Creature *creature)
void SetData(uint32, uint32 data) override
void UpdateAI(uint32 diff) override
void DoAction(int32 action) override
npc_safe_technician_sanitron(Creature *creature)
void MovementInform(uint32 type, uint32 pointId) override
void UpdateAI(uint32 diff) override
void PassengerBoarded(Unit *passenger, int8, bool apply) override
== Fields =======================================
void WaypointReached(uint32 waypointId, uint32 pathId) override
void ForceCastOnPassenger(FindCreatureOptions const &options, uint32 spellId)
void UpdateAI(uint32 diff) override
npc_sanitron_5000(Creature *creature)
void WaypointStarted(uint32 waypointId, uint32 pathId) override
== Waypoints system =============================
Position const SafeTechnicianSanitron
@ SPELL_SUMMON_FROZEN_TOMB
@ POINT_SAFE_TECHNICIAN_FINISH
@ SPELL_SANITRON_COSMETIC_EXPLOSION
@ WAYPOINT_SANITRON_STAGE_TWO
@ SPELL_DECONTAMINATE_STAGE_1
@ PATH_SANITRON_LEFT_START
@ WAYPOINT_SANITRON_STAGE_THREE
@ PATH_SANITRON_MIDDLE_START
@ SPELL_DECONTAMINATE_STAGE_3
@ PATH_SANITRON_RIGHT_START
@ ACTION_TECHNICIAN_START_EVENT
@ SAY_TECHNICIAN_CLEAN_CANNON
@ SPELL_DECONTAMINATE_STAGE_2
@ WAYPOINT_SANITRON_FINISH
@ SPELL_CLEAN_CANNON_CLEAN_BURST
@ NPC_DECONTAMINATION_BUNNY
@ SPELL_FORCE_CAST_GNOMEREGAN_AURA
@ SAY_TECHNICIAN_SANITRON_DESTROY
@ WAYPOINT_SANITRON_STAGE_ONE
@ POINT_SAFE_TECHNICIAN_SANITRON