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

Public Member Functions

 at_hor_shadow_throne ()
 
bool OnTrigger (Player *player, const AreaTrigger *) 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_hor_shadow_throne()

at_hor_shadow_throne::at_hor_shadow_throne ( )
inline
1603: AreaTriggerScript("at_hor_shadow_throne") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

bool at_hor_shadow_throne::OnTrigger ( Player player,
const AreaTrigger  
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

1606 {
1607 if (player->IsGameMaster())
1608 return false;
1609
1610 InstanceScript* inst = player->GetInstanceScript();
1611 if (!inst)
1612 return false;
1613
1615 inst->SetData(DATA_LK_INTRO, DONE);
1616
1617 return false;
1618 }
@ DONE
Definition: InstanceScript.h:60
@ DATA_FROSTSWORN_GENERAL
Definition: halls_of_reflection.h:33
@ DATA_LK_INTRO
Definition: halls_of_reflection.h:34
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
bool IsGameMaster() const
Definition: Player.h:1158
Definition: InstanceScript.h:142
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:52
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:53

References DATA_FROSTSWORN_GENERAL, DATA_LK_INTRO, DONE, ZoneScript::GetData(), WorldObject::GetInstanceScript(), Player::IsGameMaster(), and ZoneScript::SetData().