46 { 2582.789f, 954.3925f, 52.48214f, 3.787364f },
47 { 2569.42f, 956.3801f, 52.27323f, 5.427974f },
48 { 2570.62f, 942.3934f, 53.7433f, 0.715585f }
120 if (
urand(0, 100) > 40)
207 me->
SummonGameObject(
GO_BELNISTRASZS_BRAZIER, 2577.196f, 947.0781f, 53.16757f, 2.356195f,
QuaternionData(0.f, 0.f, 0.9238796f, 0.3826832f), 1h,
GO_SUMMON_TIMED_DESPAWN);
208 std::list<WorldObject*> ClusterList;
212 for (std::list<WorldObject*>::const_iterator itr = ClusterList.begin(); itr != ClusterList.end(); ++itr)
256 return GetRazorfenDownsAI<npc_belnistraszAI>(creature);
294 return GetRazorfenDownsAI<npc_idol_room_spawnerAI>(creature);
363 return GetRazorfenDownsAI<npc_tomb_creatureAI>(creature);
392 return GetRazorfenDownsAI<go_gongAI>(go);
@ TEMPSUMMON_TIMED_DESPAWN
@ GO_SUMMON_TIMED_DESPAWN
@ QUEST_STATUS_INCOMPLETE
uint32 urand(uint32 min, uint32 max)
@ FACTION_ESCORTEE_N_NEUTRAL_ACTIVE
@ UNIT_NPC_FLAG_QUESTGIVER
@ CURRENT_CHANNELED_SPELL
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
void SetCanMelee(bool canMelee, bool fleeFromMelee=false)
void DespawnOrUnsummon(Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
void CancelEvent(uint32 eventId)
void SendCustomAnim(uint32 anim)
virtual bool SetBossState(uint32 id, EncounterState state)
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)
static GameObject * ToGameObject(Object *o)
static Player * ToPlayer(Object *o)
uint32 GetQuestId() const
SpellCastResult DoCastSelf(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
void SetFaction(uint32 faction) override
MotionMaster * GetMotionMaster()
void RemoveNpcFlag(NPCFlags flags)
void SetNpcFlag(NPCFlags flags)
bool HasUnitState(const uint32 f) const
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
void InterruptSpell(CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true)
InstanceScript * GetInstanceScript() const
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)
GameObject * SummonGameObject(uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
virtual void SetData(uint32, uint32)
GameObjectAI * GetAI(GameObject *go) const override
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
Position const PosSummonSpawner[3]
void AddSC_razorfen_downs()
@ EVENT_IDOL_ROOM_SPAWNER
@ SAY_EVENT_THREE_MIN_LEFT
@ SPELL_IDOM_ROOM_CAMERA_SHAKE
@ SPELL_IDOL_SHUTDOWN_VISUAL
@ QUEST_EXTINGUISHING_THE_IDOL
@ SPELL_VIRULENT_POISON_PROC
@ GO_BELNISTRASZS_BRAZIER
@ NPC_WITHERED_BATTLE_BOAR
@ NPC_PLAGUEMAW_THE_ROTTING
@ NPC_DEATHS_HEAD_GEOMANCER
@ DATA_EXTINGUISHING_THE_IDOL
static void VisitAllObjects(WorldObject const *obj, T &visitor, float radius, bool dont_load=true)
constexpr float GetPositionX() const
constexpr float GetPositionY() const
constexpr float GetOrientation() const
constexpr float GetPositionZ() const
InstanceScript * instance
bool OnGossipHello(Player *) override
go_gongAI(GameObject *go)
void UpdateAI(uint32 diff) override
InstanceScript * instance
void OnQuestAccept(Player *, Quest const *quest) override
void JustEngagedWith(Unit *who) override
npc_belnistraszAI(Creature *creature)
void MovementInform(uint32 type, uint32 id) override
void JustDied(Unit *) override
InstanceScript * instance
npc_idol_room_spawnerAI(Creature *creature)
void SetData(uint32, uint32 data) override
void UpdateAI(uint32 diff) override
void JustEngagedWith(Unit *) override
npc_tomb_creatureAI(Creature *creature)
InstanceScript * instance
void JustDied(Unit *) override