110 RWORG->GetMotionMaster()->MovePoint(0, Mrfloppy->GetPositionX(), Mrfloppy->GetPositionY(), Mrfloppy->GetPositionZ());
120 Mrfloppy->EnterVehicle(RWORG);
134 Mrfloppy->ExitVehicle();
136 RWORG->GetMotionMaster()->MovePoint(0, RWORG->GetPositionX()+10, RWORG->GetPositionY()+80, RWORG->GetPositionZ());
144 if (Mrfloppy->isDead())
147 RWORG->DisappearAndDie();
149 Mrfloppy->setDeathState(
ALIVE);
166 Mrfloppy->DisappearAndDie();
869 float horizontalSpeed = 3.0f;
870 float verticalSpeed = 40.0f;
874 std::list<Creature*> explosionBunnys;
876 for (std::list<Creature*>::const_iterator itr = explosionBunnys.begin(); itr != explosionBunnys.end(); ++itr)
906 target->AI()->DoAction(0);
926 rocketCrea->AI()->DoAction(0);
T GetEntry(std::unordered_map< uint32, T > const &map, CriteriaTreeEntry const *tree)
std::chrono::seconds Seconds
Seconds shorthand typedef.
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
@ TEMPSUMMON_TIMED_OR_DEAD_DESPAWN
@ QUEST_STATUS_INCOMPLETE
float frand(float min, float max)
#define RegisterCreatureAI(ai_name)
#define RegisterSpellScript(spell_script)
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive=true)
@ EMOTE_ONESHOT_WOUND_CRITICAL
@ EMOTE_STATE_USE_STANDING
@ SPELL_EFFECT_SCRIPT_EFFECT
@ AURA_EFFECT_HANDLE_REAPPLY
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PERIODIC_DAMAGE
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
#define SpellEffectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
@ UNIT_FLAG_NON_ATTACKABLE
void PreventDefaultAction()
HookList< EffectPeriodicHandler > OnEffectPeriodic
SpellInfo const * GetSpellInfo() const
HookList< EffectApplyHandler > AfterEffectApply
HookList< EffectApplyHandler > OnEffectRemove
void Remove(AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
uint8 GetStackAmount() const
HookList< EffectApplyHandler > OnEffectApply
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void AttackStart(Unit *victim) override
== Triggered Actions Requested ==================
void SetImmuneToPC(bool apply) override
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void Repeat(Milliseconds time)
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={})
void MoveFollow(Unit *target, float dist, ChaseAngle angle, Optional< Milliseconds > duration={}, MovementSlot slot=MOTION_SLOT_ACTIVE)
static Creature * ToCreature(Object *o)
static Unit * ToUnit(Object *o)
static ObjectGuid GetGUID(Object const *o)
void SetEntry(uint32 entry)
static Player * ToPlayer(Object *o)
bool HasItemCount(uint32 item, uint32 count=1, bool inBankAlso=false) const
void GroupEventHappens(uint32 questId, WorldObject const *pEventObject)
QuestStatus GetQuestStatus(uint32 quest_id) const
uint32 GetQuestId() const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
Player * GetHitPlayer() const
HookList< EffectHandler > OnEffectHitTarget
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
void KnockbackFrom(Position const &origin, float speedXY, float speedZ, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr)
void CombatStop(bool includingCast=false, bool mutualPvP=true, bool(*unitFilter)(Unit const *otherUnit)=nullptr)
void SetUnitFlag3(UnitFlags3 flags)
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
MotionMaster * GetMotionMaster()
void SetFacingToObject(WorldObject const *object, bool force=true)
Aura * AddAura(uint32 spellId, Unit *target)
void RemoveNpcFlag(NPCFlags flags)
bool IsStandState() const
void SetEmoteState(Emote emote)
void SetNpcFlag(NPCFlags flags)
bool SetWalk(bool enable)
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
void SetUnitFlag(UnitFlags flags)
static void Kill(Unit *attacker, Unit *victim, bool durabilityLoss=true, bool skipSettingDeathState=false)
void RemoveUnitFlag(UnitFlags flags)
virtual void ExitVehicle(Position const *exitPosition=nullptr)
GameObject * FindNearestGameObject(uint32 entry, float range, bool spawnedOnly=true) const
void GetCreatureListWithEntryInGrid(Container &creatureContainer, 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
void HandleAfterEffectApply(AuraEffect const *, AuraEffectHandleModes)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleOnEffectRemove(AuraEffect const *, AuraEffectHandleModes)
void HandleEffectPeriodic(AuraEffect const *)
void HandleEffectApply(AuraEffect const *, AuraEffectHandleModes)
TC_GAME_API Player * GetPlayer(Map const *, ObjectGuid const &guid)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
void Start(bool isActiveAttacker=true, ObjectGuid playerGUID=ObjectGuid::Empty, Quest const *quest=nullptr, bool instantRespawn=false, bool canLoopPath=false)
void LoadPath(uint32 pathId)
Player * GetPlayerForEscort()
constexpr float GetPositionX() const
constexpr float GetPositionY() const
constexpr void GetPosition(float &x, float &y) const
constexpr float GetPositionZ() const
void DoPlaySoundToSet(WorldObject *source, uint32 soundId)
void UpdateAI(uint32 diff) override
npc_amberpine_woodsman(Creature *creature)
void WaypointReached(uint32 waypointId, uint32) override
void OnQuestAccept(Player *player, Quest const *quest) override
ObjectGuid _RavenousworgGUID
npc_emily(Creature *creature)
void JustEngagedWith(Unit *) override
void JustSummoned(Creature *summoned) override
void UpdateAI(uint32 diff) override
void ReceiveEmote(Player *player, uint32 emote) override
bool OnGossipSelect(Player *player, uint32, uint32) override
npc_lake_frog(Creature *creature)
void MoveInLineOfSight(Unit *) override
void UpdateAI(uint32) override
void JustEngagedWith(Unit *Who) override
npc_mrfloppy(Creature *creature)
void EnterEvadeMode(EvadeReason) override
void SpellHit(WorldObject *caster, SpellInfo const *spellInfo) override
npc_outhouse_bunny(Creature *creature)
void SetData(uint32 Type, uint32 Data) override
void DoAction(int32) override
void JustReachedHome() override
void SpellHit(WorldObject *caster, SpellInfo const *) override
void PassengerBoarded(Unit *who, int8, bool apply) override
== Fields =======================================
void FinishQuest(bool success, uint32 faction)
npc_rocket_propelled_warhead(Creature *creature)
void UpdateAI(uint32) override
npc_tallhorn_stag(Creature *creature)
void JustEngagedWith(Unit *) override
void UpdateAI(uint32 diff) override
npc_venture_co_straggler(Creature *creature)
void SpellHit(WorldObject *caster, SpellInfo const *spellInfo) override
npc_wounded_skirmisher(Creature *creature)
Milliseconds _despawnTimer
void MovementInform(uint32, uint32 id) override
void SpellHit(WorldObject *caster, SpellInfo const *spellInfo) override
@ SPELL_WARHEAD_SEEKING_LUMBERSHIP
void AddSC_grizzly_hills()
@ SPELL_INFECTED_WORGEN_BITE
@ SPELL_VENTURE_STRAGGLER_CREDIT
@ SPELL_HORDE_KILL_CREDIT_TORPEDO
@ SPELL_ALLIANCE_KILL_CREDIT_TORPEDO
@ SPELL_VEHICLE_WARHEAD_FUSE
@ NPC_ALLIANCE_LUMBERBOAT
@ ITEM_WARTS_B_GONE_LIP_BALM
@ SPELL_SUMMON_ASHWOOD_BRAND
@ SPELL_WARTSBGONE_LIP_BALM
@ NPC_MAIDEN_OF_ASHWOOD_LAKE
@ SPELL_MAIDEN_OF_ASHWOOD_LAKE_TRANSFORM
@ QUEST_PERILOUS_ADVENTURE
@ NPC_BROKEN_DOWN_SHREDDER
@ SPELL_TORPEDO_EXPLOSION
@ NPC_ALLIANCE_LUMBERBOAT_EXPLOSIONS