diff options
| author | _manuel_ <manue.l@live.com.ar> | 2010-04-23 16:11:57 -0300 |
|---|---|---|
| committer | _manuel_ <manue.l@live.com.ar> | 2010-04-23 16:11:57 -0300 |
| commit | c972765e0acc24ef11598325d9105ea7204659b9 (patch) | |
| tree | df5ab90f093402bac85cf107fb1ad0a15cdb456f /src | |
| parent | c4e4486903a57bca1bcfb438c75e4ee7a806b67c (diff) | |
Implemented script for areatriggers 5332,5338,5334 and 5340, related with quest Last Rites.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/scripts/world/areatrigger_scripts.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
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(); } |
