Moving sql files to data folder (#670)

- all sql files moved to data directory
- vanilla_regen_values is now labeled as optional. zz_optional_vanilla_regen_values.sql
- vanilla_mob_factions removed, content moved to zone_ sql files
- naxx40_remove_disables removed, content moved to naxx40 sql file
- zone_elwynn_forest clean up
- zone_durotar clean up
- zone_tirisfal_glades clean up
This commit is contained in:
Grimfeather
2025-08-23 09:59:54 +02:00
committed by GitHub
parent 8b9ca30060
commit 01b0ffc5f7
161 changed files with 528 additions and 875 deletions

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1 @@

View File

@@ -11,4 +11,4 @@ UPDATE `creature_template` SET `minlevel`=16, `rank`=1 WHERE `entry`=1725;
UPDATE `creature_template` SET `maxlevel`=20 WHERE `entry`=1732;
-- Miner Johnson
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=3586;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=3586;

View File

@@ -32,4 +32,4 @@ UPDATE `creature_template` SET `maxlevel`=20 WHERE `entry`=5761;
UPDATE `creature_template` SET `minlevel`=21, `maxlevel`=21 WHERE `entry`=5775;
-- Deviate Faerie Dragon
UPDATE `creature_template` SET `minlevel`=20, `maxlevel`=20, `faction`=32 WHERE `entry`=5912;
UPDATE `creature_template` SET `minlevel`=20, `maxlevel`=20, `faction`=32 WHERE `entry`=5912;

View File

@@ -906,4 +906,4 @@ VALUES
(53301, 1173, 0, 0, 67586, 0, 131072, 0, 0, 512, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 6000, 0, 0, 0, 0, 101, 0, 0, 60, 60, 39, 0, 0, 0, 0, 0, 114, 40, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 262156, 0, 6, 0, 0, 29, 0, 0, 0, 0, 0, 143, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11828, 0, 3407, 0, 0, 'Explosive Shot', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 'Rank 1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 'You fire an explosive charge into the enemy target, dealing ${$RAP*0.14+$m1}-${$RAP*0.14+$M1} Fire damage. The charge will blast the target every second for an additional $d.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 'Taking Fire damage every second.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 10, 133, 1500, 0, 9, 0, 2147483648, 0, 0, 3, 2, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0),
(61295, 1228, 1, 0, 65536, 0, 0, 128, 0, 0, 67108864, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 6000, 15, 0, 0, 0, 101, 0, 69, 60, 60, 8, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 10, 6, 0, 53, 1, 1, 0, 0, 0, 638, 132, 24, 0, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 3000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12994, 0, 3786, 0, 0, 'Riptide', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 'Rank 1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 'Heals a friendly target for $s1 and another $o2 over $d. Your next Chain Heal cast on that primary target within $d will consume the healing over time effect and increase the amount of the Chain Heal by $s3\\%.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 'Heals $s2 every $t2 seconds. Increases caster\'s Chain Heal by $s3\\%.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 21, 133, 1500, 0, 11, 0, 0, 16, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0.402, 0.188, 0, 0, 0);
UPDATE spell_dbc SET ManaCostPct = 37 WHERE ID IN (8416,8417,25345,10211,10212,27075,5143,5144,5145);
UPDATE spell_dbc SET ManaCostPct = 37 WHERE ID IN (8416,8417,25345,10211,10212,27075,5143,5144,5145);

View File

@@ -1,8 +1,7 @@
-- Custom GUIDs
-- creature 352042
-- creature_template 351097
-- Add MapDifficulty DBC Override
-- https://wow.tools/dbc/?dbc=mapdifficulty&build=10.0.0.44895#page=1&search=533
-- Enable Naxxramas Map (mapID: 533)
DELETE FROM `disables` WHERE `entry` = 533;
-- Add MapDifficulty DBC Override - https://wow.tools/dbc/?dbc=mapdifficulty&build=10.0.0.44895#page=1&search=533
DELETE FROM `mapdifficulty_dbc` WHERE `ID` = 754;
INSERT INTO `mapdifficulty_dbc` (`ID`, `MapID`, `Difficulty`, `Message_Lang_enUS`, `Message_Lang_Mask`, `RaidDuration`, `MaxPlayers`, `Difficultystring`) VALUES
(754, 533, 2, 'You must be level 60 and in a raid group to enter.', 16712190, 604800, 40, 'RAID_DIFFICULTY_40PLAYER');
@@ -24,19 +23,16 @@ INSERT INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES
(5193, 'naxx_northrend_entrance'),
(5194, 'naxx_northrend_entrance');
-- Update spawnMask of all creatures to 10man + 25man
UPDATE `creature` SET `spawnMask` = 3 WHERE `spawnMask` = 7 AND `map` = 533;
-- Update spawnMask of all gameobjects to all
UPDATE `gameobject` SET `spawnMask` = 7 WHERE `spawnMask` = 3 AND `map` = 533;
-- Lich King uses same entry in Naxx WotLK and Naxx40 - Allow spawning in all versions
UPDATE `creature` SET `spawnMask` = `spawnMask` | 4 WHERE `id1` = 16980;
-- Naxxramas Trigger (frogger) should also spawn in Naxx40
UPDATE `creature` SET `spawnMask` = `spawnMask`| 4 WHERE `id1` = 16082;
-- Orb of Naxxramas does not exist in classic
UPDATE `gameobject` SET `spawnMask` = 3 WHERE `id` IN (202278, 202277);
UPDATE `creature` SET `spawnMask` = 3 WHERE `spawnMask` = 7 AND `map` = 533; -- Update spawnMask of all creatures to 10man + 25man
UPDATE `creature` SET `spawnMask` = `spawnMask`| 4 WHERE `id1` = 16980; -- Lich King uses same entry in Naxx WotLK and Naxx40 - Allow spawning in all versions
UPDATE `creature` SET `spawnMask` = `spawnMask`| 4 WHERE `id1` = 16082; -- Naxxramas Trigger (frogger) should also spawn in Naxx40
DELETE FROM `dungeon_access_template` WHERE `id`=122;
INSERT INTO `dungeon_access_template` (`id`, `map_id`, `difficulty`, `min_level`, `max_level`, `min_avg_item_level`, `comment`) VALUES (122, 533, 2, 60, 0, 0, 'Naxxramas - 40man');
UPDATE `gameobject` SET `spawnMask` = 7 WHERE `spawnMask` = 3 AND `map` = 533; -- Update spawnMask of all gameobjects to all
UPDATE `gameobject` SET `spawnMask` = 3 WHERE `id` IN (202278, 202277); -- Orb of Naxxramas does not exist in classic
DELETE FROM `dungeon_access_template` WHERE `id` = 122;
INSERT INTO `dungeon_access_template` (`id`, `map_id`, `difficulty`, `min_level`, `max_level`, `min_avg_item_level`, `comment`) VALUES
(122, 533, 2, 60, 0, 0, 'Naxxramas - 40man');
-- Naxx40 Dungeon DBC entries (helps Autobalance work correctly)
DELETE FROM `lfgdungeons_dbc` WHERE `ID` = 1001;

View File

@@ -2,4 +2,4 @@
DELETE FROM `achievement_reward` WHERE `ID` in (2138, 2137);
INSERT INTO `achievement_reward` (`ID`, `TitleA`, `TitleH`, `ItemID`, `Sender`, `Subject`, `Body`, `MailTemplateID`) VALUES
(2138, 0, 0, 44164, 26917, 'Glory of the Raider', 'Champion,$B$BWord has traveled to Wyrmrest Temple of the great deeds you have accomplished since arriving in Northrend.$B$BYour bravery should not go unrecognized. Please accept this gift on behalf of the Aspects. Together we shall rid Azeroth of evil, once and for eternity.$B$BAlexstrasza the Life-Binder', 0),
(2137, 0, 0, 44175, 26917, 'Glory of the Raider', 'Champion,$B$BWord has traveled to Wyrmrest Temple of the great deeds you have accomplished since arriving in Northrend.$B$BYour bravery should not go unrecognized. Please accept this gift on behalf of the Aspects. Together we shall rid Azeroth of evil, once and for eternity.$B$BAlexstrasza the Life-Binder', 0);
(2137, 0, 0, 44175, 26917, 'Glory of the Raider', 'Champion,$B$BWord has traveled to Wyrmrest Temple of the great deeds you have accomplished since arriving in Northrend.$B$BYour bravery should not go unrecognized. Please accept this gift on behalf of the Aspects. Together we shall rid Azeroth of evil, once and for eternity.$B$BAlexstrasza the Life-Binder', 0);

View File

@@ -0,0 +1,60 @@
/*
Pooled Treasure Chests
This should and likely will get fixed by AzerothCore itself at some point,
so that's why this is a separate file.
*/
DELETE FROM `pool_template` WHERE `entry` BETWEEN 66001 AND 66006;
INSERT INTO `pool_template` (`entry`,`max_limit`,`description`) VALUES
(66001, 1, 'Treasures - Thousand Needles'),
(66002, 1, 'Treasures - Winterspring'),
(66003, 1, 'Treasures - Winterspring'),
(66004, 1, 'Treasures - Hillsbrad Foothills'),
(66005, 1, 'Treasures - The Hinterlands'),
(66006, 1, 'Treasures - Alterac Mountains');
UPDATE `gameobject` SET `spawntimesecs` = 900 WHERE `guid` IN (
16718, 85670, 87381, -- Thousand Needles
49089, 49090, 49091, 85796, 85798, 85799, 85801, 85803, -- Winterspring
20885, 30036, 85804, -- Hillsbrad Foothills
46292, 46346, 46370, 85894, 87392, -- The Hinterlands
33193, 33206, 33207 -- Alterac Mountains
);
DELETE FROM `pool_gameobject` WHERE `guid` IN (
16718, 85670, 87381, -- Thousand Needles
49089, 49090, 49091, 85796, 85798, 85799, 85801, 85803, -- Winterspring
20885, 30036, 85804, -- Hillsbrad Foothills
46292, 46346, 46370, 85894, 87392, -- The Hinterlands
33193, 33206, 33207 -- Alterac Mountains
);
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `chance`, `description`) VALUES
--
(16718, 66001, 0, 'Solid Chest, Camp E\'thok, node 1'),
(85670, 66001, 0, 'Solid Chest, Camp E\'thok, node 2'),
(87381, 66001, 0, 'Solid Chest, Camp E\'thok, node 3'),
--
(49091, 66002, 0, 'Solid Chest, Winterfall Village, node 1'),
(85798, 66002, 0, 'Solid Chest, Winterfall Village, node 2'),
(85799, 66002, 0, 'Solid Chest, Winterfall Village, node 3'),
(85803, 66002, 0, 'Solid Chest, Winterfall Village, node 4'),
--
(49089, 66003, 0, 'Solid Chest, Timbermaw Post, node 1'),
(49090, 66003, 0, 'Solid Chest, Timbermaw Post, node 2'),
(85796, 66003, 0, 'Solid Chest, Timbermaw Post, node 3'),
(85801, 66003, 0, 'Solid Chest, Timbermaw Post, node 4'),
--
(20885, 66004, 0, 'Tattered Chest, Hillsbrad Fields, node 1'),
(30036, 66004, 0, 'Tattered Chest, Hillsbrad Fields, node 2'),
(85804, 66004, 0, 'Tattered Chest, Hillsbrad Fields, node 3'),
--
(46292, 66005, 0, 'Solid Chest, Jintha Alor, node 1'),
(46346, 66005, 0, 'Solid Chest, Jintha Alor, node 2'),
(46370, 66005, 0, 'Solid Chest, Jintha Alor, node 3'),
(85894, 66005, 0, 'Solid Chest, Jintha Alor, node 4'),
(87392, 66005, 0, 'Solid Chest, Jintha Alor, node 5'),
--
(33193, 66006, 0, 'Solid Chest, Alterac Mountains, node 1'),
(33206, 66006, 0, 'Solid Chest, Alterac Mountains, node 2'),
(33207, 66006, 0, 'Solid Chest, Alterac Mountains, node 3');

View File

@@ -83,12 +83,8 @@ INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_
(2453, 0, 2, 0, 0, 0, 100, 0, 5000, 8000, 18000, 22000, 0, 0, 11, 8814, 64, 0, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 0, 'Lo Grosh - In Combat - Cast Flame Spike');
-- Jailor Borhuin, 2431, should have multiple spawn locations
-- https://www.youtube.com/watch?v=3fLlozCjyD0
-- Baron Vardus, 2306, should have multiple spawn locations
-- https://www.youtube.com/watch?v=MgH-PCmxnUo - https://www.youtube.com/watch?v=ZLXbrYUfLtI - https://www.youtube.com/watch?v=Dk6V9prh2gk
-- Jailor Borhuin(2431) and Baron Vardus(2306) should have multiple spawn locations
-- https://www.youtube.com/watch?v=3fLlozCjyD0 - https://www.youtube.com/watch?v=MgH-PCmxnUo - https://www.youtube.com/watch?v=ZLXbrYUfLtI - https://www.youtube.com/watch?v=Dk6V9prh2gk
DELETE FROM `creature` WHERE `id1` IN (2306, 2431);
INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`,
@@ -101,7 +97,6 @@ INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`,
(695014, 2431, 0, 0, 0, 0, 0, 1, 1, 1, 750.559, -971.896, 167.587, 1.60003, 300, 0, 0, 1537, 0, 0, 0, 0, 0, '', NULL, 0, NULL),
(695015, 2431, 0, 0, 0, 0, 0, 1, 1, 1, 679.818, -897.818, 171.806, 4.8398, 300, 0, 0, 1537, 0, 0, 0, 0, 0, '', NULL, 0, NULL);
DELETE FROM `pool_creature` WHERE `pool_entry` IN (601008, 601009);
INSERT INTO `pool_creature` (`guid`, `pool_entry`, `chance`, `description`) VALUES
(16905, 601008, 0, 'Baron Vardus'),
@@ -116,17 +111,3 @@ DELETE FROM `pool_template` WHERE `entry` IN (601008, 601009);
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`) VALUES
(601008, 1, ''),
(601009, 1, '');
-- Pooled Treasure Chests
DELETE FROM `pool_template` WHERE `entry` IN (66006);
INSERT INTO `pool_template` (`entry`,`max_limit`,`description`) VALUES
(66006, 1, 'Treasures - Alterac Mountains');
UPDATE `gameobject` SET `spawntimesecs` = 900 WHERE`guid` IN (33193, 33206, 33207);
DELETE FROM `pool_gameobject` WHERE `guid` IN (33193, 33206, 33207);
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `chance`, `description`) VALUES
(33193, 66006, 0, 'Solid Chest, Alterac Mountains, node 1'),
(33206, 66006, 0, 'Solid Chest, Alterac Mountains, node 2'),
(33207, 66006, 0, 'Solid Chest, Alterac Mountains, node 3');

View File

@@ -0,0 +1,4 @@
UPDATE `creature_template` SET `faction` = 14 WHERE `entry` = 16517; -- Mutated Root Lasher
UPDATE `creature_template` SET `faction` = 16 WHERE `entry` = 16521; -- Blood Elf Scout
UPDATE `creature_template` SET `faction` = 16 WHERE `entry` = 16522; -- Surveyor Candress
UPDATE `creature_template` SET `faction` = 14 WHERE `entry` = 16537; -- Mutated Owlkin

View File

@@ -0,0 +1,22 @@
-- Beginnings (Warlock)
DELETE FROM `creature_questender` WHERE `id` = 460 AND `quest` = 1599;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES (460, 1599);
-- Beginnings (Warlock)
DELETE FROM `creature_queststarter` WHERE `id` = 460 AND `quest` = 1599;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES (460, 1599);
-- Beginnings (Warlock)
UPDATE `quest_template` SET `Flags` = 8 WHERE `ID` = 1599;
-- Beginnings (Warlock)
UPDATE `quest_template_addon` SET `SpecialFlags` = 0 WHERE `ID` = 1599;
-- Thamner Pol <Physician>
DELETE FROM `npc_trainer` WHERE `ID` = 2326;
INSERT INTO `npc_trainer` (`ID`, `SpellID`) VALUES (2326, -350000);
UPDATE `creature_template` SET `faction` = 107 WHERE `entry` = 706; -- Frostmane Troll Whelp
UPDATE `creature_template` SET `faction` = 37 WHERE `entry` = 808; -- Grik'nir the Cold
UPDATE `creature_template` SET `faction` = 107 WHERE `entry` = 946; -- Frostmane Novice

View File

@@ -0,0 +1,69 @@
UPDATE `creature_template` SET `faction` = 14 WHERE `entry` = 3101; -- Vile Familiar
UPDATE `creature_template` SET `faction` = 14 WHERE `entry` = 3102; -- Felstalker
UPDATE `creature_template` SET `faction` = 16 WHERE `entry` = 3183; -- Yarrog Baneshadow
DELETE FROM `npc_trainer` WHERE `ID` IN (3174, 3175, 3184, 3185, 5943, 7953, 11025);
INSERT INTO `npc_trainer` (`ID`, `SpellID`) VALUES
(3174, -310000), -- Dwukk <Journeyman Blacksmith>
(3175, -390000), -- Krunn <Miner>
(3184, -300000), -- Miao'zan <Journeyman Alchemist>
(3185, -370000), -- Mishiki <Herbalist>
(5943, -350000), -- Rawrk <First Aid Trainer>
(7953, -450000), -- Xar'Ti <Riding Trainer>
(11025, -340000); -- Mukdrak <Journeyman Engineer>
DELETE FROM `npc_vendor` WHERE `entry` = 3167 AND `item` IN (20815, 20824); -- Wuark <Armorer & Shieldcrafter>
DELETE FROM `npc_vendor` WHERE `entry` = 3168 AND `item` IN (30817); -- Flakk <Trade Supplies>
DELETE FROM `npc_vendor` WHERE `entry` = 3187 AND `item` IN (30817); -- Tai'tasi <Trade Supplies>
DELETE FROM `npc_vendor` WHERE `entry` = 5942 AND `item` IN (6365, 6533); -- Zansoa <Fishing Supplies>
/* Quests */
-- Cutting Teeth
UPDATE `quest_template` SET `Flags` = 8,
`LogDescription` = 'Kill 10 Mottled Boars then return to Gornek at the Den.', `RequiredNpcOrGoCount1` = 10 WHERE `ID` = 788;
-- Sting of the Scorpid
UPDATE `quest_template` SET `Flags` = 8,
`LogDescription` = 'Get 10 Scorpid Worker Tails for Gornek in the Den.', `RequiredItemCount1` = 10 WHERE `ID` = 789;
-- Vile Familiars
UPDATE `quest_template` SET `Flags` = 8,
`LogDescription` = 'Kill 12 Vile Familiars.$b$bReturn to Zureetha Fargaze outside the Den.', `RequiredNpcOrGoCount1` = 12 WHERE `ID` = 792;
-- Galgar's Cactus Apple Surprise
UPDATE `quest_template` SET `Flags` = 8,
`LogDescription` = 'Bring Galgar 10 Cactus Apples. You remember him saying that they could be found near cactuses.', `RequiredItemCount1` = 10 WHERE `ID` = 4402;
UPDATE `quest_template` SET `Flags` = 8 WHERE `ID` = 790; -- Sarkoth
UPDATE `quest_template` SET `Flags` = 8 WHERE `ID` = 794; -- Burning Blade Medallion
UPDATE `quest_template` SET `Flags` = 0 WHERE `ID` = 804; -- Sarkoth
UPDATE `quest_template` SET `Flags` = 8 WHERE `ID` = 805; -- Report to Sen'jin Village
UPDATE `quest_template` SET `Flags` = 8 WHERE `ID` = 1516; -- Call of Earth (Shaman)
UPDATE `quest_template` SET `Flags` = 0 WHERE `ID` = 1517; -- Call of Earth (Shaman)
UPDATE `quest_template` SET `Flags` = 0 WHERE `ID` = 2161; -- A Peon's Burden
UPDATE `quest_template` SET `Flags` = 8 WHERE `ID` = 4641; -- Your Place In The World
UPDATE `quest_template` SET `Flags` = 0 WHERE `ID` = 5441; -- Lazy Peons
UPDATE `quest_template` SET `Flags` = 8 WHERE `ID` = 6394; -- Thazz'ril's Pick
UPDATE `quest_template_addon` SET `AllowableClasses` = 1279 WHERE `ID` = 792;
UPDATE `quest_template_addon` SET `SpecialFlags` = 0 WHERE `ID` IN (
788, -- Cutting Teeth
789, -- Sting of the Scorpid
790, -- Sarkoth
792, -- Vile Familiars
794, -- Burning Blade Medallion
804, -- Sarkoth
805, -- Report to Sen'jin Village
1516, -- Call of Earth (Shaman)
1517, -- Call of Earth (Shaman)
2161, -- A Peon's Burden
2383, -- Simple Parchment
4402, -- Galgar's Cactus Apple Surprise
4641, -- Your Place In The World
5441, -- Lazy Peons
6394 -- Thazz'ril's Pick
);

Some files were not shown because too many files have changed in this diff Show More