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

124 lines
24 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`='20220813075715');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20220813075715');
-- Add your query below.
-- Events list for Guard Roberts
DELETE FROM `creature_ai_events` WHERE `creature_id`=12423;
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242301, 12423, 5624, 8, 6, 100, 1, 2052, -1, 10000, 10000, 1242301, 0, 0, 'Guard Roberts - Say Text on Healed');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242302, 12423, 5624, 8, 5, 100, 1, 1243, -1, 10000, 10000, 1242302, 0, 0, 'Guard Roberts - Say Text on Buffed (Rank 1)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242303, 12423, 0, 11, 0, 100, 1, 0, 0, 0, 0, 1242303, 0, 0, 'Guard Roberts - Set Phase on Spawn');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242304, 12423, 5624, 8, 5, 100, 1, 1244, -1, 10000, 10000, 1242302, 0, 0, 'Guard Roberts - Say Text on Buffed (Rank 2)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242305, 12423, 5624, 8, 5, 100, 1, 1245, -1, 10000, 10000, 1242302, 0, 0, 'Guard Roberts - Say Text on Buffed (Rank 3)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242306, 12423, 5624, 8, 5, 100, 1, 2791, -1, 10000, 10000, 1242302, 0, 0, 'Guard Roberts - Say Text on Buffed (Rank 4)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242307, 12423, 5624, 8, 5, 100, 1, 10937, -1, 10000, 10000, 1242302, 0, 0, 'Guard Roberts - Say Text on Buffed (Rank 5)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242308, 12423, 5624, 8, 5, 100, 1, 10938, -1, 10000, 10000, 1242302, 0, 0, 'Guard Roberts - Say Text on Buffed (Rank 6)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242309, 12423, 0, 1, 0, 100, 1, 60000, 60000, 60000, 60000, 1242309, 0, 0, 'Guard Roberts - Remove Power Word Fortitude every 1 minute OOC');
DELETE FROM `creature_ai_scripts` WHERE `id`=1242309;
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
(1242309, 0, 0, 14, 1243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guard Roberts - Remove Power Word: Foritude (Rank 1)'),
(1242309, 0, 0, 14, 1244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guard Roberts - Remove Power Word: Foritude (Rank 2)'),
(1242309, 0, 0, 14, 1245, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guard Roberts - Remove Power Word: Foritude (Rank 3)'),
(1242309, 0, 0, 14, 2791, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guard Roberts - Remove Power Word: Foritude (Rank 4)'),
(1242309, 0, 0, 14, 10937, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guard Roberts - Remove Power Word: Foritude (Rank 5)'),
(1242309, 0, 0, 14, 10938, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Guard Roberts - Remove Power Word: Foritude (Rank 6)');
DELETE FROM `creature_ai_scripts` WHERE `id` IN (1242304);
-- Events list for Grunt Kor'ja
DELETE FROM `creature_ai_events` WHERE `creature_id`=12430;
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243001, 12430, 5648, 8, 6, 100, 1, 2052, -1, 10000, 10000, 1243001, 0, 0, 'Grunt Kor\'ja - Say Text on Healed');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243002, 12430, 5648, 8, 5, 100, 1, 1243, -1, 10000, 10000, 1243002, 0, 0, 'Grunt Kor\'ja - Say Text on Buffed (Rank 1)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243003, 12430, 0, 11, 0, 100, 1, 0, 0, 0, 0, 1243003, 0, 0, 'Grunt Kor\'ja - Set Phase on Spawn');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243004, 12430, 5648, 8, 5, 100, 1, 1244, -1, 10000, 10000, 1243002, 0, 0, 'Grunt Kor\'ja - Say Text on Buffed (Rank 2)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243005, 12430, 5648, 8, 5, 100, 1, 1245, -1, 10000, 10000, 1243002, 0, 0, 'Grunt Kor\'ja - Say Text on Buffed (Rank 3)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243006, 12430, 5648, 8, 5, 100, 1, 2791, -1, 10000, 10000, 1243002, 0, 0, 'Grunt Kor\'ja - Say Text on Buffed (Rank 4)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243007, 12430, 5648, 8, 5, 100, 1, 10937, -1, 10000, 10000, 1243002, 0, 0, 'Grunt Kor\'ja - Say Text on Buffed (Rank 5)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243008, 12430, 5648, 8, 5, 100, 1, 10938, -1, 10000, 10000, 1243002, 0, 0, 'Grunt Kor\'ja - Say Text on Buffed (Rank 6)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1243009, 12423, 0, 1, 0, 100, 1, 60000, 60000, 60000, 60000, 1243009, 0, 0, 'Grunt Kor\'ja - Remove Power Word Fortitude every 1 minute OOC');
DELETE FROM `creature_ai_scripts` WHERE `id`=1243009;
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
(1243009, 0, 0, 14, 1243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Grunt Kor\'ja - Remove Power Word: Foritude (Rank 1)'),
(1243009, 0, 0, 14, 1244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Grunt Kor\'ja - Remove Power Word: Foritude (Rank 2)'),
(1243009, 0, 0, 14, 1245, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Grunt Kor\'ja - Remove Power Word: Foritude (Rank 3)'),
(1243009, 0, 0, 14, 2791, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Grunt Kor\'ja - Remove Power Word: Foritude (Rank 4)'),
(1243009, 0, 0, 14, 10937, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Grunt Kor\'ja - Remove Power Word: Foritude (Rank 5)'),
(1243009, 0, 0, 14, 10938, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Grunt Kor\'ja - Remove Power Word: Foritude (Rank 6)');
DELETE FROM `creature_ai_scripts` WHERE `id` IN (1243004);
-- Events list for Sentinel Shaya
DELETE FROM `creature_ai_events` WHERE `creature_id`=12429;
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242901, 12429, 5621, 8, 6, 100, 1, 2052, -1, 10000, 10000, 1242901, 0, 0, 'Sentinel Shaya - Say Text on Healed');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242902, 12429, 5621, 8, 5, 100, 1, 1243, -1, 10000, 10000, 1242902, 0, 0, 'Sentinel Shaya - Say Text on Buffed (Rank 1)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242903, 12429, 0, 11, 0, 100, 1, 0, 0, 0, 0, 1242903, 0, 0, 'Sentinel Shaya - Set Phase on Spawn');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242904, 12429, 5621, 8, 5, 100, 1, 1244, -1, 10000, 10000, 1242902, 0, 0, 'Sentinel Shaya - Say Text on Buffed (Rank 2)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242905, 12429, 5621, 8, 5, 100, 1, 1245, -1, 10000, 10000, 1242902, 0, 0, 'Sentinel Shaya - Say Text on Buffed (Rank 3)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242906, 12429, 5621, 8, 5, 100, 1, 2791, -1, 10000, 10000, 1242902, 0, 0, 'Sentinel Shaya - Say Text on Buffed (Rank 4)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242907, 12429, 5621, 8, 5, 100, 1, 10937, -1, 10000, 10000, 1242902, 0, 0, 'Sentinel Shaya - Say Text on Buffed (Rank 5)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242908, 12429, 5621, 8, 5, 100, 1, 10938, -1, 10000, 10000, 1242902, 0, 0, 'Sentinel Shaya - Say Text on Buffed (Rank 6)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242909, 12423, 0, 1, 0, 100, 1, 60000, 60000, 60000, 60000, 1242909, 0, 0, 'Sentinel Shaya - Remove Power Word Fortitude every 1 minute OOC');
DELETE FROM `creature_ai_scripts` WHERE `id`=1242909;
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
(1242909, 0, 0, 14, 1243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Sentinel Shaya - Remove Power Word: Foritude (Rank 1)'),
(1242909, 0, 0, 14, 1244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Sentinel Shaya - Remove Power Word: Foritude (Rank 2)'),
(1242909, 0, 0, 14, 1245, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Sentinel Shaya - Remove Power Word: Foritude (Rank 3)'),
(1242909, 0, 0, 14, 2791, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Sentinel Shaya - Remove Power Word: Foritude (Rank 4)'),
(1242909, 0, 0, 14, 10937, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Sentinel Shaya - Remove Power Word: Foritude (Rank 5)'),
(1242909, 0, 0, 14, 10938, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Sentinel Shaya - Remove Power Word: Foritude (Rank 6)');
DELETE FROM `creature_ai_scripts` WHERE `id` IN (1242904);
-- Events list for Mountaineer Dolf
DELETE FROM `creature_ai_events` WHERE `creature_id`=12427;
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242701, 12427, 5625, 8, 6, 100, 1, 2052, -1, 10000, 10000, 1242701, 0, 0, 'Mountaineer Dolf - Say Text on Healed');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242702, 12427, 5625, 8, 5, 100, 1, 1243, -1, 10000, 10000, 1242702, 0, 0, 'Mountaineer Dolf - Say Text on Buffed (Rank 1)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242703, 12427, 0, 11, 0, 100, 1, 0, 0, 0, 0, 1242703, 0, 0, 'Mountaineer Dolf - Set Phase on Spawn');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242704, 12427, 5625, 8, 5, 100, 1, 1244, -1, 10000, 10000, 1242702, 0, 0, 'Mountaineer Dolf - Say Text on Buffed (Rank 2)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242705, 12427, 5625, 8, 5, 100, 1, 1245, -1, 10000, 10000, 1242702, 0, 0, 'Mountaineer Dolf - Say Text on Buffed (Rank 3)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242706, 12427, 5625, 8, 5, 100, 1, 2791, -1, 10000, 10000, 1242702, 0, 0, 'Mountaineer Dolf - Say Text on Buffed (Rank 4)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242707, 12427, 5625, 8, 5, 100, 1, 10937, -1, 10000, 10000, 1242702, 0, 0, 'Mountaineer Dolf - Say Text on Buffed (Rank 5)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242708, 12427, 5625, 8, 5, 100, 1, 10938, -1, 10000, 10000, 1242702, 0, 0, 'Mountaineer Dolf - Say Text on Buffed (Rank 6)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242709, 12423, 0, 1, 0, 100, 1, 60000, 60000, 60000, 60000, 1242709, 0, 0, 'Mountaineer Dolf - Remove Power Word Fortitude every 1 minute OOC');
DELETE FROM `creature_ai_scripts` WHERE `id`=1242709;
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
(1242709, 0, 0, 14, 1243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mountaineer Dolf - Remove Power Word: Foritude (Rank 1)'),
(1242709, 0, 0, 14, 1244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mountaineer Dolf - Remove Power Word: Foritude (Rank 2)'),
(1242709, 0, 0, 14, 1245, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mountaineer Dolf - Remove Power Word: Foritude (Rank 3)'),
(1242709, 0, 0, 14, 2791, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mountaineer Dolf - Remove Power Word: Foritude (Rank 4)'),
(1242709, 0, 0, 14, 10937, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mountaineer Dolf - Remove Power Word: Foritude (Rank 5)'),
(1242709, 0, 0, 14, 10938, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mountaineer Dolf - Remove Power Word: Foritude (Rank 6)');
DELETE FROM `creature_ai_scripts` WHERE `id` IN (1242704);
-- Events list for Deathguard Kel
DELETE FROM `creature_ai_events` WHERE `creature_id`=12428;
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242801, 12428, 5650, 8, 6, 100, 1, 2052, -1, 10000, 10000, 1242801, 0, 0, 'Deathguard Kel - Say Text on Healed');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242802, 12428, 5650, 8, 5, 100, 1, 1243, -1, 10000, 10000, 1242802, 0, 0, 'Deathguard Kel - Say Text on Buffed (Rank 1)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242803, 12428, 0, 11, 0, 100, 1, 0, 0, 0, 0, 1242803, 0, 0, 'Deathguard Kel - Set Phase on Spawn');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242804, 12428, 5650, 8, 5, 100, 1, 1244, -1, 10000, 10000, 1242802, 0, 0, 'Deathguard Kel - Say Text on Buffed (Rank 2)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242805, 12428, 5650, 8, 5, 100, 1, 1245, -1, 10000, 10000, 1242802, 0, 0, 'Deathguard Kel - Say Text on Buffed (Rank 3)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242806, 12428, 5650, 8, 5, 100, 1, 2791, -1, 10000, 10000, 1242802, 0, 0, 'Deathguard Kel - Say Text on Buffed (Rank 4)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242807, 12428, 5650, 8, 5, 100, 1, 10937, -1, 10000, 10000, 1242802, 0, 0, 'Deathguard Kel - Say Text on Buffed (Rank 5)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242808, 12428, 5650, 8, 5, 100, 1, 10938, -1, 10000, 10000, 1242802, 0, 0, 'Deathguard Kel - Say Text on Buffed (Rank 6)');
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1242809, 12423, 0, 1, 0, 100, 1, 60000, 60000, 60000, 60000, 1242809, 0, 0, 'Deathguard Kel - Remove Power Word Fortitude every 1 minute OOC');
DELETE FROM `creature_ai_scripts` WHERE `id`=1242809;
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
(1242809, 0, 0, 14, 1243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Deathguard Kel - Remove Power Word: Foritude (Rank 1)'),
(1242809, 0, 0, 14, 1244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Deathguard Kel - Remove Power Word: Foritude (Rank 2)'),
(1242809, 0, 0, 14, 1245, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Deathguard Kel - Remove Power Word: Foritude (Rank 3)'),
(1242809, 0, 0, 14, 2791, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Deathguard Kel - Remove Power Word: Foritude (Rank 4)'),
(1242809, 0, 0, 14, 10937, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Deathguard Kel - Remove Power Word: Foritude (Rank 5)'),
(1242809, 0, 0, 14, 10938, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Deathguard Kel - Remove Power Word: Foritude (Rank 6)');
DELETE FROM `creature_ai_scripts` WHERE `id` IN (1242804);
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;