AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
at_orb_of_command Class Reference
Inheritance diagram for at_orb_of_command:
AreaTriggerScript ScriptObject

Public Member Functions

 at_orb_of_command ()
 
bool OnTrigger (Player *player, AreaTrigger const *) override
 
- Public Member Functions inherited from AreaTriggerScript
bool IsDatabaseBound () const override
 
virtual bool OnTrigger (Player *, AreaTrigger 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ at_orb_of_command()

at_orb_of_command::at_orb_of_command ( )
inline
515: AreaTriggerScript("at_orb_of_command") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

bool at_orb_of_command::OnTrigger ( Player player,
AreaTrigger const *   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

518 {
519 if (!player->IsAlive() && player->GetQuestRewardStatus(QUEST_BLACKHANDS_COMMAND))
520 {
522 return true;
523 }
524 return false;
525 }
@ MAP_BWL
Definition: instance_blackwing_lair.cpp:507
@ QUEST_BLACKHANDS_COMMAND
Definition: instance_blackwing_lair.cpp:506
const Position orbOfCommandTP
Definition: instance_blackwing_lair.cpp:510
float m_positionZ
Definition: Position.h:58
float m_positionX
Definition: Position.h:56
float m_positionY
Definition: Position.h:57
float m_orientation
Definition: Position.h:59
bool GetQuestRewardStatus(uint32 quest_id) const
Definition: PlayerQuest.cpp:1409
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options=0, Unit *target=nullptr, bool newInstance=false)
Definition: Player.cpp:1330
bool IsAlive() const
Definition: Unit.h:1204

References Player::GetQuestRewardStatus(), Unit::IsAlive(), Position::m_orientation, Position::m_positionX, Position::m_positionY, Position::m_positionZ, MAP_BWL, orbOfCommandTP, QUEST_BLACKHANDS_COMMAND, and Player::TeleportTo().