TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
at_hor_intro_start Class Reference

Public Member Functions

 at_hor_intro_start ()
 
bool OnTrigger (Player *player, AreaTriggerEntry const *, bool) override
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

at_hor_intro_start::at_hor_intro_start ( )
inline
2004 : AreaTriggerScript("at_hor_intro_start") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

bool at_hor_intro_start::OnTrigger ( Player player,
AreaTriggerEntry const ,
bool   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

2007  {
2008  if (player->IsGameMaster())
2009  return true;
2010 
2011  InstanceScript* _instance = player->GetInstanceScript();
2012 
2013  if (_instance->GetData(DATA_INTRO_EVENT) == NOT_STARTED)
2014  _instance->SetData(DATA_INTRO_EVENT, IN_PROGRESS);
2015 
2016  if (player->HasAura(SPELL_QUEL_DELAR_COMPULSION) && (player->GetQuestStatus(QUEST_HALLS_OF_REFLECTION_ALLIANCE) == QUEST_STATUS_INCOMPLETE ||
2018  {
2020  _instance->SetGuidData(DATA_QUEL_DELAR_INVOKER, player->GetGUID());
2021  }
2022 
2023  return true;
2024  }
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
Definition: halls_of_reflection.h:38
virtual void SetGuidData(uint32, ObjectGuid)
Definition: ZoneScript.h:45
Definition: halls_of_reflection.h:180
Definition: InstanceScript.h:59
Definition: halls_of_reflection.h:173
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
Definition: InstanceScript.h:58
Definition: halls_of_reflection.h:55
Definition: halls_of_reflection.h:179
Definition: halls_of_reflection.h:52
Definition: QuestDef.h:113
Definition: InstanceScript.h:141

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: