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

Public Member Functions

 npc_kalecgos_kj (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()
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void JustStartedThreateningMe (Unit *) override
 
void JustEnteredCombat (Unit *) override
 Called when the unit enters combat.
 
void UpdateAI (uint32) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 Called when unit is charmed.
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0ms)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon.
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
bool IsEngaged () const
 Check if creature is currently engaged in combat.
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged - this happens after JustEnteredCombat.
 
void EngagementStart (Unit *who)
 
void EngagementOver ()
 
void JustExitedCombat () override
 Called when the unit leaves combat.
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
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 OnSpellStart (SpellInfo const *)
 
virtual void OnSpellCast (SpellInfo const *)
 
virtual void OnSpellFailed (SpellInfo const *)
 
virtual void OnChannelFinished (SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
virtual void WaypointPathStarted (uint32)
 == Waypoints system =============================
 
virtual void WaypointStarted (uint32, uint32)
 
virtual void WaypointReached (uint32, uint32)
 
virtual void WaypointPathEnded (uint32, uint32)
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *attacker)
 
virtual void OwnerAttacked (Unit *target)
 
void OnOwnerCombatInteraction (Unit *target)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ==================
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
 
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 ()
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false, bool checkZ=false) const
 
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)
 
virtual void DistancingStarted ()
 
virtual void DistancingEnded ()
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid const &, 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:
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void EvadeTimerExpired ()
 Called when evade timer expires (target unreachable for too long)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply)
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal.
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates.
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals.
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations.
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT)
 
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.
 
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.
 
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.
 
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.
 
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)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
bool _isEngaged
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_kalecgos_kj()

npc_kalecgos_kj::npc_kalecgos_kj ( Creature creature)
inline
691 : NullCreatureAI(creature), summons(me)
692 {
693 instance = creature->GetInstanceScript();
694 }
Creature *const me
Definition CreatureAI.h:71
Definition PassiveAI.h:56
InstanceScript * GetInstanceScript() const
Definition Object.cpp:1238
SummonList summons
Definition boss_kiljaeden.cpp:698
InstanceScript * instance
Definition boss_kiljaeden.cpp:697

References WorldObject::GetInstanceScript(), and instance.

Member Function Documentation

◆ DoAction()

void npc_kalecgos_kj::DoAction ( int32  param)
inlineoverridevirtual

Reimplemented from UnitAI.

707 {
708 if (param == ACTION_START_POST_EVENT)
709 {
710 me->SetCanFly(false);
711 me->SetDisableGravity(false);
713 events.ScheduleEvent(EVENT_SCENE_01, 35s);
714 }
715 }
@ EVENT_SCENE_01
Definition boss_kiljaeden.cpp:623
@ SPELL_TELEPORT_AND_TRANSFORM
Definition boss_kiljaeden.cpp:615
@ ACTION_START_POST_EVENT
Definition boss_kiljaeden.cpp:104
events
Definition boss_sartura.cpp:43
void SetCanFly(bool enable)
Add the movement flag: MOVEMENTFLAGCAN_FLY. Generaly only use by players, allowing them to fly by pre...
Definition Unit.cpp:16522
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:1350
void SetDisableGravity(bool disable)
Definition Unit.cpp:16462

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

◆ JustSummoned()

void npc_kalecgos_kj::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from CreatureAI.

718 {
719 summons.Summon(summon);
720 if (summon->GetEntry() == NPC_SHATTERED_SUN_RIFTWAKER)
721 {
722 summon->CastSpell(summon, SPELL_TELEPORT_VISUAL, true);
723
724 if (summons.size() == 1)
725 summon->GetMotionMaster()->MovePoint(0, 1727.08f, 656.82f, 28.37f, FORCED_MOVEMENT_NONE, 0.f, 5.14f, false, true);
726 else
727 summon->GetMotionMaster()->MovePoint(0, 1738.84f, 627.32f, 28.26f, FORCED_MOVEMENT_NONE, 0.f, 2.0f, false, true);
728 }
729 else if (summon->GetEntry() == NPC_SHATTRATH_PORTAL_DUMMY)
730 {
731 if (Creature* riftwaker = summon->FindNearestCreature(NPC_SHATTERED_SUN_RIFTWAKER, 10.0f))
732 riftwaker->CastSpell(summon, SPELL_OPEN_PORTAL_FROM_SHATTRATH, false);
733 summon->SetWalk(true);
734 summon->GetMotionMaster()->MovePoint(0, summon->GetPositionX(), summon->GetPositionY(), summon->GetPositionZ() + 30.0f, FORCED_MOVEMENT_NONE, 0.f, 0.f, false, true);
735 }
736 else if (summon->GetEntry() == NPC_INERT_PORTAL)
737 summon->CastSpell(summon, SPELL_BOSS_ARCANE_PORTAL_STATE, true);
738 else if (summon->GetEntry() == NPC_SHATTERED_SUN_SOLDIER)
739 summon->CastSpell(summon, SPELL_TELEPORT_VISUAL, true);
740 else if (summon->GetEntry() == NPC_LADY_LIADRIN)
741 {
742 summon->CastSpell(summon, SPELL_TELEPORT_VISUAL, true);
743 summon->SetWalk(true);
744 }
745 else if (summon->GetEntry() == NPC_PROPHET_VELEN)
746 {
747 summon->CastSpell(summon, SPELL_TELEPORT_VISUAL, true);
748 summon->SetWalk(true);
749 summon->GetMotionMaster()->MovePoint(0, 1710.15f, 639.23f, 27.311f, FORCED_MOVEMENT_NONE, 0.f, 0.f, false, true);
750 }
751 else if (summon->GetEntry() == NPC_THE_CORE_OF_ENTROPIUS)
752 summon->GetMotionMaster()->MovePoint(0, summon->GetPositionX(), summon->GetPositionY(), 30.0f);
753 }
@ FORCED_MOVEMENT_NONE
Definition MotionMaster.h:86
@ NPC_SHATTERED_SUN_RIFTWAKER
Definition boss_kiljaeden.cpp:607
@ NPC_SHATTRATH_PORTAL_DUMMY
Definition boss_kiljaeden.cpp:608
@ SPELL_BOSS_ARCANE_PORTAL_STATE
Definition boss_kiljaeden.cpp:618
@ NPC_LADY_LIADRIN
Definition boss_kiljaeden.cpp:611
@ SPELL_OPEN_PORTAL_FROM_SHATTRATH
Definition boss_kiljaeden.cpp:616
@ SPELL_TELEPORT_VISUAL
Definition boss_kiljaeden.cpp:617
@ NPC_PROPHET_VELEN
Definition boss_kiljaeden.cpp:612
@ NPC_INERT_PORTAL
Definition boss_kiljaeden.cpp:609
@ NPC_THE_CORE_OF_ENTROPIUS
Definition boss_kiljaeden.cpp:613
@ NPC_SHATTERED_SUN_SOLDIER
Definition boss_kiljaeden.cpp:610
Definition Creature.h:47
bool SetWalk(bool enable) override
Enable or disable the creature's walk mode by removing: MOVEMENTFLAG_WALKING. Infom also the client.
Definition Creature.cpp:3247
void MovePoint(uint32 id, const Position &pos, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE, float speed=0.f, bool generatePath=true, bool forceDestination=true, std::optional< AnimTier > animTier=std::nullopt)
Definition MotionMaster.h:240
uint32 GetEntry() const
Definition Object.h:117
void Summon(Creature const *summon)
Definition ScriptedCreature.h:88
size_type size() const
Definition ScriptedCreature.h:78
MotionMaster * GetMotionMaster()
Definition Unit.h:1758
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2499
float GetPositionZ() const
Definition Position.h:123
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122

References Unit::CastSpell(), WorldObject::FindNearestCreature(), FORCED_MOVEMENT_NONE, Object::GetEntry(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), MotionMaster::MovePoint(), 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, 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::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

701 {
702 events.Reset();
704 }
void DespawnAll(Milliseconds delay=0ms)
Definition ScriptedCreature.cpp:72

References SummonList::DespawnAll(), and summons.

◆ UpdateAI()

void npc_kalecgos_kj::UpdateAI ( uint32  )
inlineoverridevirtual

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

Implements UnitAI.

756 {
757 events.Update(diff);
758 switch (uint32 eventId = events.ExecuteEvent())
759 {
760 case EVENT_SCENE_01:
762 events.ScheduleEvent(eventId + 1, 15s);
763 break;
764 case EVENT_SCENE_02:
765 me->SummonCreature(NPC_SHATTERED_SUN_RIFTWAKER, 1688.42f, 641.82f, 27.60f, 0.67f);
766 me->SummonCreature(NPC_SHATTERED_SUN_RIFTWAKER, 1712.58f, 616.29f, 27.78f, 0.76f);
767 events.ScheduleEvent(eventId + 1, 6s);
768 break;
769 case EVENT_SCENE_03:
770 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);
771 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);
772 events.ScheduleEvent(eventId + 1, 11s);
773 break;
774 case EVENT_SCENE_04:
775 me->SummonCreature(NPC_INERT_PORTAL, 1734.96f, 642.43f, 28.06f, 3.49f);
776 events.ScheduleEvent(eventId + 1, 4s);
777 break;
778 case EVENT_SCENE_05:
779 if (Creature* first = me->SummonCreature(NPC_SHATTERED_SUN_SOLDIER, 1729.48f, 640.49f, 28.06f, 3.49f))
780 {
781 first->m_Events.AddEventAtOffset(new MoveDelayed(first, 1718.70f, 607.78f, 28.06f, 2.323f), 5s);
782 first->m_Events.AddEventAtOffset(new FixOrientation(first), 12s);
783 for (uint8 i = 0; i < 9; ++i)
784 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))
785 follower->GetMotionMaster()->MoveFollow(first, 3.0f, follower->GetAngle(first));
786 }
787 events.ScheduleEvent(eventId + 1, 10s);
788 break;
789 case EVENT_SCENE_06:
790 if (Creature* first = me->SummonCreature(NPC_SHATTERED_SUN_SOLDIER, 1729.48f, 640.49f, 28.06f, 3.49f))
791 {
792 first->m_Events.AddEventAtOffset(new MoveDelayed(first, 1678.69f, 649.27f, 28.06f, 5.46f), 5s);
793 first->m_Events.AddEventAtOffset(new FixOrientation(first), 14500ms);
794 for (uint8 i = 0; i < 9; ++i)
795 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))
796 follower->GetMotionMaster()->MoveFollow(first, 3.0f, follower->GetAngle(first));
797 }
798 events.ScheduleEvent(eventId + 1, 12s);
799 break;
800 case EVENT_SCENE_07:
801 me->SummonCreature(NPC_LADY_LIADRIN, 1719.87f, 644.265f, 28.06f, 3.83f);
802 me->SummonCreature(NPC_PROPHET_VELEN, 1717.97f, 646.44f, 28.06f, 3.94f);
803 events.ScheduleEvent(eventId + 1, 7s);
804 break;
805 case EVENT_SCENE_08:
807 velen->AI()->Talk(SAY_VELEN_01);
808 events.ScheduleEvent(eventId + 1, 25s);
809 break;
810 case EVENT_SCENE_09:
812 velen->AI()->Talk(SAY_VELEN_02);
813 events.ScheduleEvent(eventId + 1, 14500ms);
814 break;
815 case EVENT_SCENE_10:
817 velen->AI()->Talk(SAY_VELEN_03);
818 events.ScheduleEvent(eventId + 1, 12500ms);
819 break;
820 case EVENT_SCENE_11:
821 me->SummonCreature(NPC_THE_CORE_OF_ENTROPIUS, 1698.86f, 628.73f, 92.83f, 0.0f);
823 velen->CastSpell(velen, SPELL_CALL_ENTROPIUS, false);
824 events.ScheduleEvent(eventId + 1, 8s);
825 break;
826 case EVENT_SCENE_12:
828 {
829 velen->InterruptNonMeleeSpells(false);
830 velen->AI()->Talk(SAY_VELEN_04);
831 }
832 events.ScheduleEvent(eventId + 1, 20s);
833 break;
834 case EVENT_SCENE_13:
836 liadrin->GetMotionMaster()->MovePoint(0, 1711.28f, 637.29f, 27.29f);
837 events.ScheduleEvent(eventId + 1, 6s);
838 break;
839 case EVENT_SCENE_14:
841 liadrin->AI()->Talk(SAY_LIADRIN_01);
842 events.ScheduleEvent(eventId + 1, 10s);
843 break;
844 case EVENT_SCENE_15:
846 velen->AI()->Talk(SAY_VELEN_05);
847 events.ScheduleEvent(eventId + 1, 14s);
848 break;
849 case EVENT_SCENE_16:
851 liadrin->AI()->Talk(SAY_LIADRIN_02);
852 events.ScheduleEvent(eventId + 1, 2s);
853 break;
854 case EVENT_SCENE_17:
856 velen->AI()->Talk(SAY_VELEN_06);
857 events.ScheduleEvent(eventId + 1, 3s);
858 break;
859 case EVENT_SCENE_18:
861 {
862 core->RemoveAllAuras();
863 core->CastSpell(core, SPELL_BLAZE_TO_LIGHT, true);
864 }
865 events.ScheduleEvent(eventId + 1, 8s);
866 break;
867 case EVENT_SCENE_19:
869 {
870 core->SetObjectScale(0.75f);
871 core->GetMotionMaster()->MovePoint(0, core->GetPositionX(), core->GetPositionY(), 28.0f);
872 }
873 events.ScheduleEvent(eventId + 1, 2s);
874 break;
875 case EVENT_SCENE_20:
877 core->CastSpell(core, SPELL_SUNWELL_IGNITION, true);
878 events.ScheduleEvent(eventId + 1, 3s);
879 break;
880 case EVENT_SCENE_21:
882 velen->AI()->Talk(SAY_VELEN_07);
883 events.ScheduleEvent(eventId + 1, 15s);
884 break;
885 case EVENT_SCENE_22:
887 liadrin->AI()->Talk(SAY_LIADRIN_03);
888 events.ScheduleEvent(eventId + 1, 20s);
889 break;
890 case EVENT_SCENE_23:
892 velen->AI()->Talk(SAY_VELEN_08);
894 liadrin->SetStandState(UNIT_STAND_STATE_KNEEL);
895 events.ScheduleEvent(eventId + 1, 8s);
896 break;
897 case EVENT_SCENE_24:
899 velen->AI()->Talk(SAY_VELEN_09);
900 events.ScheduleEvent(eventId + 1, 5s);
901 break;
902 case EVENT_SCENE_25:
904 {
905 velen->GetMotionMaster()->MovePoint(0, 1739.38f, 643.79f, 28.06f);
906 velen->DespawnOrUnsummon(5s);
907 }
908 events.ScheduleEvent(eventId + 1, 3s);
909 break;
910 case EVENT_SCENE_26:
911 for (SummonList::const_iterator itr = summons.begin(); itr != summons.end(); ++itr)
912 if (Creature* summon = ObjectAccessor::GetCreature(*me, *itr))
913 if (summon->GetEntry() == NPC_SHATTERED_SUN_SOLDIER)
914 {
915 summon->GetMotionMaster()->MovePoint(0, 1739.38f, 643.79f, 28.06f);
916 summon->DespawnOrUnsummon(Milliseconds(uint32(summon->GetExactDist2d(1734.96f, 642.43f) * 100)));
917 }
918 events.ScheduleEvent(eventId + 1, 7s);
919 break;
920 case EVENT_SCENE_27:
921 me->setActive(false);
924 break;
925 }
926 }
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
Definition Duration.h:27
@ TEMPSUMMON_TIMED_DESPAWN
Definition Object.h:51
@ UNIT_STAND_STATE_KNEEL
Definition UnitDefines.h:43
@ EVENT_SCENE_15
Definition boss_kiljaeden.cpp:637
@ SAY_VELEN_02
Definition boss_kiljaeden.cpp:595
@ EVENT_SCENE_03
Definition boss_kiljaeden.cpp:625
@ EVENT_SCENE_02
Definition boss_kiljaeden.cpp:624
@ SAY_VELEN_04
Definition boss_kiljaeden.cpp:597
@ SAY_VELEN_09
Definition boss_kiljaeden.cpp:602
@ EVENT_SCENE_11
Definition boss_kiljaeden.cpp:633
@ EVENT_SCENE_08
Definition boss_kiljaeden.cpp:630
@ EVENT_SCENE_22
Definition boss_kiljaeden.cpp:644
@ EVENT_SCENE_21
Definition boss_kiljaeden.cpp:643
@ SAY_VELEN_06
Definition boss_kiljaeden.cpp:599
@ EVENT_SCENE_17
Definition boss_kiljaeden.cpp:639
@ SAY_VELEN_07
Definition boss_kiljaeden.cpp:600
@ SAY_LIADRIN_01
Definition boss_kiljaeden.cpp:603
@ EVENT_SCENE_19
Definition boss_kiljaeden.cpp:641
@ EVENT_SCENE_20
Definition boss_kiljaeden.cpp:642
@ EVENT_SCENE_13
Definition boss_kiljaeden.cpp:635
@ EVENT_SCENE_27
Definition boss_kiljaeden.cpp:649
@ EVENT_SCENE_06
Definition boss_kiljaeden.cpp:628
@ SPELL_BLAZE_TO_LIGHT
Definition boss_kiljaeden.cpp:620
@ SAY_VELEN_08
Definition boss_kiljaeden.cpp:601
@ EVENT_SCENE_05
Definition boss_kiljaeden.cpp:627
@ SAY_LIADRIN_02
Definition boss_kiljaeden.cpp:604
@ SPELL_CALL_ENTROPIUS
Definition boss_kiljaeden.cpp:619
@ SAY_LIADRIN_03
Definition boss_kiljaeden.cpp:605
@ EVENT_SCENE_09
Definition boss_kiljaeden.cpp:631
@ EVENT_SCENE_12
Definition boss_kiljaeden.cpp:634
@ EVENT_SCENE_18
Definition boss_kiljaeden.cpp:640
@ EVENT_SCENE_10
Definition boss_kiljaeden.cpp:632
@ SAY_VELEN_01
Definition boss_kiljaeden.cpp:594
@ EVENT_SCENE_07
Definition boss_kiljaeden.cpp:629
@ EVENT_SCENE_26
Definition boss_kiljaeden.cpp:648
@ EVENT_SCENE_16
Definition boss_kiljaeden.cpp:638
@ EVENT_SCENE_23
Definition boss_kiljaeden.cpp:645
@ SPELL_SUNWELL_IGNITION
Definition boss_kiljaeden.cpp:621
@ EVENT_SCENE_25
Definition boss_kiljaeden.cpp:647
@ SAY_VELEN_03
Definition boss_kiljaeden.cpp:596
@ EVENT_SCENE_04
Definition boss_kiljaeden.cpp:626
@ SAY_VELEN_05
Definition boss_kiljaeden.cpp:598
@ EVENT_SCENE_14
Definition boss_kiljaeden.cpp:636
@ EVENT_SCENE_24
Definition boss_kiljaeden.cpp:646
@ SAY_KALECGOS_GOODBYE
Definition boss_kiljaeden.cpp:40
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0ms)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition CreatureAI.cpp:67
CreatureAI * AI() const
Definition Creature.h:143
void AddEventAtOffset(BasicEvent *event, Milliseconds offset, uint8 eventGroup=0)
Definition EventProcessor.h:108
Definition boss_kiljaeden.cpp:672
Definition boss_kiljaeden.cpp:653
iterator begin()
Definition ScriptedCreature.h:48
StorageType::const_iterator const_iterator
Definition ScriptedCreature.h:37
Creature * GetCreatureWithEntry(uint32 entry) const
Definition ScriptedCreature.cpp:133
void DespawnEntry(uint32 entry)
Definition ScriptedCreature.cpp:55
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:2394
void setActive(bool isActiveObject)
Definition Object.cpp:1082
EventProcessor m_Events
Definition Object.h:736
Talk
Definition hyjal.cpp:82
Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:210

References EventProcessor::AddEventAtOffset(), Creature::AI(), 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(), WorldObject::m_Events, 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, CreatureAI::Talk(), TEMPSUMMON_TIMED_DESPAWN, and UNIT_STAND_STATE_KNEEL.

Member Data Documentation

◆ events

EventMap npc_kalecgos_kj::events

◆ instance

InstanceScript* npc_kalecgos_kj::instance

Referenced by npc_kalecgos_kj().

◆ summons

SummonList npc_kalecgos_kj::summons

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


The documentation for this struct was generated from the following file: