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

Public Member Functions

 go_fel_crystalforge ()
 
bool OnGossipHello (Player *player, GameObject *go) override
 
bool OnGossipSelect (Player *player, GameObject *go, uint32, uint32 action) override
 
- Public Member Functions inherited from GameObjectScript
virtual bool OnDummyEffect (Unit *, uint32, SpellEffIndex, GameObject *)
 
virtual bool OnGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool OnQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, GameObject *)
 
virtual void OnDestroyed (GameObject *, Player *)
 
virtual void OnDamaged (GameObject *, Player *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 
- Public Member Functions inherited from UpdatableScript< GameObject >
virtual void OnUpdate (GameObject *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from GameObjectScript
 GameObjectScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Constructor & Destructor Documentation

go_fel_crystalforge::go_fel_crystalforge ( )
inline
471 : GameObjectScript("go_fel_crystalforge") { }
GameObjectScript(const char *name)
Definition: ScriptMgr.cpp:1592

Member Function Documentation

bool go_fel_crystalforge::OnGossipHello ( Player player,
GameObject go 
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

474  {
475  if (go->GetGoType() == GAMEOBJECT_TYPE_QUESTGIVER) /* != GAMEOBJECT_TYPE_QUESTGIVER) */
476  player->PrepareQuestMenu(go->GetGUID()); /* return true*/
477 
480 
481  player->SEND_GOSSIP_MENU(GOSSIP_FEL_CRYSTALFORGE_TEXT, go->GetGUID());
482 
483  return true;
484  }
Definition: ScriptedGossip.h:71
#define GOSSIP_FEL_CRYSTALFORGE_TEXT
Definition: go_scripts.cpp:456
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: SharedDefines.h:2067
GameobjectTypes GetGoType() const
Definition: GameObject.h:964
Definition: GossipDef.h:59
#define GOSSIP_FEL_CRYSTALFORGE_ITEM_1
Definition: go_scripts.cpp:458
#define GOSSIP_FEL_CRYSTALFORGE_ITEM_5
Definition: go_scripts.cpp:459

+ Here is the call graph for this function:

bool go_fel_crystalforge::OnGossipSelect ( Player player,
GameObject go,
uint32  ,
uint32  action 
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

487  {
488  player->PlayerTalkClass->ClearMenus();
489  switch (action)
490  {
492  player->CastSpell(player, SPELL_CREATE_1_FLASK_OF_BEAST, false);
494  player->SEND_GOSSIP_MENU(GOSSIP_FEL_CRYSTALFORGE_ITEM_TEXT_RETURN, go->GetGUID());
495  break;
496  case GOSSIP_ACTION_INFO_DEF + 1:
497  player->CastSpell(player, SPELL_CREATE_5_FLASK_OF_BEAST, false);
499  player->SEND_GOSSIP_MENU(GOSSIP_FEL_CRYSTALFORGE_ITEM_TEXT_RETURN, go->GetGUID());
500  break;
501  case GOSSIP_ACTION_INFO_DEF + 2:
504  player->SEND_GOSSIP_MENU(GOSSIP_FEL_CRYSTALFORGE_TEXT, go->GetGUID());
505  break;
506  }
507  return true;
508  }
Definition: ScriptedGossip.h:71
#define GOSSIP_FEL_CRYSTALFORGE_ITEM_TEXT_RETURN
Definition: go_scripts.cpp:457
Definition: go_scripts.cpp:464
#define GOSSIP_FEL_CRYSTALFORGE_TEXT
Definition: go_scripts.cpp:456
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
#define GOSSIP_FEL_CRYSTALFORGE_ITEM_RETURN
Definition: go_scripts.cpp:460
Definition: GossipDef.h:59
#define GOSSIP_FEL_CRYSTALFORGE_ITEM_1
Definition: go_scripts.cpp:458
#define GOSSIP_FEL_CRYSTALFORGE_ITEM_5
Definition: go_scripts.cpp:459
Definition: go_scripts.cpp:465

+ Here is the call graph for this function:


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