* Implement proper script support for quest "The Prophecy of Akida" (9544)

* Script by antihrist

--HG--
branch : trunk
This commit is contained in:
Brian
2010-07-08 02:22:20 -06:00
parent 668de35042
commit e761d578da
6 changed files with 82 additions and 27 deletions
-27
View File
@@ -943,28 +943,6 @@ bool GOSelect_go_amberpine_outhouse(Player *pPlayer, GameObject *pGO, uint32 /*u
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)
{
if (pPlayer->GetQuestStatus(QUEST_PROPHECY_OF_AKIDA) == QUEST_STATUS_INCOMPLETE)
if (Creature *pPrisoner = pGO->FindNearestCreature(NPC_STILLPINE_CAPTIVE,1.0f))
{
pGO->UseDoorOrButton();
pPrisoner->DisappearAndDie();
pPlayer->KilledMonsterCredit(pPrisoner->GetEntry(),0);
}
return true;
}
/*######
## Quest 1126: Hive in the Tower
######*/
@@ -1160,11 +1138,6 @@ void AddSC_go_scripts()
newscript->pGOHello = &GOHello_go_black_cage;
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;