Skip to content

Commit

Permalink
feat(DB): make compability AC db to Warhead DB
Browse files Browse the repository at this point in the history
  • Loading branch information
Winfidonarleyan committed Oct 1, 2023
1 parent 2023485 commit 5ea5e51
Show file tree
Hide file tree
Showing 22 changed files with 888 additions and 485 deletions.
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/8.x/2023_01_02_06.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Fligh
(17990, 0, 0, 0, 1, 0, 0),
(20189, 0, 0, 0, 1, 0, 0);

UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64 WHERE `ID` = 31692;
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64 WHERE `ID` = 31692;

DELETE FROM `spell_script_names` WHERE `spell_id` = 34168 AND `ScriptName` = 'spell_spore_cloud';
DELETE FROM `spell_script_names` WHERE `spell_id` = 34874 AND `ScriptName` = 'spell_despawn_underbog_mushrooms';
Expand Down
28 changes: 14 additions & 14 deletions data/sql/archive/db_world/9.x/2023_02_12_01.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
-- DB update 2023_02_12_00 -> 2023_02_12_01
--
DROP TABLE IF EXISTS `namesreserved_dbc`;
CREATE TABLE `namesreserved_dbc` (
`ID` INT UNSIGNED NOT NULL,
`Pattern` TINYTEXT NOT NULL,
`LanguagueID` TINYINT NOT NULL,
PRIMARY KEY (`ID`)
);
-- DROP TABLE IF EXISTS `namesreserved_dbc`;
-- CREATE TABLE `namesreserved_dbc` (
-- `ID` INT UNSIGNED NOT NULL,
-- `Pattern` TINYTEXT NOT NULL,
-- `LanguagueID` TINYINT NOT NULL,
-- PRIMARY KEY (`ID`)
-- );

DROP TABLE IF EXISTS `namesprofanity_dbc`;
CREATE TABLE `namesprofanity_dbc` (
`ID` INT UNSIGNED NOT NULL,
`Pattern` TINYTEXT NOT NULL,
`LanguagueID` TINYINT NOT NULL,
PRIMARY KEY (`ID`)
);
-- DROP TABLE IF EXISTS `namesprofanity_dbc`;
-- CREATE TABLE `namesprofanity_dbc` (
-- `ID` INT UNSIGNED NOT NULL,
-- `Pattern` TINYTEXT NOT NULL,
-- `LanguagueID` TINYINT NOT NULL,
-- PRIMARY KEY (`ID`)
-- );
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_02_12_05.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ DELETE FROM `spell_script_names` WHERE `spell_id`=33496;
INSERT INTO `spell_script_names` VALUES
(33496,'spell_tractor_beam_creator');

UPDATE `spell_dbc` SET `Effect_1`=28, `EffectMiscValueB_1`=64 WHERE `ID` IN (33495,33514,33515,33516,33517,33518,33519,33520);
-- UPDATE `spell_dbc` SET `Effect_1`=28, `EffectMiscValueB_1`=64 WHERE `ID` IN (33495,33514,33515,33516,33517,33518,33519,33520);

UPDATE `creature_template` SET `ScriptName`='npc_invisible_tractor_beam_source' WHERE `entry`=19198;
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_02_27_07.sql
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@ INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_
(2102903, 9, 5, 0, 0, 0, 100, 0, 2400, 2400, 0, 0, 0, 29, 2, 180, 0, 0, 0, 0, 10, 25119, 21027, 0, 0, 0, 0, 0, 0, 'Captured Water Spirit - Actionlist - Start Follow Closest Creature \'Earthmender Wilda\'');

-- Fix for serverside spell
UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` = 35937;
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` = 35937;
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_03_01_05.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_
(19823, 0, 2, 0, 2, 0, 100, 1, 0, 50, 0, 0, 0, 11, 37948, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Crazed Colossus - Between 0-50% Health - Cast \'Serverside - Summon Crazed Shardling\' (No Repeat)'),
(19823, 0, 3, 0, 2, 0, 100, 1, 0, 25, 0, 0, 0, 11, 37949, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Crazed Colossus - Between 0-25% Health - Cast \'Serverside - Summon Crazed Shardling\' (No Repeat)');

UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` IN (37947, 37948, 37949);
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` IN (37947, 37948, 37949);

DELETE FROM `creature_text` WHERE `CreatureID`=22054;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
Expand Down
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_03_04_01.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ DELETE FROM `spell_script_names` WHERE `spell_id` = 34799 AND `ScriptName` = 'sp
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(34799,'spell_commander_sarannis_arcane_devastation');

UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64 WHERE `ID` IN (34810, 34817, 34818, 34819);
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64 WHERE `ID` IN (34810, 34817, 34818, 34819);

UPDATE `creature_addon` SET `auras` = '34792 19818' WHERE `guid` = 147001;
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_03_05_01.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-- DB update 2023_03_05_00 -> 2023_03_05_01
--
UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` = 31374;
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` = 31374;
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_03_05_05.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- DB update 2023_03_05_04 -> 2023_03_05_05
--
UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` = 39111;
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` = 39111;

DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 17) AND (`SourceEntry` = 39105);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
Expand Down
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_03_16_04.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-- DB update 2023_03_16_03 -> 2023_03_16_04
--
UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 1 WHERE `ID` IN (38888, 38889, 38890);
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 1 WHERE `ID` IN (38888, 38889, 38890);
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_03_20_00.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,
UPDATE `creature_template` SET `ScriptName` = 'npc_raging_flames' WHERE `entry` = 20481;
UPDATE `creature_template` SET `mechanic_immune_mask` = 617299803, `spell_school_immune_mask` = 0 WHERE `entry` IN (20481,21538);

UPDATE `spell_dbc` SET `ProcTypeMask` = 20, `ProcChance` = 100, `BaseLevel` = 70, `SpellLevel` = 70, `Effect_1` = 6, `ImplicitTargetA_1` = 1, `EffectAura_1` = 42, `EffectTriggerSpell_1` = 45195 WHERE `Id` = 45196;
-- UPDATE `spell_dbc` SET `ProcTypeMask` = 20, `ProcChance` = 100, `BaseLevel` = 70, `SpellLevel` = 70, `Effect_1` = 6, `ImplicitTargetA_1` = 1, `EffectAura_1` = 42, `EffectTriggerSpell_1` = 45195 WHERE `Id` = 45196;
10 changes: 5 additions & 5 deletions data/sql/archive/db_world/9.x/2023_03_20_04.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
UPDATE `creature_template_addon` SET `auras` = '11838 31261 36716' WHERE (`entry` = 20869);
UPDATE `creature_template_addon` SET `auras` = '11838 31261 38828' WHERE (`entry` = 21586);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (36719, 36716);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(36719, 36719, 38830),
(36716, 36716, 38828);
-- DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (36719, 36716);
-- INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
-- (36719, 36719, 38830),
-- (36716, 36716, 38828);

UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID`=37394;
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID`=37394;

DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` IN (20869, 21303, 21304));
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
24 changes: 12 additions & 12 deletions data/sql/archive/db_world/9.x/2023_03_20_05.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
-- DB update 2023_03_20_04 -> 2023_03_20_05
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (35012,35243,35261,36340,36348,35265,35267,36345,35056,35057);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(35012, 35012, 38941),
(35243, 35243, 38935),
(35261, 35261, 38936),
(36340, 36340, 38921),
(36348, 36348, 38919),
(35265, 35265, 38933),
(35267, 35267, 38930),
(36345, 36345, 39196),
(35056, 35056, 38923),
(35057, 35057, 38925);
-- DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (35012,35243,35261,36340,36348,35265,35267,36345,35056,35057);
-- INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
-- (35012, 35012, 38941),
-- (35243, 35243, 38935),
-- (35261, 35261, 38936),
-- (36340, 36340, 38921),
-- (36348, 36348, 38919),
-- (35265, 35265, 38933),
-- (35267, 35267, 38930),
-- (36345, 36345, 39196),
-- (35056, 35056, 38923),
-- (35057, 35057, 38925);

-- Tempest-Forge Patroller
DELETE FROM `smart_scripts` WHERE (`entryorguid` IN (19166, -138801, -138803)) AND (`source_type` = 0) AND (`id` IN (0, 1, 2, 3));
Expand Down
70 changes: 35 additions & 35 deletions data/sql/archive/db_world/9.x/2023_03_21_00.sql
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
-- DB update 2023_03_20_07 -> 2023_03_21_00
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (36617,36619,36664,36655,36657,36660,36654,36738,36786,36787,36891,36887,36868,36742,36741,36743,36740,36736,36863,36864,36838,36840,37480,37479,36829,36832,36827,35964,35932,36984,36835,38855,36837);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(36617, 36617, 38810),
(36619, 36619, 38811),
(36664, 36664, 38816),
(36655, 36655, 38817),
(36657, 36657, 38818),
(36660, 36660, 38820),
(36654, 36654, 38813),
(36738, 36738, 38835),
(36786, 36786, 38843),
(36787, 36787, 38846),
(36891, 36891, 38849),
(36887, 36887, 38850),
(36868, 36868, 38892),
(36742, 36742, 38836), -- Fireball Volley
(36741, 36741, 38837), -- Frostbolt Volley
(36743, 36743, 38838), -- Holy Bolt Volley
(36740, 36740, 38839), -- Lightning Bolt Volley
(36736, 36736, 38840), -- Spell Shadow Bolt Volley
(36863, 36863, 38851),
(36864, 36864, 38852),
(36838, 36838, 38894),
(36840, 36840, 38896),
(37480, 37480, 38900),
(37479, 37479, 38899),
(36829, 36829, 38917),
(36832, 36832, 38918),
(36827, 36827, 38912),
(35964, 35964, 38942),
(35932, 35932, 38943),
(36984, 36984, 38914),
(36835, 36835, 38911),
(38855, 38855, 38901),
(36837, 36837, 38903);
-- DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (36617,36619,36664,36655,36657,36660,36654,36738,36786,36787,36891,36887,36868,36742,36741,36743,36740,36736,36863,36864,36838,36840,37480,37479,36829,36832,36827,35964,35932,36984,36835,38855,36837);
-- INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
-- (36617, 36617, 38810),
-- (36619, 36619, 38811),
-- (36664, 36664, 38816),
-- (36655, 36655, 38817),
-- (36657, 36657, 38818),
-- (36660, 36660, 38820),
-- (36654, 36654, 38813),
-- (36738, 36738, 38835),
-- (36786, 36786, 38843),
-- (36787, 36787, 38846),
-- (36891, 36891, 38849),
-- (36887, 36887, 38850),
-- (36868, 36868, 38892),
-- (36742, 36742, 38836), -- Fireball Volley
-- (36741, 36741, 38837), -- Frostbolt Volley
-- (36743, 36743, 38838), -- Holy Bolt Volley
-- (36740, 36740, 38839), -- Lightning Bolt Volley
-- (36736, 36736, 38840), -- Spell Shadow Bolt Volley
-- (36863, 36863, 38851),
-- (36864, 36864, 38852),
-- (36838, 36838, 38894),
-- (36840, 36840, 38896),
-- (37480, 37480, 38900),
-- (37479, 37479, 38899),
-- (36829, 36829, 38917),
-- (36832, 36832, 38918),
-- (36827, 36827, 38912),
-- (35964, 35964, 38942),
-- (35932, 35932, 38943),
-- (36984, 36984, 38914),
-- (36835, 36835, 38911),
-- (38855, 38855, 38901),
-- (36837, 36837, 38903);

-- Protean Nightmare
DELETE FROM `smart_scripts` WHERE (`entryorguid` IN (20864, -138901, -138902)) AND (`source_type` = 0) AND (`id` IN (0, 1, 2, 3, 4, 5));
Expand Down
24 changes: 12 additions & 12 deletions data/sql/archive/db_world/9.x/2023_03_21_06.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
-- DB update 2023_03_21_05 -> 2023_03_21_06
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (3262,3263,3264,3265,3266,3267,5000,5001,5002,5003,5004,5005,5006,5007,5008);
-- DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (3262,3263,3264,3265,3266,3267,5000,5001,5002,5003,5004,5005,5006,5007,5008);

DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (57570,57579,57581,39529,57757,57728,56908,56910,57598);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`, `DifficultySpellID_3`, `DifficultySpellID_4`) VALUES
(57570, 57570, 59126, 0, 0),
(57579, 57579, 59127, 0, 0),
(57581, 57581, 59128, 0, 0),
(39529, 39529, 58940, 0, 0),
(57757, 57757, 58936, 0, 0),
(57728, 57728, 58947, 0, 0),
(56908, 56908, 58956, 0, 0),
(56910, 56910, 58957, 0, 0),
(57598, 57598, 58964, 0, 0);
-- DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (57570,57579,57581,39529,57757,57728,56908,56910,57598);
-- INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`, `DifficultySpellID_3`, `DifficultySpellID_4`) VALUES
-- (57570, 57570, 59126, 0, 0),
-- (57579, 57579, 59127, 0, 0),
-- (57581, 57581, 59128, 0, 0),
-- (39529, 39529, 58940, 0, 0),
-- (57757, 57757, 58936, 0, 0),
-- (57728, 57728, 58947, 0, 0),
-- (56908, 56908, 58956, 0, 0),
-- (56910, 56910, 58957, 0, 0),
-- (57598, 57598, 58964, 0, 0);
14 changes: 7 additions & 7 deletions data/sql/archive/db_world/9.x/2023_03_23_02.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-- DB update 2023_03_23_01 -> 2023_03_23_02
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (40331,35106,34449,37272,37252);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(40331, 40331, 40332),
(35106, 35106, 37856),
(34449, 34449, 37924),
(37272, 37272, 37862),
(37252, 37252, 39412);
-- DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (40331,35106,34449,37272,37252);
-- INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
-- (40331, 40331, 40332),
-- (35106, 35106, 37856),
-- (34449, 34449, 37924),
-- (37272, 37272, 37862),
-- (37252, 37252, 39412);

UPDATE `creature_text` SET `BroadcastTextId` = 16711 WHERE `Text`='By Nazjatar\'s Depths!';
UPDATE `creature_text` SET `BroadcastTextId` = 16710 WHERE `Text`='Die, warmblood!';
Expand Down
2 changes: 1 addition & 1 deletion data/sql/archive/db_world/9.x/2023_03_25_00.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-- DB update 2023_03_24_08 -> 2023_03_25_00
--
UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` IN (35153, 35904, 35905, 35906);
-- UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` IN (35153, 35904, 35905, 35906);
8 changes: 4 additions & 4 deletions data/sql/archive/db_world/9.x/2023_03_29_03.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-- DB update 2023_03_29_02 -> 2023_03_29_03
--
DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (33480, 32863);
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
(33480, 33480, 38226),
(32863, 32863, 38252);
-- DELETE FROM `spelldifficulty_dbc` WHERE `ID` IN (33480, 32863);
-- INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`) VALUES
-- (33480, 33480, 38226),
-- (32863, 32863, 38252);

-- BroadcastID
UPDATE `creature_text` SET `BroadcastTextId` = 16798 WHERE `Text` = 'Ruin finds us all!';
Expand Down
Loading

0 comments on commit 5ea5e51

Please sign in to comment.