From 505d8df571fca80e18ac125cd5f074090c84208b Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 2 May 2023 17:28:08 -0400 Subject: [PATCH] DB Updates --- .../master/2023_04_28_00_hotfixes.sql | 40 +++++++++ .../world/master/2023_04_25_01_world.sql | 56 ++++++++++++ .../world/master/2023_04_27_00_world.sql | 85 +++++++++++++++++++ .../world/master/2023_05_02_00_world.sql | 71 ++++++++++++++++ .../world/master/2023_05_02_01_world.sql | 9 ++ 5 files changed, 261 insertions(+) create mode 100644 sql/updates/hotfixes/master/2023_04_28_00_hotfixes.sql create mode 100644 sql/updates/world/master/2023_04_25_01_world.sql create mode 100644 sql/updates/world/master/2023_04_27_00_world.sql create mode 100644 sql/updates/world/master/2023_05_02_00_world.sql create mode 100644 sql/updates/world/master/2023_05_02_01_world.sql diff --git a/sql/updates/hotfixes/master/2023_04_28_00_hotfixes.sql b/sql/updates/hotfixes/master/2023_04_28_00_hotfixes.sql new file mode 100644 index 000000000..859aba485 --- /dev/null +++ b/sql/updates/hotfixes/master/2023_04_28_00_hotfixes.sql @@ -0,0 +1,40 @@ +-- +-- Table structure for table `battle_pet_ability` +-- +DROP TABLE IF EXISTS `battle_pet_ability`; +CREATE TABLE `battle_pet_ability` ( + `ID` int(10) unsigned NOT NULL DEFAULT '0', + `Name` text, + `Description` text, + `IconFileDataID` int(11) NOT NULL DEFAULT '0', + `PetTypeEnum` tinyint(4) NOT NULL DEFAULT '0', + `Cooldown` int(10) unsigned NOT NULL DEFAULT '0', + `BattlePetVisualID` smallint(5) unsigned NOT NULL DEFAULT '0', + `Flags` tinyint(3) unsigned NOT NULL DEFAULT '0', + `VerifiedBuild` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`VerifiedBuild`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `battle_pet_ability_locale` +-- +DROP TABLE IF EXISTS `battle_pet_ability_locale`; +CREATE TABLE `battle_pet_ability_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT '0', + `locale` varchar(4) NOT NULL, + `Name_lang` text, + `Description_lang` text, + `VerifiedBuild` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`locale`,`VerifiedBuild`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci +/*!50500 PARTITION BY LIST COLUMNS(locale) +(PARTITION deDE VALUES IN ('deDE') ENGINE = InnoDB, + PARTITION esES VALUES IN ('esES') ENGINE = InnoDB, + PARTITION esMX VALUES IN ('esMX') ENGINE = InnoDB, + PARTITION frFR VALUES IN ('frFR') ENGINE = InnoDB, + PARTITION itIT VALUES IN ('itIT') ENGINE = InnoDB, + PARTITION koKR VALUES IN ('koKR') ENGINE = InnoDB, + PARTITION ptBR VALUES IN ('ptBR') ENGINE = InnoDB, + PARTITION ruRU VALUES IN ('ruRU') ENGINE = InnoDB, + PARTITION zhCN VALUES IN ('zhCN') ENGINE = InnoDB, + PARTITION zhTW VALUES IN ('zhTW') ENGINE = InnoDB) */; diff --git a/sql/updates/world/master/2023_04_25_01_world.sql b/sql/updates/world/master/2023_04_25_01_world.sql new file mode 100644 index 000000000..aa74359ca --- /dev/null +++ b/sql/updates/world/master/2023_04_25_01_world.sql @@ -0,0 +1,56 @@ +-- Cragmaw the Infested +UPDATE `creature_template` SET `AIName` = '', `ScriptName` = 'boss_cragmaw_the_infested' WHERE `entry` = 131817; +UPDATE `creature_template` SET `AIName` = '', `ScriptName` = 'npc_cragmaw_blood_tick' WHERE `entry` = 132051; +UPDATE `creature_template` SET `flags_extra` = 128 WHERE `entry` = 132080; + +UPDATE `creature_template_addon` SET `Emote` = 0, `auras` = '' WHERE `entry` = 131817; + +UPDATE `creature_template` SET `faction`=16, `speed_walk`=5.599999904632568359, `speed_run`=2, `BaseAttackTime`=1500, `unit_flags`=32768, `unit_flags2`=2048, `unit_flags3`=524288 WHERE `entry`=132051; -- Blood Tick +UPDATE `creature_template` SET `faction`=16, `BaseAttackTime`=2000, `unit_flags`=33554432, `unit_flags2`=2048, `unit_flags3`=17301505 WHERE `entry`=132080; -- Blood Tick Larva + +DELETE FROM `creature` WHERE `guid` = 850807; +DELETE FROM `creature_addon` WHERE `guid` = 850807; + +DELETE FROM `creature_template_addon` WHERE `entry` = (132051 /*132051 (Blood Tick) - Blood Burst*/); +INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvpFlags`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `visibilityDistanceType`, `auras`) VALUES +(132051, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, '278641 260768'); -- 132051 (Blood Tick) - Blood Burst + +-- AreaTrigger +DELETE FROM `areatrigger_template` WHERE (`IsServerSide`=0 AND `Id` IN (17026,17014)); +INSERT INTO `areatrigger_template` (`Id`, `IsServerSide`, `Type`, `Flags`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `VerifiedBuild`) VALUES +(17026, 0, 0, 4, 1.35000002384185791, 1.35000002384185791, 0, 0, 0, 0, 0, 0, 48999), +(17014, 0, 1, 4, 2.5, 2.5, 7.5, 2.5, 2.5, 7.5, 0, 0, 48999); + +DELETE FROM `areatrigger_create_properties` WHERE `Id` IN (12334 /*SpellId : 260411*/, 12319 /*SpellId : 260292*/); +INSERT INTO `areatrigger_create_properties` (`Id`, `AreaTriggerId`, `MoveCurveId`, `ScaleCurveId`, `MorphCurveId`, `FacingCurveId`, `AnimId`, `AnimKitId`, `DecalPropertiesId`, `TimeToTarget`, `TimeToTargetScale`, `Shape`, `ShapeData0`, `ShapeData1`, `ShapeData2`, `ShapeData3`, `ShapeData4`, `ShapeData5`, `ShapeData6`, `ShapeData7`, `VerifiedBuild`) VALUES +(12334, 17026, 0, 0, 0, 0, -1, 0, 0, 0, 12000, 0, 1.35000002384185791, 1.35000002384185791, 0, 0, 0, 0, 0, 0, 48999), -- SpellId : 260411 (Summon Larva) +(12319, 17014, 0, 0, 0, 0, -1, 0, 0, 0, 10000, 1, 2.5, 2.5, 7.5, 2.5, 2.5, 7.5, 0, 0, 48999); -- SpellId : 260292 (Charge) + +UPDATE `areatrigger_create_properties` SET `ScriptName` = 'at_cragmaw_destroy_larva' WHERE `Id` = 12334 AND `AreaTriggerId` = 17026; + +DELETE FROM `areatrigger_template_actions` WHERE `AreaTriggerId` = 17014 AND `IsServerSide` = 0; +INSERT INTO `areatrigger_template_actions` (`AreaTriggerId`, `IsServerSide`, `ActionType`, `ActionParam`, `TargetType`) VALUES +(17014, 0, 0, 260312, 2); + +-- Scaling +DELETE FROM `creature_template_scaling` WHERE (`DifficultyID`=23 AND `Entry` IN (132051,132080,140593)); +INSERT INTO `creature_template_scaling` (`Entry`, `DifficultyID`, `LevelScalingDeltaMin`, `LevelScalingDeltaMax`, `ContentTuningID`, `VerifiedBuild`) VALUES +(132051, 23, 0, 0, 502, 48999), +(132080, 23, 0, 0, 502, 48999), +(140593, 23, 2, 2, 502, 48999); + + -- Creature 132080 smart ai +UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = 132080; +DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = 132080; +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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(132080, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 11, 260416, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'OnSummon - Self: Cast spell 260416 with flags triggered on Self'), +(132080, 0, 1, 0, 54, 0, 100, 0, 0, 0, 0, 0, 11, 260411, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'OnSummon - Self: Cast spell 260411 with flags triggered on Self'); + +-- SpellScripts +DELETE FROM `spell_script_names` WHERE `spell_id` IN (271775, 260416, 159474, 278641, 260411); +INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES +(271775, 'spell_cragmaw_power_energize_tantrum'), +(260416, 'spell_cragmaw_larva_metamorphosis'), +(159474, 'spell_gen_feign_death_all_flags_uninteractible'), +(278641, 'spell_cragmaw_blood_burst'), +(260411, 'spell_cragmaw_summon_larva'); diff --git a/sql/updates/world/master/2023_04_27_00_world.sql b/sql/updates/world/master/2023_04_27_00_world.sql new file mode 100644 index 000000000..155e2db54 --- /dev/null +++ b/sql/updates/world/master/2023_04_27_00_world.sql @@ -0,0 +1,85 @@ +SET @DF_CGUID := 9003520; + +SET @BFA_CGUID := 850928; + +-- Creature (Dragonflight) +DELETE FROM `creature` WHERE `guid` BETWEEN @DF_CGUID+0 AND @DF_CGUID+2; +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES +(@DF_CGUID+0, 197267, 0, 1519, 5150, '0', 0, 0, 0, 0, -8387.6162109375, 666.25177001953125, 95.39621734619140625, 2.397474050521850585, 120, 0, 0, 112919, 100, 0, 0, 0, 0, 48999), -- Riley Tidy (Area: Dwarven District - Difficulty: 0) CreateObject1 (Auras: 390427 - Breakable WAHammer 01) +(@DF_CGUID+1, 197253, 0, 1519, 5150, '0', 0, 0, 0, 0, -8387.09375, 669.20489501953125, 96.47650146484375, 4.155570030212402343, 120, 0, 0, 112919, 100, 0, 0, 0, 0, 48999), -- "Lefty" Lucy (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@DF_CGUID+2, 197269, 0, 1519, 5150, '0', 0, 0, 0, 0, -8388.8720703125, 667.15277099609375, 95.37870025634765625, 0, 120, 0, 0, 27, 0, 0, 0, 0, 0, 48999); -- Toy Tank (Area: Dwarven District - Difficulty: 0) CreateObject1 + +-- Creature (Battle for Azeroth) +DELETE FROM `creature` WHERE `guid` BETWEEN @BFA_CGUID+0 AND @BFA_CGUID+12; +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES +(@BFA_CGUID+0, 140407, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8388.1611328125, 624.0242919921875, 95.39727783203125, 3.9364013671875, 120, 0, 0, 17621, 0, 0, 0, 0, 0, 48999), -- Stormwind City Clerk (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+1, 140253, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8359.654296875, 666.609375, 97.23799896240234375, 0.162257343530654907, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Darnassian Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+2, 140403, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8389.5400390625, 621.54168701171875, 95.4215240478515625, 0.904929339885711669, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Displaced Gilnean Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+3, 140253, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8331.7080078125, 636.967041015625, 95.6412811279296875, 3.299002408981323242, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Darnassian Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+4, 140403, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8387.17578125, 621.7413330078125, 95.44271087646484375, 1.890208244323730468, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Displaced Gilnean Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+5, 140403, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8391.001953125, 625.62847900390625, 95.376739501953125, 5.785946369171142578, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Displaced Gilnean Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+6, 140253, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8430.7451171875, 661.1627197265625, 93.89919281005859375, 0.588002622127532958, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Darnassian Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+7, 140253, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8333.0673828125, 635.76214599609375, 95.719482421875, 1.657125830650329589, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Darnassian Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+8, 140253, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8357.9599609375, 666.93231201171875, 97.23799896240234375, 3.400092124938964843, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Darnassian Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+9, 140403, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8392.6962890625, 624.21356201171875, 95.4002227783203125, 6.235099315643310546, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Displaced Gilnean Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+10, 140253, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8390.326171875, 623.67706298828125, 95.40625, 0.230352774262428283, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Darnassian Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+11, 140253, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8388.6611328125, 619.875, 95.42708587646484375, 1.446156620979309082, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999), -- Darnassian Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +(@BFA_CGUID+12, 140253, 0, 1519, 5150, '0', 11595, 0, 0, 0, -8332.6630859375, 638.0867919921875, 95.79345703125, 3.712284564971923828, 120, 0, 0, 119, 0, 0, 0, 0, 0, 48999); -- Darnassian Refugee (Area: Dwarven District - Difficulty: 0) CreateObject1 +DELETE FROM `creature_addon` WHERE `guid` BETWEEN @BFA_CGUID+0 AND @BFA_CGUID+12; +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvpFlags`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `visibilityDistanceType`, `auras`) VALUES +(@BFA_CGUID+0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, ''), -- Stormwind City Clerk +(@BFA_CGUID+3, 0, 0, 0, 0, 0, 1, 0, 0, 16023, 0, 0, 0, ''), -- Darnassian Refugee +(@BFA_CGUID+7, 0, 0, 0, 0, 0, 1, 0, 0, 16023, 0, 0, 0, ''), -- Darnassian Refugee +(@BFA_CGUID+12, 0, 0, 0, 0, 0, 1, 0, 0, 16023, 0, 0, 0, ''); -- Darnassian Refugee + +-- Creature Template +UPDATE `creature_template` SET `faction`=12, `BaseAttackTime`=2000, `unit_flags`=768, `unit_flags2`=2048 WHERE `entry`=197253; -- "Lefty" Lucy +UPDATE `creature_template` SET `faction`=12, `BaseAttackTime`=2000, `unit_flags`=768, `unit_flags2`=2048 WHERE `entry`=197267; -- Riley Tidy +UPDATE `creature_template` SET `faction`=188, `BaseAttackTime`=2000, `unit_flags`=33555200, `unit_flags2`=335546368, `unit_flags3`=32768 WHERE `entry`=197269; -- Toy Tank + +-- Creature Template Addon +DELETE FROM `creature_template_addon` WHERE `entry` IN (197269, 197253, 197267); +INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvpFlags`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `visibilityDistanceType`, `auras`) VALUES +(197269, 0, 0, 0, 0, 0, 1, 0, 0, 1421, 0, 0, 0, ''), -- 197269 (Toy Tank) +(197253, 0, 0, 0, 0, 0, 1, 0, 732, 0, 0, 0, 0, ''), -- "Lefty" Lucy +(197267, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, '390427'); -- 197267 (Riley Tidy) - Breakable WAHammer 01 + +-- Scaling +DELETE FROM `creature_template_scaling` WHERE (`Entry`=80329 AND `DifficultyID`=0); +INSERT INTO `creature_template_scaling` (`Entry`, `DifficultyID`, `LevelScalingDeltaMin`, `LevelScalingDeltaMax`, `ContentTuningID`, `VerifiedBuild`) VALUES +(80329, 0, 0, 0, 371, 48999); + +-- Waypoints for CGUID+6 +SET @PATH := ((@BFA_CGUID+6) * 10) << 3; +DELETE FROM `waypoint_data` WHERE `id`= @PATH; +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES +(@PATH, 0, -8381.748, 641.8195, 94.9442, NULL, 0), +(@PATH, 1, -8375.254, 629.4063, 95.16992, NULL, 0), +(@PATH, 2, -8378.219, 620.7882, 95.3291, NULL, 0), +(@PATH, 3, -8387.56, 615.7344, 95.31641, NULL, 0), +(@PATH, 4, -8395.344, 602.6198, 94.26697, NULL, 0), +(@PATH, 5, -8398.103, 586.3073, 92.67611, NULL, 0), +(@PATH, 6, -8402.248, 575.2136, 91.88956, NULL, 0), +(@PATH, 7, -8411.781, 570.5903, 92.40152, NULL, 0), +(@PATH, 8, -8422.063, 570.0504, 93.51981, NULL, 0), +(@PATH, 9, -8430.297, 572.4271, 94.38309, NULL, 0), +(@PATH, 10, -8444.821, 585.5573, 94.56425, NULL, 0), +(@PATH, 11, -8453.643, 594.6389, 94.32915, NULL, 0), +(@PATH, 12, -8465.841, 607.5434, 94.79446, NULL, 0), +(@PATH, 13, -8471.234, 614.3386, 94.71692, NULL, 0), +(@PATH, 14, -8473.783, 618.6893, 94.73132, NULL, 0), +(@PATH, 15, -8474.802, 625.3993, 94.02014, NULL, 0), +(@PATH, 16, -8468.014, 633.3698, 93.00346, NULL, 0), +(@PATH, 17, -8454.573, 642.5364, 92.08357, NULL, 0), +(@PATH, 18, -8441.085, 653.0868, 93.12044, NULL, 0), +(@PATH, 19, -8432.029, 660.3073, 93.59958, NULL, 0), +(@PATH, 20, -8422.004, 666.9739, 94.7771, NULL, 0), +(@PATH, 21, -8412.899, 671.8785, 95.1521, NULL, 0), +(@PATH, 22, -8405.596, 671.4913, 95.2771, NULL, 0), +(@PATH, 23, -8396.426, 666.6858, 94.84495, NULL, 0), +(@PATH, 24, -8389.958, 655.7396, 95.23558, NULL, 0); + +UPDATE `creature` SET `position_x`= -8381.748, `position_y`= 641.8195, `position_z`= 94.9442, `orientation`= 0, `wander_distance`= 0, `MovementType`= 2 WHERE `guid`= @BFA_CGUID+6; +DELETE FROM `creature_addon` WHERE `guid`= @BFA_CGUID+6; +INSERT INTO `creature_addon` (`guid`, `path_id`, `SheathState`) VALUES +(@BFA_CGUID+6, @PATH, 1); diff --git a/sql/updates/world/master/2023_05_02_00_world.sql b/sql/updates/world/master/2023_05_02_00_world.sql new file mode 100644 index 000000000..d75e3c0d7 --- /dev/null +++ b/sql/updates/world/master/2023_05_02_00_world.sql @@ -0,0 +1,71 @@ +SET @CGUID := 850941; + +-- Creature +DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+9; +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES +(@CGUID+0, 140253, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8597.0087890625, 508.692718505859375, 104.2916183471679687, 2.03877878189086914, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343), -- Darnassian Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+1, 140253, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8602.826171875, 510.328125, 104.2916183471679687, 0.10048425942659378, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343), -- Darnassian Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+2, 140403, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8600.404296875, 510.14410400390625, 104.2916183471679687, 0.378923088312149047, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343), -- Displaced Gilnean Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+3, 140253, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8598.1923828125, 506.630218505859375, 104.2916183471679687, 1.594726920127868652, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343), -- Darnassian Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+4, 140407, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8598.314453125, 510.807281494140625, 104.2916183471679687, 4.084970474243164062, 120, 0, 0, 17621, 0, 0, 0, 0, 0, 49343), -- Stormwind City Clerk (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+5, 140403, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8599.3076171875, 508.149322509765625, 104.2916183471679687, 1.053499102592468261, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343), -- Displaced Gilnean Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+6, 140403, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8601.36328125, 511.973968505859375, 104.2916183471679687, 5.93451547622680664, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343), -- Displaced Gilnean Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+7, 140253, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8717.244140625, 505.270294189453125, 96.26551055908203125, 5.228531360626220703, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343), -- Darnassian Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+8, 140253, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8649.126953125, 411.052093505859375, 102.7174072265625, 2.28712320327758789, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343), -- Darnassian Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +(@CGUID+9, 140253, 0, 1519, 5390, '0', 11595, 0, 0, 0, -8650.0849609375, 412.388885498046875, 102.72137451171875, 4.941145896911621093, 120, 0, 0, 119, 0, 0, 0, 0, 0, 49343); -- Darnassian Refugee (Area: The Canals - Difficulty: 0) CreateObject1 +DELETE FROM `creature_addon` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+9; +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvpFlags`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `visibilityDistanceType`, `auras`) VALUES +(@CGUID+8, 0, 0, 0, 0, 0, 1, 0, 0, 16023, 0, 0, 0, ''), -- Darnassian Refugee +(@CGUID+9, 0, 0, 0, 0, 0, 1, 0, 0, 16023, 0, 0, 0, ''); -- Darnassian Refugee + +-- Waypoints for CGUID+7 +SET @PATH := ((@CGUID+7) * 10) << 3; +DELETE FROM `waypoint_data` WHERE `id`= @PATH; +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES +(@PATH, 0, -8695.129, 477.6719, 95.49294, NULL, 0), +(@PATH, 1, -8696.893, 471.75, 95.57046, NULL, 0), +(@PATH, 2, -8701.759, 466.9722, 96.12107, NULL, 0), +(@PATH, 3, -8708.558, 461.0677, 96.85646, NULL, 0), +(@PATH, 4, -8715.837, 451.0347, 97.26711, NULL, 0), +(@PATH, 5, -8719.191, 434.3672, 97.76711, NULL, 0), +(@PATH, 6, -8724.064, 420.3073, 97.94579, NULL, 0), +(@PATH, 7, -8724.922, 409.5538, 97.76757, NULL, 0), +(@PATH, 8, -8719.696, 405.0538, 97.85046, NULL, 0), +(@PATH, 9, -8706.931, 403.6476, 100.0511, NULL, 0), +(@PATH, 10, -8695.981, 398.75, 101.6938, NULL, 0), +(@PATH, 11, -8685.014, 396.9965, 102.3116, NULL, 0), +(@PATH, 12, -8679.481, 399.3663, 103.1978, NULL, 0), +(@PATH, 13, -8669.089, 407.7118, 103.5677, NULL, 0), +(@PATH, 14, -8657.772, 416.2222, 102.728, NULL, 0), +(@PATH, 15, -8651.08, 421.5365, 102.1079, NULL, 0), +(@PATH, 16, -8643.799, 429.9132, 101.5807, NULL, 0), +(@PATH, 17, -8638.429, 438.6996, 102.2018, NULL, 0), +(@PATH, 18, -8634.88, 447.8125, 102.5006, NULL, 0), +(@PATH, 19, -8635.17, 457.007, 102.3756, NULL, 0), +(@PATH, 20, -8636.816, 464.7326, 102.3756, NULL, 0), +(@PATH, 21, -8641.882, 472.7014, 102.6313, NULL, 0), +(@PATH, 22, -8644.913, 477.4774, 102.6313, NULL, 0), +(@PATH, 23, -8642.698, 481.1701, 102.6313, NULL, 0), +(@PATH, 24, -8632.768, 488.8958, 102.6172, NULL, 0), +(@PATH, 25, -8616.739, 501.566, 103.1385, NULL, 0), +(@PATH, 26, -8611.013, 507.0972, 103.6292, NULL, 0), +(@PATH, 27, -8610.969, 511.2257, 103.7674, NULL, 0), +(@PATH, 28, -8617.31, 518.5625, 103.2635, NULL, 0), +(@PATH, 29, -8628.604, 530.6042, 101.1436, NULL, 0), +(@PATH, 30, -8641.783, 543.6077, 99.00242, NULL, 0), +(@PATH, 31, -8654.677, 551.3646, 97.13596, NULL, 0), +(@PATH, 32, -8665.066, 552.9983, 97.03342, NULL, 0), +(@PATH, 33, -8669.731, 551.3472, 97.28925, NULL, 0), +(@PATH, 34, -8673.436, 549.8854, 97.3885, NULL, 0), +(@PATH, 35, -8684.743, 544.1389, 97.77937, NULL, 0), +(@PATH, 36, -8696.864, 533.6302, 97.91535, NULL, 0), +(@PATH, 37, -8709.993, 522.5677, 97.50153, NULL, 0), +(@PATH, 38, -8719.549, 515.0695, 96.85505, NULL, 0), +(@PATH, 39, -8720.297, 510.6424, 96.6385, NULL, 0), +(@PATH, 40, -8716.375, 503.7379, 96.16608, NULL, 0), +(@PATH, 41, -8705.341, 489.7604, 95.47239, NULL, 0); + +UPDATE `creature` SET `position_x`= -8695.129, `position_y`= 477.6719, `position_z`= 95.49294, `orientation`= 0, `wander_distance`= 0, `MovementType`= 2 WHERE `guid`= @CGUID+7; +DELETE FROM `creature_addon` WHERE `guid`= @CGUID+7; +INSERT INTO `creature_addon` (`guid`, `path_id`, `SheathState`) VALUES +(@CGUID+7, @PATH, 1); diff --git a/sql/updates/world/master/2023_05_02_01_world.sql b/sql/updates/world/master/2023_05_02_01_world.sql new file mode 100644 index 000000000..065bae1b5 --- /dev/null +++ b/sql/updates/world/master/2023_05_02_01_world.sql @@ -0,0 +1,9 @@ +DELETE FROM `spell_proc` WHERE `SpellId` IN (302385,304086); +INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES +(302385,0x00,0,0x00000000,0x00000000,0x00000000,0x00000000,0x0,0x0,0x4,0x2,0x0,0x0,0x0,0,0,0,0), -- Resurrect Health +(304086,0x00,0,0x00000000,0x00000000,0x00000000,0x00000000,0x0,0x0,0x7,0x2,0x0,0x0,0x0,0,0,0,0); -- Conflict (Azerite Essence) + +DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_item_conflict_wearer_on_stun_proc','spell_item_zanjir_scaleguard_greatcloak'); +INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES +(302385,'spell_item_zanjir_scaleguard_greatcloak'), +(304086,'spell_item_conflict_wearer_on_stun_proc');