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

Public Member Functions

 go_bashir_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_bashir_crystalforge::go_bashir_crystalforge ( )
inline
530 : GameObjectScript("go_bashir_crystalforge") { }
GameObjectScript(const char *name)
Definition: ScriptMgr.cpp:1592

Member Function Documentation

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

Reimplemented from GameObjectScript.

533  {
534  if (go->GetGoType() == GAMEOBJECT_TYPE_QUESTGIVER) /* != GAMEOBJECT_TYPE_QUESTGIVER) */
535  player->PrepareQuestMenu(go->GetGUID()); /* return true*/
536 
539 
540  player->SEND_GOSSIP_MENU(GOSSIP_BASHIR_CRYSTALFORGE_TEXT, go->GetGUID());
541 
542  return true;
543  }
Definition: ScriptedGossip.h:71
#define GOSSIP_BASHIR_CRYSTALFORGE_ITEM_1
Definition: go_scripts.cpp:517
#define GOSSIP_BASHIR_CRYSTALFORGE_ITEM_5
Definition: go_scripts.cpp:518
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: SharedDefines.h:2067
GameobjectTypes GetGoType() const
Definition: GameObject.h:964
#define GOSSIP_BASHIR_CRYSTALFORGE_TEXT
Definition: go_scripts.cpp:515
Definition: GossipDef.h:59

+ Here is the call graph for this function:

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

Reimplemented from GameObjectScript.

546  {
547  player->PlayerTalkClass->ClearMenus();
548  switch (action)
549  {
551  player->CastSpell(player, SPELL_CREATE_1_FLASK_OF_SORCERER, false);
553  player->SEND_GOSSIP_MENU(GOSSIP_BASHIR_CRYSTALFORGE_ITEM_TEXT_RETURN, go->GetGUID());
554  break;
555  case GOSSIP_ACTION_INFO_DEF + 1:
556  player->CastSpell(player, SPELL_CREATE_5_FLASK_OF_SORCERER, false);
558  player->SEND_GOSSIP_MENU(GOSSIP_BASHIR_CRYSTALFORGE_ITEM_TEXT_RETURN, go->GetGUID());
559  break;
560  case GOSSIP_ACTION_INFO_DEF + 2:
563  player->SEND_GOSSIP_MENU(GOSSIP_BASHIR_CRYSTALFORGE_TEXT, go->GetGUID());
564  break;
565  }
566  return true;
567  }
Definition: ScriptedGossip.h:71
Definition: go_scripts.cpp:524
#define GOSSIP_BASHIR_CRYSTALFORGE_ITEM_1
Definition: go_scripts.cpp:517
#define GOSSIP_BASHIR_CRYSTALFORGE_ITEM_RETURN
Definition: go_scripts.cpp:519
Definition: go_scripts.cpp:523
#define GOSSIP_BASHIR_CRYSTALFORGE_ITEM_5
Definition: go_scripts.cpp:518
#define GOSSIP_BASHIR_CRYSTALFORGE_ITEM_TEXT_RETURN
Definition: go_scripts.cpp:516
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
#define GOSSIP_BASHIR_CRYSTALFORGE_TEXT
Definition: go_scripts.cpp:515
Definition: GossipDef.h:59

+ Here is the call graph for this function:


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