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

Public Member Functions

 AreaTrigger_at_sholazar_waygate ()
 
bool OnTrigger (Player *player, AreaTriggerEntry const *areaTrigger, 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

AreaTrigger_at_sholazar_waygate::AreaTrigger_at_sholazar_waygate ( )
inline
229 : AreaTriggerScript("at_sholazar_waygate") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

bool AreaTrigger_at_sholazar_waygate::OnTrigger ( Player player,
AreaTriggerEntry const areaTrigger,
bool   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

232  {
233  if (!player->isDead() && (player->GetQuestStatus(QUEST_MEETING_A_GREAT_ONE) != QUEST_STATUS_NONE ||
234  (player->GetQuestStatus(QUEST_THE_MAKERS_OVERLOOK) == QUEST_STATUS_REWARDED && player->GetQuestStatus(QUEST_THE_MAKERS_PERCH) == QUEST_STATUS_REWARDED)))
235  {
236  switch (areaTrigger->ID)
237  {
238  case AT_SHOLAZAR:
239  player->CastSpell(player, SPELL_SHOLAZAR_TO_UNGORO_TELEPORT, true);
240  break;
241 
242  case AT_UNGORO:
243  player->CastSpell(player, SPELL_UNGORO_TO_SHOLAZAR_TELEPORT, true);
244  break;
245  }
246  }
247 
248  return false;
249  }
Definition: areatrigger_scripts.cpp:221
Definition: QuestDef.h:110
Definition: QuestDef.h:116
Definition: areatrigger_scripts.cpp:218
Definition: areatrigger_scripts.cpp:216
Definition: areatrigger_scripts.cpp:219
Definition: areatrigger_scripts.cpp:222
Definition: areatrigger_scripts.cpp:215
Definition: areatrigger_scripts.cpp:223

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