From 745988701e011c45170cd96861d8740925bd5279 Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Sun, 29 Dec 2024 16:41:06 +0200 Subject: [PATCH] Add missing cry emote to Janice Felstone. --- sql/migrations/20241229144029_world.sql | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sql/migrations/20241229144029_world.sql diff --git a/sql/migrations/20241229144029_world.sql b/sql/migrations/20241229144029_world.sql new file mode 100644 index 00000000000..eb3d4b1ddb2 --- /dev/null +++ b/sql/migrations/20241229144029_world.sql @@ -0,0 +1,24 @@ +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`='20241229144029'); +IF v = 0 THEN +INSERT INTO `migrations` VALUES ('20241229144029'); +-- Add your query below. + + +-- Add missing cry emote to Janice Felstone. +DELETE FROM `creature_ai_scripts` WHERE `id`=1077801; +INSERT INTO `creature_ai_scripts` (`id`, `delay`, `priority`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES +(1077801, 0, 0, 1, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Janice Felstone - Emote Cry'), +(1077801, 0, 1, 16, 2680, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Janice Felstone - Play Sound'); + + +-- End of migration. +END IF; +END?? +DELIMITER ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;