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

Public Member Functions

 boss_gloomrel ()
 
bool OnGossipSelect (Player *player, Creature *creature, uint32, uint32 action) override
 
bool OnGossipHello (Player *player, Creature *creature) 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 *)
 
virtual CreatureAIGetAI (Creature *) const
 
- 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

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

Member Function Documentation

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

Reimplemented from CreatureScript.

87  {
88  if (player->GetQuestRewardStatus(QUEST_SPECTRAL_CHALICE) == 1 && player->GetSkillValue(SKILL_MINING) >= DATA_SKILLPOINT_MIN && !player->HasSpell(SPELL_SMELT_DARK_IRON))
90 
91  if (player->GetQuestRewardStatus(QUEST_SPECTRAL_CHALICE) == 0 && player->GetSkillValue(SKILL_MINING) >= DATA_SKILLPOINT_MIN)
93 
94  player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
95  return true;
96  }
Definition: ScriptedGossip.h:71
#define GOSSIP_ITEM_TRIBUTE
Definition: boss_tomb_of_seven.cpp:50
#define GOSSIP_ITEM_TEACH_1
Definition: boss_tomb_of_seven.cpp:47
Definition: boss_tomb_of_seven.cpp:38
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: GossipDef.h:59
Definition: SharedDefines.h:3938
Definition: boss_tomb_of_seven.cpp:33
Definition: boss_tomb_of_seven.cpp:27

+ Here is the call graph for this function:

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

Reimplemented from CreatureScript.

58  {
59  player->PlayerTalkClass->ClearMenus();
60  switch (action)
61  {
64  player->SEND_GOSSIP_MENU(2606, creature->GetGUID());
65  break;
66  case GOSSIP_ACTION_INFO_DEF+11:
67  player->CLOSE_GOSSIP_MENU();
68  player->CastSpell(player, SPELL_LEARN_SMELT, false);
69  break;
72  player->SEND_GOSSIP_MENU(2604, creature->GetGUID());
73  break;
74  case GOSSIP_ACTION_INFO_DEF+22:
75  player->CLOSE_GOSSIP_MENU();
76  if (InstanceScript* instance = creature->GetInstanceScript())
77  {
78  //are 5 minutes expected? go template may have data to despawn when used at quest
79  instance->DoRespawnGameObject(instance->GetGuidData(DATA_GO_CHALICE), MINUTE*5);
80  }
81  break;
82  }
83  return true;
84  }
Definition: ScriptedGossip.h:71
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
#define GOSSIP_ITEM_TEACH_3
Definition: boss_tomb_of_seven.cpp:49
Definition: Common.h:97
Definition: boss_tomb_of_seven.cpp:28
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: blackrock_depths.h:51
Definition: GossipDef.h:59
#define GOSSIP_ITEM_TEACH_2
Definition: boss_tomb_of_seven.cpp:48
Definition: InstanceScript.h:141

+ Here is the call graph for this function:


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