diff options
author | Tartalo <none@none> | 2010-04-11 20:29:57 +0200 |
---|---|---|
committer | Tartalo <none@none> | 2010-04-11 20:29:57 +0200 |
commit | 8dd94f4fabbaece7979ea38a96057e0a22ceea73 (patch) | |
tree | 5d1c4b65aa25d8a0d5a2046d27afcebb18e1f3d4 /src | |
parent | 65c3e979e2eed9e2485caf65b487dbd2219c0592 (diff) |
Azuremyst Isle: Support for quest 9544
The Prophecy of Akida
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts/world/go_scripts.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/scripts/world/go_scripts.cpp b/src/scripts/world/go_scripts.cpp index 7ea23b11feb..539e51c5736 100644 --- a/src/scripts/world/go_scripts.cpp +++ b/src/scripts/world/go_scripts.cpp @@ -881,6 +881,29 @@ bool GOSelect_go_amberpine_outhouse(Player *pPlayer, GameObject *pGO, uint32 uiS return false; } +/*###### +## Quest 9544: The Prophecy of Akida +######*/ + +enum eProphecy +{ + QUEST_PROPHECY_OF_AKIDA = 9544, + NPC_STILLPINE_CAPTIVE = 17375 +}; + +bool GOHello_go_stillpine_cage(Player *pPlayer, GameObject *pGO) +{ + Creature *pPrisoner; + if (pPlayer->GetQuestStatus(QUEST_ALLIANCE_YOU_VE_REALLY_DONE_IT_THIS_TIME_KUL) == QUEST_STATUS_INCOMPLETE && + (pPrisoner = pGO->FindNearestCreature(NPC_STILLPINE_CAPTIVE,1.0f))) + { + pGO->UseDoorOrButton(); + pPrisoner->DisappearAndDie(); + pPlayer->KilledMonsterCredit(pPrisoner->GetEntry(),0); + } + return true; +} + void AddSC_go_scripts() { Script *newscript; @@ -1052,6 +1075,11 @@ void AddSC_go_scripts() newscript->RegisterSelf(); newscript = new Script; + newscript->Name = "go_stillpine_cage"; + newscript->pGOHello = &GOHello_go_stillpine_cage; + newscript->RegisterSelf(); + + newscript = new Script; newscript->Name = "go_amberpine_outhouse"; newscript->pGOHello = &GOHello_go_amberpine_outhouse; newscript->pGOSelect = &GOSelect_go_amberpine_outhouse; |