aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-21 19:25:29 -0800
committermaximius <none@none>2009-11-21 19:25:29 -0800
commit946a32a6ba2a5d5b7de0bec2642885501c8db97e (patch)
tree8dd571320187e9edf6e16f989fdecc7406ef6973
parent2b8e315218a1b423bad2c3525f63f75aa7fd2f95 (diff)
*Implement Blood Filled Orb GO script, for quest The Path of the Adept. Closes #290
--HG-- branch : trunk
-rw-r--r--sql/FULL/world_scripts_full.sql1
-rw-r--r--sql/updates/6357_world_scripts.sql2
-rw-r--r--src/bindings/scripts/scripts/world/go_scripts.cpp31
3 files changed, 34 insertions, 0 deletions
diff --git a/sql/FULL/world_scripts_full.sql b/sql/FULL/world_scripts_full.sql
index 1cc6b2e6751..75ef78414c6 100644
--- a/sql/FULL/world_scripts_full.sql
+++ b/sql/FULL/world_scripts_full.sql
@@ -877,6 +877,7 @@ UPDATE `creature_template` SET `ScriptName`='npc_shenthul' WHERE `entry`=3401;
UPDATE `creature_template` SET `ScriptName`='npc_thrall_warchief' WHERE `entry`=4949;
/* RAGEFIRE CHASM */
+UPDATE `gameobject_template` SET `ScriptName`='go_blood_filled_orb' WHERE `entry`=182024;
/* RAZORFEN DOWNS */
UPDATE `creature_template` SET `ScriptName`='boss_amnennar_the_coldbringer' WHERE `entry`=7358;
diff --git a/sql/updates/6357_world_scripts.sql b/sql/updates/6357_world_scripts.sql
new file mode 100644
index 00000000000..daacbabd05a
--- /dev/null
+++ b/sql/updates/6357_world_scripts.sql
@@ -0,0 +1,2 @@
+
+UPDATE `gameobject_template` SET `ScriptName`='go_blood_filled_orb' WHERE `entry`=182024;
diff --git a/src/bindings/scripts/scripts/world/go_scripts.cpp b/src/bindings/scripts/scripts/world/go_scripts.cpp
index 84a603f1705..9f6b90f6af0 100644
--- a/src/bindings/scripts/scripts/world/go_scripts.cpp
+++ b/src/bindings/scripts/scripts/world/go_scripts.cpp
@@ -530,6 +530,10 @@ bool GOHello_go_matrix_punchograph(Player *pPlayer, GameObject *pGO)
return false;
}
+/*######
+## go_rusty_cage
+######*/
+
enum eRustyCage
{
NPC_GOBLIN_PRISIONER = 29466
@@ -547,6 +551,10 @@ bool GOHello_go_rusty_cage(Player *pPlayer, GameObject *pGO)
return true;
}
+/*######
+## go_scourge_cage
+######*/
+
enum eScourgeCage
{
NPC_SCOURGE_PRISONER = 25610
@@ -564,6 +572,10 @@ bool GOHello_go_scourge_cage(Player *pPlayer, GameObject *pGO)
return true;
}
+/*######
+## go_arcane_prison
+######*/
+
enum eArcanePrison
{
QUEST_PRISON_BREAK = 11587,
@@ -581,6 +593,20 @@ bool GOHello_go_arcane_prison(Player *pPlayer, GameObject *pGO)
return false;
}
+/*######
+## go_blood_filled_orb
+######*/
+
+#define NPC_ZELEMAR 17830
+
+bool GOHello_go_blood_filled_orb(Player *pPlayer, GameObject *pGO)
+{
+ if (pGO->GetGoType() == GAMEOBJECT_TYPE_GOOBER)
+ pPlayer->SummonCreature(NPC_ZELEMAR, -369.746, 166.759, -21.50, 5.235, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
+
+ return true;
+}
+
void AddSC_go_scripts()
{
Script *newscript;
@@ -710,5 +736,10 @@ void AddSC_go_scripts()
newscript->Name = "go_arcane_prison";
newscript->pGOHello = &GOHello_go_arcane_prison;
newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name = "go_blood_filled_orb";
+ newscript->pGOHello = &GOHello_go_blood_filled_orb;
+ newscript->RegisterSelf();
}