AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_ancient_skull_pile Class Reference
Inheritance diagram for go_ancient_skull_pile:
GameObjectScript ScriptObject UpdatableScript< GameObject >

Public Member Functions

 go_ancient_skull_pile ()
 
bool OnGossipSelect (Player *player, GameObject *go, uint32 sender, uint32) override
 
bool OnGossipHello (Player *player, GameObject *go) override
 
- Public Member Functions inherited from GameObjectScript
bool IsDatabaseBound () const override
 
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 OnModifyHealth (GameObject *, Unit *, int32 &, SpellInfo const *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- 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, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ go_ancient_skull_pile()

go_ancient_skull_pile::go_ancient_skull_pile ( )
inline
591: GameObjectScript("go_ancient_skull_pile") {}
Definition GameObjectScript.h:25

Member Function Documentation

◆ OnGossipHello()

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

Reimplemented from GameObjectScript.

608 {
611 return true;
612 }
void AddGossipItemFor(Player *player, uint32 icon, std::string const &text, uint32 sender, uint32 action)
Definition ScriptedGossip.cpp:28
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const &guid)
Definition ScriptedGossip.cpp:45
@ GOSSIP_SENDER_MAIN
Definition ScriptedGossip.h:70
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:113
@ GOSSIP_MENU_ANCIENT_SKULL_PILE
Definition zone_terokkar_forest.cpp:584
@ GOSSIP_MENU_TEXT_ANCIENT_SKULL_PILE
Definition zone_terokkar_forest.cpp:585

References AddGossipItemFor(), Object::GetGUID(), GOSSIP_MENU_ANCIENT_SKULL_PILE, GOSSIP_MENU_TEXT_ANCIENT_SKULL_PILE, GOSSIP_SENDER_MAIN, and SendGossipMenuFor().

◆ OnGossipSelect()

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

Reimplemented from GameObjectScript.

594 {
595 ClearGossipMenuFor(player);
596
597 if (sender == GOSSIP_SENDER_MAIN)
598 {
599 CloseGossipMenuFor(player);
601 go->DespawnOrUnsummon();
602 player->CastSpell(player, SPELL_SUMMON_TEROKK);
603 }
604 return true;
605 }
void ClearGossipMenuFor(Player *player)
Definition ScriptedGossip.cpp:22
void CloseGossipMenuFor(Player *player)
Definition ScriptedGossip.cpp:56
void DespawnOrUnsummon(Milliseconds delay=0ms, Seconds forcedRespawnTime=0s)
Definition GameObject.cpp:916
bool HasItemCount(uint32 item, uint32 count=1, bool inBankAlso=false) const
Definition PlayerStorage.cpp:657
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1194
@ SPELL_SUMMON_TEROKK
Definition zone_terokkar_forest.cpp:582
@ ITEM_TIME_LOST_OFFERING
Definition zone_terokkar_forest.cpp:581

References Unit::CastSpell(), ClearGossipMenuFor(), CloseGossipMenuFor(), GameObject::DespawnOrUnsummon(), GOSSIP_SENDER_MAIN, Player::HasItemCount(), ITEM_TIME_LOST_OFFERING, and SPELL_SUMMON_TEROKK.


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