diff options
-rw-r--r-- | sql/updates/8073_world_gameobject_template.sql | 1 | ||||
-rw-r--r-- | src/scripts/northrend/zuldrak.cpp | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/sql/updates/8073_world_gameobject_template.sql b/sql/updates/8073_world_gameobject_template.sql new file mode 100644 index 00000000000..79083733b13 --- /dev/null +++ b/sql/updates/8073_world_gameobject_template.sql @@ -0,0 +1 @@ +UPDATE `gameobject_template` SET `ScriptName` = 'go_scourge_enclosure' WHERE `gameobject_template`.`entry` = 191548; diff --git a/src/scripts/northrend/zuldrak.cpp b/src/scripts/northrend/zuldrak.cpp index 845d1ae0c24..96827801a96 100644 --- a/src/scripts/northrend/zuldrak.cpp +++ b/src/scripts/northrend/zuldrak.cpp @@ -1008,6 +1008,31 @@ bool GossipSelect_npc_crusade_recruit(Player* pPlayer, Creature* pCreature, uint return true; } +/*###### +## Quest 12916: Our Only Hope! +## go_scourge_enclosure +######*/ + +enum eScourgeEnclosure +{ + QUEST_OUR_ONLY_HOPE = 12916, + NPC_GYMER_DUMMY = 29928 //from quest template +}; + +bool GOHello_go_scourge_enclosure(Player *pPlayer, GameObject *pGO) +{ + Creature *pGymerDummy; + if (pPlayer->GetQuestStatus(QUEST_OUR_ONLY_HOPE) == QUEST_STATUS_INCOMPLETE && + (pGymerDummy = pGO->FindNearestCreature(NPC_GYMER_DUMMY,20.0f))) + { + pGO->UseDoorOrButton(); + pPlayer->KilledMonsterCredit(pGymerDummy->GetEntry(),pGymerDummy->GetGUID()); + pGymerDummy->CastSpell(pGymerDummy, 55529, true); + pGymerDummy->DisappearAndDie(); + } + return true; +} + void AddSC_zuldrak() { Script *newscript; @@ -1064,4 +1089,9 @@ void AddSC_zuldrak() newscript->pGossipHello = &GossipHello_npc_crusade_recruit; newscript->pGossipSelect = &GossipSelect_npc_crusade_recruit; newscript->RegisterSelf(); + + newscript = new Script; + newscript->Name = "go_scourge_enclosure"; + newscript->pGOHello = &GOHello_go_scourge_enclosure; + newscript->RegisterSelf(); } |