TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
npc_kalecgos Class Reference

Classes

struct  npc_kalecgosAI
 

Public Member Functions

 npc_kalecgos ()
 
bool OnGossipSelect (Player *player, Creature *creature, uint32, uint32 action) override
 
bool OnGossipHello (Player *player, Creature *creature) override
 
CreatureAIGetAI (Creature *creature) const override
 
- Public Member Functions inherited from CreatureScript
virtual bool OnDummyEffect (Unit *, uint32, SpellEffIndex, Creature *)
 
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 OnQuestReward (Player *, Creature *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, Creature *)
 
- Public Member Functions inherited from UnitScript
virtual void OnHeal (Unit *, Unit *, uint32 &)
 
virtual void OnDamage (Unit *, Unit *, uint32 &)
 
virtual void ModifyPeriodicDamageAurasTick (Unit *, Unit *, uint32 &)
 
virtual void ModifyMeleeDamage (Unit *, Unit *, uint32 &)
 
virtual void ModifySpellDamageTaken (Unit *, Unit *, int32 &)
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 
- 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 UnitScript
 UnitScript (const char *name, bool addToScripts=true)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Constructor & Destructor Documentation

npc_kalecgos::npc_kalecgos ( )
inline
69 : CreatureScript("npc_kalecgos") { }
CreatureScript(const char *name)
Definition: ScriptMgr.cpp:1586

Member Function Documentation

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

Reimplemented from CreatureScript.

112  {
113  return new npc_kalecgosAI(creature);
114  }
bool npc_kalecgos::OnGossipHello ( Player player,
Creature creature 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

101  {
102  if (creature->IsQuestGiver())
103  player->PrepareQuestMenu(creature->GetGUID());
104 
106  player->SEND_GOSSIP_MENU(12498, creature->GetGUID());
107 
108  return true;
109  }
Definition: ScriptedGossip.h:71
bool IsQuestGiver() const
Definition: Unit.h:1566
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: GossipDef.h:59
#define GOSSIP_ITEM_KAEL_1
Definition: magisters_terrace.cpp:60

+ Here is the call graph for this function:

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

Reimplemented from CreatureScript.

72  {
73  player->PlayerTalkClass->ClearMenus();
74  switch (action)
75  {
78  player->SEND_GOSSIP_MENU(12500, creature->GetGUID());
79  break;
82  player->SEND_GOSSIP_MENU(12502, creature->GetGUID());
83  break;
86  player->SEND_GOSSIP_MENU(12606, creature->GetGUID());
87  break;
90  player->SEND_GOSSIP_MENU(12607, creature->GetGUID());
91  break;
93  player->SEND_GOSSIP_MENU(12608, creature->GetGUID());
94  break;
95  }
96 
97  return true;
98  }
#define GOSSIP_ITEM_KAEL_3
Definition: magisters_terrace.cpp:62
Definition: ScriptedGossip.h:71
#define GOSSIP_ITEM_KAEL_2
Definition: magisters_terrace.cpp:61
#define GOSSIP_ITEM_KAEL_5
Definition: magisters_terrace.cpp:64
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: GossipDef.h:59
#define GOSSIP_ITEM_KAEL_4
Definition: magisters_terrace.cpp:63

+ Here is the call graph for this function:


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