aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/world/master/2021_11_15_05_world_2018_10_18_01_world_335.sql10
-rw-r--r--src/server/scripts/World/go_scripts.cpp35
2 files changed, 10 insertions, 35 deletions
diff --git a/sql/updates/world/master/2021_11_15_05_world_2018_10_18_01_world_335.sql b/sql/updates/world/master/2021_11_15_05_world_2018_10_18_01_world_335.sql
new file mode 100644
index 00000000000..04ea054324a
--- /dev/null
+++ b/sql/updates/world/master/2021_11_15_05_world_2018_10_18_01_world_335.sql
@@ -0,0 +1,10 @@
+--
+UPDATE `gameobject_template` SET `AIName`="SmartGameObjectAI", ScriptName="" WHERE `entry` IN (175944);
+DELETE FROM `smart_scripts` WHERE `entryorguid`=175944 AND `source_type`=1;
+INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(175944,1,0,1,8,0,100,0,16996,0,0,0,12,10882,4,30000,0,0,0,8,0,0,0,-5008.338, -2118.894, 83.657, 0.874,"Sacred Fire of Life - On spell Hit - Summon Arikara"),
+(175944,1,1,0,61,0,100,0,0,0,0,0,99,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Sacred Fire of Life - On spell Hit - activate object");
+
+DELETE FROM `conditions` WHERE `SourceEntry`= 16996 AND `SourceTypeOrReferenceId`=17;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
+(17, 0, 16996, 0, 0, 29, 0, 10882, 100, 0, 1, 0, 0, '', '');
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp
index a21f45d41c3..18f491abd1f 100644
--- a/src/server/scripts/World/go_scripts.cpp
+++ b/src/server/scripts/World/go_scripts.cpp
@@ -20,7 +20,6 @@ go_cat_figurine (the "trap" version of GO, two different exist)
go_barov_journal
go_ethereum_prison
go_ethereum_stasis
-go_sacred_fire_of_life
go_shrine_of_the_birds
go_southfury_moonstone
go_orb_of_command
@@ -413,39 +412,6 @@ public:
};
/*######
-## go_sacred_fire_of_life
-######*/
-
-enum SacredFireOfLife
-{
- NPC_ARIKARA = 10882
-};
-
-class go_sacred_fire_of_life : public GameObjectScript
-{
-public:
- go_sacred_fire_of_life() : GameObjectScript("go_sacred_fire_of_life") { }
-
- struct go_sacred_fire_of_lifeAI : public GameObjectAI
- {
- go_sacred_fire_of_lifeAI(GameObject* go) : GameObjectAI(go) { }
-
- bool GossipHello(Player* player) override
- {
- if (me->GetGoType() == GAMEOBJECT_TYPE_GOOBER)
- player->SummonCreature(NPC_ARIKARA, -5008.338f, -2118.894f, 83.657f, 0.874f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
-
- return true;
- }
- };
-
- GameObjectAI* GetAI(GameObject* go) const override
- {
- return new go_sacred_fire_of_lifeAI(go);
- }
-};
-
-/*######
## go_shrine_of_the_birds
######*/
@@ -1974,7 +1940,6 @@ void AddSC_go_scripts()
new go_ethereum_prison();
new go_ethereum_stasis();
new go_resonite_cask();
- new go_sacred_fire_of_life();
new go_tele_to_dalaran_crystal();
new go_tele_to_violet_stand();
new go_fel_crystalforge();