diff options
author | Tartalo <none@none> | 2010-02-24 16:51:15 +0100 |
---|---|---|
committer | Tartalo <none@none> | 2010-02-24 16:51:15 +0100 |
commit | 7971e3b8c1cb09e23ff118563d629e621f2df0ac (patch) | |
tree | 54cf850b269925965a166fb0fb3e55311d8b5526 /src | |
parent | 2ae4291442889923a4ecf63e3240dd4f029b848c (diff) |
Icecrown, Argent Tournament: Support for quests 14096 & 14142
You've Really Done It This Time Kul
Needs db support to work properly (missing spawn + faction changes)
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts/world/go_scripts.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/scripts/world/go_scripts.cpp b/src/scripts/world/go_scripts.cpp index 91988022917..76b8c197f66 100644 --- a/src/scripts/world/go_scripts.cpp +++ b/src/scripts/world/go_scripts.cpp @@ -793,6 +793,33 @@ bool GOHello_go_tadpole_cage(Player *pPlayer, GameObject *pGO) return true; } +/*###### +## Quest 14096 & 14142: You've Really Done It This Time, Kul +## go_black_cage +######*/ + +enum eReallyDoneItThisTime +{ + QUEST_ALLIANCE_YOU_VE_REALLY_DONE_IT_THIS_TIME_KUL = 14096, + QUEST_HORDE_YOU_VE_REALLY_DONE_IT_THIS_TIME_KUL = 14142, + NPC_CAPTIVE_ASPIRANT = 34716, + NPC_KUL = 34956 +}; + +bool GOHello_go_black_cage(Player *pPlayer, GameObject *pGO) +{ + Creature *pPrisoner; + if (((pPlayer->GetTeamId() == TEAM_ALLIANCE && pPlayer->GetQuestStatus(QUEST_ALLIANCE_YOU_VE_REALLY_DONE_IT_THIS_TIME_KUL) == QUEST_STATUS_INCOMPLETE) || + (pPlayer->GetTeamId() == TEAM_HORDE && pPlayer->GetQuestStatus(QUEST_HORDE_YOU_VE_REALLY_DONE_IT_THIS_TIME_KUL) == QUEST_STATUS_INCOMPLETE)) && + ((pPrisoner = pGO->FindNearestCreature(NPC_CAPTIVE_ASPIRANT,1.0f)) || (pPrisoner = pGO->FindNearestCreature(NPC_KUL,1.0f)))) + { + pGO->UseDoorOrButton(); + pPrisoner->DisappearAndDie(); + pPlayer->KilledMonsterCredit(pPrisoner->GetEntry(),0); + } + return true; +} + void AddSC_go_scripts() { Script *newscript; |