AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_hor_leader_second Class Reference
Inheritance diagram for npc_hor_leader_second:
CreatureScript ScriptObject UpdatableScript< Creature >

Classes

struct  npc_hor_leader_secondAI
 

Public Member Functions

 npc_hor_leader_second ()
 
bool OnGossipSelect (Player *player, Creature *creature, uint32, uint32) override
 
CreatureAIGetAI (Creature *creature) const override
 
- Public Member Functions inherited from CreatureScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, Creature *)
 
virtual bool OnGossipSelect (Player *, Creature *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, Creature *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, Creature *, Quest const *)
 
virtual bool OnQuestSelect (Player *, Creature *, Quest const *)
 
virtual bool OnQuestComplete (Player *, Creature *, Quest const *)
 
virtual bool OnQuestReward (Player *, Creature *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, Creature *)
 
virtual CreatureAIGetAI (Creature *) const
 
virtual void OnFfaPvpStateUpdate (Creature *, bool)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- Public Member Functions inherited from UpdatableScript< Creature >
virtual void OnUpdate (Creature *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from CreatureScript
 CreatureScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_hor_leader_second()

npc_hor_leader_second::npc_hor_leader_second ( )
inline
1909: CreatureScript("npc_hor_leader_second") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ GetAI()

CreatureAI * npc_hor_leader_second::GetAI ( Creature creature) const
inlineoverridevirtual

Reimplemented from CreatureScript.

1930 {
1931 return GetHallsOfReflectionAI<npc_hor_leader_secondAI>(creature);
1932 }

◆ OnGossipSelect()

bool npc_hor_leader_second::OnGossipSelect ( Player player,
Creature creature,
uint32  ,
uint32   
)
inlineoverridevirtual

Reimplemented from CreatureScript.

1912 {
1913 if (!creature->HasNpcFlag(UNIT_NPC_FLAG_GOSSIP))
1914 return true;
1915
1916 ClearGossipMenuFor(player);
1917
1918 if (InstanceScript* pInstance = creature->GetInstanceScript())
1919 if (!pInstance->GetData(DATA_LICH_KING))
1920 {
1923 return true;
1924 }
1925
1926 return true;
1927 }
@ ACTION_START_LK_FIGHT_REAL
Definition: halls_of_reflection.h:245
@ DATA_LICH_KING
Definition: halls_of_reflection.h:35
void ClearGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:22
@ UNIT_NPC_FLAG_GOSSIP
Definition: UnitDefines.h:294
@ UNIT_NPC_FLAG_QUESTGIVER
Definition: UnitDefines.h:295
virtual void DoAction(int32)
Definition: UnitAI.h:212
CreatureAI * AI() const
Definition: Creature.h:140
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
void RemoveNpcFlag(NPCFlags flags)
Definition: Unit.h:727
bool HasNpcFlag(NPCFlags flags) const
Definition: Unit.h:725
Definition: InstanceScript.h:142

References ACTION_START_LK_FIGHT_REAL, Creature::AI(), ClearGossipMenuFor(), DATA_LICH_KING, UnitAI::DoAction(), WorldObject::GetInstanceScript(), Unit::HasNpcFlag(), Unit::RemoveNpcFlag(), UNIT_NPC_FLAG_GOSSIP, and UNIT_NPC_FLAG_QUESTGIVER.