Skip to content

Commit

Permalink
fix(DB): correct startup errors (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Winfidonarleyan authored Aug 27, 2023
1 parent 93ed3a9 commit 9164060
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 82 deletions.
79 changes: 79 additions & 0 deletions data/sql/updates/db_dbc/2023_08_27_00.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
--

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (32860, 32858, 31975, 32861, 32863);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(32860, 32860, 38378),
(32858, 32858, 38377),
(31975, 31975, 35511),
(32861, 32861, 38379),
(32863, 32863, 38252);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (32329, 34163, 34171, 31410, 31407, 22887);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(32329, 32329, 37965),
(34163, 34163, 37967),
(34171, 34171, 37956),
(31410, 31410, 37973),
(31407, 31407, 39413),
(22887, 22887, 40317);

DELETE FROM `spelldifficulty_dbc` WHERE `ID`=34171;
INSERT INTO `spelldifficulty_dbc` VALUES
(34171,34171,37956,0,0);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (33617, 33783);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(33617, 33617, 39363),
(33783, 33783, 39364);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (19130,30925,12739,30500,30495);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(19130, 19130, 40392),
(30925, 30925, 40059),
(12739, 12739, 15472),
(30500, 30500, 35954),
(30495, 30495, 35953);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (32197, 40062, 30846);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(32197, 32197, 37113),
(40062, 40062, 40064),
(30846, 30846, 32784);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (34798, 34797, 34644, 34359, 34358, 27637, 34254, 34642, 34641);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(34798, 34798, 39121),
(34797, 34797, 39120),
(34644, 34644, 39122),
(34359, 34359, 39128),
(34358, 34358, 39127),
(27637, 27637, 39125),
(34254, 34254, 39126),
(34642, 34642, 39347),
(34641, 34641, 39129);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (8374,15039,33534,12548,33620,15659,38795);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(8374, 8374, 38761),
(15039, 15039, 15616),
(33534, 33534, 38135),
(12548, 12548, 21401),
(33620, 33620, 38137),
(15659, 15659, 15305),
(38795, 38795, 33666);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (36275, 36279, 36278, 36277);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(36275, 36275, 38533),
(36279, 38534, 38533),
(36278, 38536, 38533),
(36277, 38535, 38533);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (32191, 32193, 15234, 34944, 17139, 34945);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(32191, 32191, 37666),
(32193, 32193, 37665),
(15234, 15234, 37664),
(34944, 34944, 37669),
(17139, 17139, 36052),
(34945, 34945, 39378);
13 changes: 1 addition & 12 deletions data/sql/updates/db_world/2023_05_03_00.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
-- DB update 2023_05_01_00 -> 2023_05_03_00
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (34798, 34797, 34644, 34359, 34358, 27637, 34254, 34642, 34641);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(34798, 34798, 39121),
(34797, 34797, 39120),
(34644, 34644, 39122),
(34359, 34359, 39128),
(34358, 34358, 39127),
(27637, 27637, 39125),
(34254, 34254, 39126),
(34642, 34642, 39347),
(34641, 34641, 39129);

-- Small Updates
UPDATE `smart_scripts` SET `event_param1` = 7300, `event_param2` = 15350, `event_param3` = 18200, `event_param4` = 25700 WHERE (`entryorguid` = 19505) AND (`source_type` = 0) AND (`id` IN (1)); -- Sunseeker Channeler
Expand Down Expand Up @@ -93,4 +82,4 @@ INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_
DELETE FROM `creature_template_addon` WHERE (`entry` IN (19843, 21565));
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES
(19843, 0, 0, 0, 1, 0, 0, '30991'),
(21565, 0, 0, 0, 1, 0, 0, '30991');
(21565, 0, 0, 0, 1, 0, 0, '30991');
10 changes: 1 addition & 9 deletions data/sql/updates/db_world/2023_05_09_00.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
-- DB update 2023_05_03_03 -> 2023_05_09_00
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (32191, 32193, 15234, 34944, 17139, 34945);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(32191, 32191, 37666),
(32193, 32193, 37665),
(15234, 15234, 37664),
(34944, 34944, 37669),
(17139, 17139, 36052),
(34945, 34945, 39378);

-- Small Updates
UPDATE `smart_scripts` SET `event_param1` = 3600, `event_param2` = 9750, `event_param3` = 6050, `event_param4` = 9750 WHERE (`entryorguid` = 17964) AND (`source_type` = 0) AND (`id` IN (0, 1)); -- Wastewalker Worker
Expand Down Expand Up @@ -72,4 +64,4 @@ INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_

DELETE FROM `creature_text` WHERE `CreatureID` = 17962;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(17962, 0, 0, '%s goes into a frenzy!', 16, 0, 100, 0, 0, 0, 38630, 0, 'Coilfang Collaborator');
(17962, 0, 0, '%s goes into a frenzy!', 16, 0, 100, 0, 0, 0, 38630, 0, 'Coilfang Collaborator');
10 changes: 1 addition & 9 deletions data/sql/updates/db_world/2023_05_10_00.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
-- DB update 2023_05_09_02 -> 2023_05_10_00
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (32329, 34163, 34171, 31410, 31407, 22887);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(32329, 32329, 37965),
(34163, 34163, 37967),
(34171, 34171, 37956),
(31410, 31410, 37973),
(31407, 31407, 39413),
(22887, 22887, 40317);

-- Complete Rewrites
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` IN (17871, 17723, 17724, 17731, 17732, 20465, 19632, 17726, 17728, 17771, 17735, 17727, 17729, 17734));
Expand Down Expand Up @@ -80,4 +72,4 @@ INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Lan
DELETE FROM `creature_template_addon` WHERE (`entry` IN (17734, 20187));
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES
(17734, 0, 0, 0, 1, 0, 0, '21737 32066'),
(20187, 0, 0, 0, 1, 0, 0, '21737 32066');
(20187, 0, 0, 0, 1, 0, 0, '21737 32066');
7 changes: 1 addition & 6 deletions data/sql/updates/db_world/2023_05_10_01.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
-- DB update 2023_05_10_00 -> 2023_05_10_01
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (33617, 33783);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(33617, 33617, 39363),
(33783, 33783, 39364);

DELETE FROM `spell_custom_attr` WHERE `spell_id` IN (33783, 39364);
INSERT INTO `spell_custom_attr` (`spell_id`, `attributes`) VALUES
(33783, 4194304),
(39364, 4194304);
(39364, 4194304);
7 changes: 1 addition & 6 deletions data/sql/updates/db_world/2023_05_10_07.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
-- DB update 2023_05_10_06 -> 2023_05_10_07
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (32197, 40062, 30846);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(32197, 32197, 37113),
(40062, 40062, 40064),
(30846, 30846, 32784);

-- Small Updates
UPDATE `smart_scripts` SET `event_param1` = 9300, `event_param2` = 18200, `event_param3` = 10950, `event_param4` = 23100 WHERE (`entryorguid` = 17626) AND (`source_type` = 0) AND (`id` = 1); -- Laughing Skull Legionnaire
Expand Down Expand Up @@ -71,4 +66,4 @@ UPDATE `creature_template_addon` SET `auras` = '8876' WHERE (`entry` = 17397);

UPDATE `creature_addon` SET `auras` = '30991' WHERE (`guid` IN (138193, 138237));

DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` IN (1739500, 1739501));
DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` IN (1739500, 1739501));
6 changes: 1 addition & 5 deletions data/sql/updates/db_world/2023_05_12_03.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
-- DB update 2023_05_12_02 -> 2023_05_12_03
--
UPDATE `creature_template` SET `AiName`='', `ScriptName`='npc_underbat' WHERE `entry`=17724;
DELETE FROM `smart_scripts` WHERE `entryorguid`=17724 AND `source_type`=0;

DELETE FROM `spelldifficulty_dbc` WHERE `ID`=34171;
INSERT INTO `spelldifficulty_dbc` VALUES
(34171,34171,37956,0,0);
DELETE FROM `smart_scripts` WHERE `entryorguid`=17724 AND `source_type`=0;
9 changes: 1 addition & 8 deletions data/sql/updates/db_world/2023_05_13_02.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
-- DB update 2023_05_13_01 -> 2023_05_13_02
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (32860, 32858, 31975, 32861, 32863);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(32860, 32860, 38378),
(32858, 32858, 38377),
(31975, 31975, 35511),
(32861, 32861, 38379),
(32863, 32863, 38252);

DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` IN (18558, 18497, 18493, 18559, 18495, 18499, 18498, 18501, 18700, 18702));
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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
Expand Down Expand Up @@ -68,4 +61,4 @@ INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_
(1849900, 9, 0, 0, 0, 0, 100, 2, 0, 0, 0, 0, 0, 11, 12466, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unliving Sorcerer - Actionlist for Random Cast - Cast \'Fireball\' (Normal Dungeon)'),
(1849901, 9, 0, 0, 0, 0, 100, 2, 0, 0, 0, 0, 0, 11, 15043, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unliving Sorcerer - Actionlist for Random Cast - Cast \'Frostbolt\' (Normal Dungeon)'),
(1849902, 9, 0, 0, 0, 0, 100, 4, 0, 0, 0, 0, 0, 11, 17290, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unliving Sorcerer - Actionlist for Random Cast - Cast \'Fireball\' (Heroic Dungeon)'),
(1849903, 9, 0, 0, 0, 0, 100, 4, 0, 0, 0, 0, 0, 11, 15530, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unliving Sorcerer - Actionlist for Random Cast - Cast \'Frostbolt\' (Heroic Dungeon)');
(1849903, 9, 0, 0, 0, 0, 100, 4, 0, 0, 0, 0, 0, 11, 15530, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Unliving Sorcerer - Actionlist for Random Cast - Cast \'Frostbolt\' (Heroic Dungeon)');
10 changes: 1 addition & 9 deletions data/sql/updates/db_world/2023_05_14_08.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
-- DB update 2023_05_14_07 -> 2023_05_14_08
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (19130,30925,12739,30500,30495);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(19130, 19130, 40392),
(30925, 30925, 40059),
(12739, 12739, 15472),
(30500, 30500, 35954),
(30495, 30495, 35953);

--
12 changes: 1 addition & 11 deletions data/sql/updates/db_world/2023_06_08_00.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
-- DB update 2023_06_07_04 -> 2023_06_08_00
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (8374,15039,33534,12548,33620,15659,38795);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(8374, 8374, 38761),
(15039, 15039, 15616),
(33534, 33534, 38135),
(12548, 12548, 21401),
(33620, 33620, 38137),
(15659, 15659, 15305),
(38795, 38795, 33666);

--
8 changes: 1 addition & 7 deletions data/sql/updates/db_world/2023_06_11_01.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
-- DB update 2023_06_11_00 -> 2023_06_11_01
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (36275, 36279, 36278, 36277);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(36275, 36275, 38533),
(36279, 38534, 38533),
(36278, 38536, 38533),
(36277, 38535, 38533);

DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` IN (21104, 21148, 17839, 21140));
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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
Expand Down Expand Up @@ -83,4 +77,4 @@ INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Lan
(21140, 2, 2, 'No! The rift...', 12, 0, 100, 0, 0, 0, 15187, 0, 'Rift Lord');

-- Double Attack Aura on entry 21140 (Rift Lord)
UPDATE `creature_template_addon` SET `bytes2` = 1, `auras` = '19818' WHERE (`entry` = 21140);
UPDATE `creature_template_addon` SET `bytes2` = 1, `auras` = '19818' WHERE (`entry` = 21140);

0 comments on commit 9164060

Please sign in to comment.