AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_harrison_jones::npc_harrison_jonesAI Struct Reference
Inheritance diagram for npc_harrison_jones::npc_harrison_jonesAI:
ScriptedAI CreatureAI UnitAI

Public Member Functions

 npc_harrison_jonesAI (Creature *creature)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
void sGossipSelect (Player *player, uint32 sender, uint32 action) override
 
void SpellHit (Unit *, SpellInfo const *spell) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply) More...
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void MovementInform (uint32, uint32) override
 
void OnPossess (bool)
 
bool IsInRoom (const Position *pos, Axis axis, bool above)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoPlayMusic (uint32 soundId, bool zone)
 
void DoAddThreat (Unit *unit, float amount)
 
void DoModifyThreatByPercent (Unit *unit, int32 pct)
 
void DoResetThreat (Unit *unit)
 
void DoResetThreatList ()
 
float DoGetThreat (Unit *unit)
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportPlayer (Unit *unit, Position pos)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool IsUniqueTimedEventDone (uint32 id) const
 
void SetUniqueTimedEventDone (uint32 id)
 
void ResetUniqueTimedEvent (uint32 id)
 
void ClearUniqueTimedEventsDone ()
 
void ScheduleTimedEvent (Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleUniqueTimedEvent (Milliseconds timer, std::function< void()> exec, uint32 uniqueId)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
virtual bool CheckEvadeIfOutOfCombatArea () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
const T & DUNGEON_MODE (const T &normal5, const T &heroic10) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25) const
 
PlayerSelectTargetFromPlayerList (float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
 
- 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

InstanceScriptinstance
 
uint8 _gongEvent
 
uint32 _gongTimer
 
ObjectGuid uiTargetGUID
 
- Public Attributes inherited from ScriptedAI
Creatureme
 

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
  AXIS_Y
}
 
- 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 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_harrison_jonesAI()

npc_harrison_jones::npc_harrison_jonesAI::npc_harrison_jonesAI ( Creature creature)
inline
603 : ScriptedAI(creature)
604 {
605 instance = creature->GetInstanceScript();
606 }
Definition: ScriptedCreature.h:190
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
InstanceScript * instance
Definition: zulaman.cpp:608

References WorldObject::GetInstanceScript(), and instance.

Member Function Documentation

◆ JustEngagedWith()

void npc_harrison_jones::npc_harrison_jonesAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from ScriptedAI.

621{ }

◆ Reset()

void npc_harrison_jones::npc_harrison_jonesAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

615 {
616 _gongEvent = 0;
617 _gongTimer = 0;
619 }
void Clear()
Definition: ObjectGuid.h:138
uint8 _gongEvent
Definition: zulaman.cpp:610
ObjectGuid uiTargetGUID
Definition: zulaman.cpp:612
uint32 _gongTimer
Definition: zulaman.cpp:611

References _gongEvent, _gongTimer, ObjectGuid::Clear(), and uiTargetGUID.

◆ sGossipSelect()

void npc_harrison_jones::npc_harrison_jonesAI::sGossipSelect ( Player player,
uint32  sender,
uint32  action 
)
inlineoverridevirtual

Reimplemented from UnitAI.

624 {
625 if (me->GetCreatureTemplate()->GossipMenuId == sender && !action)
626 {
627 CloseGossipMenuFor(player);
628 me->SetFacingToObject(player);
632 _gongTimer = 4000;
633 }
634 }
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
@ UNIT_NPC_FLAG_GOSSIP
Definition: UnitDefines.h:294
@ SAY_HARRISON_0
Definition: zulaman.cpp:539
@ GONG_EVENT_1
Definition: zulaman.cpp:554
Talk
Definition: hyjal.cpp:82
Creature * me
Definition: ScriptedCreature.h:280
CreatureTemplate const * GetCreatureTemplate() const
Definition: Creature.h:206
uint32 GossipMenuId
Definition: CreatureData.h:197
void SetFacingToObject(WorldObject *object)
Definition: Unit.cpp:20493
void RemoveNpcFlag(NPCFlags flags)
Definition: Unit.h:696

References _gongEvent, _gongTimer, CloseGossipMenuFor(), Creature::GetCreatureTemplate(), GONG_EVENT_1, CreatureTemplate::GossipMenuId, ScriptedAI::me, Unit::RemoveNpcFlag(), SAY_HARRISON_0, Unit::SetFacingToObject(), and UNIT_NPC_FLAG_GOSSIP.

◆ SpellHit()

void npc_harrison_jones::npc_harrison_jonesAI::SpellHit ( Unit ,
SpellInfo const *  spell 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

637 {
638 if (spell->Id == SPELL_COSMETIC_SPEAR_THROW)
639 {
643 me->SetTarget();
647 }
648 }
@ DONE
Definition: InstanceScript.h:60
@ UNIT_STAND_STATE_DEAD
Definition: UnitDefines.h:39
@ UNIT_BYTES_1_OFFSET_STAND_STATE
Definition: UnitDefines.h:23
@ UNIT_FIELD_BYTES_1
Definition: UpdateFields.h:131
@ NPC_HARRISON_JONES_2
Definition: zulaman.cpp:584
@ SPELL_COSMETIC_SPEAR_THROW
Definition: zulaman.cpp:549
@ MODEL_HARRISON_JONES_2
Definition: zulaman.cpp:578
@ DATA_GONGEVENT
Definition: zulaman.h:28
@ UNIT_DYNFLAG_DEAD
Definition: SharedDefines.h:3126
void SetTarget(ObjectGuid guid=ObjectGuid::Empty) override
Definition: Creature.cpp:3532
void SetDisplayId(uint32 displayId, float displayScale=1.f) override
Definition: Creature.cpp:3505
void SetByteValue(uint16 index, uint8 offset, uint8 value)
Definition: Object.cpp:750
virtual void SetDynamicFlag(uint32 flag)
Definition: Object.h:120
void SetEntry(uint32 entry)
Definition: Object.h:113
void RemoveAllAuras()
Definition: Unit.cpp:5290
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:53

References DATA_GONGEVENT, DONE, SpellInfo::Id, instance, ScriptedAI::me, MODEL_HARRISON_JONES_2, NPC_HARRISON_JONES_2, Unit::RemoveAllAuras(), Object::SetByteValue(), ZoneScript::SetData(), Creature::SetDisplayId(), Object::SetDynamicFlag(), Object::SetEntry(), Creature::SetTarget(), SPELL_COSMETIC_SPEAR_THROW, UNIT_BYTES_1_OFFSET_STAND_STATE, UNIT_DYNFLAG_DEAD, UNIT_FIELD_BYTES_1, and UNIT_STAND_STATE_DEAD.

◆ UpdateAI()

void npc_harrison_jones::npc_harrison_jonesAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Reimplemented from ScriptedAI.

651 {
652 if (_gongEvent)
653 {
654 if (_gongTimer <= diff)
655 {
656 switch (_gongEvent)
657 {
658 case GONG_EVENT_1:
661 _gongTimer = 12000;
662 break;
663 case GONG_EVENT_2:
664 me->SetFacingTo(6.235659f);
670 _gongTimer = 4000;
671 break;
672 case GONG_EVENT_3:
674 gong->RemoveGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
676 _gongTimer = 105000;
677 break;
678 case GONG_EVENT_4:
681 gong->SetGameObjectFlag(GO_FLAG_NOT_SELECTABLE);
682
683 // trigger or gong will need to be scripted to set IN_PROGRESS after enough hits.
684 // This is temp workaround.
685 instance->SetData(DATA_GONGEVENT, IN_PROGRESS); // to be removed.
686
688 {
689 // Players are Now Saved to instance at SPECIAL (Player should be notified?)
692 _gongTimer = 5000;
693 }
694 else
695 {
696 _gongTimer = 1000;
698 }
699 break;
700 case GONG_EVENT_5:
704 _gongTimer = 12000;
706 break;
707 case GONG_EVENT_6:
710 _gongTimer = 7000;
712 break;
713 case GONG_EVENT_7:
714 if (!uiTargetGUID)
715 {
716 std::list<Creature*> targetList;
718 if (!targetList.empty())
719 {
720 for (std::list<Creature*>::const_iterator itr = targetList.begin(); itr != targetList.end(); ++itr)
721 {
722 if (Creature* ptarget = *itr)
723 {
724 if (ptarget->GetPositionX() > 120)
725 {
726 ptarget->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 0, uint32(WEAPON_SPEAR));
727 ptarget->SetImmuneToPC(true);
728 ptarget->SetReactState(REACT_PASSIVE);
729 ptarget->AI()->SetData(0, 1);
730 }
731 else
732 {
733 ptarget->SetImmuneToPC(true);
734 ptarget->SetReactState(REACT_PASSIVE);
735 ptarget->AI()->SetData(0, 2);
736 }
737 }
738 }
739 }
740 }
741
743 gate->SetGoState(GO_STATE_ACTIVE);
744 _gongTimer = 2000;
746 break;
747 case GONG_EVENT_8:
752 _gongTimer = 1000;
753 _gongEvent = 0;
754 break;
755 case GONG_EVENT_9:
756 me->GetMotionMaster()->MovePoint(0, 120.687f, 1674.0f, 42.0217f);
757 _gongTimer = 12000;
759 break;
760 case GONG_EVENT_10:
761 me->SetFacingTo(1.59044f);
762 _gongEvent = 11;
763 _gongTimer = 6000;
764 break;
765 case GONG_EVENT_11:
767
769 _gongEvent = 0;
770 _gongTimer = 1000;
771 break;
772 }
773 }
774 else
775 _gongTimer -= diff;
776 }
777 }
std::uint32_t uint32
Definition: Define.h:107
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ NOT_STARTED
Definition: InstanceScript.h:57
void GetCreatureListWithEntryInGrid(std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
Definition: ScriptedCreature.cpp:827
@ REACT_PASSIVE
Definition: Unit.h:548
@ SHEATH_STATE_MELEE
Definition: UnitDefines.h:106
@ UNIT_VIRTUAL_ITEM_SLOT_ID
Definition: UpdateFields.h:116
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:690
@ NPC_AMANISHI_GUARDIAN
Definition: zulaman.cpp:585
@ NPC_HARRISON_JONES_1
Definition: zulaman.cpp:583
@ SAY_HARRISON_2
Definition: zulaman.cpp:541
@ SAY_HARRISON_1
Definition: zulaman.cpp:540
@ SAY_HARRISON_3
Definition: zulaman.cpp:542
@ WEAPON_MACE
Definition: zulaman.cpp:590
@ WEAPON_SPEAR
Definition: zulaman.cpp:591
@ SPELL_BANGING_THE_GONG
Definition: zulaman.cpp:547
@ SPELL_STEALTH
Definition: zulaman.cpp:548
@ HARRISON_MOVE_3
Definition: zulaman.cpp:571
@ HARRISON_MOVE_1
Definition: zulaman.cpp:569
@ HARRISON_MOVE_2
Definition: zulaman.cpp:570
@ MODEL_HARRISON_JONES_1
Definition: zulaman.cpp:577
@ GONG_EVENT_5
Definition: zulaman.cpp:558
@ GONG_EVENT_2
Definition: zulaman.cpp:555
@ GONG_EVENT_11
Definition: zulaman.cpp:564
@ GONG_EVENT_8
Definition: zulaman.cpp:561
@ GONG_EVENT_10
Definition: zulaman.cpp:563
@ GONG_EVENT_6
Definition: zulaman.cpp:559
@ GONG_EVENT_4
Definition: zulaman.cpp:557
@ GONG_EVENT_9
Definition: zulaman.cpp:562
@ GONG_EVENT_3
Definition: zulaman.cpp:556
@ GONG_EVENT_7
Definition: zulaman.cpp:560
@ GO_STRANGE_GONG
Definition: zulaman.h:68
@ GO_MASSIVE_GATE
Definition: zulaman.h:61
@ EMOTE_ONESHOT_NONE
Definition: SharedDefines.h:1894
@ EMOTE_STATE_USE_STANDING
Definition: SharedDefines.h:1944
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1607
SpellCastResult DoCast(uint32 spellId)
Definition: UnitAI.cpp:177
Definition: Creature.h:46
Definition: GameObject.h:121
Map * GetMap() const
Definition: Object.h:531
void SetFacingTo(float ori)
Definition: Unit.cpp:20483
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4758
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
virtual void SetSheath(SheathState sheathed)
Definition: Unit.h:945
void SetNpcFlag(NPCFlags flags)
Definition: Unit.h:695
void SetUInt32Value(uint16 index, uint32 value)
Definition: Unit.cpp:21256
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:95
GameObject * GetGameObject(ObjectGuid const guid)
Definition: Map.cpp:3319
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:52
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:211
void MovePath(uint32 path_id, bool repeatable)
Move the unit following a specific path. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:849

References _gongEvent, _gongTimer, DATA_GONGEVENT, UnitAI::DoCast(), EMOTE_ONESHOT_NONE, EMOTE_STATE_USE_STANDING, GetCreatureListWithEntryInGrid(), ZoneScript::GetData(), Map::GetGameObject(), InstanceScript::GetGuidData(), WorldObject::GetMap(), Unit::GetMotionMaster(), GO_FLAG_NOT_SELECTABLE, GO_MASSIVE_GATE, GO_STATE_ACTIVE, GO_STRANGE_GONG, GONG_EVENT_1, GONG_EVENT_10, GONG_EVENT_11, GONG_EVENT_2, GONG_EVENT_3, GONG_EVENT_4, GONG_EVENT_5, GONG_EVENT_6, GONG_EVENT_7, GONG_EVENT_8, GONG_EVENT_9, HARRISON_MOVE_1, HARRISON_MOVE_2, HARRISON_MOVE_3, IN_PROGRESS, instance, ScriptedAI::me, MODEL_HARRISON_JONES_1, MotionMaster::MovePath(), MotionMaster::MovePoint(), NOT_STARTED, NPC_AMANISHI_GUARDIAN, NPC_HARRISON_JONES_1, REACT_PASSIVE, Unit::RemoveAura(), SAY_HARRISON_1, SAY_HARRISON_2, SAY_HARRISON_3, ZoneScript::SetData(), Creature::SetDisplayId(), Object::SetEntry(), Unit::SetFacingTo(), Unit::SetNpcFlag(), Unit::SetSheath(), Unit::SetUInt32Value(), SHEATH_STATE_MELEE, SPELL_BANGING_THE_GONG, SPELL_STEALTH, uiTargetGUID, UNIT_NPC_EMOTESTATE, UNIT_NPC_FLAG_GOSSIP, UNIT_VIRTUAL_ITEM_SLOT_ID, WEAPON_MACE, and WEAPON_SPEAR.

Member Data Documentation

◆ _gongEvent

uint8 npc_harrison_jones::npc_harrison_jonesAI::_gongEvent

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

◆ _gongTimer

uint32 npc_harrison_jones::npc_harrison_jonesAI::_gongTimer

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

◆ instance

InstanceScript* npc_harrison_jones::npc_harrison_jonesAI::instance

◆ uiTargetGUID

ObjectGuid npc_harrison_jones::npc_harrison_jonesAI::uiTargetGUID

Referenced by Reset(), and UpdateAI().