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

Public Member Functions

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

◆ AreaTrigger_at_last_rites()

AreaTrigger_at_last_rites::AreaTrigger_at_last_rites ( )
inline
206 : AreaTriggerScript("at_last_rites")
207 {
208 }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

bool AreaTrigger_at_last_rites::OnTrigger ( Player player,
AreaTrigger const *  trigger 
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

211 {
214 if (!(QLR == QUEST_STATUS_INCOMPLETE || QLR == QUEST_STATUS_COMPLETE ||
216 return false;
217
218 WorldLocation pPosition;
219
220 switch (trigger->entry)
221 {
222 case 5332:
223 case 5338:
224 case 5339:
225 pPosition = WorldLocation(571, 3733.68f, 3563.25f, 290.812f, 3.665192f);
226 break;
227 case 5334:
228 pPosition = WorldLocation(571, 3802.38f, 3585.95f, 49.5765f, 0.0f);
229 break;
230 case 5340:
231 if (QBT == QUEST_STATUS_INCOMPLETE)
232 pPosition = WorldLocation(571, 3758, 3562, 345.51f, 0.0f);
233 else
234 pPosition = WorldLocation(571, 3687.91f, 3577.28f, 473.342f, 0.0f);
235 break;
236 default:
237 return false;
238 }
239
240 player->TeleportTo(pPosition);
241
242 return false;
243 }
@ QUEST_BREAKING_THROUGH
Definition: areatrigger_scripts.cpp:199
@ QUEST_LAST_RITES
Definition: areatrigger_scripts.cpp:198
QuestStatus
Definition: QuestDef.h:99
@ QUEST_STATUS_INCOMPLETE
Definition: QuestDef.h:103
@ QUEST_STATUS_COMPLETE
Definition: QuestDef.h:101
Definition: Position.h:250
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options=0, Unit *target=nullptr, bool newInstance=false)
Definition: Player.cpp:1334
QuestStatus GetQuestStatus(uint32 quest_id) const
Definition: PlayerQuest.cpp:1429

References AreaTrigger::entry, Player::GetQuestStatus(), QUEST_BREAKING_THROUGH, QUEST_LAST_RITES, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, and Player::TeleportTo().