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

Public Member Functions

 at_twilight_grove ()
 
bool OnTrigger (Player *player, const AreaTriggerEntry *, 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_twilight_grove::at_twilight_grove ( )
inline
147 : AreaTriggerScript("at_twilight_grove") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

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

Reimplemented from AreaTriggerScript.

150  {
151  if (player->GetQuestStatus(QUEST_NIGHTMARES_CORRUPTION) == QUEST_STATUS_INCOMPLETE)
152  if (!player->FindNearestCreature(NPC_TWILIGHT_CORRUPTER, 500.0f, true))
154  corrupter->AI()->Talk(YELL_TWILIGHT_CORRUPTOR_RESPAWN, player);
155 
156  return false;
157  };
Definition: Object.h:61
Position const TwillightCorrupter
Definition: zone_duskwood.cpp:142
Definition: zone_duskwood.cpp:32
Definition: Creature.h:467
Definition: zone_duskwood.cpp:33
Definition: QuestDef.h:113
Definition: zone_duskwood.cpp:44
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346

+ Here is the call graph for this function:


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