AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_ahune_ice_stone Struct Reference
Inheritance diagram for go_ahune_ice_stone:
GameObjectAI

Public Member Functions

 go_ahune_ice_stone (GameObject *go)
 
bool GossipSelect (Player *player, uint32, uint32) override
 
- Public Member Functions inherited from GameObjectAI
 GameObjectAI (GameObject *go)
 
virtual ~GameObjectAI ()
 
virtual void UpdateAI (uint32)
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void DoAction (int32)
 
virtual void SetGUID (ObjectGuid, int32)
 
virtual ObjectGuid GetGUID (int32) const
 
virtual bool GossipHello (Player *, bool)
 
virtual bool GossipSelect (Player *, uint32, uint32)
 
virtual bool GossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual bool QuestAccept (Player *, Quest const *)
 
virtual bool QuestReward (Player *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *)
 
virtual void Destroyed (Player *, uint32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void OnGameEvent (bool, uint16)
 
virtual void OnStateChanged (uint32, Unit *)
 
virtual void EventInform (uint32)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual void JustSummoned (Creature *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureEvade (Creature *)
 

Private Attributes

InstanceScript_instance
 

Additional Inherited Members

- Static Public Member Functions inherited from GameObjectAI
static int32 Permissible (GameObject const *go)
 
- Protected Attributes inherited from GameObjectAI
GameObject *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ go_ahune_ice_stone()

go_ahune_ice_stone::go_ahune_ice_stone ( GameObject go)
inline
Definition: GameObjectAI.h:34
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
InstanceScript * _instance
Definition: boss_ahune.cpp:680

Member Function Documentation

◆ GossipSelect()

bool go_ahune_ice_stone::GossipSelect ( Player player,
uint32  ,
uint32   
)
inlineoverridevirtual

Reimplemented from GameObjectAI.

663 {
664 ClearGossipMenuFor(player);
665
666 player->DestroyItemCount(ITEM_MAGMA_TOTEM, 1, true, false);
667 player->AreaExploredOrEventHappens(QUEST_SUMMON_AHUNE); //auto rewarded
668
670 ahuneBunny->AI()->DoAction(ACTION_START_EVENT);
671
673 luma->CastSpell(player, SPELL_SUMMONING_RHYME_AURA, true);
674 CloseGossipMenuFor(player);
675 me->Delete();
676 return true;
677 }
void ClearGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:22
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
@ ACTION_START_EVENT
Definition: boss_ahune.cpp:138
@ ITEM_MAGMA_TOTEM
Definition: boss_ahune.cpp:162
@ QUEST_SUMMON_AHUNE
Definition: boss_ahune.cpp:161
@ SPELL_SUMMONING_RHYME_AURA
Definition: boss_ahune.cpp:70
@ DATA_AHUNE_BUNNY
Definition: the_slave_pens.h:35
@ DATA_LUMA_SKYMOTHER
Definition: the_slave_pens.h:46
GameObject *const me
Definition: GameObjectAI.h:36
Definition: Creature.h:46
void Delete()
Definition: GameObject.cpp:979
void DestroyItemCount(uint32 item, uint32 count, bool update, bool unequip_check=false)
Definition: PlayerStorage.cpp:3127
void AreaExploredOrEventHappens(uint32 questId)
Definition: PlayerQuest.cpp:1785
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:100

References _instance, ACTION_START_EVENT, Player::AreaExploredOrEventHappens(), ClearGossipMenuFor(), CloseGossipMenuFor(), DATA_AHUNE_BUNNY, DATA_LUMA_SKYMOTHER, GameObject::Delete(), Player::DestroyItemCount(), InstanceScript::GetCreature(), ITEM_MAGMA_TOTEM, GameObjectAI::me, QUEST_SUMMON_AHUNE, and SPELL_SUMMONING_RHYME_AURA.

Member Data Documentation

◆ _instance

InstanceScript* go_ahune_ice_stone::_instance
private

Referenced by GossipSelect().