aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclick <none@none>2010-05-02 03:00:45 +0200
committerclick <none@none>2010-05-02 03:00:45 +0200
commite2d6abb681eb1022491360dafdb71d4c1361a63c (patch)
treef18d61902c167032ae93d4c9e9a99f7e1ef1d13b
parentb7e1570e87f7411706ff779685ae6cbbf3e80bd7 (diff)
Add support for quest 12916 (Our Only Hope) - Patch by supabad
Closes issue #940 --HG-- branch : trunk
-rw-r--r--sql/updates/8073_world_gameobject_template.sql1
-rw-r--r--src/scripts/northrend/zuldrak.cpp30
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();
}