diff options
-rw-r--r-- | sql/updates/1261_world.sql | 1 | ||||
-rw-r--r-- | src/bindings/scripts/scripts/go/go_scripts.cpp | 19 |
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(); + } |