From 1375418907072c5dd36fc17baf14bb4c23a9a5d5 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sun, 30 Apr 2023 01:06:56 +0200 Subject: [PATCH] fix(DB/Creature): Spawn and Script Pool of Souls (#14923) * fix(DB/Creature): Spawn and Script Pool of Souls * Update rev_1675980483756273400.sql * Update data/sql/updates/pending_db_world/rev_1675980483756273400.sql * Update rev_1675980483756273400.sql * Update rev_1675980483756273400.sql --------- Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com> --- .../rev_1675980483756273400.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1675980483756273400.sql diff --git a/data/sql/updates/pending_db_world/rev_1675980483756273400.sql b/data/sql/updates/pending_db_world/rev_1675980483756273400.sql new file mode 100644 index 000000000..2779449d0 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1675980483756273400.sql @@ -0,0 +1,23 @@ +-- + +DELETE FROM `creature` WHERE `guid` IN (125917, 125918, 125920, 125921) AND `id1` = 18766; -- Pool of Souls +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `npcflag`, `MovementType`) VALUES +(125917, 18766, 558, 3, 1, 0, 113.589, -132.944, -139.589, 2.72271, 7200, 0, 0, 1, 0, 0, 0), +(125918, 18766, 558, 3, 1, 0, 40.7895, -191.962, -139.589, 3.89208, 7200, 0, 0, 1, 0, 0, 0), +(125920, 18766, 558, 3, 1, 0, 113.81, -191.401, -139.589, 2.9147, 7200, 0, 0, 1, 0, 0, 0), +(125921, 18766, 558, 3, 1, 0, 40.4961, -134.312, -139.589, 5.74213, 7200, 0, 0, 1, 0, 0, 0); + +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`IN (18766); +DELETE FROM `smart_scripts` WHERE `entryorguid` IN(18766) AND `source_type`=0; +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 +(18766, 0, 0, 0, 10, 0, 100, 0, 0, 60, 1000, 1000, 0, 11, 32889, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Pool of Souls - Ooc los - Cast Grasp of Death'); + +UPDATE `creature_template` SET `unit_flags`=`unit_flags`|33554432 WHERE `entry` = 18766; + +DELETE FROM `creature_template_movement` WHERE `creatureId` = 18766; +INSERT INTO `creature_template_movement` (`CreatureId`, `Flight`, `Rooted`) VALUES +(18766, 1, 1); + +DELETE FROM `creature_template_addon` WHERE `entry`= 20316; +INSERT INTO `creature_template_addon` (`entry`, `auras`) VALUES +(20316, '35841 35850'); -- Raging Soul