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

Public Member Functions

 go_skull_pile ()
 
bool OnGossipSelect (Player *player, GameObject *go, uint32 sender, uint32 action) override
 
bool OnGossipHello (Player *player, GameObject *go) override
 
void SendActionMenu (Player *player, GameObject *, uint32 action)
 
- 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_skull_pile::go_skull_pile ( )
inline
509 : GameObjectScript("go_skull_pile") { }
GameObjectScript(const char *name)
Definition: ScriptMgr.cpp:1592

Member Function Documentation

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

Reimplemented from GameObjectScript.

522  {
523  if ((player->GetQuestStatus(11885) == QUEST_STATUS_INCOMPLETE) || player->GetQuestRewardStatus(11885))
524  {
529  }
530 
531  player->SEND_GOSSIP_MENU(go->GetGOInfo()->questgiver.gossipID, go->GetGUID());
532  return true;
533  }
Definition: ScriptedGossip.h:71
#define GOSSIP_S_GEZZARAK_THE_HUNTRESS
Definition: zone_terokkar_forest.cpp:503
#define GOSSIP_S_DARKSCREECHER_AKKARAI
Definition: zone_terokkar_forest.cpp:501
struct GameObjectTemplate::@221::@225 questgiver
#define GOSSIP_S_KARROG
Definition: zone_terokkar_forest.cpp:502
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:894
Definition: ScriptedGossip.h:73
ObjectGuid const & GetGUID() const
Definition: Object.h:105
#define GOSSIP_S_VAKKIZ_THE_WINDRAGER
Definition: zone_terokkar_forest.cpp:504
Definition: GossipDef.h:59
Definition: QuestDef.h:113

+ Here is the call graph for this function:

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

Reimplemented from GameObjectScript.

512  {
513  player->PlayerTalkClass->ClearMenus();
514  switch (sender)
515  {
516  case GOSSIP_SENDER_MAIN: SendActionMenu(player, go, action); break;
517  }
518  return true;
519  }
Definition: ScriptedGossip.h:73
void SendActionMenu(Player *player, GameObject *, uint32 action)
Definition: zone_terokkar_forest.cpp:535

+ Here is the call graph for this function:

void go_skull_pile::SendActionMenu ( Player player,
GameObject ,
uint32  action 
)
inline
536  {
537  switch (action)
538  {
539  case GOSSIP_ACTION_INFO_DEF + 1:
540  player->CastSpell(player, 40642, false);
541  break;
542  case GOSSIP_ACTION_INFO_DEF + 2:
543  player->CastSpell(player, 40640, false);
544  break;
545  case GOSSIP_ACTION_INFO_DEF + 3:
546  player->CastSpell(player, 40632, false);
547  break;
548  case GOSSIP_ACTION_INFO_DEF + 4:
549  player->CastSpell(player, 40644, false);
550  break;
551  }
552  }
Definition: ScriptedGossip.h:71

+ Here is the caller graph for this function:


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