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

Classes

struct  npc_aged_dying_ancient_kodoAI
 

Public Member Functions

 npc_aged_dying_ancient_kodo ()
 
bool OnGossipHello (Player *player, Creature *creature) 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_aged_dying_ancient_kodo()

npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodo ( )
inline
447: CreatureScript("npc_aged_dying_ancient_kodo") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ GetAI()

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

Reimplemented from CreatureScript.

508 {
509 return new npc_aged_dying_ancient_kodoAI(creature);
510 }

◆ OnGossipHello()

bool npc_aged_dying_ancient_kodo::OnGossipHello ( Player player,
Creature creature 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

496 {
498 {
499 player->TalkedToCreature(creature->GetEntry(), ObjectGuid::Empty);
501 }
502
503 SendGossipMenuFor(player, NPC_TEXT_KODO, creature->GetGUID());
504 return true;
505 }
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const guid)
Definition: ScriptedGossip.cpp:45
@ SPELL_KODO_KOMBO_PLAYER_BUFF
Definition: zone_desolace.cpp:439
@ NPC_TEXT_KODO
Definition: zone_desolace.cpp:430
@ SPELL_KODO_KOMBO_DESPAWN_BUFF
Definition: zone_desolace.cpp:440
uint32 GetEntry() const
Definition: Object.h:112
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
static ObjectGuid const Empty
Definition: ObjectGuid.h:120
void TalkedToCreature(uint32 entry, ObjectGuid guid)
Definition: PlayerQuest.cpp:2106
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4891

References ObjectGuid::Empty, Object::GetEntry(), Object::GetGUID(), Unit::HasAura(), NPC_TEXT_KODO, Unit::RemoveAurasDueToSpell(), SendGossipMenuFor(), SPELL_KODO_KOMBO_DESPAWN_BUFF, SPELL_KODO_KOMBO_PLAYER_BUFF, and Player::TalkedToCreature().