Files
mod-individual-progression/data/sql/world/base/00_cleanup.sql
Grimfeather 01b0ffc5f7 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
2025-08-23 09:59:54 +02:00

135 lines
7.5 KiB
SQL

DELETE FROM `game_event_creature` WHERE `guid` IN (208146, 208159, 208185, 208207, 208240, 208251, 208355, 208368, 208394, 208407);
DELETE FROM `creature_addon` WHERE `guid` IN (29803, 133925, 133926);
/* Several unused BG NPCs have wrong classes in AC - fix to prevent console warning */
UPDATE `creature_template` SET `unit_class` = 2 WHERE `entry` IN (22742, 22791, 22796, 22792, 22627, 22532, 22774, 22534, 22529, 22537, 22790, 22791, 22637, 22599,
32013, 22781, 31930, 32128, 31935, 31927, 31938, 32120, 37332, 32142, 31821, 37248, 37453, 37253,
37245, 37256, 37443, 37472, 37341);
UPDATE `creature_template` SET `unit_class` = 1 WHERE `entry` IN (22632, 32055, 31921, 37376);
UPDATE `creature_template` SET `unit_class` = 8 WHERE `entry` IN (29273);
/* Delete unused Creature Addon data */
DELETE FROM `creature_addon` WHERE `guid` IN (133917, 133918, 133919, 133920, 133928);
-- undo incorrect waypoint IDs
DELETE FROM `waypoint_data` WHERE `id` = 48310; -- Lady Sarevess
DELETE FROM `waypoint_data` WHERE `id` = 101820; -- Rexxar
-- removed unused requirement for Onyxia 40, this is now handled with cpp
DELETE FROM `dungeon_access_requirements` WHERE `dungeon_access_id` = 123;
-- undo incorrect title change
UPDATE `creature_template` SET `subname` = 'Master Blacksmithing Trainer' WHERE `entry` = 16583;
-- undo previous method of Lights Hope Chapel phasing
UPDATE `creature` SET `phaseMask` = 1 WHERE `id1` IN
(11102, 16112, 16113, 16114, 16115, 16116, 16131, 16132, 16133, 16134, 16135, 16212, 16225, 16228, 16229, 16256, 16283, 16284, 16376, 16378, 17069, 17072);
-- Naxx40 - Razuvious
DELETE FROM `spell_script_names` WHERE `spell_id` IN (29107, 55543);
-- Drop source for 2.3 Jewelcrafting Recipe
UPDATE `creature_template` SET `ScriptName` = '' WHERE `entry` = 19768; -- disabled for now to prevent the creature from attacking while phased
-- undo TBC vendor phasing
UPDATE `creature_template` SET `ScriptName` = '' WHERE `entry` IN (17585, 17657, 21655);
-- UNDO previous cloning method to hide vendor item drops
SET @Nakodu := 121655;
SET @Urgronn := 117585;
SET @Ulrike := 117657;
DELETE FROM `creature_template` WHERE `entry` IN (@Nakodu, @Urgronn, @Ulrike);
DELETE FROM `creature_template_addon` WHERE `entry` IN (@Nakodu, @Urgronn, @Ulrike);
DELETE FROM `creature_template_locale` WHERE `entry` IN (@Nakodu, @Urgronn, @Ulrike);
DELETE FROM `creature_template_model` WHERE `CreatureID` IN (@Nakodu, @Urgronn, @Ulrike);
DELETE FROM `creature` WHERE `id1` IN (@Nakodu, @Urgronn, @Ulrike);
DELETE FROM `npc_vendor` WHERE `entry` IN (@Nakodu, @Urgronn, @Ulrike);
DELETE FROM `creature_equip_template` WHERE `CreatureID` = @Ulrike;
-- UNDO previous cloning - SI friendship NPCs
SET @Zarena := 102482;
SET @Miles := 103044;
SET @Elissa := 104165;
SET @Alexander := 105173;
SET @Joanna := 105698;
SET @Deze := 115006;
UPDATE `creature_template` SET `ScriptName` = '' WHERE `entry` IN (2482, 3044, 4165, 5173, 5698, 15006);
DELETE FROM `creature_template` WHERE `entry` IN (@Zarena, @Miles, @Elissa, @Alexander, @Joanna, @Deze);
DELETE FROM `creature_template_addon` WHERE `entry` IN (@Elissa, @Alexander);
DELETE FROM `creature_template_locale` WHERE `entry` IN (@Zarena, @Miles, @Elissa, @Alexander, @Joanna, @Deze);
DELETE FROM `creature_template_model` WHERE `CreatureID` IN (@Zarena, @Miles, @Elissa, @Alexander, @Joanna, @Deze);
DELETE FROM `creature` WHERE `id1` IN (@Zarena, @Miles, @Elissa, @Alexander, @Joanna, @Deze);
DELETE FROM `creature_equip_template` WHERE `CreatureID` IN (@Zarena, @Miles, @Elissa, @Alexander, @Joanna, @Deze);
DELETE FROM `npc_vendor` WHERE `entry` = @Zarena;
DELETE FROM `npc_trainer` WHERE `ID` = @Elissa;
DELETE FROM `battlemaster_entry` WHERE `entry` = @Deze;
-- alliance battlemasters
DELETE FROM `game_event_creature` WHERE `guid` IN (207918, 207929, 207951, 208042, 208081, 208107);
-- Alterac Valley - now using @CGUID 670000 instead
DELETE FROM `waypoint_data` WHERE `id` IN (6300880, 6300890, 6301050, 6301060, 6301140, 6301330, 6301380, 6301390);
DELETE FROM `creature_addon` WHERE `guid` IN (630088, 630089, 630105, 630106, 630114, 630133, 630138, 630139, 630164, 630165, 630181, 630182, 630190, 630209, 630214, 630215);
-- Naxx40
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` = 15975;
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`, `event_param6`,
`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
(15975,0,0,0,0,0,100,2,5000,8000,14000,18000,0,0,11,30043,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Cast Spell IC'),
(15975,0,1,0,0,0,100,4,5000,8000,14000,18000,0,0,11,56032,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Cast Spell IC'),
(15975,0,2,0,0,0,100,0,9000,16000,18000,21000,0,0,11,28434,0,0,0,0,0,5,0,0,0,0,0,0,0,0,'Cast Spell IC');
DELETE FROM `waypoint_data` WHERE `id` IN (3620600, 3620630);
-- Scourge Invasion Update
UPDATE `creature_template` SET `AIName` = '' WHERE `entry` = 16136;
UPDATE `creature_template` SET `npcflag` = 1 WHERE `entry` = 16786;
UPDATE `creature_template` SET `npcflag` = 129 WHERE `entry` = 16787;
UPDATE `creature_template` SET `npcflag` = 2 WHERE `entry` IN (29441, 29442);
UPDATE `creature` SET `phaseMask` = 1 WHERE `id1` IN (14682, 14684, 14686, 14690, 14693, 14695);
UPDATE `creature` SET `ScriptName` = '' WHERE `id1` IN (16241, 16255, 16281, 16285, 16359, 16361, 16478, 16484, 16490, 16493, 16494, 16495, 16786, 16787);
-- remove AzerothCore area triggers used by WotLK Scourge Invasion Event
DELETE FROM `areatrigger_involvedrelation` WHERE `id` IN (4092, 4094, 4095, 4096, 4098, 4099, 4100, 4101, 4103, 4104, 4105, 5151, 5152, 5153, 5154, 5158, 5159, 5160, 5161);
-- Restore Scourge Invasion Event
DELETE FROM `game_event_creature` WHERE `eventEntry` = 17 AND `guid` BETWEEN 248650 AND 248654;
INSERT INTO `game_event_creature` (`eventEntry`, `guid`) VALUES
(17, 248650),
(17, 248651),
(17, 248652),
(17, 248653),
(17, 248654);
DELETE FROM `game_event_npcflag` WHERE `eventEntry` = 17 AND `guid` IN (1803, 26771, 38112, 46320, 208240);
INSERT INTO `game_event_npcflag` (`eventEntry`, `guid`, `npcflag`) VALUES
(17, 1803, 179),
(17, 26771, 179),
(17, 38112, 129),
(17, 46320, 177),
(17, 208240, 1048705);
DELETE FROM `game_event_npc_vendor` WHERE `eventEntry` = 17 AND `guid` IN (7, 1803, 26771, 38112, 46320, 208240);
INSERT INTO `game_event_npc_vendor` (`eventEntry`, `guid`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`) VALUES
(17, 7, 0, 23160, 0, 0, 0),
(17, 7, 0, 23161, 0, 0, 0),
(17, 1803, 0, 23160, 0, 0, 0),
(17, 1803, 0, 23161, 0, 0, 0),
(17, 26771, 0, 23160, 0, 0, 0),
(17, 26771, 0, 23161, 0, 0, 0),
(17, 38112, 0, 23160, 0, 0, 0),
(17, 38112, 0, 23161, 0, 0, 0),
(17, 46320, 0, 23160, 0, 0, 0),
(17, 46320, 0, 23161, 0, 0, 0),
(17, 208240, 0, 23160, 0, 0, 0),
(17, 208240, 0, 23161, 0, 0, 0);
DELETE FROM `game_event` WHERE `eventEntry` = 17;
INSERT INTO `game_event` (`eventEntry`, `start_time`, `end_time`, `occurence`, `length`, `holiday`, `holidayStage`, `description`, `world_event`, `announce`) VALUES
(17, '2000-01-01 14:00:00', '2000-01-01 14:00:00', 525600, 1, 0, 0, 'Scourge Invasion', 0, 2);