111 RWORG->GetMotionMaster()->MovePoint(0, Mrfloppy->GetPositionX(), Mrfloppy->GetPositionY(), Mrfloppy->GetPositionZ());
121 Mrfloppy->EnterVehicle(RWORG);
135 Mrfloppy->ExitVehicle();
137 RWORG->GetMotionMaster()->MovePoint(0, RWORG->GetPositionX()+10, RWORG->GetPositionY()+80, RWORG->GetPositionZ());
145 if (Mrfloppy->isDead())
148 RWORG->DisappearAndDie();
150 Mrfloppy->setDeathState(
ALIVE);
167 Mrfloppy->DisappearAndDie();
888 float horizontalSpeed = 3.0f;
889 float verticalSpeed = 40.0f;
893 std::list<Creature*> explosionBunnys;
895 for (std::list<Creature*>::const_iterator itr = explosionBunnys.begin(); itr != explosionBunnys.end(); ++itr)
927 target->AI()->DoAction(0);
949 rocketCrea->AI()->DoAction(0);
1035 float angle =
frand(0.75f, 1.25f) * float(
M_PI);
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)
#define RegisterSpellScriptWithArgs(spell_script, script_name,...)
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive=true)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_EFFECT_APPLY_AURA
@ TARGET_DEST_CASTER_SUMMON
@ EMOTE_ONESHOT_WOUND_CRITICAL
@ EMOTE_STATE_USE_STANDING
@ 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 SpellDestinationTargetSelectFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
@ UNIT_FLAG_NON_ATTACKABLE
void PreventDefaultAction()
HookList< EffectApplyHandler > AfterEffectRemove
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 SetImmuneToPC(bool apply) override
void SetReactState(ReactStates st)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void Repeat(Milliseconds time)
void ScheduleEvent(EventId eventId, Milliseconds time, GroupIndex group=0u, PhaseIndex phase=0u)
void MovePoint(uint32 id, Position const &pos, bool generatePath=true, Optional< float > finalOrient={})
void MoveFollow(Unit *target, float dist, ChaseAngle angle, MovementSlot slot=MOTION_SLOT_ACTIVE)
static Creature * ToCreature(Object *o)
static Unit * ToUnit(Object *o)
virtual void SetDynamicFlag(uint32 flag)
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
float CalcRadius(WorldObject *caster=nullptr, Spell *=nullptr) const
Player * GetHitPlayer() const
HookList< DestinationTargetSelectHandler > OnDestinationTargetSelect
HookList< EffectHandler > OnEffectHit
Unit * GetHitUnit() const
SpellEffectInfo const & GetEffectInfo() const
HookList< EffectHandler > OnEffectHitTarget
void DoMeleeAttackIfReady()
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
virtual void AttackStart(Unit *)
SpellCastResult DoCast(uint32 spellId)
MotionMaster * GetMotionMaster()
Aura * AddAura(uint32 spellId, Unit *target)
void RemoveNpcFlag(NPCFlags flags)
bool IsStandState() const
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
void SetFacingToObject(WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE)
void SetEmoteState(Emote emote)
void SetNpcFlag(NPCFlags flags)
bool SetWalk(bool enable)
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void SetStandState(UnitStandStateType state)
static void Kill(Unit *attacker, Unit *victim, bool durabilityLoss=true)
void CombatStop(bool includingCast=false, bool mutualPvP=true)
void SetUnitFlag(UnitFlags flags)
void KnockbackFrom(float x, float y, float speedXY, float speedZ)
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)
Position GetNearPosition(float dist, float angle)
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
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
void ModDest(SpellDestination &dest)
PrepareSpellScript(spell_grizzly_hills_escape_from_silverbrook_summon_worgen)
bool Validate(SpellInfo const *) override
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_grizzly_hills_escape_from_silverbrook)
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
bool Validate(SpellInfo const *) override
PrepareAuraScript(spell_grizzly_hills_flight_onequah_to_lights_breach)
bool Validate(SpellInfo const *) override
PrepareAuraScript(spell_grizzly_hills_flight_westfall_to_lights_breach)
void AfterApply(AuraEffect const *, AuraEffectHandleModes)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_grizzly_hills_ganjo_ressurection)
void HandleScript(SpellEffIndex)
void HandleScript(SpellEffIndex)
PrepareSpellScript(spell_grizzly_hills_hand_over_reins)
PrepareAuraScript(spell_grizzly_hills_rage_of_jinarrak)
bool Validate(SpellInfo const *) override
void AfterRemove(AuraEffect const *, AuraEffectHandleModes)
PrepareSpellScript(spell_grizzly_hills_script_cast_summon_image_of_drakuru)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
spell_grizzly_hills_script_cast_summon_image_of_drakuru(uint32 triggeredSpellId)
void HandleAfterEffectApply(AuraEffect const *, AuraEffectHandleModes)
PrepareAuraScript(spell_infected_worgen_bite)
PrepareSpellScript(spell_shredder_delivery)
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) override
PrepareSpellScript(spell_vehicle_warhead_fuse)
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_warhead_detonate)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *) override
void HandleOnEffectRemove(AuraEffect const *, AuraEffectHandleModes)
PrepareAuraScript(spell_warhead_fuse)
void HandleEffectPeriodic(AuraEffect const *)
void HandleEffectApply(AuraEffect const *, AuraEffectHandleModes)
PrepareAuraScript(spell_z_check)
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()
float GetPositionZ() const
float GetPositionX() const
float GetPositionY() const
void DoPlaySoundToSet(WorldObject *source, uint32 soundId)
void Relocate(Position const &pos)
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 UpdateAI(uint32) override
void SpellHit(WorldObject *caster, SpellInfo const *spellInfo) override
@ SPELL_FLIGHT_WESTFALL_TO_LIGHTS_BREACH
@ SPELL_WARHEAD_SEEKING_LUMBERSHIP
void AddSC_grizzly_hills()
@ SPELL_INFECTED_WORGEN_BITE
@ SPELL_SUMMON_YOUR_CORPSE
@ SPELL_ON_THE_OTHER_SIDE
@ 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
@ SPELL_FLIGHT_ONEQUAH_TO_LIGHTS_BREACH
@ QUEST_PERILOUS_ADVENTURE
@ NPC_BROKEN_DOWN_SHREDDER
@ SPELL_ENVISION_DRAKURU_05
@ SPELL_ENVISION_DRAKURU_03
@ SPELL_ENVISION_DRAKURU_02
@ SPELL_ENVISION_DRAKURU_04
@ SPELL_ENVISION_DRAKURU_01
@ SPELL_TORPEDO_EXPLOSION
@ NPC_ALLIANCE_LUMBERBOAT_EXPLOSIONS