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

Public Member Functions

 go_veil_skith_cage ()
 
bool OnGossipHello (Player *player, GameObject *go) override
 
- Public Member Functions inherited from GameObjectScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, GameObject *)
 
virtual bool OnGossipSelect (Player *, GameObject *, uint32, uint32)
 
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 IsDatabaseBound () const
 
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_veil_skith_cage()

go_veil_skith_cage::go_veil_skith_cage ( )
inline
1716: GameObjectScript("go_veil_skith_cage") { }
Definition: GameObjectScript.h:25

Member Function Documentation

◆ OnGossipHello()

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

Reimplemented from GameObjectScript.

1719 {
1720 go->UseDoorOrButton();
1722 {
1723 std::list<Creature*> childrenList;
1725 for (std::list<Creature*>::const_iterator itr = childrenList.begin(); itr != childrenList.end(); ++itr)
1726 {
1727 player->KilledMonsterCredit(NPC_CAPTIVE_CHILD, (*itr)->GetGUID());
1728 (*itr)->DespawnOrUnsummon(5000);
1729 (*itr)->GetMotionMaster()->MovePoint(1, go->GetPositionX() + 5, go->GetPositionY(), go->GetPositionZ());
1730 (*itr)->AI()->Talk(SAY_FREE_0);
1731 (*itr)->GetMotionMaster()->Clear();
1732 }
1733 }
1734 return false;
1735 }
@ QUEST_STATUS_INCOMPLETE
Definition: QuestDef.h:103
void GetCreatureListWithEntryInGrid(std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
Definition: ScriptedCreature.cpp:827
#define INTERACTION_DISTANCE
Definition: ObjectDefines.h:24
@ NPC_CAPTIVE_CHILD
Definition: go_scripts.cpp:1709
@ SAY_FREE_0
Definition: go_scripts.cpp:1710
@ QUEST_MISSING_FRIENDS
Definition: go_scripts.cpp:1708
void UseDoorOrButton(uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr)
Definition: GameObject.cpp:1429
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
void KilledMonsterCredit(uint32 entry, ObjectGuid guid=ObjectGuid::Empty)
Definition: PlayerQuest.cpp:1921
QuestStatus GetQuestStatus(uint32 quest_id) const
Definition: PlayerQuest.cpp:1424

References GetCreatureListWithEntryInGrid(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetQuestStatus(), INTERACTION_DISTANCE, Player::KilledMonsterCredit(), NPC_CAPTIVE_CHILD, QUEST_MISSING_FRIENDS, QUEST_STATUS_INCOMPLETE, SAY_FREE_0, and GameObject::UseDoorOrButton().