AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_kalecgos_kj::npc_kalecgos_kjAI Struct Reference
Inheritance diagram for npc_kalecgos_kj::npc_kalecgos_kjAI:
NullCreatureAI CreatureAI UnitAI

Public Member Functions

 npc_kalecgos_kjAI (Creature *creature)
 
void Reset () override
 
void DoAction (int32 param) override
 
void JustSummoned (Creature *summon) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void UpdateAI (uint32) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 Called when unit is charmed. More...
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table. More...
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged. More...
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed. More...
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void UpdateAI (uint32)=0
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 Called when unit is charmed. More...
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following: More...
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 Called when the unit enters combat. More...
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat. More...
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 Called at any Damage to any victim (before damage apply) More...
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply) More...
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal. More...
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates. More...
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals. More...
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations. More...
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT) More...
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast. More...
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true)
 Cast the spell on a random unit from the threat list. More...
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim. More...
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished. More...
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Public Attributes

EventMap events
 
InstanceScriptinstance
 
SummonList summons
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from NullCreatureAI
static int32 Permissible (Creature const *creature)
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_kalecgos_kjAI()

npc_kalecgos_kj::npc_kalecgos_kjAI::npc_kalecgos_kjAI ( Creature creature)
inline
787 : NullCreatureAI(creature), summons(me)
788 {
789 instance = creature->GetInstanceScript();
790 }
Definition: PassiveAI.h:53
Creature *const me
Definition: CreatureAI.h:73
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
SummonList summons
Definition: boss_kiljaeden.cpp:794
InstanceScript * instance
Definition: boss_kiljaeden.cpp:793

References WorldObject::GetInstanceScript(), and instance.

Member Function Documentation

◆ DoAction()

void npc_kalecgos_kj::npc_kalecgos_kjAI::DoAction ( int32  param)
inlineoverridevirtual

Reimplemented from UnitAI.

803 {
804 if (param == ACTION_START_POST_EVENT)
805 {
806 me->SetCanFly(false);
807 me->SetDisableGravity(false);
809 events.ScheduleEvent(EVENT_SCENE_01, 35000);
810 }
811 }
@ EVENT_SCENE_01
Definition: boss_kiljaeden.cpp:705
@ SPELL_TELEPORT_AND_TRANSFORM
Definition: boss_kiljaeden.cpp:697
@ ACTION_START_POST_EVENT
Definition: boss_kiljaeden.cpp:101
events
Definition: boss_sartura.cpp:43
bool SetDisableGravity(bool disable, bool packetOnly=false, bool updateAnimationTier=true) override
Enable or disable the creature's fly mode by adding or removing: MOVEMENTFLAG_FLYING....
Definition: Creature.cpp:3192
bool SetCanFly(bool enable, bool packetOnly=false) override
Add the movement flag: MOVEMENTFLAGCAN_FLY. Generaly only use by players, allowing them to fly by pre...
Definition: Creature.cpp:3277
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168

References ACTION_START_POST_EVENT, Unit::CastSpell(), EVENT_SCENE_01, CreatureAI::me, Creature::SetCanFly(), Creature::SetDisableGravity(), and SPELL_TELEPORT_AND_TRANSFORM.

◆ JustSummoned()

void npc_kalecgos_kj::npc_kalecgos_kjAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from CreatureAI.

814 {
815 summons.Summon(summon);
816 if (summon->GetEntry() == NPC_SHATTERED_SUN_RIFTWAKER)
817 {
818 summon->CastSpell(summon, SPELL_TELEPORT_VISUAL, true);
819 Movement::MoveSplineInit init(summon);
820 if (summons.size() == 1)
821 {
822 init.MoveTo(1727.08f, 656.82f, 28.37f, false, true);
823 init.SetFacing(5.14f);
824 }
825 else
826 {
827 init.MoveTo(1738.84f, 627.32f, 28.26f, false, true);
828 init.SetFacing(2.0f);
829 }
830 init.Launch();
831 }
832 else if (summon->GetEntry() == NPC_SHATTRATH_PORTAL_DUMMY)
833 {
834 if (Creature* riftwaker = summon->FindNearestCreature(NPC_SHATTERED_SUN_RIFTWAKER, 10.0f))
835 riftwaker->CastSpell(summon, SPELL_OPEN_PORTAL_FROM_SHATTRATH, false);
836 summon->SetWalk(true);
837 summon->GetMotionMaster()->MovePoint(0, summon->GetPositionX(), summon->GetPositionY(), summon->GetPositionZ() + 30.0f, false, true);
838 }
839 else if (summon->GetEntry() == NPC_INERT_PORTAL)
840 summon->CastSpell(summon, SPELL_BOSS_ARCANE_PORTAL_STATE, true);
841 else if (summon->GetEntry() == NPC_SHATTERED_SUN_SOLDIER)
842 summon->CastSpell(summon, SPELL_TELEPORT_VISUAL, true);
843 else if (summon->GetEntry() == NPC_LADY_LIADRIN)
844 {
845 summon->CastSpell(summon, SPELL_TELEPORT_VISUAL, true);
846 summon->SetWalk(true);
847 }
848 else if (summon->GetEntry() == NPC_PROPHET_VELEN)
849 {
850 summon->CastSpell(summon, SPELL_TELEPORT_VISUAL, true);
851 summon->SetWalk(true);
852 summon->GetMotionMaster()->MovePoint(0, 1710.15f, 639.23f, 27.311f, false, true);
853 }
854 else if (summon->GetEntry() == NPC_THE_CORE_OF_ENTROPIUS)
855 summon->GetMotionMaster()->MovePoint(0, summon->GetPositionX(), summon->GetPositionY(), 30.0f);
856 }
@ NPC_SHATTERED_SUN_RIFTWAKER
Definition: boss_kiljaeden.cpp:689
@ NPC_SHATTRATH_PORTAL_DUMMY
Definition: boss_kiljaeden.cpp:690
@ SPELL_BOSS_ARCANE_PORTAL_STATE
Definition: boss_kiljaeden.cpp:700
@ NPC_LADY_LIADRIN
Definition: boss_kiljaeden.cpp:693
@ SPELL_OPEN_PORTAL_FROM_SHATTRATH
Definition: boss_kiljaeden.cpp:698
@ SPELL_TELEPORT_VISUAL
Definition: boss_kiljaeden.cpp:699
@ NPC_PROPHET_VELEN
Definition: boss_kiljaeden.cpp:694
@ NPC_INERT_PORTAL
Definition: boss_kiljaeden.cpp:691
@ NPC_THE_CORE_OF_ENTROPIUS
Definition: boss_kiljaeden.cpp:695
@ NPC_SHATTERED_SUN_SOLDIER
Definition: boss_kiljaeden.cpp:692
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:88
size_type size() const
Definition: ScriptedCreature.h:78
Definition: Creature.h:46
bool SetWalk(bool enable) override
Enable or disable the creature's walk mode by removing: MOVEMENTFLAG_WALKING. Infom also the client.
Definition: Creature.cpp:3178
uint32 GetEntry() const
Definition: Object.h:112
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:211
Definition: MoveSplineInit.h:71

References Unit::CastSpell(), WorldObject::FindNearestCreature(), Object::GetEntry(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Movement::MoveSplineInit::Launch(), MotionMaster::MovePoint(), Movement::MoveSplineInit::MoveTo(), NPC_INERT_PORTAL, NPC_LADY_LIADRIN, NPC_PROPHET_VELEN, NPC_SHATTERED_SUN_RIFTWAKER, NPC_SHATTERED_SUN_SOLDIER, NPC_SHATTRATH_PORTAL_DUMMY, NPC_THE_CORE_OF_ENTROPIUS, Movement::MoveSplineInit::SetFacing(), Creature::SetWalk(), SummonList::size(), SPELL_BOSS_ARCANE_PORTAL_STATE, SPELL_OPEN_PORTAL_FROM_SHATTRATH, SPELL_TELEPORT_VISUAL, SummonList::Summon(), and summons.

◆ Reset()

void npc_kalecgos_kj::npc_kalecgos_kjAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

797 {
798 events.Reset();
800 }
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:71

References SummonList::DespawnAll(), and summons.

◆ UpdateAI()

void npc_kalecgos_kj::npc_kalecgos_kjAI::UpdateAI ( uint32  )
inlineoverridevirtual

Use to start attacking a target. Called just before JustEngagedWith()

Reimplemented from NullCreatureAI.

859 {
860 events.Update(diff);
861 switch (uint32 eventId = events.ExecuteEvent())
862 {
863 case EVENT_SCENE_01:
865 events.ScheduleEvent(eventId + 1, 15000);
866 break;
867 case EVENT_SCENE_02:
868 me->SummonCreature(NPC_SHATTERED_SUN_RIFTWAKER, 1688.42f, 641.82f, 27.60f, 0.67f);
869 me->SummonCreature(NPC_SHATTERED_SUN_RIFTWAKER, 1712.58f, 616.29f, 27.78f, 0.76f);
870 events.ScheduleEvent(eventId + 1, 6000);
871 break;
872 case EVENT_SCENE_03:
873 me->SummonCreature(NPC_SHATTRATH_PORTAL_DUMMY, 1727.08f + cos(5.14f), 656.82f + std::sin(5.14f), 28.37f + 2.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 10000);
874 me->SummonCreature(NPC_SHATTRATH_PORTAL_DUMMY, 1738.84f + cos(2.0f), 627.32f + std::sin(2.0f), 28.26f + 2.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 10000);
875 events.ScheduleEvent(eventId + 1, 11000);
876 break;
877 case EVENT_SCENE_04:
878 me->SummonCreature(NPC_INERT_PORTAL, 1734.96f, 642.43f, 28.06f, 3.49f);
879 events.ScheduleEvent(eventId + 1, 4000);
880 break;
881 case EVENT_SCENE_05:
882 if (Creature* first = me->SummonCreature(NPC_SHATTERED_SUN_SOLDIER, 1729.48f, 640.49f, 28.06f, 3.49f))
883 {
884 first->m_Events.AddEvent(new MoveDelayed(first, 1718.70f, 607.78f, 28.06f, 2.323f), first->m_Events.CalculateTime(5000));
885 first->m_Events.AddEvent(new FixOrientation(first), first->m_Events.CalculateTime(12000));
886 for (uint8 i = 0; i < 9; ++i)
887 if (Creature* follower = me->SummonCreature(NPC_SHATTERED_SUN_SOLDIER, 1729.48f + 5 * cos(i * 2.0f * M_PI / 9), 640.49f + 5 * std::sin(i * 2.0f * M_PI / 9), 28.06f, 3.49f))
888 follower->GetMotionMaster()->MoveFollow(first, 3.0f, follower->GetAngle(first));
889 }
890 events.ScheduleEvent(eventId + 1, 10000);
891 break;
892 case EVENT_SCENE_06:
893 if (Creature* first = me->SummonCreature(NPC_SHATTERED_SUN_SOLDIER, 1729.48f, 640.49f, 28.06f, 3.49f))
894 {
895 first->m_Events.AddEvent(new MoveDelayed(first, 1678.69f, 649.27f, 28.06f, 5.46f), first->m_Events.CalculateTime(5000));
896 first->m_Events.AddEvent(new FixOrientation(first), first->m_Events.CalculateTime(14500));
897 for (uint8 i = 0; i < 9; ++i)
898 if (Creature* follower = me->SummonCreature(NPC_SHATTERED_SUN_SOLDIER, 1729.48f + 5 * cos(i * 2.0f * M_PI / 9), 640.49f + 5 * std::sin(i * 2.0f * M_PI / 9), 28.06f, 3.49f))
899 follower->GetMotionMaster()->MoveFollow(first, 3.0f, follower->GetAngle(first));
900 }
901 events.ScheduleEvent(eventId + 1, 12000);
902 break;
903 case EVENT_SCENE_07:
904 me->SummonCreature(NPC_LADY_LIADRIN, 1719.87f, 644.265f, 28.06f, 3.83f);
905 me->SummonCreature(NPC_PROPHET_VELEN, 1717.97f, 646.44f, 28.06f, 3.94f);
906 events.ScheduleEvent(eventId + 1, 7000);
907 break;
908 case EVENT_SCENE_08:
910 velen->AI()->Talk(SAY_VELEN_01);
911 events.ScheduleEvent(eventId + 1, 25000);
912 break;
913 case EVENT_SCENE_09:
915 velen->AI()->Talk(SAY_VELEN_02);
916 events.ScheduleEvent(eventId + 1, 14500);
917 break;
918 case EVENT_SCENE_10:
920 velen->AI()->Talk(SAY_VELEN_03);
921 events.ScheduleEvent(eventId + 1, 12500);
922 break;
923 case EVENT_SCENE_11:
924 me->SummonCreature(NPC_THE_CORE_OF_ENTROPIUS, 1698.86f, 628.73f, 92.83f, 0.0f);
926 velen->CastSpell(velen, SPELL_CALL_ENTROPIUS, false);
927 events.ScheduleEvent(eventId + 1, 8000);
928 break;
929 case EVENT_SCENE_12:
931 {
932 velen->InterruptNonMeleeSpells(false);
933 velen->AI()->Talk(SAY_VELEN_04);
934 }
935 events.ScheduleEvent(eventId + 1, 20000);
936 break;
937 case EVENT_SCENE_13:
939 liadrin->GetMotionMaster()->MovePoint(0, 1711.28f, 637.29f, 27.29f);
940 events.ScheduleEvent(eventId + 1, 6000);
941 break;
942 case EVENT_SCENE_14:
944 liadrin->AI()->Talk(SAY_LIADRIN_01);
945 events.ScheduleEvent(eventId + 1, 10000);
946 break;
947 case EVENT_SCENE_15:
949 velen->AI()->Talk(SAY_VELEN_05);
950 events.ScheduleEvent(eventId + 1, 14000);
951 break;
952 case EVENT_SCENE_16:
954 liadrin->AI()->Talk(SAY_LIADRIN_02);
955 events.ScheduleEvent(eventId + 1, 2000);
956 break;
957 case EVENT_SCENE_17:
959 velen->AI()->Talk(SAY_VELEN_06);
960 events.ScheduleEvent(eventId + 1, 3000);
961 break;
962 case EVENT_SCENE_18:
964 {
965 core->RemoveAllAuras();
966 core->CastSpell(core, SPELL_BLAZE_TO_LIGHT, true);
967 }
968 events.ScheduleEvent(eventId + 1, 8000);
969 break;
970 case EVENT_SCENE_19:
972 {
973 core->SetObjectScale(0.75f);
974 core->GetMotionMaster()->MovePoint(0, core->GetPositionX(), core->GetPositionY(), 28.0f);
975 }
976 events.ScheduleEvent(eventId + 1, 2000);
977 break;
978 case EVENT_SCENE_20:
980 core->CastSpell(core, SPELL_SUNWELL_IGNITION, true);
981 events.ScheduleEvent(eventId + 1, 3000);
982 break;
983 case EVENT_SCENE_21:
985 velen->AI()->Talk(SAY_VELEN_07);
986 events.ScheduleEvent(eventId + 1, 15000);
987 break;
988 case EVENT_SCENE_22:
990 liadrin->AI()->Talk(SAY_LIADRIN_03);
991 events.ScheduleEvent(eventId + 1, 20000);
992 break;
993 case EVENT_SCENE_23:
995 velen->AI()->Talk(SAY_VELEN_08);
997 liadrin->SetStandState(UNIT_STAND_STATE_KNEEL);
998 events.ScheduleEvent(eventId + 1, 8000);
999 break;
1000 case EVENT_SCENE_24:
1002 velen->AI()->Talk(SAY_VELEN_09);
1003 events.ScheduleEvent(eventId + 1, 5000);
1004 break;
1005 case EVENT_SCENE_25:
1007 {
1008 velen->GetMotionMaster()->MovePoint(0, 1739.38f, 643.79f, 28.06f);
1009 velen->DespawnOrUnsummon(5000);
1010 }
1011 events.ScheduleEvent(eventId + 1, 3000);
1012 break;
1013 case EVENT_SCENE_26:
1014 for (SummonList::const_iterator itr = summons.begin(); itr != summons.end(); ++itr)
1015 if (Creature* summon = ObjectAccessor::GetCreature(*me, *itr))
1016 if (summon->GetEntry() == NPC_SHATTERED_SUN_SOLDIER)
1017 {
1018 summon->GetMotionMaster()->MovePoint(0, 1739.38f, 643.79f, 28.06f);
1019 summon->DespawnOrUnsummon(summon->GetExactDist2d(1734.96f, 642.43f) * 100);
1020 }
1021 events.ScheduleEvent(eventId + 1, 7000);
1022 break;
1023 case EVENT_SCENE_27:
1024 me->setActive(false);
1027 break;
1028 }
1029 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ UNIT_STAND_STATE_KNEEL
Definition: UnitDefines.h:40
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:47
@ EVENT_SCENE_15
Definition: boss_kiljaeden.cpp:719
@ SAY_VELEN_02
Definition: boss_kiljaeden.cpp:677
@ EVENT_SCENE_03
Definition: boss_kiljaeden.cpp:707
@ EVENT_SCENE_02
Definition: boss_kiljaeden.cpp:706
@ SAY_VELEN_04
Definition: boss_kiljaeden.cpp:679
@ SAY_VELEN_09
Definition: boss_kiljaeden.cpp:684
@ EVENT_SCENE_11
Definition: boss_kiljaeden.cpp:715
@ EVENT_SCENE_08
Definition: boss_kiljaeden.cpp:712
@ EVENT_SCENE_22
Definition: boss_kiljaeden.cpp:726
@ EVENT_SCENE_21
Definition: boss_kiljaeden.cpp:725
@ SAY_VELEN_06
Definition: boss_kiljaeden.cpp:681
@ EVENT_SCENE_17
Definition: boss_kiljaeden.cpp:721
@ SAY_VELEN_07
Definition: boss_kiljaeden.cpp:682
@ SAY_LIADRIN_01
Definition: boss_kiljaeden.cpp:685
@ EVENT_SCENE_19
Definition: boss_kiljaeden.cpp:723
@ EVENT_SCENE_20
Definition: boss_kiljaeden.cpp:724
@ EVENT_SCENE_13
Definition: boss_kiljaeden.cpp:717
@ EVENT_SCENE_27
Definition: boss_kiljaeden.cpp:731
@ EVENT_SCENE_06
Definition: boss_kiljaeden.cpp:710
@ SPELL_BLAZE_TO_LIGHT
Definition: boss_kiljaeden.cpp:702
@ SAY_VELEN_08
Definition: boss_kiljaeden.cpp:683
@ EVENT_SCENE_05
Definition: boss_kiljaeden.cpp:709
@ SAY_LIADRIN_02
Definition: boss_kiljaeden.cpp:686
@ SPELL_CALL_ENTROPIUS
Definition: boss_kiljaeden.cpp:701
@ SAY_LIADRIN_03
Definition: boss_kiljaeden.cpp:687
@ EVENT_SCENE_09
Definition: boss_kiljaeden.cpp:713
@ EVENT_SCENE_12
Definition: boss_kiljaeden.cpp:716
@ EVENT_SCENE_18
Definition: boss_kiljaeden.cpp:722
@ EVENT_SCENE_10
Definition: boss_kiljaeden.cpp:714
@ SAY_VELEN_01
Definition: boss_kiljaeden.cpp:676
@ EVENT_SCENE_07
Definition: boss_kiljaeden.cpp:711
@ EVENT_SCENE_26
Definition: boss_kiljaeden.cpp:730
@ EVENT_SCENE_16
Definition: boss_kiljaeden.cpp:720
@ EVENT_SCENE_23
Definition: boss_kiljaeden.cpp:727
@ SPELL_SUNWELL_IGNITION
Definition: boss_kiljaeden.cpp:703
@ EVENT_SCENE_25
Definition: boss_kiljaeden.cpp:729
@ SAY_VELEN_03
Definition: boss_kiljaeden.cpp:678
@ EVENT_SCENE_04
Definition: boss_kiljaeden.cpp:708
@ SAY_VELEN_05
Definition: boss_kiljaeden.cpp:680
@ EVENT_SCENE_14
Definition: boss_kiljaeden.cpp:718
@ EVENT_SCENE_24
Definition: boss_kiljaeden.cpp:728
@ SAY_KALECGOS_GOODBYE
Definition: boss_kiljaeden.cpp:40
Talk
Definition: hyjal.cpp:82
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:213
iterator begin()
Definition: ScriptedCreature.h:48
StorageType::const_iterator const_iterator
Definition: ScriptedCreature.h:37
Creature * GetCreatureWithEntry(uint32 entry) const
Definition: ScriptedCreature.cpp:132
void DespawnEntry(uint32 entry)
Definition: ScriptedCreature.cpp:54
iterator end()
Definition: ScriptedCreature.h:58
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2355
void setActive(bool isActiveObject)
Definition: Object.cpp:1085
Definition: boss_kiljaeden.cpp:735
Definition: boss_kiljaeden.cpp:756

References SummonList::begin(), Unit::CastSpell(), SummonList::DespawnEntry(), SummonList::end(), EVENT_SCENE_01, EVENT_SCENE_02, EVENT_SCENE_03, EVENT_SCENE_04, EVENT_SCENE_05, EVENT_SCENE_06, EVENT_SCENE_07, EVENT_SCENE_08, EVENT_SCENE_09, EVENT_SCENE_10, EVENT_SCENE_11, EVENT_SCENE_12, EVENT_SCENE_13, EVENT_SCENE_14, EVENT_SCENE_15, EVENT_SCENE_16, EVENT_SCENE_17, EVENT_SCENE_18, EVENT_SCENE_19, EVENT_SCENE_20, EVENT_SCENE_21, EVENT_SCENE_22, EVENT_SCENE_23, EVENT_SCENE_24, EVENT_SCENE_25, EVENT_SCENE_26, EVENT_SCENE_27, ObjectAccessor::GetCreature(), SummonList::GetCreatureWithEntry(), CreatureAI::me, NPC_INERT_PORTAL, NPC_LADY_LIADRIN, NPC_PROPHET_VELEN, NPC_SHATTERED_SUN_RIFTWAKER, NPC_SHATTERED_SUN_SOLDIER, NPC_SHATTRATH_PORTAL_DUMMY, NPC_THE_CORE_OF_ENTROPIUS, SAY_KALECGOS_GOODBYE, SAY_LIADRIN_01, SAY_LIADRIN_02, SAY_LIADRIN_03, SAY_VELEN_01, SAY_VELEN_02, SAY_VELEN_03, SAY_VELEN_04, SAY_VELEN_05, SAY_VELEN_06, SAY_VELEN_07, SAY_VELEN_08, SAY_VELEN_09, WorldObject::setActive(), SPELL_BLAZE_TO_LIGHT, SPELL_CALL_ENTROPIUS, SPELL_SUNWELL_IGNITION, WorldObject::SummonCreature(), summons, TEMPSUMMON_TIMED_DESPAWN, and UNIT_STAND_STATE_KNEEL.

Member Data Documentation

◆ events

EventMap npc_kalecgos_kj::npc_kalecgos_kjAI::events

◆ instance

InstanceScript* npc_kalecgos_kj::npc_kalecgos_kjAI::instance

Referenced by npc_kalecgos_kjAI().

◆ summons

SummonList npc_kalecgos_kj::npc_kalecgos_kjAI::summons

Referenced by JustSummoned(), Reset(), and UpdateAI().