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

Classes

struct  boss_doomrelAI
 

Public Member Functions

 boss_doomrel ()
 
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
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

◆ boss_doomrel()

boss_doomrel::boss_doomrel ( )
inline
126: CreatureScript("boss_doomrel") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ GetAI()

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

Reimplemented from CreatureScript.

161 {
162 return GetBlackrockDepthsAI<boss_doomrelAI>(creature);
163 }

◆ OnGossipHello()

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

Reimplemented from CreatureScript.

153 {
155 SendGossipMenuFor(player, SAY_DOOMREL_HELLO, creature->GetGUID());
156
157 return true;
158 }
@ SAY_DOOMREL_HELLO
Definition: boss_tomb_of_seven.cpp:50
@ GOSSIP_DOOMREL_START_COMBAT
Definition: boss_tomb_of_seven.cpp:49
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const guid)
Definition: ScriptedGossip.cpp:45
void AddGossipItemFor(Player *player, uint32 icon, std::string const &text, uint32 sender, uint32 action)
Definition: ScriptedGossip.cpp:28
@ GOSSIP_SENDER_MAIN
Definition: ScriptedGossip.h:70
@ GOSSIP_ACTION_INFO_DEF
Definition: ScriptedGossip.h:68
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112

References AddGossipItemFor(), Object::GetGUID(), GOSSIP_ACTION_INFO_DEF, GOSSIP_DOOMREL_START_COMBAT, GOSSIP_SENDER_MAIN, SAY_DOOMREL_HELLO, and SendGossipMenuFor().

◆ OnGossipSelect()

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

Reimplemented from CreatureScript.

129 {
130 ClearGossipMenuFor(player);
131 switch (action)
132 {
135 SendGossipMenuFor(player, SAY_QUEST_COMPLETED, creature->GetGUID());
136 break;
138 CloseGossipMenuFor(player);
140 // Start encounter
141 InstanceScript* instance = creature->GetInstanceScript();
142 if (instance)
143 {
145 }
146 creature->AI()->Talk(SAY_START_FIGHT);
147 break;
148 }
149 return true;
150 }
@ SAY_START_FIGHT
Definition: boss_tomb_of_seven.cpp:42
@ SAY_QUEST_COMPLETED
Definition: boss_tomb_of_seven.cpp:52
@ GOSSIP_TEXT_CONTINUE
Definition: boss_tomb_of_seven.cpp:47
@ TYPE_TOMB_OF_SEVEN
Definition: blackrock_depths.h:43
void ClearGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:22
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ UNIT_NPC_FLAG_GOSSIP
Definition: UnitDefines.h:294
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.
Definition: CreatureAI.cpp:50
CreatureAI * AI() const
Definition: Creature.h:140
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
void RemoveNpcFlag(NPCFlags flags)
Definition: Unit.h:727
Definition: InstanceScript.h:142
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52

References AddGossipItemFor(), Creature::AI(), ClearGossipMenuFor(), CloseGossipMenuFor(), Object::GetGUID(), WorldObject::GetInstanceScript(), GOSSIP_ACTION_INFO_DEF, GOSSIP_SENDER_MAIN, GOSSIP_TEXT_CONTINUE, IN_PROGRESS, Unit::RemoveNpcFlag(), SAY_QUEST_COMPLETED, SAY_START_FIGHT, SendGossipMenuFor(), ZoneScript::SetData(), CreatureAI::Talk(), TYPE_TOMB_OF_SEVEN, and UNIT_NPC_FLAG_GOSSIP.