aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraczman <none@none>2009-03-27 20:28:17 +0100
committerraczman <none@none>2009-03-27 20:28:17 +0100
commit3a13ab502fb879a73ad5ae4618dc5a6cb5b8b9c4 (patch)
treeceec2d9de383497f532b20bd9a726c5ab9769d4c
parent6a0677fd03861ca11c619593df05abd07cda25af (diff)
Added script for GO 175944 by Sorken.
--HG-- branch : trunk
-rw-r--r--sql/updates/1261_world.sql1
-rw-r--r--src/bindings/scripts/scripts/go/go_scripts.cpp19
2 files changed, 20 insertions, 0 deletions
diff --git a/sql/updates/1261_world.sql b/sql/updates/1261_world.sql
new file mode 100644
index 00000000000..3f97153d3dd
--- /dev/null
+++ b/sql/updates/1261_world.sql
@@ -0,0 +1 @@
+UPDATE `gameobject_template` SET `scriptname` = 'go_sacred_fire_of_life' WHERE `entry` = 175944;
diff --git a/src/bindings/scripts/scripts/go/go_scripts.cpp b/src/bindings/scripts/scripts/go/go_scripts.cpp
index 5c171b035b4..9aacd2487e9 100644
--- a/src/bindings/scripts/scripts/go/go_scripts.cpp
+++ b/src/bindings/scripts/scripts/go/go_scripts.cpp
@@ -194,6 +194,20 @@ bool GOHello_go_ethereum_prison(Player *player, GameObject* _GO)
return true;
}
+/*######
+## go_sacred_fire_of_life
+######*/
+
+#define NPC_ARIKARA 10882
+
+bool GOHello_go_sacred_fire_of_life(Player* pPlayer, GameObject* pGO)
+{
+ if (pGO->GetGoType() == GAMEOBJECT_TYPE_GOOBER)
+ pPlayer->SummonCreature(NPC_ARIKARA, -5008.338, -2118.894, 83.657, 0.874, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
+
+ return true;
+}
+
void AddSC_go_scripts()
{
Script *newscript;
@@ -253,5 +267,10 @@ void AddSC_go_scripts()
newscript->pGOHello = &GOHello_go_ethereum_prison;
newscript->RegisterSelf();
+ newscript = new Script;
+ newscript->Name = "go_sacred_fire_of_life";
+ newscript->pGOHello = &GOHello_go_sacred_fire_of_life;
+ newscript->RegisterSelf();
+
}