aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scripts/world/go_scripts.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/scripts/world/go_scripts.cpp b/src/scripts/world/go_scripts.cpp
index cd71124c4f5..ee75698ddf6 100644
--- a/src/scripts/world/go_scripts.cpp
+++ b/src/scripts/world/go_scripts.cpp
@@ -736,6 +736,30 @@ bool GOHello_go_soulwell(Player *pPlayer, GameObject* pGO)
return true;
}
+/*######
+## Quest 11560: Oh Noes, the Tadpoles!
+## go_tadpole_cage
+######*/
+
+enum eTadpoles
+{
+ QUEST_OH_NOES_THE_TADPOLES = 11560,
+ NPC_WINTERFIN_TADPOLE = 25201
+};
+
+bool GOHello_go_tadpole_cage(Player *pPlayer, GameObject *pGO)
+{
+ Creature *pTadpole;
+ if (pPlayer->GetQuestStatus(QUEST_OH_NOES_THE_TADPOLES) == QUEST_STATUS_INCOMPLETE &&
+ (pTadpole = pGO->FindNearestCreature(NPC_WINTERFIN_TADPOLE,1.0f)))
+ {
+ pGO->UseDoorOrButton();
+ pTadpole->DisappearAndDie();
+ pPlayer->KilledMonsterCredit(NPC_WINTERFIN_TADPOLE,0);
+ //FIX: Summon minion tadpole
+ }
+ return true;
+}
void AddSC_go_scripts()
{
@@ -891,4 +915,9 @@ void AddSC_go_scripts()
newscript->Name = "go_soulwell";
newscript->pGOHello = &GOHello_go_soulwell;
newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name = "go_tadpole_cage";
+ newscript->pGOHello = &GOHello_go_tadpole_cage;
+ newscript->RegisterSelf();
}