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:33
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
InstanceScript * _instance
Definition: boss_ahune.cpp:679

Member Function Documentation

◆ GossipSelect()

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

Reimplemented from GameObjectAI.

662 {
663 ClearGossipMenuFor(player);
664
665 player->DestroyItemCount(ITEM_MAGMA_TOTEM, 1, true, false);
666 player->AreaExploredOrEventHappens(QUEST_SUMMON_AHUNE); //auto rewarded
667
669 ahuneBunny->AI()->DoAction(ACTION_START_EVENT);
670
672 luma->CastSpell(player, SPELL_SUMMONING_RHYME_AURA, true);
673 CloseGossipMenuFor(player);
674 me->Delete();
675 return true;
676 }
@ ACTION_START_EVENT
Definition: boss_ahune.cpp:137
@ ITEM_MAGMA_TOTEM
Definition: boss_ahune.cpp:161
@ QUEST_SUMMON_AHUNE
Definition: boss_ahune.cpp:160
@ SPELL_SUMMONING_RHYME_AURA
Definition: boss_ahune.cpp:69
@ DATA_AHUNE_BUNNY
Definition: the_slave_pens.h:35
@ DATA_LUMA_SKYMOTHER
Definition: the_slave_pens.h:46
void ClearGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:22
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
GameObject *const me
Definition: GameObjectAI.h:35
Definition: Creature.h:43
void Delete()
Definition: GameObject.cpp:981
void DestroyItemCount(uint32 item, uint32 count, bool update, bool unequip_check=false)
Definition: PlayerStorage.cpp:3121
void AreaExploredOrEventHappens(uint32 questId)
Definition: PlayerQuest.cpp:1790
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:103

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().