From 4aed38d7879a2d7eeee8ad24b5be17163fe56e54 Mon Sep 17 00:00:00 2001 From: Asthalor <87535580+Asthalor@users.noreply.github.com> Date: Fri, 6 Aug 2021 14:32:35 +0200 Subject: [PATCH] fix(DB/Creature): Added spawn and movement to Lord Maldazzar (#7187) * fix(DB/Creature): Added spawn and movement to Lord Maldazzar * fix Model id of the new spawn --- .../rev_1627733875042202000.sql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1627733875042202000.sql diff --git a/data/sql/updates/pending_db_world/rev_1627733875042202000.sql b/data/sql/updates/pending_db_world/rev_1627733875042202000.sql new file mode 100644 index 000000000..e4f59df11 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1627733875042202000.sql @@ -0,0 +1,20 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1627733875042202000'); + +-- Added movement for Lord Maldazzar spawns +UPDATE `creature_template` SET `MovementType` = 1 WHERE (`entry` = 1848); +UPDATE `creature` SET `wander_distance` = 10, `MovementType` = 1 WHERE (`id` = 1848) AND (`guid` IN (52725)); + +-- Add new spawn point near the inn +DELETE FROM `creature` WHERE (`guid` = 152292); +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES +(152292, 1848, 0, 0, 0, 1, 1, 0, 1, 1123.73, -1714.49, 62.33, 0, 86400, 5, 0, 1, 0, 1, 0, 0, 0, '', 0); -- Near inn in Sorrow hill + +-- Added his spawns pto the same pool so there can be only 1 Lord Maldazzar active at the same time +DELETE FROM `pool_template` WHERE `entry` = 368; +INSERT INTO `pool_template` (`entry`, `max_limit`, `description`) VALUES (368, 1, "Lord Maldazzar Spawns"); + +DELETE FROM `pool_creature` WHERE `guid` IN (52725, 152292); +INSERT INTO `pool_creature` (`guid`, `pool_entry`, `chance`, `description`) VALUES +(52725, 368, 0, "Lord Maldazzar Spawn Crypt"), +(152292, 368, 0, "Lord Maldazzar Spawn Inn Sorrow hill"); +