diff options
| author | Tartalo <none@none> | 2010-02-18 22:22:09 +0100 | 
|---|---|---|
| committer | Tartalo <none@none> | 2010-02-18 22:22:09 +0100 | 
| commit | 746052f5618dab6f3d54b77ef7c656f637ae46c3 (patch) | |
| tree | 4b7457de1772dac25b6f5d1f866b8fc513d93257 /src/scripts | |
| parent | 43a6be4b10da0c5e1e45e97d1130af3b93afaa71 (diff) | |
Borean Tundra: Support for quest 11560
Oh Noes, the Tadpoles!
--HG--
branch : trunk
Diffstat (limited to 'src/scripts')
| -rw-r--r-- | src/scripts/world/go_scripts.cpp | 29 | 
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();  } | 
