Index: scripts/northrend/sholazar_basin.cpp =================================================================== --- scripts/northrend/sholazar_basin.cpp (revision 1639) +++ scripts/northrend/sholazar_basin.cpp (working copy) @@ -17,12 +17,13 @@ /* ScriptData SDName: Sholazar_Basin SD%Complete: 100 -SDComment: Quest support: 12573 +SDComment: Quest support: 12573, 12634 SDCategory: Sholazar Basin EndScriptData */ /* ContentData npc_vekjik +go_sturdy_vine EndContentData */ #include "precompiled.h" @@ -81,6 +82,51 @@ return true; } +/*###### +## go_sturdy_vine +######*/ + +enum +{ + QUEST_SOME_MAKE_LEMONADE_SOME_MAKE_LIQUOR = 12634, + SPELL_SUMMON_GO_ORANGE = 51837, + SPELL_SUMMON_GO_BANANA_BUNCH = 51836, + SPELL_SUMMON_GO_PAPAYA = 51839, + SPELL_SUMMON_NPC_ADVENTUROUS_DWARF = 52070, + NPC_FRUIT_TOSSER = 28466 +}; + +bool GOHello_go_sturdy_vine(Player* pPlayer, GameObject* pGo) +{ + if (pPlayer->GetQuestStatus(QUEST_SOME_MAKE_LEMONADE_SOME_MAKE_LIQUOR) == QUEST_STATUS_INCOMPLETE) + { + Creature * pCreature = GetClosestCreatureWithEntry(pGo, NPC_FRUIT_TOSSER, 1.0f); + { + if (pCreature) + { + int iRandom = urand(0,3); + switch(iRandom) + { + case 0: + pCreature->CastSpell(pPlayer,SPELL_SUMMON_GO_ORANGE,true); + break; + case 1: + pCreature->CastSpell(pPlayer,SPELL_SUMMON_GO_BANANA_BUNCH,true); + break; + case 2: + pCreature->CastSpell(pPlayer,SPELL_SUMMON_GO_PAPAYA,true); + break; + case 3: + pCreature->CastSpell(pPlayer,SPELL_SUMMON_NPC_ADVENTUROUS_DWARF,true); + break; + } + } + } + } + pGo->Delete(); + return true; +} + void AddSC_sholazar_basin() { Script *newscript; @@ -90,4 +136,9 @@ newscript->pGossipHello = &GossipHello_npc_vekjik; newscript->pGossipSelect = &GossipSelect_npc_vekjik; newscript->RegisterSelf(); + + newscript = new Script; + newscript->Name = "go_sturdy_vine"; + newscript->pGOHello = &GOHello_go_sturdy_vine; + newscript->RegisterSelf(); }