Files
moonwell-core-vanilla/sql/migrations/20201221160630_world.sql
T
2021-01-14 19:28:14 +02:00

44 lines
8.5 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`='20201221160630');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20201221160630');
-- Add your query below.
-- add pilot stongear script
UPDATE `creature_template` SET `ai_name`='EventAI' WHERE `entry` = 1377;
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 (137701, 1377, 0, 1, 0, 100, 1, 0, 0, 240000, 240000, 137701, 0, 0, 'Pilot Stonegear - Start Script OOC');
INSERT INTO `creature_ai_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 (137701, 0, 39, 137701, 137702, 137703, 137704, 0, 0, 0, 4, 25, 25, 25, 25, 0, 0, 0, 0, 0, 'Pilot Stonegear - Start Script');
INSERT INTO `generic_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 (137701, 0, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 232, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137701, 6, 0, 0, 0, 0, 0, 0, 0, 0, 4, 233, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137701, 12, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 234, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137701, 18, 0, 0, 0, 0, 0, 0, 0, 0, 4, 235, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137701, 24, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 236, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137702, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 237, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137702, 6, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 238, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137702, 12, 0, 0, 0, 0, 0, 0, 0, 0, 4, 239, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137702, 18, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 240, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137702, 24, 0, 0, 0, 0, 0, 0, 0, 0, 4, 241, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137703, 0, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 242, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137703, 6, 0, 0, 0, 0, 0, 0, 0, 0, 4, 244, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137703, 12, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 245, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137703, 18, 0, 0, 0, 0, 0, 0, 0, 0, 4, 246, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137703, 24, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 247, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137703, 30, 0, 0, 0, 0, 0, 0, 0, 0, 4, 248, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137704, 0, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 249, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137704, 6, 0, 0, 0, 0, 0, 0, 0, 0, 4, 250, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
INSERT INTO `generic_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 (137704, 12, 0, 0, 0, 0, 0, 4080, 0, 9, 2, 251, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Bellowfiz - Talk');
INSERT INTO `generic_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 (137704, 18, 0, 0, 0, 0, 0, 0, 0, 0, 4, 252, 0, 0, 0, 0, 0, 0, 0, 0, 'Pilot Stonegear - Talk');
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;