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

Public Member Functions

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

AreaTrigger_at_scent_larkorwi::AreaTrigger_at_scent_larkorwi ( )
inline
144 : AreaTriggerScript("at_scent_larkorwi") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

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

Reimplemented from AreaTriggerScript.

147  {
148  if (!player->isDead() && player->GetQuestStatus(QUEST_SCENT_OF_LARKORWI) == QUEST_STATUS_INCOMPLETE)
149  {
150  if (!player->FindNearestCreature(NPC_LARKORWI_MATE, 15))
151  player->SummonCreature(NPC_LARKORWI_MATE, player->GetPositionX()+5, player->GetPositionY(), player->GetPositionZ(), 3.3f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 100000);
152  }
153 
154  return false;
155  }
Definition: areatrigger_scripts.cpp:138
Definition: QuestDef.h:113
Definition: areatrigger_scripts.cpp:137

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