From c972765e0acc24ef11598325d9105ea7204659b9 Mon Sep 17 00:00:00 2001 From: _manuel_ Date: Fri, 23 Apr 2010 16:11:57 -0300 Subject: Implemented script for areatriggers 5332,5338,5334 and 5340, related with quest Last Rites. --HG-- branch : trunk --- src/scripts/world/areatrigger_scripts.cpp | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'src/scripts') diff --git a/src/scripts/world/areatrigger_scripts.cpp b/src/scripts/world/areatrigger_scripts.cpp index 87253e8c181..a6d5de41c2e 100644 --- a/src/scripts/world/areatrigger_scripts.cpp +++ b/src/scripts/world/areatrigger_scripts.cpp @@ -181,6 +181,43 @@ bool AreaTrigger_at_stormwright_shelf(Player* pPlayer, const AreaTriggerEntry* / return true; } +/*##### +## at_last_rites +#####*/ + +enum eAtLastRites +{ + QUEST_LAST_RITES = 12019 +}; + +bool AreaTrigger_at_last_rites(Player* pPlayer, const AreaTriggerEntry* pAt) +{ + if (pPlayer->GetQuestStatus(QUEST_LAST_RITES) != QUEST_STATUS_INCOMPLETE) + return false; + + WorldLocation pPosition; + + switch(pAt->id) + { + case 5332: + case 5338: + pPosition = WorldLocation(571,3733.68,3563.25,290.812,3.665192); + break; + case 5334: + pPosition = WorldLocation(571,3802.38,3585.95,49.5765,0); + break; + case 5340: + pPosition = WorldLocation(571,3687.91,3577.28,473.342,0); + break; + default: + return false; + } + + pPlayer->TeleportTo(pPosition); + + return false; +} + void AddSC_areatrigger_scripts() { Script* newscript; @@ -214,4 +251,9 @@ void AddSC_areatrigger_scripts() newscript->Name = "at_stormwright_shelf"; newscript->pAreaTrigger = &AreaTrigger_at_stormwright_shelf; newscript->RegisterSelf(); + + newscript = new Script; + newscript->Name = "at_last_rites"; + newscript->pAreaTrigger = &AreaTrigger_at_last_rites; + newscript->RegisterSelf(); } -- cgit v1.2.3