126 if (!torta || !torta->
IsAlive())
#define INTERACTION_DISTANCE
uint32 urand(uint32 min, uint32 max)
@ STATE_FOLLOW_INPROGRESS
@ FACTION_ESCORTEE_N_NEUTRAL_PASSIVE
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
virtual void MovementInform(uint32, uint32)
void StartFollow(Player *player, uint32 factionForFollower=0, uint32 quest=0)
void MoveInLineOfSight(Unit *) override
Player * GetLeaderForFollower()
void SetFollowComplete(bool withEndEvent=false)
bool HasFollowState(uint32 uiFollowState) const
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)
void GroupEventHappens(uint32 questId, WorldObject const *pEventObject)
uint32 GetQuestId() const
MotionMaster * GetMotionMaster()
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
CreatureAI * GetAI(Creature *creature) const override
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
npc_toogaAI(Creature *creature)
void UpdateFollowerAI(uint32 Diff) override
void MovementInform(uint32 MotionType, uint32 PointId) override
void OnQuestAccept(Player *player, Quest const *quest) override
void MoveInLineOfSight(Unit *who) override
Position const ToWaterLoc