aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/FULL/world_scripts_full.sql1
-rw-r--r--sql/updates/7873_world_scriptname.sql1
-rw-r--r--src/scripts/world/go_scripts.cpp28
3 files changed, 30 insertions, 0 deletions
diff --git a/sql/FULL/world_scripts_full.sql b/sql/FULL/world_scripts_full.sql
index 635c1b5f351..33fc086dd79 100644
--- a/sql/FULL/world_scripts_full.sql
+++ b/sql/FULL/world_scripts_full.sql
@@ -259,6 +259,7 @@ UPDATE `creature_template` SET `ScriptName`='npc_nestlewood_owlkin' WHERE `entry
UPDATE `creature_template` SET `ScriptName`='npc_draenei_survivor' WHERE `entry`=16483;
UPDATE `creature_template` SET `ScriptName`='npc_death_ravager' WHERE `entry`=17556;
UPDATE `gameobject_template` SET `ScriptName`='go_ravager_cage' WHERE `entry`=181849;
+UPDATE `gameobject_template` SET `ScriptName`='go_stillpine_cage' WHERE `entry`=181714;
/* BADLANDS */
diff --git a/sql/updates/7873_world_scriptname.sql b/sql/updates/7873_world_scriptname.sql
new file mode 100644
index 00000000000..8ae09707aed
--- /dev/null
+++ b/sql/updates/7873_world_scriptname.sql
@@ -0,0 +1 @@
+UPDATE `gameobject_template` SET `ScriptName`='go_stillpine_cage' WHERE `entry`=181714;
diff --git a/src/scripts/world/go_scripts.cpp b/src/scripts/world/go_scripts.cpp
index 7ea23b11feb..539e51c5736 100644
--- a/src/scripts/world/go_scripts.cpp
+++ b/src/scripts/world/go_scripts.cpp
@@ -881,6 +881,29 @@ bool GOSelect_go_amberpine_outhouse(Player *pPlayer, GameObject *pGO, uint32 uiS
return false;
}
+/*######
+## Quest 9544: The Prophecy of Akida
+######*/
+
+enum eProphecy
+{
+ QUEST_PROPHECY_OF_AKIDA = 9544,
+ NPC_STILLPINE_CAPTIVE = 17375
+};
+
+bool GOHello_go_stillpine_cage(Player *pPlayer, GameObject *pGO)
+{
+ Creature *pPrisoner;
+ if (pPlayer->GetQuestStatus(QUEST_ALLIANCE_YOU_VE_REALLY_DONE_IT_THIS_TIME_KUL) == QUEST_STATUS_INCOMPLETE &&
+ (pPrisoner = pGO->FindNearestCreature(NPC_STILLPINE_CAPTIVE,1.0f)))
+ {
+ pGO->UseDoorOrButton();
+ pPrisoner->DisappearAndDie();
+ pPlayer->KilledMonsterCredit(pPrisoner->GetEntry(),0);
+ }
+ return true;
+}
+
void AddSC_go_scripts()
{
Script *newscript;
@@ -1052,6 +1075,11 @@ void AddSC_go_scripts()
newscript->RegisterSelf();
newscript = new Script;
+ newscript->Name = "go_stillpine_cage";
+ newscript->pGOHello = &GOHello_go_stillpine_cage;
+ newscript->RegisterSelf();
+
+ newscript = new Script;
newscript->Name = "go_amberpine_outhouse";
newscript->pGOHello = &GOHello_go_amberpine_outhouse;
newscript->pGOSelect = &GOSelect_go_amberpine_outhouse;