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

Public Member Functions

 go_apexis_relic ()
 
bool OnGossipHello (Player *player, GameObject *go) override
 
bool OnGossipSelect (Player *player, GameObject *go, uint32, uint32) 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_apexis_relic::go_apexis_relic ( )
inline
904 : GameObjectScript("go_apexis_relic") { }
GameObjectScript(const char *name)
Definition: ScriptMgr.cpp:1592

Member Function Documentation

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

Reimplemented from GameObjectScript.

907  {
908  player->PrepareGossipMenu(go, go->GetGOInfo()->questgiver.gossipID);
909  player->SendPreparedGossip(go);
910  return true;
911  }
struct GameObjectTemplate::@221::@225 questgiver
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:894

+ Here is the call graph for this function:

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

Reimplemented from GameObjectScript.

914  {
915  player->CLOSE_GOSSIP_MENU();
916 
917  bool large = (go->GetEntry() == GO_APEXIS_MONUMENT);
918  if (player->HasItemCount(ITEM_APEXIS_SHARD, large ? 35 : 1))
919  {
920  player->CastSpell(player, large ? SPELL_TAKE_REAGENTS_GROUP : SPELL_TAKE_REAGENTS_SOLO, false);
921 
922  if (Creature* bunny = player->SummonCreature(NPC_SIMON_BUNNY, go->GetPositionX(), go->GetPositionY(), go->GetPositionZ()))
923  bunny->AI()->SetGUID(player->GetGUID(), large);
924  }
925 
926  return true;
927  }
Definition: zone_blades_edge_mountains.cpp:898
Definition: zone_blades_edge_mountains.cpp:897
Definition: Creature.h:467
Definition: zone_blades_edge_mountains.cpp:896
float GetPositionY() const
Definition: Position.h:105
float GetPositionZ() const
Definition: Position.h:106
Definition: zone_blades_edge_mountains.cpp:348
Definition: zone_blades_edge_mountains.cpp:344
uint32 GetEntry() const
Definition: Object.h:107
float GetPositionX() const
Definition: Position.h:104
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346

+ Here is the call graph for this function:


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