From 8f06c048507e72b2ec8cc1447725604f61035ad2 Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Sun, 7 Apr 2024 08:27:13 +0300 Subject: [PATCH] Fix bypassing Rajaxx's captains. --- sql/migrations/20240407052628_world.sql | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sql/migrations/20240407052628_world.sql diff --git a/sql/migrations/20240407052628_world.sql b/sql/migrations/20240407052628_world.sql new file mode 100644 index 00000000000..e89a8784a65 --- /dev/null +++ b/sql/migrations/20240407052628_world.sql @@ -0,0 +1,27 @@ +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`='20240407052628'); +IF v = 0 THEN +INSERT INTO `migrations` VALUES ('20240407052628'); +-- Add your query below. + + +-- Fix bypassing Rajaxx's captains. +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15385, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15386, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15389, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15391, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15392, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15390, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15388, 509, 15341, 1, 150); + + +-- End of migration. +END IF; +END?? +DELIMITER ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;