Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Misc Object Updates #2141

Merged
merged 9 commits into from
Aug 11, 2023
Merged
38 changes: 38 additions & 0 deletions sql/migrations/20230729171655_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
DROP PROCEDURE IF EXISTS add_migration;
delimiter ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20230729171655');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20230729171655');
-- Add your query below.


-- Remove Duplicate Food Crates
DELETE FROM `pool_pool` WHERE `pool_id` IN (SELECT `pool_entry` FROM `pool_gameobject` WHERE `guid` IN (44156, 44204, 44155, 44206, 44137, 44185, 44150, 44198, 44149, 44197, 44137, 44185));
DELETE FROM `pool_template` WHERE `entry` IN (SELECT `pool_entry` FROM `pool_gameobject` WHERE `guid` IN (44156, 44204, 44155, 44206, 44137, 44185, 44150, 44198, 44149, 44197, 44137, 44185));
DELETE FROM `gameobject` WHERE `guid` IN (44156, 44204, 44155, 44206, 44137, 44185, 44150, 44198, 44149, 44197, 44137, 44185);
DELETE FROM `pool_gameobject` WHERE `guid` IN (44156, 44204, 44155, 44206, 44137, 44185, 44150, 44198, 44149, 44197, 44137, 44185);

-- Remove Duplicate Cortellos Riddle
DELETE FROM `gameobject` WHERE `guid` = 129;
DELETE FROM `pool_gameobject` WHERE `guid` IN (129);

-- Remove Duplicate Blood of Heroes
DELETE FROM `gameobject` WHERE `guid` IN (25981, 25918, 25962, 25972, 55363);
DELETE FROM `pool_gameobject` WHERE `guid` IN (25981, 25918, 25962, 25972, 55363);

-- Add Missing Wanted: Hogger Sign
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES
(502, 156561, 0, -9750.33, 682.773, 27.071, 3.86591, -0.042439, 0.0258846, -0.934402, 0.352734, 180, 180, 100, 1, 0, 0, 0, 10);
INSERT INTO `gameobject_questrelation` (`id`, `quest`, `patch_min`, `patch_max`) VALUES
(156561, 176, 0, 10);


-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
Loading