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
 
- 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 ()=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
1664: 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.

1667 {
1668 go->UseDoorOrButton();
1670 {
1671 std::list<Creature*> childrenList;
1673 for (std::list<Creature*>::const_iterator itr = childrenList.begin(); itr != childrenList.end(); ++itr)
1674 {
1675 player->KilledMonsterCredit(NPC_CAPTIVE_CHILD, (*itr)->GetGUID());
1676 (*itr)->DespawnOrUnsummon(5000);
1677 (*itr)->GetMotionMaster()->MovePoint(1, go->GetPositionX() + 5, go->GetPositionY(), go->GetPositionZ());
1678 (*itr)->AI()->Talk(SAY_FREE_0);
1679 (*itr)->GetMotionMaster()->Clear();
1680 }
1681 }
1682 return false;
1683 }
void GetCreatureListWithEntryInGrid(std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
Definition: ScriptedCreature.cpp:818
#define INTERACTION_DISTANCE
Definition: ObjectDefines.h:24
@ QUEST_STATUS_INCOMPLETE
Definition: QuestDef.h:103
@ NPC_CAPTIVE_CHILD
Definition: go_scripts.cpp:1657
@ SAY_FREE_0
Definition: go_scripts.cpp:1658
@ QUEST_MISSING_FRIENDS
Definition: go_scripts.cpp:1656
void UseDoorOrButton(uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr)
Definition: GameObject.cpp:1427
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:1913
QuestStatus GetQuestStatus(uint32 quest_id) const
Definition: PlayerQuest.cpp:1416

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