aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorNitair <peter.stein94@gmail.com>2019-05-31 08:26:42 +0200
committerGiacomo Pozzoni <giacomopoz@gmail.com>2019-05-31 08:26:42 +0200
commitee5101fbf74b0fa924a8467ee766b39c1d06875b (patch)
tree5b9b79d7a474824c4398f46a3e45745d085ff717 /sql/updates
parentd333cd0ccfdaaab822eae4a6f5cc0d47ce521875 (diff)
Scripts/Stratholme: Baron Rivendare rewrite (#22572)
* Adding last state of rivendare rewrite * Fix aura beeing removed on reset, fix death pact * Not needed * SQL: Changed remove/inset into update, fixed delete at conditions part * Typo * Remove link spell, fix blank lines, change magic numbers to enum * Test changes with SpellScript and DoCastSelf * Revert SpellScript and moved DoCastSelf for the aura into UpdateAI part * Damn, copyright. * Fix Unholy Aura * Fix again (does attack now / does cast if encounter resets) * Adding handling of the aura to the db * Rename 2018_99_99_99_world_335.sql to 2019_05_31_02_world_335.sql
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/world/3.3.5/2019_05_31_02_world_335.sql28
1 files changed, 28 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2019_05_31_02_world_335.sql b/sql/updates/world/3.3.5/2019_05_31_02_world_335.sql
new file mode 100644
index 00000000000..62379d0bc48
--- /dev/null
+++ b/sql/updates/world/3.3.5/2019_05_31_02_world_335.sql
@@ -0,0 +1,28 @@
+-- Baron Rivendare (Stratholme) - Set position for each Raise Dead spell (1-6)
+DELETE FROM `spell_target_position` WHERE `ID` IN (17475, 17476, 17477, 17478, 17479, 17480);
+INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `Orientation`, `VerifiedBuild`) VALUES
+(17475, 0, 329, 4017.403809, -3339.703369, 115.057655, 5.487860, 0),
+(17476, 0, 329, 4013.189209, -3351.808350, 115.052254, 0.134280, 0),
+(17477, 0, 329, 4017.738037, -3363.478016, 115.057274, 0.723313, 0),
+(17478, 0, 329, 4048.877197, -3363.223633, 115.054253, 3.627735, 0),
+(17479, 0, 329, 4051.777588, -3350.893311, 115.055351, 3.066176, 0),
+(17480, 0, 329, 4048.375977, -3339.966309, 115.055222, 2.457497, 0);
+
+-- Baron Rivendare (Stratholme) - Add missing emotes
+DELETE FROM `creature_text` WHERE `CreatureID` IN (10440);
+INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
+(10440, 0, 0, '%s raises an undead servant back to life!' , 16, 0, 0, 0, 0, 0, 6511, 0, 'Baron Rivendare (Stratholme) - EMOTE_RAISE_DEAD'),
+(10440, 1, 0, '%s attempts to cast Death Pact on his servants!', 16, 0, 0, 0, 0, 0, 6512, 0, 'Baron Rivendare (Stratholme) - EMOTE_DEATH_PACT');
+
+-- Baron Rivendare (Stratholme) - Use skeletons as target
+DELETE FROM `conditions` WHERE `SourceEntry` IN (17698, 17471);
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `Comment`) VALUES
+(13, 1, 17698, 0, 0, 31, 0, 3, 11197, 0, 0, 0, 0, 'Baron Rivendare (Stratholme) - Death Pact (Heal)'),
+(13, 1, 17471, 0, 0, 31, 0, 3, 11197, 0, 0, 0, 0, 'Baron Rivendare (Stratholme) - Death Pact (Periodic aura)');
+
+-- Baron Rivendare (Stratholme) - Skeletons should die after beeing affected by Death Pact
+UPDATE `creature_template` SET `ScriptName` = 'npc_summoned_skeleton' WHERE `entry` = 11197;
+
+-- Baron Rivendare (Stratholme) - Adding Unholy Aura
+DELETE FROM `creature_addon` WHERE `guid` IN (54241);
+UPDATE `creature_template_addon` SET `auras`= 17467 WHERE `entry` IN (10440);