From 6f0c53d1372b92579019c15f3e310adb4055b7be Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sun, 5 Dec 2021 22:06:51 +0100 Subject: [PATCH] fix(DB/Creature): Spawn at Winter Veil (#9521) * from TC once upon a time --- data/sql/updates/db_world/2021_12_05_01.sql | 4 ++-- .../sql/updates/pending_db_world/rev_1638733140143862200.sql | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 data/sql/updates/pending_db_world/rev_1638733140143862200.sql diff --git a/data/sql/updates/db_world/2021_12_05_01.sql b/data/sql/updates/db_world/2021_12_05_01.sql index 62cee8871..5c4f3410b 100644 --- a/data/sql/updates/db_world/2021_12_05_01.sql +++ b/data/sql/updates/db_world/2021_12_05_01.sql @@ -22,9 +22,9 @@ DELETE FROM `creature` WHERE `guid`=24 AND `id` = 13431; 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 (24, 13431, 1, 0, 0, 1, 1, 0, 0, -1234.51, 73.4529, 129.591, 2.80998, 300, 0, 0, 1003, 0, 0, 0, 0, 0, '', 0); -DELETE FROM `game_event_creature` WHERE `eventEntry` = 24 AND `guid` = 24; +DELETE FROM `game_event_creature` WHERE `eventEntry` IN (2,24) AND `guid` = 24; INSERT INTO `game_event_creature` (`eventEntry`, `guid`) VALUES -(24, 24); +(2, 24); -- -- END UPDATING QUERIES diff --git a/data/sql/updates/pending_db_world/rev_1638733140143862200.sql b/data/sql/updates/pending_db_world/rev_1638733140143862200.sql new file mode 100644 index 000000000..2f08edd71 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1638733140143862200.sql @@ -0,0 +1,5 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638733140143862200'); + +DELETE FROM `game_event_creature` WHERE `eventEntry` IN (2, 24) AND `guid` = 24; +INSERT INTO `game_event_creature` (`eventEntry`, `guid`) VALUES +(2, 24);