Files
moonwell-core-vanilla/sql/migrations/20211201050010_world.sql
T

29 lines
1.4 KiB
SQL

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`='20211201050010');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20211201050010');
-- Add your query below.
-- Completion script for quest Solution to Doom.
DELETE FROM `quest_end_scripts` WHERE `id`=709;
INSERT INTO `quest_end_scripts` (`id`, `delay`, `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
(709, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 914, 0, 0, 0, 0, 0, 0, 0, 0, 'Solution to Doom: Theldurin the Lost - Say Text'),
(709, 0, 28, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Solution to Doom: Theldurin the Lost - Set Stand State to Kneel'),
(709, 2, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Solution to Doom: Theldurin the Lost - Set Stand State to Stand'),
(709, 3, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Solution to Doom: Theldurin the Lost - Emote OneShotCheer'),
(709, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 915, 0, 0, 0, 0, 0, 0, 0, 0, 'Solution to Doom: Theldurin the Lost - Say Text');
UPDATE `quest_template` SET `CompleteScript`=709 WHERE `entry`=709;
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;