Files
moonwell-core-vanilla/sql/migrations/20210619173040_world.sql
T
2021-08-03 19:53:26 +03:00

1431 lines
100 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`='20210619173040');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20210619173040');
-- Add your query below.
-- Despawn Creatures In Faire Area
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES
(80369, -4),
(80367, -4),
(80360, -4),
(80363, -4),
(80362, -4),
(80365, -4),
(80366, -4),
(80695, -4),
(80699, -4),
(80369, -23),
(80367, -23),
(80360, -23),
(80363, -23),
(80362, -23),
(80365, -23),
(80366, -23),
(80695, -23),
(80699, -23),
(26719, -5),
(25324, -5),
(26751, -5),
(25489, -5),
(26719, -24),
(25324, -24),
(26751, -24),
(25489, -24);
-- ------------------------------------
-- Correct Gossip For Kruban Darkblade
-- Assign Kruban Darkblade to Darkmoon Events
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES
(54395, 4),
(54395, 23),
(54395, 24);
-- Add Missing Gossip Menus
INSERT INTO `gossip_menu` (`entry`, `text_id`, `condition_id`) VALUES
(6214, 7374, 946),
(6221, 7378, 953),
(6222, 7377, 945);
-- Add Missing Gossip Menu Options
INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_broadcast_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `action_script_id`, `box_coded`, `box_money`, `box_text`, `box_broadcast_text`, `condition_id`) VALUES
(6214, 1, 0, 'The Darkmoon Faire has already arrived, you say? Where is it located?', 10110, 1, 1, 6222, 0, 0, 0, 0, '', 0, 946);
-- Add Conditions
INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES (953, 12, 23, 0, 0, 0, 0);
INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES (954, 12, 24, 0, 0, 0, 0);
INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES (955, -2, 953, 954, 0, 0, 0);
-- Update Existing Gossip Menus
UPDATE `gossip_menu` SET `condition_id` = 955 WHERE `entry` = 6214 AND `text_id` = 7366;
UPDATE `gossip_menu_option` SET `condition_id` = 955 WHERE `menu_id` = 6214 AND `id` = 0;
UPDATE `gossip_menu` SET `condition_id` = 954 WHERE `entry` = 6221 AND `text_id` = 7376;
-- Add OOC Text to Kruban Darkblade For Event Building Darkmoon Faire
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14843;
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 (1484301, 14843, 955, 1, 0, 100, 1, 45000, 120000, 45000, 120000, 1484301, 0, 0, 'Kruban Darkblade - Talk - OOC - Event 23 and 24');
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 (1484301, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10093, 10094, 10095, 10096, 0, 0, 0, 0, 0, 'Kruban Darkblade - Talk');
-- Add OOC Text to Kruban Darkblade For Event Darkmoon Faire
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 (1484302, 14843, 946, 1, 0, 100, 1, 45000, 120000, 45000, 120000, 1484302, 0, 0, 'Kruban Darkblade - Talk - OOC - Event 4 and 5');
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 (1484302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10106, 10107, 10108, 10105, 0, 0, 0, 0, 0, 'Kruban Darkblade - Talk');
-- ------------------------------------
-- Correct Gossip For Melnan Darkstone
-- Assign Melnan Darkstone to Darkmoon Events
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES
(144028, 5),
(144028, 23),
(144028, 24);
-- Correct Gossip Menus
INSERT INTO `gossip_menu` (`entry`, `text_id`, `condition_id`) VALUES
(6213, 7366, 955);
-- Add Missing Gossip Menu Options
INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_broadcast_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `action_script_id`, `box_coded`, `box_money`, `box_text`, `box_broadcast_text`, `condition_id`) VALUES
(6213, 1, 0, 'When the Darkmoon Faire arrives, where will it be located?', 10109, 1, 1, 6221, 0, 0, 0, 0, '', 0, 955);
-- Update Existing Gossip Menus
UPDATE `gossip_menu` SET `condition_id` = 946 WHERE `entry` = 6213 AND `text_id` = 7375;
UPDATE `gossip_menu_option` SET `condition_id` = 946 WHERE `menu_id` = 6213 AND `id` = 0;
-- Add OOC Text to Melnan Darkstone For Event Building Darkmoon Faire
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14842;
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 (1484201, 14842, 955, 1, 0, 100, 1, 45000, 120000, 45000, 120000, 1484201, 0, 0, 'Melnan Darkstone - Talk - OOC - Event 23 and 24');
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 (1484201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10097, 10098, 10099, 10100, 0, 0, 0, 0, 0, 'Melnan Darkstone - Talk');
-- Add OOC Text to Melnan Darkstone For Event Darkmoon Faire
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 (1484202, 14842, 946, 1, 0, 100, 1, 45000, 120000, 45000, 120000, 1484202, 0, 0, 'Melnan Darkstone - Talk - OOC - Event 4 and 5');
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 (1484202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10101, 10102, 10103, 10104, 0, 0, 0, 0, 0, 'Melnan Darkstone - Talk');
-- -------------------------------
-- Darkmoon Faire ELWYNN - Event 4
-- Respawn Darkmoon Fare Elwynn
DELETE FROM `gameobject` WHERE `guid` IN (SELECT `guid` FROM `game_event_gameobject` WHERE `event` = 4);
DELETE FROM `game_event_gameobject` WHERE `event` = 4;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES
(963, 179965, 0, -9607.73, 7.57964, 60.9326, 3.85718, 0, 0, -0.936671, 0.35021, 25, 25, 100, 1, 0, 0, 4, 10),
(984, 179965, 0, -9595.09, 62.8271, 61.7528, 2.75761, 0, 0, 0.981627, 0.190812, 25, 25, 100, 1, 0, 0, 4, 10),
(1267, 179965, 0, -9587.79, -0.867133, 60.8399, 4.55531, 0, 0, -0.760405, 0.649449, 25, 25, 100, 1, 0, 0, 4, 10),
(1268, 179965, 0, -9572.74, 40.4953, 60.4069, 1.44862, 0, 0, 0.66262, 0.748956, 25, 25, 100, 1, 0, 0, 4, 10),
(1269, 179965, 0, -9572.57, -13.6808, 63.4354, 1.67551, 0, 0, 0.743144, 0.669132, 25, 25, 100, 1, 0, 0, 4, 10),
(1270, 179965, 0, -9572.12, 77.6323, 58.882, 0.558504, 0, 0, 0.275637, 0.961262, 25, 25, 100, 1, 0, 0, 4, 10),
(1271, 179965, 0, -9569.41, 97.0819, 58.8815, 5.65487, 0, 0, -0.309016, 0.951057, 25, 25, 100, 1, 0, 0, 4, 10),
(1272, 179965, 0, -9566.78, -2.01318, 61.7573, 4.93928, 0, 0, -0.622514, 0.782609, 25, 25, 100, 1, 0, 0, 4, 10),
(1273, 179965, 0, -9566.68, -12.5996, 63.2657, 1.85005, 0, 0, 0.798635, 0.601815, 25, 25, 100, 1, 0, 0, 4, 10),
(1274, 179965, 0, -9564.48, 128.845, 59.1488, 2.93214, 0, 0, 0.994521, 0.104535, 25, 25, 100, 1, 0, 0, 4, 10),
(1275, 179965, 0, -9551.97, 106.014, 58.8853, 4.85202, 0, 0, -0.656058, 0.75471, 25, 25, 100, 1, 0, 0, 4, 10),
(1276, 179965, 0, -9542.1, 69.9565, 58.8932, 1.83259, 0, 0, 0.793353, 0.608762, 25, 25, 100, 1, 0, 0, 4, 10),
(1277, 179965, 0, -9540.73, 34.5314, 59.5549, 6.0912, 0, 0, -0.0958452, 0.995396, 25, 25, 100, 1, 0, 0, 4, 10),
(1278, 179965, 0, -9538.01, 103.002, 58.9158, 4.15388, 0, 0, -0.874619, 0.48481, 25, 25, 100, 1, 0, 0, 4, 10),
(1279, 179965, 0, -9532.9, 133.527, 58.986, 0.575957, 0, 0, 0.284015, 0.95882, 25, 25, 100, 1, 0, 0, 4, 10),
(1280, 179965, 0, -9530.22, 74.4355, 58.8815, 1.98967, 0, 0, 0.83867, 0.54464, 25, 25, 100, 1, 0, 0, 4, 10),
(1281, 179965, 0, -9528.68, 91.8029, 58.8889, 3.71755, 0, 0, -0.958819, 0.284016, 25, 25, 100, 1, 0, 0, 4, 10),
(1282, 179965, 0, -9526.89, 62.1373, 59.5495, 5.41052, 0, 0, -0.422618, 0.906308, 25, 25, 100, 1, 0, 0, 4, 10),
(1885, 179965, 0, -9515.8, 75.137, 59.6035, 6.05629, 0, 0, -0.113203, 0.993572, 25, 25, 100, 1, 0, 0, 4, 10),
(1886, 179965, 0, -9513.38, 86.4162, 59.6696, 5.93412, 0, 0, -0.173648, 0.984808, 25, 25, 100, 1, 0, 0, 4, 10),
(3091, 179967, 0, -9570.38, 73.6094, 60.0989, 2.26892, 0, 0, 0.906307, 0.422619, 25, 25, 100, 1, 0, 0, 4, 10),
(7691, 179968, 0, -9559.52, 130.32, 58.8953, 0.750491, 0, 0, 0.366501, 0.930418, 25, 25, 100, 1, 0, 0, 4, 10),
(7694, 179968, 0, -9558.87, 131.45, 58.8875, 4.36332, 0, 0, -0.819152, 0.573577, 25, 25, 100, 1, 0, 0, 4, 10),
(7707, 179968, 0, -9536.48, 108.307, 58.8908, 3.52557, 0, 0, -0.981627, 0.190812, 25, 25, 100, 1, 0, 0, 4, 10),
(7716, 179968, 0, -9535.4, 112.285, 58.8815, 1.58825, 0, 0, 0.71325, 0.70091, 25, 25, 100, 1, 0, 0, 4, 10),
(7731, 179968, 0, -9535.15, 113.199, 58.8815, 4.5204, 0, 0, -0.771625, 0.636078, 25, 25, 100, 1, 0, 0, 4, 10),
(7739, 179968, 0, -9534.25, 128.669, 58.9019, 5.51524, 0, 0, -0.374606, 0.927184, 25, 25, 100, 1, 0, 0, 4, 10),
(7752, 179968, 0, -9533.8, 128.406, 59.6028, 4.11898, 0, 0, -0.882947, 0.469473, 25, 25, 100, 1, 0, 0, 4, 10),
(7790, 179968, 0, -9533.51, 127.849, 58.9001, 2.94959, 0, 0, 0.995396, 0.0958512, 25, 25, 100, 1, 0, 0, 4, 10),
(7791, 179970, 0, -9568.37, 76.0546, 58.8809, 4.67748, 0, 0, -0.719339, 0.694659, 25, 25, 100, 1, 0, 0, 4, 10),
(7875, 179972, 0, -9570.34, 73.6059, 58.9049, 0.872664, 0, 0, 0.422618, 0.906308, 25, 25, 100, 1, 0, 0, 4, 10),
(7914, 179973, 0, -9569.09, 74.8281, 58.8618, 0.261798, 0, 0, 0.130526, 0.991445, 25, 25, 100, 1, 0, 0, 4, 10),
(7927, 179975, 0, -9560.94, 127.774, 58.9152, 1.27409, 0, 0, 0.594822, 0.803857, 25, 25, 100, 1, 0, 0, 4, 10),
(7931, 179975, 0, -9535.88, 110.817, 58.8815, 1.36136, 0, 0, 0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(7944, 179975, 0, -9535.4, 130.943, 58.8839, 2.33874, 0, 0, 0.920505, 0.390732, 25, 25, 100, 1, 0, 0, 4, 10),
(7974, 180006, 0, -9559.52, 53.4495, 60.136, 1.36136, 0, 0, 0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(7984, 180006, 0, -9555.57, 54.1968, 60.1749, 2.11185, 0, 0, 0.870356, 0.492424, 25, 25, 100, 1, 0, 0, 4, 10),
(7990, 180029, 0, -9515.35, 86.6149, 59.0797, 2.96704, 0, 0, 0.996194, 0.087165, 25, 25, 100, 1, 0, 0, 4, 10),
(7996, 180030, 0, -9534.2, 68.6959, 59.3954, 4.59022, 0, 0, -0.748956, 0.66262, 25, 25, 100, 1, 0, 0, 4, 10),
(8015, 180031, 0, -9563.75, 66.4712, 60.5913, 4.34587, 0, 0, -0.824126, 0.566406, 25, 25, 100, 1, 0, 0, 4, 10),
(8017, 180032, 0, -9560.39, 106.003, 60.5481, 3.00195, 0, 0, 0.997563, 0.0697661, 25, 25, 100, 1, 0, 0, 4, 10),
(8049, 180034, 0, -9530, 99.0359, 59.3857, 5.28835, 0, 0, -0.477158, 0.878817, 25, 25, 100, 1, 0, 0, 4, 10),
(8062, 180035, 0, -9610.89, 17.2324, 62.4941, 4.81711, 0, 0, -0.66913, 0.743145, 25, 25, 100, 1, 0, 0, 4, 10),
(8063, 180035, 0, -9602.03, 54.2494, 61.6601, 0.994837, 0, 0, 0.477158, 0.878817, 25, 25, 100, 1, 0, 0, 4, 10),
(8070, 180035, 0, -9598.97, 1.93641, 62.1301, 2.77507, 0, 0, 0.983254, 0.182238, 25, 25, 100, 1, 0, 0, 4, 10),
(8071, 180035, 0, -9590.48, 72.2718, 62.8057, 4.24115, 0, 0, -0.85264, 0.522499, 25, 25, 100, 1, 0, 0, 4, 10),
(8078, 180035, 0, -9586.5, 90.3664, 61.4895, 4.67748, 0, 0, -0.719339, 0.694659, 25, 25, 100, 1, 0, 0, 4, 10),
(8092, 180035, 0, -9576.97, -3.4292, 63.2808, 3.17653, 0, 0, -0.999847, 0.0174693, 25, 25, 100, 1, 0, 0, 4, 10),
(8095, 180035, 0, -9576.63, 74.4836, 60.7141, 5.46288, 0, 0, -0.398748, 0.91706, 25, 25, 100, 1, 0, 0, 4, 10),
(8102, 180035, 0, -9562.45, 120.571, 60.4093, 5.14872, 0, 0, -0.537299, 0.843392, 25, 25, 100, 1, 0, 0, 4, 10),
(8103, 180035, 0, -9558.93, 135.616, 60.3051, 4.03171, 0, 0, -0.902585, 0.430512, 25, 25, 100, 1, 0, 0, 4, 10),
(8104, 180035, 0, -9556.89, 4.93777, 61.6764, 0.715585, 0, 0, 0.350207, 0.936672, 25, 25, 100, 1, 0, 0, 4, 10),
(8127, 180035, 0, -9551.88, 55.3052, 61.1185, 1.95477, 0, 0, 0.829038, 0.559193, 25, 25, 100, 1, 0, 0, 4, 10),
(8128, 180035, 0, -9549.23, 65.4561, 60.4817, 0.418879, 0, 0, 0.207912, 0.978148, 25, 25, 100, 1, 0, 0, 4, 10),
(8174, 180035, 0, -9545.69, 27.9266, 60.59, 4.03171, 0, 0, -0.902585, 0.430512, 25, 25, 100, 1, 0, 0, 4, 10),
(8176, 180035, 0, -9542.16, 42.035, 60.9323, 5.06146, 0, 0, -0.573576, 0.819152, 25, 25, 100, 1, 0, 0, 4, 10),
(8183, 180035, 0, -9539.58, 138.434, 60.2842, 2.53072, 0, 0, 0.953716, 0.300708, 25, 25, 100, 1, 0, 0, 4, 10),
(8191, 180035, 0, -9534.68, 63.1606, 60.2981, 6.23083, 0, 0, -0.0261765, 0.999657, 25, 25, 100, 1, 0, 0, 4, 10),
(8194, 180035, 0, -9533.44, 109.463, 60.0964, 4.32842, 0, 0, -0.829037, 0.559194, 25, 25, 100, 1, 0, 0, 4, 10),
(8217, 180035, 0, -9530.71, 125.603, 59.8683, 4.85202, 0, 0, -0.656058, 0.75471, 25, 25, 100, 1, 0, 0, 4, 10),
(8218, 180035, 0, -9523.69, 69.3342, 60.3902, 1.01229, 0, 0, 0.484809, 0.87462, 25, 25, 100, 1, 0, 0, 4, 10),
(8230, 180035, 0, -9521.37, 96.6575, 60.8029, 5.42798, 0, 0, -0.414693, 0.909962, 25, 25, 100, 1, 0, 0, 4, 10),
(8240, 180036, 0, -9601.2, 17.0259, 64.1117, 4.79966, 0, 0, -0.67559, 0.737278, 25, 25, 100, 1, 0, 0, 4, 10),
(8249, 180036, 0, -9595.65, 45.7297, 62.5579, 3.15906, 0, 0, -0.999962, 0.00873464, 25, 25, 100, 1, 0, 0, 4, 10),
(8260, 180036, 0, -9558.04, 15.1922, 63.009, 0.715585, 0, 0, 0.350207, 0.936672, 25, 25, 100, 1, 0, 0, 4, 10),
(8265, 180036, 0, -9551.95, 41.1687, 61.8756, 5.86431, 0, 0, -0.207912, 0.978148, 25, 25, 100, 1, 0, 0, 4, 10),
(8293, 180037, 0, -9553.33, 110.428, 59.1801, 5.02655, 0, 0, -0.587785, 0.809017, 25, 25, 100, 1, 0, 0, 4, 10),
(8297, 180037, 0, -9542, 136.385, 59.2148, 5.14872, 0, 0, -0.537299, 0.843392, 25, 25, 100, 1, 0, 0, 4, 10),
(8298, 180038, 0, -9560.48, 123.28, 59.2266, 0.209439, 0, 0, 0.104528, 0.994522, 25, 25, 100, 1, 0, 0, 4, 10),
(8318, 180038, 0, -9554.68, 138.057, 59.187, 5.2709, 0, 0, -0.484809, 0.87462, 25, 25, 100, 1, 0, 0, 4, 10),
(8330, 180038, 0, -9532.87, 120.536, 59.2362, 3.31614, 0, 0, -0.996194, 0.087165, 25, 25, 100, 1, 0, 0, 4, 10),
(8339, 180039, 0, -9550.79, 144.551, 59.3467, 2.54818, 0, 0, 0.956305, 0.292372, 25, 25, 100, 1, 0, 0, 4, 10),
(8341, 180040, 0, -9558.64, 119.835, 58.854, 5.07891, 0, 0, -0.566406, 0.824126, 25, 25, 100, 1, 0, 0, 4, 10),
(8364, 180040, 0, -9557.69, 134.367, 58.8329, 4.01426, 0, 0, -0.906307, 0.422619, 25, 25, 100, 1, 0, 0, 4, 10),
(8369, 180040, 0, -9538.27, 133.447, 58.8815, 2.47837, 0, 0, 0.945518, 0.325568, 25, 25, 100, 1, 0, 0, 4, 10),
(8375, 180041, 0, -9556.3, 116.333, 58.8582, 4.29351, 0, 0, -0.83867, 0.54464, 25, 25, 100, 1, 0, 0, 4, 10),
(8376, 180042, 0, -9576.61, 89.6703, 58.8815, 0.575957, 0, 0, 0.284015, 0.95882, 25, 25, 100, 1, 0, 0, 4, 10),
(8403, 180043, 0, -9573.83, 82.3919, 58.8815, 2.56563, 0, 0, 0.958819, 0.284016, 25, 25, 100, 1, 0, 0, 4, 10),
(8406, 180043, 0, -9566.04, 76.5801, 58.8982, 0.85521, 0, 0, 0.414693, 0.909962, 25, 25, 100, 1, 0, 0, 4, 10),
(8420, 180043, 0, -9563.43, 99.4973, 58.8815, 4.64258, 0, 0, -0.731354, 0.681998, 25, 25, 100, 1, 0, 0, 4, 10),
(8421, 180043, 0, -9557.68, 54.6593, 60.3315, 1.71042, 0, 0, 0.754709, 0.656059, 25, 25, 100, 1, 0, 0, 4, 10),
(8423, 180043, 0, -9556.71, 69.5335, 58.9567, 5.46288, 0, 0, -0.398748, 0.91706, 25, 25, 100, 1, 0, 0, 4, 10),
(8441, 180043, 0, -9553.62, 104.592, 58.8828, 4.29351, 0, 0, -0.83867, 0.54464, 25, 25, 100, 1, 0, 0, 4, 10),
(8470, 180043, 0, -9546.52, 140.876, 58.8815, 5.09636, 0, 0, -0.559193, 0.829038, 25, 25, 100, 1, 0, 0, 4, 10),
(8471, 180043, 0, -9541.98, 80.8587, 59.1252, 6.19592, 0, 0, -0.0436192, 0.999048, 25, 25, 100, 1, 0, 0, 4, 10),
(8500, 180043, 0, -9539.89, 72.8221, 58.8815, 2.72271, 0, 0, 0.978148, 0.207912, 25, 25, 100, 1, 0, 0, 4, 10),
(8501, 180043, 0, -9537.02, 98.595, 58.8815, 3.3685, 0, 0, -0.993571, 0.113208, 25, 25, 100, 1, 0, 0, 4, 10),
(8523, 180043, 0, -9533.74, 74.5172, 58.8815, 5.0091, 0, 0, -0.594823, 0.803857, 25, 25, 100, 1, 0, 0, 4, 10),
(8525, 180043, 0, -9531.2, 117.723, 59.1228, 2.05949, 0, 0, 0.857167, 0.515038, 25, 25, 100, 1, 0, 0, 4, 10),
(8534, 180043, 0, -9530.79, 92.2459, 58.8815, 3.15906, 0, 0, -0.999962, 0.00873464, 25, 25, 100, 1, 0, 0, 4, 10),
(8536, 180044, 0, -9547.15, 84.5487, 58.1561, 5.37562, 0, 0, -0.438371, 0.898794, 25, 25, 100, 1, 0, 0, 4, 10),
(8541, 180045, 0, -9580.79, 28.3274, 60.6627, 4.97419, 0, 0, -0.608761, 0.793354, 25, 25, 100, 1, 0, 0, 4, 10),
(8550, 180045, 0, -9573.3, 37.0724, 60.4675, 3.00195, 0, 0, 0.997563, 0.0697661, 25, 25, 100, 1, 0, 0, 4, 10),
(8553, 180045, 0, -9568.85, 26.1816, 61.2764, 0.767944, 0, 0, 0.374606, 0.927184, 25, 25, 100, 1, 0, 0, 4, 10),
(8554, 180046, 0, -9577.11, 28.9335, 61.0503, 0.767944, 0, 0, 0.374606, 0.927184, 25, 25, 100, 1, 0, 0, 4, 10),
(8566, 180046, 0, -9574.43, 33.592, 61.162, 4.99164, 0, 0, -0.601814, 0.798636, 25, 25, 100, 1, 0, 0, 4, 10),
(8569, 180046, 0, -9572.6, 33.3993, 61.2556, 4.24115, 0, 0, -0.85264, 0.522499, 25, 25, 100, 1, 0, 0, 4, 10),
(8574, 180046, 0, -9571.2, 28.7882, 61.4907, 2.54818, 0, 0, 0.956305, 0.292372, 25, 25, 100, 1, 0, 0, 4, 10),
(8598, 180047, 0, -9577.95, 29.7229, 61.0439, 3.56047, 0, 0, -0.978148, 0.207912, 25, 25, 100, 1, 0, 0, 4, 10),
(8599, 180047, 0, -9573.48, 33.6922, 61.2497, 4.57276, 0, 0, -0.754709, 0.656059, 25, 25, 100, 1, 0, 0, 4, 10),
(8606, 180047, 0, -9571.72, 27.8073, 61.4719, 5.21854, 0, 0, -0.507538, 0.861629, 25, 25, 100, 1, 0, 0, 4, 10),
(8609, 180048, 0, -9577.74, 29.818, 61.5466, 0.663223, 0, 0, 0.325567, 0.945519, 25, 25, 100, 1, 0, 0, 4, 10),
(8610, 180048, 0, -9573.39, 33.7, 61.7433, 0.977383, 0, 0, 0.469471, 0.882948, 25, 25, 100, 1, 0, 0, 4, 10),
(8621, 180049, 0, -9573.65, 33.65, 61.7434, 4.92183, 0, 0, -0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(8638, 180049, 0, -9571.81, 28.07, 61.9897, 2.79252, 0, 0, 0.984807, 0.173652, 25, 25, 100, 1, 0, 0, 4, 10),
(8654, 180053, 0, -9574.1, 30.2205, 61.2259, 1.22173, 0, 0, 0.573576, 0.819152, 25, 25, 100, 1, 0, 0, 4, 10),
(8657, 180335, 0, -9569.42, 74.9086, 58.9041, 5.91667, 0, 0, -0.182235, 0.983255, 25, 25, 100, 1, 0, 0, 4, 10),
(8658, 180515, 0, -9569.68, -13.0052, 63.4714, 4.92183, 0, 0, -0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(8666, 180524, 0, -9602.75, 37.4567, 61.5828, 6.00393, 0, 0, -0.139173, 0.990268, 25, 25, 100, 1, 0, 0, 4, 10),
(8887, 180525, 0, -9602.75, 37.4567, 61.5828, 6.00393, 0, 0, -0.139173, 0.990268, 25, 25, 100, 1, 0, 0, 4, 10),
(8669, 180524, 0, -9596.53, 56.3289, 60.5527, 0.104719, 0, 0, 0.0523357, 0.99863, 25, 25, 100, 1, 0, 0, 4, 10),
(8740, 180525, 0, -9596.53, 56.3289, 60.5527, 0.104719, 0, 0, 0.0523357, 0.99863, 25, 25, 100, 1, 0, 0, 4, 10),
(8679, 180524, 0, -9595.88, 5.00358, 61.3745, 0.837758, 0, 0, 0.406736, 0.913545, 25, 25, 100, 1, 0, 0, 4, 10),
(8747, 180525, 0, -9595.88, 5.00358, 61.3745, 0.837758, 0, 0, 0.406736, 0.913545, 25, 25, 100, 1, 0, 0, 4, 10),
(8682, 180524, 0, -9584.94, 79.6764, 60.4523, 5.11382, 0, 0, -0.551936, 0.833886, 25, 25, 100, 1, 0, 0, 4, 10),
(8749, 180525, 0, -9584.94, 79.6764, 60.4523, 5.11382, 0, 0, -0.551936, 0.833886, 25, 25, 100, 1, 0, 0, 4, 10),
(8683, 180524, 0, -9576.87, -0.897786, 62.1091, 1.88495, 0, 0, 0.809016, 0.587786, 25, 25, 100, 1, 0, 0, 4, 10),
(8755, 180525, 0, -9576.87, -0.897786, 62.1091, 1.88495, 0, 0, 0.809016, 0.587786, 25, 25, 100, 1, 0, 0, 4, 10),
(8684, 180524, 0, -9574.56, 79.7395, 58.8815, 0.59341, 0, 0, 0.292371, 0.956305, 25, 25, 100, 1, 0, 0, 4, 10),
(8769, 180525, 0, -9574.56, 79.7395, 58.8815, 0.59341, 0, 0, 0.292371, 0.956305, 25, 25, 100, 1, 0, 0, 4, 10),
(8687, 180524, 0, -9566.92, 99.248, 58.8815, 5.35816, 0, 0, -0.446198, 0.894934, 25, 25, 100, 1, 0, 0, 4, 10),
(8771, 180525, 0, -9566.92, 99.248, 58.8815, 5.35816, 0, 0, -0.446198, 0.894934, 25, 25, 100, 1, 0, 0, 4, 10),
(8691, 180524, 0, -9553.61, 67.2332, 59.2847, 1.29154, 0, 0, 0.601814, 0.798636, 25, 25, 100, 1, 0, 0, 4, 10),
(8781, 180525, 0, -9553.61, 67.2332, 59.2847, 1.29154, 0, 0, 0.601814, 0.798636, 25, 25, 100, 1, 0, 0, 4, 10),
(8693, 180524, 0, -9552.22, 111.492, 58.8853, 0.261798, 0, 0, 0.130526, 0.991445, 25, 25, 100, 1, 0, 0, 4, 10),
(8783, 180525, 0, -9552.22, 111.492, 58.8853, 0.261798, 0, 0, 0.130526, 0.991445, 25, 25, 100, 1, 0, 0, 4, 10),
(8702, 180524, 0, -9549.28, 28.2097, 59.4478, 2.79252, 0, 0, 0.984807, 0.173652, 25, 25, 100, 1, 0, 0, 4, 10),
(8784, 180525, 0, -9549.28, 28.2097, 59.4478, 2.79252, 0, 0, 0.984807, 0.173652, 25, 25, 100, 1, 0, 0, 4, 10),
(8712, 180524, 0, -9546.56, 87.8324, 59.4187, 3.24635, 0, 0, -0.998629, 0.0523532, 25, 25, 100, 1, 0, 0, 4, 10),
(8788, 180525, 0, -9546.56, 87.8324, 59.4187, 3.24635, 0, 0, -0.998629, 0.0523532, 25, 25, 100, 1, 0, 0, 4, 10),
(8716, 180524, 0, -9544.44, 140.065, 58.8815, 4.24115, 0, 0, -0.85264, 0.522499, 25, 25, 100, 1, 0, 0, 4, 10),
(8789, 180525, 0, -9544.44, 140.065, 58.8815, 4.24115, 0, 0, -0.85264, 0.522499, 25, 25, 100, 1, 0, 0, 4, 10),
(8723, 180524, 0, -9533.64, 115.556, 58.9128, 2.89724, 0, 0, 0.992546, 0.12187, 25, 25, 100, 1, 0, 0, 4, 10),
(8800, 180525, 0, -9533.64, 115.556, 58.9128, 2.89724, 0, 0, 0.992546, 0.12187, 25, 25, 100, 1, 0, 0, 4, 10),
(8729, 180524, 0, -9533.17, 124.821, 58.9729, 3.3685, 0, 0, -0.993571, 0.113208, 25, 25, 100, 1, 0, 0, 4, 10),
(8848, 180525, 0, -9533.17, 124.821, 58.9729, 3.3685, 0, 0, -0.993571, 0.113208, 25, 25, 100, 1, 0, 0, 4, 10),
(8731, 180524, 0, -9522.69, 74.1969, 59.1998, 2.46091, 0, 0, 0.942641, 0.333808, 25, 25, 100, 1, 0, 0, 4, 10),
(8872, 180525, 0, -9522.69, 74.1969, 59.1998, 2.46091, 0, 0, 0.942641, 0.333808, 25, 25, 100, 1, 0, 0, 4, 10),
(8737, 180524, 0, -9520.97, 91.3967, 59.3657, 3.82227, 0, 0, -0.942641, 0.333808, 25, 25, 100, 1, 0, 0, 4, 10),
(8873, 180525, 0, -9520.97, 91.3967, 59.3657, 3.82227, 0, 0, -0.942641, 0.333808, 25, 25, 100, 1, 0, 0, 4, 10),
(8739, 181029, 0, -9574.1, 30.2205, 61.2259, 1.22173, 0, 0, 0.573576, 0.819152, 25, 25, 100, 1, 0, 0, 4, 10),
(12992, 180573, 0, -9505.92, -372.526, 57.6312, 1.39221, 0, 0, 0.641233, 0.767346, 25, 25, 0, 1, 0, 0, 6, 10);
INSERT INTO `game_event_gameobject` (`guid`, `event`) VALUES
(963, 4),
(984, 4),
(1267, 4),
(1268, 4),
(1269, 4),
(1270, 4),
(1271, 4),
(1272, 4),
(1273, 4),
(1274, 4),
(1275, 4),
(1276, 4),
(1277, 4),
(1278, 4),
(1279, 4),
(1280, 4),
(1281, 4),
(1282, 4),
(1885, 4),
(1886, 4),
(3091, 4),
(7691, 4),
(7694, 4),
(7707, 4),
(7716, 4),
(7731, 4),
(7739, 4),
(7752, 4),
(7790, 4),
(7791, 4),
(7875, 4),
(7914, 4),
(7927, 4),
(7931, 4),
(7944, 4),
(7974, 4),
(7984, 4),
(7990, 4),
(7996, 4),
(8015, 4),
(8017, 4),
(8049, 4),
(8062, 4),
(8063, 4),
(8070, 4),
(8071, 4),
(8078, 4),
(8092, 4),
(8095, 4),
(8102, 4),
(8103, 4),
(8104, 4),
(8127, 4),
(8128, 4),
(8174, 4),
(8176, 4),
(8183, 4),
(8191, 4),
(8194, 4),
(8217, 4),
(8218, 4),
(8230, 4),
(8240, 4),
(8249, 4),
(8260, 4),
(8265, 4),
(8293, 4),
(8297, 4),
(8298, 4),
(8318, 4),
(8330, 4),
(8339, 4),
(8341, 4),
(8364, 4),
(8369, 4),
(8375, 4),
(8376, 4),
(8403, 4),
(8406, 4),
(8420, 4),
(8421, 4),
(8423, 4),
(8441, 4),
(8470, 4),
(8471, 4),
(8500, 4),
(8501, 4),
(8523, 4),
(8525, 4),
(8534, 4),
(8536, 4),
(8541, 4),
(8550, 4),
(8553, 4),
(8554, 4),
(8566, 4),
(8569, 4),
(8574, 4),
(8598, 4),
(8599, 4),
(8606, 4),
(8609, 4),
(8610, 4),
(8621, 4),
(8638, 4),
(8654, 4),
(8657, 4),
(8658, 4),
(8666, 4),
(8669, 4),
(8679, 4),
(8682, 4),
(8683, 4),
(8684, 4),
(8687, 4),
(8691, 4),
(8693, 4),
(8702, 4),
(8712, 4),
(8716, 4),
(8723, 4),
(8729, 4),
(8731, 4),
(8737, 4),
(8739, 4),
(8740, 4),
(8747, 4),
(8749, 4),
(8755, 4),
(8769, 4),
(8771, 4),
(8781, 4),
(8783, 4),
(8784, 4),
(8788, 4),
(8789, 4),
(8800, 4),
(8848, 4),
(8872, 4),
(8873, 4),
(8887, 4),
(12992, 4);
REPLACE INTO `creature` (`guid`, `id`, `id2`, `id3`, `id4`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `wander_distance`, `health_percent`, `mana_percent`, `movement_type`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES
(52415, 15303, 0, 0, 0, 0, -9568.32, -7.84619, 63.0966, 1.79769, 180, 180, 0, 100, 0, 0, 0, 0, 6, 10);
-- Flick Waypoints and Scripts
DELETE FROM `creature_movement_scripts` WHERE `id` = 5662506;
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14860;
UPDATE `creature` SET `position_x` = -9582.77, `position_y` = 37.0359, `position_z` = 60.3921 WHERE `guid` IN (56625, 56624);
DELETE FROM `creature_movement` WHERE `id` = 56625;
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `script_id`) VALUES
(56625, 1, -9582.77, 37.0359, 60.3921, 100, 3180901),
(56625, 2, -9575.36, 46.4425, 60.2917, 100, 0),
(56625, 3, -9574.4, 57.7072, 60.9694, 100, 0),
(56625, 4, -9581.27, 61.9526, 61.5924, 100, 0),
(56625, 5, -9582.19, 57.5235, 61.5598, 100, 0),
(56625, 6, -9573.22, 55.109, 60.7786, 100, 0),
(56625, 7, -9562.44, 58.7552, 60.237, 100, 0),
(56625, 8, -9554.86, 68.119, 59.1309, 100, 0),
(56625, 9, -9553.75, 79.372, 59.0324, 100, 0),
(56625, 10, -9557.24, 88.6613, 59.0065, 100, 0),
(56625, 11, -9549.26, 93.6267, 59.0065, 100, 0),
(56625, 12, -9538.74, 89.6264, 59.0065, 100, 0),
(56625, 13, -9526.86, 85.964, 58.9329, 100, 0),
(56625, 14, -9515.2, 81.7789, 59.6269, 100, 0),
(56625, 15, -9504.11, 77.2859, 57.8536, 100, 0),
(56625, 16, -9492.49, 72.1215, 56.098, 100, 0),
(56625, 17, -9480.97, 65.3954, 56.31, 100, 0),
(56625, 18, -9469.44, 58.7708, 56.4992, 100, 0),
(56625, 19, -9458.37, 55.9505, 56.3491, 100, 0),
(56625, 20, -9453.54, 61.264, 55.9207, 100, 0),
(56625, 21, -9460.56, 66.5982, 56.2413, 100, 0),
(56625, 22, -9472.02, 68.2707, 56.3907, 100, 0),
(56625, 23, -9483.02, 73.8962, 56.3455, 100, 0),
(56625, 24, -9495.46, 74.8723, 56.4481, 100, 0),
(56625, 25, -9506.86, 78.1109, 58.6032, 100, 0),
(56625, 26, -9517.98, 84.3942, 59.3436, 100, 0),
(56625, 27, -9529.59, 88.1913, 58.9516, 100, 0),
(56625, 28, -9539.61, 95.543, 58.9866, 100, 0),
(56625, 29, -9545.48, 106.784, 59.071, 100, 0),
(56625, 30, -9548.48, 118.797, 59.2565, 100, 0),
(56625, 31, -9548.38, 131.102, 58.9597, 100, 0),
(56625, 32, -9543.12, 126.014, 59.2042, 100, 0),
(56625, 33, -9541.34, 114.956, 59.0332, 100, 0),
(56625, 34, -9540.89, 102.602, 59.1528, 100, 0),
(56625, 35, -9538.99, 89.9361, 59.0989, 100, 0),
(56625, 36, -9541.2, 77.9545, 59.0065, 100, 0),
(56625, 37, -9550.35, 70.3581, 59.2352, 100, 0),
(56625, 38, -9559.09, 61.4263, 60.006, 100, 0),
(56625, 39, -9568.32, 53.1292, 60.3528, 100, 0),
(56625, 40, -9568.45, 42.5114, 60.0803, 100, 0),
(56625, 41, -9561.53, 32.2363, 60.9041, 100, 0),
(56625, 42, -9566.65, 22.282, 61.4776, 100, 0),
(56625, 43, -9575.63, 16.3312, 60.4544, 100, 0),
(56625, 44, -9585.13, 21.0085, 60.3996, 100, 0),
(56625, 45, -9588.79, 29.5242, 60.2019, 100, 0);
INSERT INTO `creature_groups` (`leader_guid`, `member_guid`, `dist`, `angle`, `flags`) VALUES
(56625, 56625, 2, 6.25244, 11),
(56625, 56624, 2, 0, 11);
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 (1486001, 14860, 0, 1, 0, 100, 1, 30000, 45000, 30000, 45000, 1486001, 0, 0, 'Flik - Talk - 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 (1486001, 0, 39, 1486001, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 'Flik - 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 (1486001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10148, 10147, 10145, 10146, 0, 0, 0, 0, 0, 'Flik - 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 (1486001, 1, 16, 8353, 2, 0, 0, 14866, 10, 8, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Fliks Frog - Play Sound');
-- Darkmoon Zoo Sounds
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14829;
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 (1482901, 14829, 0, 1, 0, 100, 1, 3000, 40000, 3000, 40000, 1482901, 0, 0, 'Yebb Neblegear - Play Sounds - 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 (1482901, 0, 39, 1482901, 1482902, 1482903, 1482904, 0, 0, 0, 0, 25, 25, 25, 25, 0, 0, 0, 0, 0, 'Yebb Neblegear - 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 (1482901, 0, 16, 8354, 2, 0, 0, 14864, 100, 26, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Khaz Modan Ram - Play Sound');
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 (1482902, 0, 16, 8352, 2, 0, 0, 14869, 100, 26, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Pygmy Cockatrice - Play Sound');
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 (1482903, 0, 16, 8356, 2, 0, 0, 14865, 100, 8, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Felinni - Play Sound');
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 (1482904, 0, 16, 8355, 2, 0, 0, 14868, 100, 8, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Hornsley - Play Sound');
-- Silas Darkmoon Waypoints and Scripts
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `wander_distance`, `script_id`) VALUES
(56600, 1, -9530.5, 80.2025, 58.8821, 0.20944, 5000, 0, 1482301),
(56600, 2, -9527.15, 82.1972, 58.8825, 100, 0, 0, 0),
(56600, 3, -9530.15, 87.5633, 58.8818, 100, 0, 0, 0),
(56600, 4, -9534.1, 88.4057, 58.882, 100, 0, 0, 0),
(56600, 5, -9537.35, 90.3927, 58.887, 100, 0, 0, 0),
(56600, 6, -9541.47, 97.2985, 58.9402, 100, 0, 0, 0),
(56600, 7, -9543.33, 100.868, 59.2083, 100, 0, 0, 0),
(56600, 8, -9544.26, 104.777, 59.3098, 100, 0, 0, 0),
(56600, 9, -9544.69, 108.763, 58.9851, 100, 0, 0, 0),
(56600, 10, -9544.88, 112.797, 58.9596, 100, 0, 0, 0),
(56600, 11, -9545.73, 122.049, 59.3392, 100, 50000, 0, 1482302),
(56600, 12, -9548.98, 122.923, 59.1685, 100, 0, 0, 0),
(56600, 13, -9549.59, 119.046, 59.1185, 100, 0, 0, 0),
(56600, 14, -9548.9, 115.057, 59.0088, 100, 0, 0, 0),
(56600, 15, -9547.82, 111.168, 58.8986, 100, 0, 0, 0),
(56600, 16, -9546.38, 107.413, 59.0617, 100, 0, 0, 0),
(56600, 17, -9546.63, 103.384, 59.2445, 100, 0, 0, 0),
(56600, 18, -9547.97, 99.6789, 58.9806, 100, 0, 0, 0),
(56600, 19, -9550.97, 97.2432, 58.8818, 100, 0, 0, 0),
(56600, 20, -9554.95, 97.1711, 58.8825, 100, 0, 0, 0),
(56600, 21, -9558.96, 97.0413, 58.8833, 100, 0, 0, 0),
(56600, 22, -9562.8, 95.7671, 58.8815, 100, 0, 0, 0),
(56600, 23, -9566.04, 93.462, 58.8825, 100, 0, 0, 0),
(56600, 24, -9568.07, 89.9848, 58.8823, 100, 0, 0, 0),
(56600, 25, -9568.67, 86.0765, 58.8821, 100, 0, 0, 0),
(56600, 26, -9567.67, 82.2198, 58.8819, 100, 0, 0, 0),
(56600, 27, -9564.81, 79.4411, 58.8819, 100, 0, 0, 0),
(56600, 28, -9561.18, 77.7701, 58.8822, 100, 0, 0, 0),
(56600, 29, -9557.39, 78.4318, 58.8827, 100, 0, 0, 0),
(56600, 30, -9554.66, 81.3076, 58.8819, 100, 0, 0, 0),
(56600, 31, -9551.66, 83.6935, 59.1167, 100, 0, 0, 0),
(56600, 32, -9543.25, 83.1796, 59.357, 100, 60000, 0, 1482303),
(56600, 33, -9547.21, 83.4137, 59.4403, 100, 0, 0, 0),
(56600, 34, -9551.38, 83.3604, 59.0668, 100, 0, 0, 0),
(56600, 35, -9554.29, 81.6836, 58.8818, 100, 0, 0, 0),
(56600, 36, -9555.42, 78.1126, 58.8827, 100, 0, 0, 0),
(56600, 37, -9554, 74.4676, 58.8833, 100, 0, 0, 0),
(56600, 38, -9550.76, 72.4111, 58.9634, 100, 0, 0, 0),
(56600, 39, -9546.81, 73.0513, 58.8997, 100, 0, 0, 0),
(56600, 40, -9543.22, 74.8442, 58.8855, 100, 0, 0, 0),
(56600, 41, -9540.01, 77.279, 58.899, 100, 0, 0, 0),
(56600, 42, -9536.56, 79.3169, 58.882, 100, 0, 0, 0),
(56600, 43, -9530.92, 80.2141, 58.8823, 100, 0, 0, 0),
(56600, 44, -9530.5, 80.2025, 58.8821, 0.20944, 72000, 0, 0);
INSERT INTO `creature_movement_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 (1482301, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10154, 10155, 10156, 10157, 0, 0, 0, 0, 0, 'Silas Darkmoon - Talk');
INSERT INTO `creature_movement_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 (1482302, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10153, 0, 0, 0, 0, 0, 0, 0, 0, 'Silas Darkmoon - Talk');
INSERT INTO `creature_movement_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 (1482303, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10158, 10160, 10157, 10156, 0, 0, 0, 0, 0, 'Silas Darkmoon - Talk');
INSERT INTO `creature_groups` (`leader_guid`, `member_guid`, `dist`, `angle`, `flags`) VALUES
(56600, 56600, 6, 6.25244, 11),
(56600, 56611, 6, 3.14, 11);
UPDATE `creature_template` SET `ai_name` = '' WHERE `entry` = 14823;
UPDATE `creature` SET `position_x` = -9530.5, `position_y` = 80.2025, `position_z` = 58.8821, `orientation` = 0.20944, `movement_type` = 2 WHERE `guid` = 56600;
DELETE FROM `creature_ai_scripts` WHERE `id` IN (1482321, 1482322);
DELETE FROM `creature_ai_events` WHERE `creature_id`=14823;
-- Darkmoon Carnie Talk OOC
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14849;
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 (1484901, 14849, 510, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1484901, 0, 0, 'Darkmoon Faire Carnie - Talk - OOC (Event 4)');
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 (1484901, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10118, 10119, 10120, 10121, 0, 0, 0, 0, 0, 'Darkmoon Faire Carnie - Talk');
INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES (510, 52, 56680, 56613, 0, 0, 0);
-- Morja Talk OOC
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 (1487102, 14871, 0, 1, 0, 100, 1, 30000, 84000, 30000, 84000, 1487102, 0, 0, 'Morja - Talk - 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 (1487102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10171, 0, 0, 0, 0, 0, 0, 0, 0, 'Morja - Talk');
-- Sylannia Talk OOC
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14844;
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 (1484401, 14844, 0, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1484401, 0, 0, 'Sylannia - Talk - 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 (1484401, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10129, 10130, 10131, 10132, 0, 0, 0, 0, 0, 'Sylannia - Talk');
-- Update Events List for Stamp Thunderhorn
DELETE FROM `creature_ai_scripts` WHERE `id` IN (1484502);
DELETE FROM `creature_ai_events` WHERE `creature_id`=14845;
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 (1484501, 14845, 0, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1484501, 0, 0, 'Stamp Thunderhorn - Random Say OOC');
DELETE FROM `creature_ai_scripts` WHERE `id`=1484501;
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 (1484501, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10133, 10135, 10134, 10136, 0, 0, 0, 0, 0, 'Stamp Thunderhorn - Say Text');
-- Professor Thaddeus Paleo Talk OOC
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14847;
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 (1484701, 14847, 0, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1484701, 0, 0, 'Professor Thaddeus Paleo - Talk - 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 (1484701, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10137, 10138, 10139, 10140, 0, 0, 0, 0, 0, 'Professor Thaddeus Paleo - Talk');
-- Lhara Talk OOC
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14846;
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 (1484601, 14846, 0, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1484601, 0, 0, 'Lhara - Talk - 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 (1484601, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10141, 10142, 10143, 10144, 0, 0, 0, 0, 0, 'Lhara - Talk');
-- Gelvas Grimegate Talk OOC
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14828;
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 (1482801, 14828, 0, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1482801, 0, 0, 'Gelvas Grimegate - Talk - 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 (1482801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10149, 10150, 10151, 10152, 0, 0, 0, 0, 0, 'Gelvas Grimegate - Talk');
-- Sayge Talk OOC
UPDATE `creature_template` SET `ai_name` = 'EventAI' WHERE `entry` = 14822;
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 (1482201, 14822, 0, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1482201, 0, 0, 'Sayge - Talk - 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 (1482201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10125, 10126, 10127, 10128, 0, 0, 0, 0, 0, 'Sayge - Talk');
-- Jubjub Waypoints
UPDATE `creature` SET `position_x` = -9585.66, `position_y` = 79.5061, `position_z` = 60.5998, `movement_type` = 2 WHERE `guid` = 54427;
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `wander_distance`, `script_id`) VALUES
(54427, 1, -9585.66, 79.5061, 60.5998, 100, 0, 0, 0),
(54427, 2, -9584.17, 95.5632, 59.8141, 100, 0, 0, 0),
(54427, 3, -9584, 103.571, 59.856, 100, 0, 0, 0),
(54427, 4, -9584.64, 107.536, 59.6543, 100, 0, 0, 0),
(54427, 5, -9582.43, 114.764, 59.2894, 100, 0, 0, 0),
(54427, 6, -9574, 118.982, 59.6164, 100, 0, 0, 0),
(54427, 7, -9570.69, 112.249, 59.5458, 100, 0, 0, 0),
(54427, 8, -9570.76, 108.283, 59.2705, 100, 0, 0, 0),
(54427, 9, -9568.36, 105.039, 59.071, 100, 0, 0, 0),
(54427, 10, -9567.95, 101.312, 58.882, 100, 0, 0, 0),
(54427, 11, -9570.35, 98.4068, 58.8816, 100, 0, 0, 0),
(54427, 12, -9578.01, 99.1436, 59.1952, 100, 0, 0, 0),
(54427, 13, -9582.01, 98.9142, 59.6212, 100, 0, 0, 0),
(54427, 14, -9589.96, 98.3539, 60.5856, 100, 0, 0, 0),
(54427, 15, -9594.79, 95.4556, 60.9452, 100, 60000, 4, 0),
(54427, 16, -9601.24, 94.1501, 59.979, 100, 0, 0, 0),
(54427, 17, -9609.27, 85.1976, 60.6269, 100, 0, 0, 0),
(54427, 18, -9615.09, 79.7946, 61.4041, 100, 0, 0, 0),
(54427, 19, -9620.68, 74.492, 62.5296, 100, 0, 0, 0),
(54427, 20, -9622.75, 59.0094, 60.4357, 100, 60000, 4, 0),
(54427, 21, -9599.96, 60.5064, 60.739, 100, 0, 0, 0),
(54427, 22, -9589.01, 65.5766, 61.9161, 100, 0, 0, 0);
-- Update Darkmoon Vendors
UPDATE `npc_vendor` SET `maxcount` = 2 WHERE `entry` = 14847 AND `item` = 954;
UPDATE `npc_vendor` SET `maxcount` = 2 WHERE `entry` = 14847 AND `item` = 1711;
UPDATE `npc_vendor` SET `maxcount` = 2 WHERE `entry` = 14847 AND `item` = 2289;
UPDATE `npc_vendor` SET `maxcount` = 4 WHERE `entry` = 14847 AND `item` = 3385;
UPDATE `npc_vendor` SET `maxcount` = 4 WHERE `entry` = 14847 AND `item` = 858;
UPDATE `npc_vendor` SET `maxcount` = 2 WHERE `entry` = 14847 AND `item` = 4421;
UPDATE `npc_vendor` SET `maxcount` = 2 WHERE `entry` = 14847 AND `item` = 4424;
UPDATE `npc_vendor` SET `maxcount` = 2 WHERE `entry` = 14847 AND `item` = 13443;
UPDATE `npc_vendor` SET `maxcount` = 2 WHERE `entry` = 14847 AND `item` = 1477;
DELETE FROM `npc_vendor` WHERE `entry` = 14846 AND `item` = 13456;
-- ------------------------------------
-- Building Darkmoon ELWYNN - Event 23
-- Add Some Missing Gobjects
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES
(2517, 180005, 0, -9590.03, 57.8195, 63.2871, 4.38078, 0, 0, -0.814116, 0.580703, 180, 180, 100, 1, 0, 0, 4, 10),
(2603, 180045, 0, -9588.16, 41.7611, 59.8424, 4.88692, 0, 0, -0.642787, 0.766045, 180, 180, 100, 1, 0, 0, 4, 10);
INSERT INTO `game_event_gameobject` (`guid`, `event`) VALUES
(2517, 23),
(2603, 23);
-- Fix Incorrect Entries
DELETE FROM `creature_addon` WHERE `guid` IN (27660, 8971, 8969, 44187, 38004) AND `patch` = 0;
UPDATE `creature_addon` SET `emote_state` = 234 WHERE `guid` IN (27660, 8971, 8969, 44187, 38004) AND `patch`=4;
UPDATE `creature_addon` SET `emote_state` = 0, `equipment_id` = 0 WHERE `guid` IN (46801, 42598, 12604);
INSERT INTO `creature_addon` (`guid`, `patch`, `display_id`, `mount_display_id`, `equipment_id`, `stand_state`, `sheath_state`, `emote_state`) VALUES
(12604, 4, 0, 0, 0, 0, 0, 0),
(42598, 4, 0, 0, 0, 0, 0, 0);
-- Remove Uneeded Creature
DELETE FROM `creature` WHERE `guid` = 42601;
DELETE FROM `creature_addon` WHERE `guid` = 42601;
-- Darkmoon Faire Carnie Waypoints And Scripts
UPDATE `creature` SET `movement_type` = 2 WHERE `guid` IN (46801, 42598, 12604);
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `script_id`) VALUES
(46801, 1, -9546.88, 127.129, 59.1315, 1.09956, 10000, 1484901),
(46801, 2, -9546.88, 127.129, 59.1315, 100, 2000, 1484902),
(46801, 3, -9546.45, 123.157, 59.3754, 100, 0, 0),
(46801, 4, -9546.12, 119.141, 59.4096, 100, 0, 0),
(46801, 5, -9544.63, 111.26, 59.1377, 100, 0, 0),
(46801, 6, -9543.83, 107.331, 59.1907, 100, 0, 0),
(46801, 7, -9542.42, 103.546, 59.2837, 100, 0, 0),
(46801, 8, -9535.18, 99.2403, 59.0065, 0.593412, 10000, 1484903),
(46801, 9, -9535.18, 99.2403, 59.0065, 100, 2000, 1484904),
(46801, 10, -9538.4, 101.454, 59.0065, 100, 0, 0),
(46801, 11, -9542.46, 108.085, 59.0961, 100, 0, 0),
(46801, 12, -9545.2, 115.717, 59.2422, 100, 0, 0),
(46801, 13, -9547.06, 125.859, 59.2559, 100, 0, 0);
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `script_id`) VALUES
(42598, 1, -9554.06, 89.1628, 59.0065, 2.44346, 12000, 1484901),
(42598, 2, -9554.06, 89.1628, 59.0065, 100, 2000, 1484902),
(42598, 3, -9550.75, 86.7618, 59.2564, 100, 0, 0),
(42598, 4, -9547.53, 84.4004, 59.4745, 100, 0, 0),
(42598, 5, -9544.45, 81.7795, 59.3819, 100, 0, 0),
(42598, 6, -9539.4, 75.5277, 59.0065, 100, 0, 0),
(42598, 7, -9536.15, 67.2438, 59.0065, 100, 10000, 1484903),
(42598, 8, -9536.15, 67.2438, 59.0065, 100, 2000, 1484904),
(42598, 9, -9538.14, 70.6069, 59.0065, 100, 0, 0),
(42598, 10, -9540.93, 73.5188, 59.0065, 100, 0, 0),
(42598, 11, -9543.65, 76.5191, 59.0065, 100, 0, 0),
(42598, 12, -9546.4, 79.5484, 59.2418, 100, 0, 0),
(42598, 13, -9548.81, 82.6701, 59.2518, 100, 0, 0),
(42598, 14, -9553.58, 88.6667, 59.0065, 100, 0, 0);
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `script_id`) VALUES
(12604, 1, -9582.17, 59.1424, 61.714, 3.35103, 12000, 1484901),
(12604, 2, -9582.17, 59.1424, 61.714, 100, 2000, 1484902),
(12604, 3, -9578.41, 60.2842, 61.2846, 100, 0, 0),
(12604, 4, -9574.79, 62.0006, 60.9357, 100, 0, 0),
(12604, 5, -9571.42, 64.165, 60.6065, 100, 0, 0),
(12604, 6, -9568.05, 66.3986, 60.2327, 100, 0, 0),
(12604, 7, -9561.75, 71.9971, 59.0065, 1.13446, 10000, 1484903),
(12604, 8, -9561.75, 71.9971, 59.0065, 100, 2000, 1484904),
(12604, 9, -9564.05, 68.9382, 59.6637, 100, 0, 0),
(12604, 10, -9567.12, 66.3971, 60.139, 100, 0, 0),
(12604, 11, -9570.39, 64.0827, 60.6654, 100, 0, 0),
(12604, 12, -9573.95, 62.0258, 61.0851, 100, 0, 0),
(12604, 13, -9580.59, 59.3138, 61.5253, 100, 0, 0);
INSERT INTO `creature_movement_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 (1484901, 2, 1, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Darkmoon Faire Carnie - Emote');
INSERT INTO `creature_movement_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 (1484902, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Darkmoon Faire Carnie - Emote');
INSERT INTO `creature_movement_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 (1484903, 2, 28, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Darkmoon Faire Carnie - Set Stand State');
INSERT INTO `creature_movement_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 (1484904, 0, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Darkmoon Faire Carnie - Set Stand State');
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 (1484902, 14849, 511, 1, 0, 100, 1, 45000, 72000, 45000, 72000, 1484902, 0, 0, 'Darkmoon Faire Carnie - Talk - OOC (Event 23)');
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 (1484902, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10058, 10059, 10060, 10061, 0, 0, 0, 0, 0, 'Darkmoon Faire Carnie - Talk');
INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES (511, 52, 46801, 42598, 8969, 12604, 0);
-- ---------------------------------
-- Darkmoon Faire MULGORE - Event 5
-- Respawn Darkmoon Faire Mulgore
DELETE FROM `gameobject` WHERE `guid` IN (SELECT `guid` FROM `game_event_gameobject` WHERE `event` = 5);
DELETE FROM `game_event_gameobject` WHERE `event` = 5;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES
(1887, 179965, 1, -1463.66, 168.587, -7.74115, 5.3058, 0, 0, -0.469471, 0.882948, 25, 25, 100, 1, 0, 0, 4, 10),
(1888, 179965, 1, -1493.46, 223.94, -6.37694, 2.35619, 0, 0, 0.92388, 0.382683, 25, 25, 100, 1, 0, 0, 4, 10),
(1889, 179965, 1, -1626.45, 83.5604, -17.9482, 4.67748, 0, 0, -0.719339, 0.694659, 25, 25, 100, 1, 0, 0, 4, 10),
(1890, 179965, 1, -1542.88, 146.446, -7.63423, 2.37364, 0, 0, 0.927183, 0.374608, 25, 25, 100, 1, 0, 0, 4, 10),
(1891, 179965, 1, -1638.01, 116.67, -17.8915, 5.53269, 0, 0, -0.366501, 0.930418, 25, 25, 100, 1, 0, 0, 4, 10),
(1892, 179965, 1, -1444.97, 214.817, -7.75072, 0.314158, 0, 0, 0.156434, 0.987688, 25, 25, 100, 1, 0, 0, 4, 10),
(1893, 179965, 1, -1618.76, 86.8443, -17.9482, 5.8294, 0, 0, -0.224951, 0.97437, 25, 25, 100, 1, 0, 0, 4, 10),
(1894, 179965, 1, -1597.15, 98.9452, -11.7619, 5.0091, 0, 0, -0.594823, 0.803857, 25, 25, 100, 1, 0, 0, 4, 10),
(1914, 179965, 1, -1569.27, 180.066, -7.79281, 4.83456, 0, 0, -0.66262, 0.748956, 25, 25, 100, 1, 0, 0, 4, 10),
(1941, 179965, 1, -1570.37, 117.33, -7.31907, 3.927, 0, 0, -0.923879, 0.382686, 25, 25, 100, 1, 0, 0, 4, 10),
(1942, 179965, 1, -1582.29, 100.923, -9.76285, 4.97419, 0, 0, -0.608761, 0.793354, 25, 25, 100, 1, 0, 0, 4, 10),
(1952, 179965, 1, -1589.51, 157.261, -7.38576, 6.0912, 0, 0, -0.0958452, 0.995396, 25, 25, 100, 1, 0, 0, 4, 10),
(1953, 179965, 1, -1585.37, 130.152, -7.71433, 4.13643, 0, 0, -0.878817, 0.47716, 25, 25, 100, 1, 0, 0, 4, 10),
(1962, 179965, 1, -1641.02, 103.728, -17.9482, 3.80482, 0, 0, -0.945518, 0.325568, 25, 25, 100, 1, 0, 0, 4, 10),
(1984, 179965, 1, -1557.56, 131.686, -7.66756, 2.16421, 0, 0, 0.882947, 0.469473, 25, 25, 100, 1, 0, 0, 4, 10),
(1987, 179965, 1, -1629.68, 122.147, -17.9482, 4.95674, 0, 0, -0.615661, 0.788011, 25, 25, 100, 1, 0, 0, 4, 10),
(1990, 179965, 1, -1585.38, 144.955, -7.08751, 0.541051, 0, 0, 0.267238, 0.963631, 25, 25, 100, 1, 0, 0, 4, 10),
(2663, 179965, 1, -1583.45, 173.256, -7.77461, 5.67232, 0, 0, -0.300705, 0.953717, 25, 25, 100, 1, 0, 0, 4, 10),
(2742, 179967, 1, -1589.26, 158.846, -6.06369, 2.26892, 0, 0, 0.906307, 0.422619, 25, 25, 100, 1, 0, 0, 4, 10),
(2848, 179968, 1, -1620.99, 91.4848, -17.9482, 2.25147, 0, 0, 0.902585, 0.430512, 25, 25, 100, 1, 0, 0, 4, 10),
(3080, 179968, 1, -1640.82, 111.89, -17.829, 4.36332, 0, 0, -0.819152, 0.573577, 25, 25, 100, 1, 0, 0, 4, 10),
(3098, 179968, 1, -1641.28, 111.151, -17.8344, 4.31097, 0, 0, -0.833885, 0.551938, 25, 25, 100, 1, 0, 0, 4, 10),
(4253, 179968, 1, -1620.56, 92.5976, -17.9482, 4.5204, 0, 0, -0.771625, 0.636078, 25, 25, 100, 1, 0, 0, 4, 10),
(4262, 179968, 1, -1621.97, 93.1843, -17.9482, 3.52557, 0, 0, -0.981627, 0.190812, 25, 25, 100, 1, 0, 0, 4, 10),
(4266, 179968, 1, -1620.7, 91.9718, -17.2468, 4.46804, 0, 0, -0.788011, 0.615662, 25, 25, 100, 1, 0, 0, 4, 10),
(4272, 179968, 1, -1643.09, 107.186, -17.8132, 2.94959, 0, 0, 0.995396, 0.0958512, 25, 25, 100, 1, 0, 0, 4, 10),
(4276, 179968, 1, -1644.21, 107.8, -17.6472, 5.51524, 0, 0, -0.374606, 0.927184, 25, 25, 100, 1, 0, 0, 4, 10),
(4284, 179970, 1, -1586.23, 158.343, -7.55074, 5.61996, 0, 0, -0.325567, 0.945519, 25, 25, 100, 1, 0, 0, 4, 10),
(4287, 179972, 1, -1589.35, 158.874, -7.29741, 6.05629, 0, 0, -0.113203, 0.993572, 25, 25, 100, 1, 0, 0, 4, 10),
(4293, 179973, 1, -1587.57, 158.483, -7.47622, 0.261798, 0, 0, 0.130526, 0.991445, 25, 25, 100, 1, 0, 0, 4, 10),
(4304, 179975, 1, -1619.54, 88.3874, -17.9482, 5.51524, 0, 0, -0.374606, 0.927184, 25, 25, 100, 1, 0, 0, 4, 10),
(4308, 179975, 1, -1642.24, 109.447, -17.814, 1.27409, 0, 0, 0.594822, 0.803857, 25, 25, 100, 1, 0, 0, 4, 10),
(4314, 179975, 1, -1632.46, 87.7715, -17.9482, 0.872664, 0, 0, 0.422618, 0.906308, 25, 25, 100, 1, 0, 0, 4, 10),
(4315, 180006, 1, -1540.2, 177.826, -7.71471, 4.36332, 0, 0, -0.819152, 0.573577, 25, 25, 100, 1, 0, 0, 4, 10),
(4320, 180006, 1, -1537.3, 175.969, -7.79568, 3.927, 0, 0, -0.923879, 0.382686, 25, 25, 100, 1, 0, 0, 4, 10),
(4323, 180029, 1, -1579.96, 128.611, -8.39024, 3.94445, 0, 0, -0.920505, 0.390732, 25, 25, 100, 1, 0, 0, 4, 10),
(4331, 180030, 1, -1591.42, 148.482, -6.80159, 3.08918, 0, 0, 0.999657, 0.0262017, 25, 25, 100, 1, 0, 0, 4, 10),
(4332, 180031, 1, -1589.9, 164.882, -6.09896, 3.22886, 0, 0, -0.999048, 0.0436193, 25, 25, 100, 1, 0, 0, 4, 10),
(4343, 180032, 1, -1577.94, 178.548, -6.16086, 3.00195, 0, 0, 0.997563, 0.0697661, 25, 25, 100, 1, 0, 0, 4, 10),
(4349, 180034, 1, -1562.36, 126.505, -6.93775, 3.4383, 0, 0, -0.989016, 0.147811, 25, 25, 100, 1, 0, 0, 4, 10),
(4366, 180035, 1, -1499.77, 215.576, -5.28436, 0.95993, 0, 0, 0.461748, 0.887011, 25, 25, 100, 1, 0, 0, 4, 10),
(4367, 180035, 1, -1523.17, 157.026, -6.46509, 1.29154, 0, 0, 0.601814, 0.798636, 25, 25, 100, 1, 0, 0, 4, 10),
(4396, 180035, 1, -1533.2, 177.577, -6.35772, 2.56563, 0, 0, 0.958819, 0.284016, 25, 25, 100, 1, 0, 0, 4, 10),
(4402, 180035, 1, -1491, 163.892, -6.47991, 0.087266, 0, 0, 0.0436192, 0.999048, 25, 25, 100, 1, 0, 0, 4, 10),
(4403, 180035, 1, -1455.82, 174.335, -6.42332, 4.01426, 0, 0, -0.906307, 0.422619, 25, 25, 100, 1, 0, 0, 4, 10),
(4404, 180035, 1, -1509.04, 162.974, -6.50808, 3.17653, 0, 0, -0.999847, 0.0174693, 25, 25, 100, 1, 0, 0, 4, 10),
(4411, 180035, 1, -1485.8, 231.144, -5.23386, 0.645772, 0, 0, 0.317305, 0.948324, 25, 25, 100, 1, 0, 0, 4, 10),
(4424, 180035, 1, -1520.27, 180.444, -6.37104, 0.785397, 0, 0, 0.382683, 0.92388, 25, 25, 100, 1, 0, 0, 4, 10),
(4436, 180035, 1, -1446.11, 189.278, -6.07021, 4.34587, 0, 0, -0.824126, 0.566406, 25, 25, 100, 1, 0, 0, 4, 10),
(4441, 180035, 1, -1472.88, 165.705, -6.40648, 0.174532, 0, 0, 0.0871553, 0.996195, 25, 25, 100, 1, 0, 0, 4, 10),
(4462, 180035, 1, -1509.95, 196.915, -6.35189, 1.16937, 0, 0, 0.551936, 0.833886, 25, 25, 100, 1, 0, 0, 4, 10),
(4468, 180035, 1, -1562.99, 118.878, -5.58171, 3.50812, 0, 0, -0.983254, 0.182238, 25, 25, 100, 1, 0, 0, 4, 10),
(4470, 180035, 1, -1550.32, 186.783, -5.6364, 5.88176, 0, 0, -0.199367, 0.979925, 25, 25, 100, 1, 0, 0, 4, 10),
(4478, 180035, 1, -1466.38, 232.971, -6.379, 6.05629, 0, 0, -0.113203, 0.993572, 25, 25, 100, 1, 0, 0, 4, 10),
(4486, 180035, 1, -1644.41, 112.697, -15.9167, 4.11898, 0, 0, -0.882947, 0.469473, 25, 25, 100, 1, 0, 0, 4, 10),
(4490, 180035, 1, -1627.11, 80.4398, -16.5246, 3.194, 0, 0, -0.999657, 0.0262017, 25, 25, 100, 1, 0, 0, 4, 10),
(4506, 180035, 1, -1549.97, 128.283, -5.17754, 0.820303, 0, 0, 0.398748, 0.91706, 25, 25, 100, 1, 0, 0, 4, 10),
(4522, 180035, 1, -1625.42, 127.502, -16.6218, 0.0698117, 0, 0, 0.0348988, 0.999391, 25, 25, 100, 1, 0, 0, 4, 10),
(4524, 180035, 1, -1444.14, 206.059, -6.20799, 4.83456, 0, 0, -0.66262, 0.748956, 25, 25, 100, 1, 0, 0, 4, 10),
(4525, 180035, 1, -1618.09, 100.54, -16.8996, 5.25344, 0, 0, -0.492423, 0.870356, 25, 25, 100, 1, 0, 0, 4, 10),
(4526, 180035, 1, -1617.05, 87.5164, -16.6288, 4.32842, 0, 0, -0.829037, 0.559194, 25, 25, 100, 1, 0, 0, 4, 10),
(4527, 180035, 1, -1571.76, 190.177, -5.01597, 3.22886, 0, 0, -0.999048, 0.0436193, 25, 25, 100, 1, 0, 0, 4, 10),
(4596, 180035, 1, -1590.29, 179.87, -4.56496, 0.872664, 0, 0, 0.422618, 0.906308, 25, 25, 100, 1, 0, 0, 4, 10),
(4598, 180035, 1, -1597.86, 162.76, -5.15392, 1.62316, 0, 0, 0.725374, 0.688355, 25, 25, 100, 1, 0, 0, 4, 10),
(4599, 180035, 1, -1449.43, 222.314, -6.39593, 5.41052, 0, 0, -0.422618, 0.906308, 25, 25, 100, 1, 0, 0, 4, 10),
(4600, 180035, 1, -1535.44, 141.637, -5.47643, 3.83973, 0, 0, -0.939692, 0.342021, 25, 25, 100, 1, 0, 0, 4, 10),
(4623, 180035, 1, -1636.69, 88.1883, -16.4335, 5.02655, 0, 0, -0.587785, 0.809017, 25, 25, 100, 1, 0, 0, 4, 10),
(4646, 180035, 1, -1642.39, 101.08, -16.4149, 2.30383, 0, 0, 0.913545, 0.406738, 25, 25, 100, 1, 0, 0, 4, 10),
(4661, 180036, 1, -1496.32, 203.404, -5.43046, 1.01229, 0, 0, 0.484809, 0.87462, 25, 25, 100, 1, 0, 0, 4, 10),
(4664, 180036, 1, -1464.7, 221.26, -5.25808, 5.95157, 0, 0, -0.165047, 0.986286, 25, 25, 100, 1, 0, 0, 4, 10),
(5521, 180036, 1, -1487.55, 172.398, -5.43864, 0.122173, 0, 0, 0.0610485, 0.998135, 25, 25, 100, 1, 0, 0, 4, 10),
(5523, 180036, 1, -1455.32, 191.743, -5.4501, 1.11701, 0, 0, 0.529919, 0.848048, 25, 25, 100, 1, 0, 0, 4, 10),
(5526, 180037, 1, -1626.32, 122.444, -17.6143, 3.03684, 0, 0, 0.998629, 0.0523532, 25, 25, 100, 1, 0, 0, 4, 10),
(5527, 180037, 1, -1621.6, 84.8822, -17.608, 0.383971, 0, 0, 0.190808, 0.981627, 25, 25, 100, 1, 0, 0, 4, 10),
(5528, 180038, 1, -1637.57, 99.8562, -17.9482, 0.296705, 0, 0, 0.147809, 0.989016, 25, 25, 100, 1, 0, 0, 4, 10),
(5533, 180038, 1, -1637.48, 114.358, -17.608, 4.93928, 0, 0, -0.622514, 0.782609, 25, 25, 100, 1, 0, 0, 4, 10),
(5534, 180038, 1, -1629.65, 84.6767, -17.608, 3.31614, 0, 0, -0.996194, 0.087165, 25, 25, 100, 1, 0, 0, 4, 10),
(5535, 180039, 1, -1636.01, 120.007, -17.4274, 3.17653, 0, 0, -0.999847, 0.0174693, 25, 25, 100, 1, 0, 0, 4, 10),
(5536, 180040, 1, -1617.41, 107.094, -17.9482, 1.0472, 0, 0, 0.5, 0.866025, 25, 25, 100, 1, 0, 0, 4, 10),
(5541, 180040, 1, -1634.01, 92.4223, -17.9482, 5.18363, 0, 0, -0.522498, 0.852641, 25, 25, 100, 1, 0, 0, 4, 10),
(5542, 180040, 1, -1622.79, 99.1203, -17.9482, 1.91986, 0, 0, 0.819152, 0.573577, 25, 25, 100, 1, 0, 0, 4, 10),
(5546, 180041, 1, -1623.49, 103.253, -17.9482, 0.314158, 0, 0, 0.156434, 0.987688, 25, 25, 100, 1, 0, 0, 4, 10),
(5548, 180042, 1, -1552.2, 140.262, -7.78816, 3.00195, 0, 0, 0.997563, 0.0697661, 25, 25, 100, 1, 0, 0, 4, 10),
(5550, 180043, 1, -1539.42, 175.948, -7.74087, 5.5676, 0, 0, -0.350207, 0.936672, 25, 25, 100, 1, 0, 0, 4, 10),
(5558, 180043, 1, -1585, 148.296, -7.4022, 5.0091, 0, 0, -0.594823, 0.803857, 25, 25, 100, 1, 0, 0, 4, 10),
(5565, 180043, 1, -1581.15, 171.485, -7.79281, 0.85521, 0, 0, 0.414693, 0.909962, 25, 25, 100, 1, 0, 0, 4, 10),
(5573, 180043, 1, -1548.43, 147.636, -7.78623, 4.64258, 0, 0, -0.731354, 0.681998, 25, 25, 100, 1, 0, 0, 4, 10),
(5574, 180043, 1, -1568.99, 128.849, -7.8061, 5.46288, 0, 0, -0.398748, 0.91706, 25, 25, 100, 1, 0, 0, 4, 10),
(5575, 180043, 1, -1570.36, 178.35, -7.79281, 3.38594, 0, 0, -0.992546, 0.12187, 25, 25, 100, 1, 0, 0, 4, 10),
(5576, 180043, 1, -1567.97, 156.141, -7.79281, 4.04917, 0, 0, -0.898793, 0.438373, 25, 25, 100, 1, 0, 0, 4, 10),
(5577, 180043, 1, -1587.49, 155.283, -7.65067, 2.72271, 0, 0, 0.978148, 0.207912, 25, 25, 100, 1, 0, 0, 4, 10),
(5578, 180043, 1, -1561.08, 133.646, -7.79281, 2.56563, 0, 0, 0.958819, 0.284016, 25, 25, 100, 1, 0, 0, 4, 10),
(5587, 180043, 1, -1595.11, 122.629, -12.663, 4.29351, 0, 0, -0.83867, 0.54464, 25, 25, 100, 1, 0, 0, 4, 10),
(5595, 180043, 1, -1611.67, 125.546, -16.6683, 5.09636, 0, 0, -0.559193, 0.829038, 25, 25, 100, 1, 0, 0, 4, 10),
(5598, 180043, 1, -1630.45, 120.031, -17.9482, 2.05949, 0, 0, 0.857167, 0.515038, 25, 25, 100, 1, 0, 0, 4, 10),
(5615, 180043, 1, -1621.26, 96.0627, -17.9482, 3.15906, 0, 0, -0.999962, 0.00873464, 25, 25, 100, 1, 0, 0, 4, 10),
(5628, 180043, 1, -1635.22, 95.9483, -17.9482, 3.3685, 0, 0, -0.993571, 0.113208, 25, 25, 100, 1, 0, 0, 4, 10),
(5630, 180044, 1, -1562.33, 158.394, -8.70947, 3.22886, 0, 0, -0.999048, 0.0436193, 25, 25, 100, 1, 0, 0, 4, 10),
(5636, 180045, 1, -1475, 206.091, -7.7928, 3.07177, 0, 0, 0.999391, 0.0349061, 25, 25, 100, 1, 0, 0, 4, 10),
(5639, 180045, 1, -1468.2, 195.75, -7.7928, 1.13446, 0, 0, 0.537299, 0.843392, 25, 25, 100, 1, 0, 0, 4, 10),
(5647, 180045, 1, -1480.69, 194.74, -7.7928, 5.28835, 0, 0, -0.477158, 0.878817, 25, 25, 100, 1, 0, 0, 4, 10),
(5650, 180046, 1, -1475.91, 201.198, -7.7928, 4.95674, 0, 0, -0.615661, 0.788011, 25, 25, 100, 1, 0, 0, 4, 10),
(5653, 180046, 1, -1477.01, 197.78, -7.7928, 0.436332, 0, 0, 0.216439, 0.976296, 25, 25, 100, 1, 0, 0, 4, 10),
(5660, 180046, 1, -1472.15, 197.684, -7.7928, 2.72271, 0, 0, 0.978148, 0.207912, 25, 25, 100, 1, 0, 0, 4, 10),
(5661, 180046, 1, -1474.17, 201.193, -7.7928, 4.5204, 0, 0, -0.771625, 0.636078, 25, 25, 100, 1, 0, 0, 4, 10),
(5665, 180047, 1, -1475.06, 201.665, -7.7928, 4.57276, 0, 0, -0.754709, 0.656059, 25, 25, 100, 1, 0, 0, 4, 10),
(5666, 180047, 1, -1476.57, 196.844, -7.7928, 0.663223, 0, 0, 0.325567, 0.945519, 25, 25, 100, 1, 0, 0, 4, 10),
(5679, 180047, 1, -1472.44, 196.713, -7.7928, 2.72271, 0, 0, 0.978148, 0.207912, 25, 25, 100, 1, 0, 0, 4, 10),
(5680, 180048, 1, -1472.38, 196.724, -7.2928, 2.60053, 0, 0, 0.96363, 0.267241, 25, 25, 100, 1, 0, 0, 4, 10),
(5681, 180048, 1, -1474.98, 201.706, -7.28586, 0.663223, 0, 0, 0.325567, 0.945519, 25, 25, 100, 1, 0, 0, 4, 10),
(5682, 180049, 1, -1475.23, 201.589, -7.27891, 5.34071, 0, 0, -0.45399, 0.891007, 25, 25, 100, 1, 0, 0, 4, 10),
(5683, 180049, 1, -1476.65, 196.779, -7.28586, 3.7001, 0, 0, -0.961261, 0.27564, 25, 25, 100, 1, 0, 0, 4, 10),
(5684, 180053, 1, -1474.75, 198.769, -7.9178, 1.22173, 0, 0, 0.573576, 0.819152, 25, 25, 100, 1, 0, 0, 4, 10),
(5685, 180335, 1, -1563.93, 157.087, -7.79281, 0.0523589, 0, 0, 0.0261765, 0.999657, 25, 25, 100, 1, 0, 0, 4, 10),
(5691, 180524, 1, -1487.81, 208.935, -7.7921, 5.61996, 0, 0, -0.325567, 0.945519, 25, 25, 100, 1, 0, 0, 4, 10),
(5695, 180524, 1, -1507.46, 166.615, -7.7928, 2.84488, 0, 0, 0.989016, 0.147811, 25, 25, 100, 1, 0, 0, 4, 10),
(5698, 180524, 1, -1512.17, 186.926, -7.79281, 5.72468, 0, 0, -0.275637, 0.961262, 25, 25, 100, 1, 0, 0, 4, 10),
(5708, 180524, 1, -1455.81, 201.538, -7.79017, 2.84488, 0, 0, 0.989016, 0.147811, 25, 25, 100, 1, 0, 0, 4, 10),
(5709, 180524, 1, -1479.69, 178.979, -7.79281, 1.67551, 0, 0, 0.743144, 0.669132, 25, 25, 100, 1, 0, 0, 4, 10),
(5710, 180524, 1, -1458.39, 214.372, -7.7928, 4.45059, 0, 0, -0.793353, 0.608762, 25, 25, 100, 1, 0, 0, 4, 10),
(5711, 180524, 1, -1532.77, 173.65, -7.79281, 4.34587, 0, 0, -0.824126, 0.566406, 25, 25, 100, 1, 0, 0, 4, 10),
(5712, 180524, 1, -1523.32, 160.961, -7.7928, 3.24635, 0, 0, -0.998629, 0.0523532, 25, 25, 100, 1, 0, 0, 4, 10),
(5721, 180524, 1, -1477.19, 221.633, -7.74677, 4.62512, 0, 0, -0.737277, 0.675591, 25, 25, 100, 1, 0, 0, 4, 10),
(5730, 180524, 1, -1538.86, 146.234, -7.42401, 2.07694, 0, 0, 0.861628, 0.507539, 25, 25, 100, 1, 0, 0, 4, 10),
(5746, 180524, 1, -1560.91, 185.999, -7.64103, 4.92183, 0, 0, -0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(5747, 180524, 1, -1572.92, 117.885, -7.75146, 1.79769, 0, 0, 0.782608, 0.622515, 25, 25, 100, 1, 0, 0, 4, 10),
(5748, 180524, 1, -1616.08, 127.713, -17.5719, 5.39307, 0, 0, -0.43051, 0.902586, 25, 25, 100, 1, 0, 0, 4, 10),
(5749, 180524, 1, -1584.36, 138.344, -6.63693, 0.0698117, 0, 0, 0.0348988, 0.999391, 25, 25, 100, 1, 0, 0, 4, 10),
(5751, 180524, 1, -1613.56, 106.56, -17.7213, 1.36136, 0, 0, 0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(5754, 180525, 1, -1640.44, 105.304, -17.9482, 0.244346, 0, 0, 0.121869, 0.992546, 25, 25, 100, 1, 0, 0, 4, 10),
(5755, 180525, 1, -1584.36, 138.344, -6.63693, 0.0698117, 0, 0, 0.0348988, 0.999391, 25, 25, 100, 1, 0, 0, 4, 10),
(5756, 180525, 1, -1616.08, 127.713, -17.5719, 5.39307, 0, 0, -0.43051, 0.902586, 25, 25, 100, 1, 0, 0, 4, 10),
(5757, 180524, 1, -1640.44, 105.304, -17.9482, 0.244346, 0, 0, 0.121869, 0.992546, 25, 25, 100, 1, 0, 0, 4, 10),
(5758, 180525, 1, -1523.32, 160.961, -7.7928, 3.24635, 0, 0, -0.998629, 0.0523532, 25, 25, 100, 1, 0, 0, 4, 10),
(5760, 180525, 1, -1560.91, 185.999, -7.64103, 4.92183, 0, 0, -0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(5762, 180525, 1, -1507.46, 166.615, -7.7928, 2.84488, 0, 0, 0.989016, 0.147811, 25, 25, 100, 1, 0, 0, 4, 10),
(5763, 180525, 1, -1613.56, 106.56, -17.7213, 1.36136, 0, 0, 0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(5764, 180525, 1, -1532.77, 173.65, -7.79281, 4.34587, 0, 0, -0.824126, 0.566406, 25, 25, 100, 1, 0, 0, 4, 10),
(6982, 180525, 1, -1572.92, 117.885, -7.75146, 1.79769, 0, 0, 0.782608, 0.622515, 25, 25, 100, 1, 0, 0, 4, 10),
(7633, 180525, 1, -1538.86, 146.234, -7.42401, 2.07694, 0, 0, 0.861628, 0.507539, 25, 25, 100, 1, 0, 0, 4, 10),
(7671, 180525, 1, -1512.17, 186.926, -7.79281, 5.72468, 0, 0, -0.275637, 0.961262, 25, 25, 100, 1, 0, 0, 4, 10),
(7674, 180525, 1, -1455.81, 201.538, -7.79017, 2.84488, 0, 0, 0.989016, 0.147811, 25, 25, 100, 1, 0, 0, 4, 10),
(7675, 180525, 1, -1487.81, 208.935, -7.7921, 5.61996, 0, 0, -0.325567, 0.945519, 25, 25, 100, 1, 0, 0, 4, 10),
(7682, 180525, 1, -1477.19, 221.633, -7.74677, 4.62512, 0, 0, -0.737277, 0.675591, 25, 25, 100, 1, 0, 0, 4, 10),
(7683, 180525, 1, -1479.69, 178.979, -7.79281, 1.67551, 0, 0, 0.743144, 0.669132, 25, 25, 100, 1, 0, 0, 4, 10),
(7684, 180525, 1, -1458.39, 214.372, -7.7928, 4.45059, 0, 0, -0.793353, 0.608762, 25, 25, 100, 1, 0, 0, 4, 10),
(7685, 181029, 1, -1474.75, 198.769, -7.9178, 1.22173, 0, 0, 0.573576, 0.819152, 25, 25, 100, 1, 0, 0, 4, 10),
(7696, 179965, 1, -1326.53, 89.4669, 129.82, 0.366518, 0, 0, 0.182235, 0.983255, 25, 25, 100, 1, 0, 0, 4, 10),
(7700, 179965, 1, -1324.48, 83.8873, 129.707, 0.349065, 0, 0, 0.173648, 0.984808, 25, 25, 100, 1, 0, 0, 4, 10),
(7705, 180452, 1, -1324.73, 87.0376, 129.707, 3.50812, 0, 0, -0.983254, 0.182238, 25, 25, 100, 1, 0, 0, 4, 10),
(3995981, 180573, 1, -2423.69, -216.252, -15, 5.53611, 0, 0, 0.364912, -0.931042, 25, 25, 100, 1, 0, 0, 6, 10);
INSERT INTO `game_event_gameobject` (`guid`, `event`) VALUES
(7696, 5),
(7700, 5),
(7705, 5),
(1887, 5),
(1888, 5),
(1889, 5),
(1890, 5),
(1891, 5),
(1892, 5),
(1893, 5),
(1894, 5),
(1914, 5),
(1941, 5),
(1942, 5),
(1952, 5),
(1953, 5),
(1962, 5),
(1984, 5),
(1987, 5),
(1990, 5),
(2663, 5),
(2742, 5),
(2848, 5),
(3080, 5),
(3098, 5),
(4253, 5),
(4262, 5),
(4266, 5),
(4272, 5),
(4276, 5),
(4284, 5),
(4287, 5),
(4293, 5),
(4304, 5),
(4308, 5),
(4314, 5),
(4315, 5),
(4320, 5),
(4323, 5),
(4331, 5),
(4332, 5),
(4343, 5),
(4349, 5),
(4366, 5),
(4367, 5),
(4396, 5),
(4402, 5),
(4403, 5),
(4404, 5),
(4411, 5),
(4424, 5),
(4436, 5),
(4441, 5),
(4462, 5),
(4468, 5),
(4470, 5),
(4478, 5),
(4486, 5),
(4490, 5),
(4506, 5),
(4522, 5),
(4524, 5),
(4525, 5),
(4526, 5),
(4527, 5),
(4596, 5),
(4598, 5),
(4599, 5),
(4600, 5),
(4623, 5),
(4646, 5),
(4661, 5),
(4664, 5),
(5521, 5),
(5523, 5),
(5526, 5),
(5527, 5),
(5528, 5),
(5533, 5),
(5534, 5),
(5535, 5),
(5536, 5),
(5541, 5),
(5542, 5),
(5546, 5),
(5548, 5),
(5550, 5),
(5558, 5),
(5565, 5),
(5573, 5),
(5574, 5),
(5575, 5),
(5576, 5),
(5577, 5),
(5578, 5),
(5587, 5),
(5595, 5),
(5598, 5),
(5615, 5),
(5628, 5),
(5630, 5),
(5636, 5),
(5639, 5),
(5647, 5),
(5650, 5),
(5653, 5),
(5660, 5),
(5661, 5),
(5665, 5),
(5666, 5),
(5679, 5),
(5680, 5),
(5681, 5),
(5682, 5),
(5683, 5),
(5684, 5),
(5685, 5),
(5691, 5),
(5695, 5),
(5698, 5),
(5708, 5),
(5709, 5),
(5710, 5),
(5711, 5),
(5712, 5),
(5721, 5),
(5730, 5),
(5746, 5),
(5747, 5),
(5748, 5),
(5749, 5),
(5751, 5),
(5754, 5),
(5755, 5),
(5756, 5),
(5757, 5),
(5758, 5),
(5760, 5),
(5762, 5),
(5763, 5),
(5764, 5),
(6982, 5),
(7633, 5),
(7671, 5),
(7674, 5),
(7675, 5),
(7682, 5),
(7683, 5),
(7684, 5),
(7685, 5),
(3995981, 5);
-- Update Some Creatures
UPDATE `creature` SET `position_x` = -1319.51, `position_y` = 86.0894, `position_z` = 129.79, `orientation` = 6.14356 WHERE `id` = 15303 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1625.257, `position_y` = 88.9693, `position_z` = -17.9479 WHERE `guid` = 54423;
UPDATE `creature` SET `position_x` = -1586.9, `position_y` = 151.369, `position_z` = -7.49291, `orientation` = 0.488692 WHERE `id` = 14822 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1579.04, `position_y` = 176.145, `position_z` = -7.70948, `orientation` = 5.37561 WHERE `id` = 14847 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1565.04, `position_y` = 131.113, `position_z` = -7.64821, `orientation` = 2.05949 WHERE `id` = 14828 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1550.86, `position_y` = 141.069, `position_z` = -7.68689, `orientation` = 2.25148 WHERE `id` = 14841 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1575.47, `position_y` = 177.926, `position_z` = -7.70948, `orientation` = 4.90438 WHERE `id` = 14846 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1630.16, `position_y` = 119.184, `position_z` = -17.8649, `orientation` = 5.93412 WHERE `id` = 14829 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1637.21, `position_y` = 102.255, `position_z` = -17.8649, `orientation` = 0.785398 WHERE `id` = 14832 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1623.63, `position_y` = 103.792, `position_z` = -17.8649, `orientation` = 1.76278 WHERE `id` = 14865 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1633.75, `position_y` = 92.3871, `position_z` = -17.8649, `orientation` = 0.383972 WHERE `id` = 14868 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1477.94, `position_y` = 190.359, `position_z` = -7.70947, `orientation` = 5.37561 WHERE `id` = 14833 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1479.99, `position_y` = 205.206, `position_z` = -7.70947, `orientation` = 3.28122 WHERE `id` = 14871 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1585.4, `position_y` = 163.72, `position_z` = -7.31547, `orientation` = 6.10865 WHERE `id` = 14844 AND `map` = 1;
UPDATE `creature` SET `position_x` = -1584.82, `position_y` = 167.721, `position_z` = -7.37061, `orientation` = 6.07375 WHERE `id` = 14845 AND `map` = 1;
UPDATE `creature` SET `movement_type` = 1, `wander_distance` = 3 WHERE `guid` IN (54423, 54431, 54430, 54422);
INSERT INTO `creature` (`guid`, `id`, `id2`, `id3`, `id4`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `wander_distance`, `health_percent`, `mana_percent`, `movement_type`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES
(727, 14869, 0, 0, 0, 1, -1625.45, 109.86, -17.8232, 1.58793, 630, 630, 3, 100, 0, 1, 0, 0, 4, 10),
(567, 14869, 0, 0, 0, 1, -1637.45, 109.088, -17.8232, 2.19481, 630, 630, 3, 100, 0, 1, 0, 0, 4, 10),
(684, 14849, 0, 0, 0, 1, -1611.23, 114.531, -17.5299, 0.573501, 270, 270, 0, 100, 0, 2, 0, 0, 4, 10),
(726, 10445, 0, 0, 0, 1, -1562.91, 152.304, -7.70948, 4.03171, 180, 180, 0, 100, 0, 0, 0, 0, 4, 10),
(720, 14849, 0, 0, 0, 1, -1527.93, 171.559, -7.79277, 0.573501, 270, 270, 0, 100, 0, 2, 0, 0, 4, 10);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES
(727, 5),
(567, 5),
(684, 5),
(726, 5),
(720, 5);
-- Silas Darkmoon Waypoints and Scripts
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `wander_distance`, `script_id`) VALUES
(54340, 1, -1583.19, 118.398, -10.3987, 100, 0, 0, 0),
(54340, 2, -1588.04, 115.794, -11.8544, 100, 0, 0, 0),
(54340, 3, -1605.15, 118.864, -16.2696, 100, 0, 0, 0),
(54340, 4, -1617.12, 119.866, -17.7592, 100, 0, 0, 0),
(54340, 5, -1624.31, 117.623, -17.9447, 100, 60000, 0, 1482302),
(54340, 6, -1621.3, 117.875, -17.9275, 100, 0, 0, 0),
(54340, 7, -1606.15, 118.752, -16.5211, 100, 0, 0, 0),
(54340, 8, -1592.01, 115.622, -12.8698, 100, 0, 0, 0),
(54340, 9, -1583.83, 116.845, -10.5938, 100, 0, 0, 0),
(54340, 10, -1575.56, 128.809, -8.30592, 100, 0, 0, 0),
(54340, 11, -1568.17, 138.305, -7.79632, 100, 0, 0, 0),
(54340, 12, -1559.99, 147.261, -7.79276, 100, 0, 0, 0),
(54340, 13, -1553.39, 157.301, -7.79254, 100, 0, 0, 0),
(54340, 14, -1554.58, 162.176, -7.79279, 100, 0, 0, 0),
(54340, 15, -1559.56, 162.824, -7.79261, 100, 0, 0, 0),
(54340, 16, -1561.79, 161.125, -7.79269, 100, 0, 0, 1482304),
(54340, 17, -1565.79, 155.577, -7.79271, 100, 60000, 0, 1482303),
(54340, 18, -1564.03, 158.032, -7.7925, 100, 0, 0, 0),
(54340, 19, -1562.37, 160.57, -7.79273, 100, 0, 0, 0),
(54340, 20, -1561.85, 166.155, -7.79267, 100, 0, 0, 0),
(54340, 21, -1565.21, 170.348, -7.79271, 100, 0, 0, 0),
(54340, 22, -1572.91, 169.072, -7.79264, 100, 0, 0, 0),
(54340, 23, -1575.61, 164.007, -7.69809, 100, 0, 0, 0),
(54340, 24, -1576.03, 155.094, -7.78856, 100, 0, 0, 0),
(54340, 25, -1574.61, 149.262, -7.78799, 100, 0, 0, 0),
(54340, 26, -1575.64, 134.255, -7.91333, 100, 60000, 0, 0),
(54340, 27, -1575.64, 134.255, -7.91333, 100, 5000, 0, 1482301),
(54340, 28, -1577.03, 128.417, -8.38267, 100, 0, 0, 0);
UPDATE `creature` SET `position_x` = -1583.19, `position_y` = 118.398, `position_z` = -10.3987, `movement_type` = 2 WHERE `guid` = 54340;
INSERT INTO `creature_groups` (`leader_guid`, `member_guid`, `dist`, `angle`, `flags`) VALUES
(54340, 54340, 6, 6.25244, 11),
(54340, 54382, 6, 3.14, 11);
INSERT INTO `creature_movement_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 (1482304, 0, 3, 0, 0, 0, 0, 14827, 30, 8, 2, 0, 0, 0, 0, -1562.75, 159.7, -6.2327, 4.1312, 0, 'Burth - Move');
-- Flick Waypoints and Scripts
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `wander_distance`, `script_id`) VALUES
(54417, 1, -1543.12, 170.697, -7.79227, 100, 0, 0, 3180901),
(54417, 2, -1550.64, 169.476, -7.79227, 100, 0, 0, 0),
(54417, 3, -1558.92, 170.835, -7.79272, 100, 0, 0, 0),
(54417, 4, -1565.87, 167.366, -7.79273, 100, 0, 0, 0),
(54417, 5, -1571.91, 161.11, -7.79257, 100, 0, 0, 0),
(54417, 6, -1573.8, 154.015, -7.79281, 100, 0, 0, 0),
(54417, 7, -1573.25, 145.501, -7.76388, 100, 0, 0, 0),
(54417, 8, -1572.93, 135.998, -7.85593, 100, 0, 0, 0),
(54417, 9, -1576.59, 127.491, -8.51668, 100, 0, 0, 0),
(54417, 10, -1582.22, 120.593, -9.98217, 100, 0, 0, 0),
(54417, 11, -1589.85, 117.146, -12.374, 100, 0, 0, 0),
(54417, 12, -1598.56, 118.366, -14.7406, 100, 0, 0, 0),
(54417, 13, -1607.59, 119.704, -16.7159, 100, 0, 0, 0),
(54417, 14, -1616.79, 120.119, -17.7399, 100, 0, 0, 0),
(54417, 15, -1623.47, 115.182, -17.948, 100, 0, 0, 0),
(54417, 16, -1618.35, 114.365, -17.9418, 100, 0, 0, 0),
(54417, 17, -1611.42, 118.894, -17.2461, 100, 0, 0, 0),
(54417, 18, -1604.68, 119.184, -16.1393, 100, 0, 0, 0),
(54417, 19, -1598.2, 114.446, -14.1078, 100, 0, 0, 0),
(54417, 20, -1594.82, 106.651, -11.294, 100, 0, 0, 0),
(54417, 21, -1590.3, 98.7701, -10.3562, 100, 0, 0, 0),
(54417, 22, -1583.24, 92.499, -9.6075, 100, 0, 0, 0),
(54417, 23, -1575.38, 91.0465, -9.14763, 100, 0, 0, 0),
(54417, 24, -1567.49, 93.8065, -7.4881, 100, 0, 0, 0),
(54417, 25, -1572.36, 105.105, -4.21114, 100, 0, 0, 0),
(54417, 26, -1577.19, 109.941, -8.7664, 100, 0, 0, 0),
(54417, 27, -1579.58, 118.88, -9.3397, 100, 0, 0, 0),
(54417, 28, -1576.36, 126.286, -8.58213, 100, 0, 0, 0),
(54417, 29, -1571.05, 133.277, -7.94671, 100, 0, 0, 0),
(54417, 30, -1567.71, 140.65, -7.79273, 100, 0, 0, 0),
(54417, 31, -1560.88, 142.746, -7.79278, 100, 0, 0, 0),
(54417, 32, -1557.87, 149.854, -7.79268, 100, 0, 0, 0),
(54417, 33, -1550.44, 151.792, -7.79276, 100, 0, 0, 0),
(54417, 34, -1543.06, 156.333, -7.79276, 100, 0, 0, 0),
(54417, 35, -1535.71, 160.677, -7.7926, 100, 0, 0, 0),
(54417, 36, -1527.49, 163.911, -7.79271, 100, 0, 0, 0),
(54417, 37, -1520.44, 170.012, -7.79271, 100, 0, 0, 0),
(54417, 38, -1513.94, 177.083, -7.79273, 100, 0, 0, 0),
(54417, 39, -1506.77, 180.454, -7.79257, 100, 0, 0, 0),
(54417, 40, -1498.93, 180.787, -7.7926, 100, 0, 0, 0),
(54417, 41, -1491.15, 184.91, -7.7927, 100, 0, 0, 0),
(54417, 42, -1483.13, 184.694, -7.79271, 100, 0, 0, 0),
(54417, 43, -1475.81, 179.811, -7.79276, 100, 0, 0, 0),
(54417, 44, -1471.7, 181.139, -7.79247, 100, 0, 0, 0),
(54417, 45, -1467.08, 187.228, -7.79256, 100, 0, 0, 0),
(54417, 46, -1462.99, 195.291, -7.79247, 100, 0, 0, 0),
(54417, 47, -1459.8, 204.517, -7.79259, 100, 0, 0, 0),
(54417, 48, -1465.34, 209.468, -7.79272, 100, 0, 0, 0),
(54417, 49, -1473.71, 213.529, -7.79274, 100, 0, 0, 0),
(54417, 50, -1480.88, 212.436, -7.79157, 100, 0, 0, 0),
(54417, 51, -1484.84, 205.488, -7.79199, 100, 0, 0, 0),
(54417, 52, -1488.29, 197.134, -7.79272, 100, 0, 0, 0),
(54417, 53, -1493.55, 189.372, -7.79265, 100, 0, 0, 0),
(54417, 54, -1500.79, 183.211, -7.79192, 100, 0, 0, 0),
(54417, 55, -1508.7, 177.902, -7.7927, 100, 0, 0, 0),
(54417, 56, -1517.08, 172.986, -7.79253, 100, 0, 0, 0),
(54417, 57, -1526.11, 170.085, -7.7927, 100, 0, 0, 0),
(54417, 58, -1535.34, 170.201, -7.79271, 100, 0, 0, 0);
UPDATE `creature` SET `position_x` = -1543.12, `position_y` = 170.697, `position_z` = -7.79227, `movement_type` = 2 WHERE `guid` = 54417;
UPDATE `creature` SET `position_x` = -1543.12, `position_y` = 170.697, `position_z` = -7.79227 WHERE `guid` = 54426;
INSERT INTO `creature_groups` (`leader_guid`, `member_guid`, `dist`, `angle`, `flags`) VALUES
(54417, 54417, 2, 6.25244, 11),
(54417, 54426, 2, 0, 11);
-- Jubjub Waypoints
UPDATE `creature` SET `position_x` = -1552.02, `position_y` = 111.469, `position_z` = -5.41143, `movement_type` = 2 WHERE `guid` = 54428;
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `wander_distance`, `script_id`) VALUES
(54428, 1, -1552.02, 111.469, -5.41143, 100, 0, 0, 0),
(54428, 2, -1542.48, 118.785, -4.58681, 100, 0, 0, 0),
(54428, 3, -1524.99, 123.865, -3.39793, 100, 60000, 4, 0),
(54428, 4, -1522.59, 140.409, -6.05583, 100, 0, 0, 0),
(54428, 5, -1513.93, 151.353, -7.22265, 100, 60000, 4, 0),
(54428, 6, -1515.55, 155.393, -7.63648, 100, 0, 0, 0),
(54428, 7, -1517.54, 161.136, -7.79116, 100, 0, 0, 0),
(54428, 8, -1520.98, 165.326, -7.79273, 100, 0, 0, 0),
(54428, 9, -1530.29, 159.614, -7.79271, 100, 0, 0, 0),
(54428, 10, -1534.3, 151.826, -7.60426, 100, 0, 0, 0),
(54428, 11, -1540.12, 141.33, -7.11979, 100, 0, 0, 0),
(54428, 12, -1541.86, 138.865, -6.94964, 100, 0, 0, 0),
(54428, 13, -1543.1, 133.87, -6.38997, 100, 0, 0, 0),
(54428, 14, -1555.16, 110.385, -5.55156, 100, 60000, 4, 0);
-- Darkmoon Faire Carnie Waypoints
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `wander_distance`, `script_id`) VALUES
(684, 1, -1611.23, 114.531, -17.5299, 100, 0, 0, 0),
(684, 2, -1593.87, 112.553, -12.7573, 100, 0, 0, 0),
(684, 3, -1578.09, 123.87, -8.9011, 100, 0, 0, 0),
(684, 4, -1564.96, 136.258, -7.79267, 100, 0, 0, 0),
(684, 5, -1551.34, 148.302, -7.79236, 100, 0, 0, 0),
(684, 6, -1547.24, 159.24, -7.79271, 100, 0, 0, 0),
(684, 7, -1555.21, 170.475, -7.79272, 100, 0, 0, 0),
(684, 8, -1563.58, 173.21, -7.79369, 100, 0, 0, 0),
(684, 9, -1571.7, 170.573, -7.79277, 100, 0, 0, 0),
(684, 10, -1577.39, 157.76, -7.78449, 100, 0, 0, 0),
(684, 11, -1572.1, 147.747, -7.79256, 100, 0, 0, 0),
(684, 12, -1577.82, 129.111, -8.28547, 100, 0, 0, 0),
(684, 13, -1587.07, 122.114, -10.7521, 100, 0, 0, 0),
(684, 14, -1606.63, 121.353, -16.3019, 100, 0, 0, 0),
(684, 15, -1622.71, 113.699, -17.9481, 100, 0, 0, 0),
(684, 16, -1631.29, 112.069, -17.9479, 100, 0, 0, 0),
(684, 17, -1635.85, 109.631, -17.9481, 100, 0, 0, 0),
(684, 18, -1628.37, 88.5928, -17.9481, 100, 0, 0, 0),
(684, 19, -1625.92, 93.0154, -17.948, 100, 0, 0, 0),
(684, 20, -1628.3, 101.758, -17.9481, 100, 0, 0, 0),
(684, 21, -1628.41, 107.15, -17.9481, 100, 0, 0, 0),
(684, 22, -1615.02, 113.369, -17.9467, 100, 0, 0, 0);
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `wander_distance`, `script_id`) VALUES
(720, 1, -1527.93, 171.559, -7.79251, 100, 0, 0, 0),
(720, 2, -1533.95, 171.769, -7.79248, 100, 0, 0, 0),
(720, 3, -1542.88, 173.197, -7.78853, 100, 0, 0, 0),
(720, 4, -1554.84, 174.972, -7.78712, 100, 0, 0, 0),
(720, 5, -1566.97, 175.511, -7.79277, 100, 0, 0, 0),
(720, 6, -1572.77, 174.614, -7.79276, 100, 0, 0, 0),
(720, 7, -1577.51, 171.029, -7.79278, 100, 0, 0, 0),
(720, 8, -1581.02, 162.848, -7.58668, 100, 0, 0, 0),
(720, 9, -1582.42, 156.917, -7.72622, 100, 0, 0, 0),
(720, 10, -1581.39, 150.928, -7.65772, 100, 0, 0, 0),
(720, 11, -1578.06, 146.502, -7.56606, 100, 0, 0, 0),
(720, 12, -1569.11, 138.52, -7.80009, 100, 0, 0, 0),
(720, 13, -1563.74, 138.473, -7.79269, 100, 0, 0, 0),
(720, 14, -1558.68, 141.545, -7.79269, 100, 0, 0, 0),
(720, 15, -1551.76, 147.5, -7.79212, 100, 0, 0, 0),
(720, 16, -1543.81, 151.778, -7.79032, 100, 0, 0, 0),
(720, 17, -1535.47, 155.398, -7.79251, 100, 0, 0, 0),
(720, 18, -1530.31, 158.475, -7.79272, 100, 0, 0, 0),
(720, 19, -1523.28, 164.185, -7.79274, 100, 0, 0, 0),
(720, 20, -1510.25, 171.802, -7.79273, 100, 0, 0, 0),
(720, 21, -1499.64, 177.634, -7.79257, 100, 0, 0, 0),
(720, 22, -1485.06, 181.549, -7.79269, 100, 0, 0, 0),
(720, 23, -1473.01, 182.13, -7.79261, 100, 0, 0, 0),
(720, 24, -1462.6, 198.382, -7.79241, 100, 0, 0, 0),
(720, 25, -1460.86, 207.178, -7.79279, 100, 0, 0, 0),
(720, 26, -1468.61, 214.205, -7.79258, 100, 0, 0, 0),
(720, 27, -1484.32, 207.992, -7.79157, 100, 0, 0, 0),
(720, 28, -1491.73, 195.238, -7.79274, 100, 0, 0, 0),
(720, 29, -1500.02, 186.776, -7.79277, 100, 0, 0, 0);
-- Darkmoon Carnie Talk OOC
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 (1484903, 14849, 512, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1484903, 0, 0, 'Darkmoon Faire Carnie - Talk - OOC (Event 5)');
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 (1484903, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10118, 10119, 10120, 10121, 0, 0, 0, 0, 0, 'Darkmoon Faire Carnie - Talk');
INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES (512, 52, 684, 720, 0, 0, 0);
-- -------------------------------------------
-- Building Darkmoon Faire MULGORE - Event 24
-- Respawn Building Darkmoon Faire Mulgore
DELETE FROM `gameobject` WHERE `guid` IN (SELECT `guid` FROM `game_event_gameobject` WHERE `event` = 24);
DELETE FROM `game_event_gameobject` WHERE `event` = 24;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES
(3110, 179964, 1, -1460.82, 170.258, -7.44726, 3.12412, 0, 0, 0.999962, 0.00873464, 25, 25, 100, 1, 0, 0, 4, 10),
(3121, 179964, 1, -1589.55, 100.614, -10.1393, 1.58825, 0, 0, 0.71325, 0.70091, 25, 25, 100, 1, 0, 0, 4, 10),
(3123, 179965, 1, -1461.59, 166.731, -7.69382, 0.0698117, 0, 0, 0.0348988, 0.999391, 25, 25, 100, 1, 0, 0, 4, 10),
(3127, 179965, 1, -1461.48, 173.563, -7.7639, 6.24828, 0, 0, -0.0174522, 0.999848, 25, 25, 100, 1, 0, 0, 4, 10),
(3130, 179965, 1, -1593.32, 101.737, -10.9544, 4.7822, 0, 0, -0.681998, 0.731354, 25, 25, 100, 1, 0, 0, 4, 10),
(3145, 179965, 1, -1586.23, 101.732, -10.2062, 4.72984, 0, 0, -0.700909, 0.713251, 25, 25, 100, 1, 0, 0, 4, 10),
(3149, 179967, 1, -1544.54, 173.711, -7.77296, 5.93412, 0, 0, -0.173648, 0.984808, 25, 25, 100, 1, 0, 0, 4, 10),
(3150, 179967, 1, -1551.48, 143.453, -7.78503, 4.99164, 0, 0, -0.601814, 0.798636, 25, 25, 100, 1, 0, 0, 4, 10),
(3151, 179967, 1, -1551.03, 142.481, -7.77346, 2.75761, 0, 0, 0.981627, 0.190812, 25, 25, 100, 1, 0, 0, 4, 10),
(3180, 179967, 1, -1549.04, 175.509, -7.75956, 0.331611, 0, 0, 0.165047, 0.986286, 25, 25, 100, 1, 0, 0, 4, 10),
(3187, 179967, 1, -1588.5, 147.379, -7.23856, 3.17653, 0, 0, -0.999847, 0.0174693, 25, 25, 100, 1, 0, 0, 4, 10),
(3199, 179967, 1, -1588.67, 148.424, -7.34326, 5.95157, 0, 0, -0.165047, 0.986286, 25, 25, 100, 1, 0, 0, 4, 10),
(3201, 179967, 1, -1589.44, 147.821, -7.29694, 4.36332, 0, 0, -0.819152, 0.573577, 25, 25, 100, 1, 0, 0, 4, 10),
(3203, 179968, 1, -1545.08, 174.75, -7.75139, 0.296705, 0, 0, 0.147809, 0.989016, 25, 25, 100, 1, 0, 0, 4, 10),
(3204, 179968, 1, -1543.92, 174.818, -7.76062, 6.16101, 0, 0, -0.0610485, 0.998135, 25, 25, 100, 1, 0, 0, 4, 10),
(3213, 179968, 1, -1592.12, 149.867, -7.30854, 3.6652, 0, 0, -0.965925, 0.258821, 25, 25, 100, 1, 0, 0, 4, 10),
(3214, 179968, 1, -1591.44, 149.55, -6.61409, 1.0821, 0, 0, 0.515037, 0.857168, 25, 25, 100, 1, 0, 0, 4, 10),
(3219, 179968, 1, -1591.52, 148.831, -7.30854, 3.6652, 0, 0, -0.965925, 0.258821, 25, 25, 100, 1, 0, 0, 4, 10),
(3223, 179968, 1, -1590.85, 149.196, -7.30887, 0.523598, 0, 0, 0.258819, 0.965926, 25, 25, 100, 1, 0, 0, 4, 10),
(3242, 179968, 1, -1591.46, 150.238, -7.30885, 0.523598, 0, 0, 0.258819, 0.965926, 25, 25, 100, 1, 0, 0, 4, 10),
(3280, 179969, 1, -1553.1, 141.483, -6.54939, 1.95477, 0, 0, 0.829038, 0.559193, 25, 25, 100, 1, 0, 0, 4, 10),
(3297, 179969, 1, -1541.56, 173.565, -6.54713, 6.23083, 0, 0, -0.0261765, 0.999657, 25, 25, 100, 1, 0, 0, 4, 10),
(3319, 179969, 1, -1541.83, 174.835, -6.53576, 1.39626, 0, 0, 0.642787, 0.766045, 25, 25, 100, 1, 0, 0, 4, 10),
(3414, 179969, 1, -1552.95, 143.189, -7.79281, 0.506145, 0, 0, 0.25038, 0.968148, 25, 25, 100, 1, 0, 0, 4, 10),
(3415, 179969, 1, -1546.51, 174.391, -6.50675, 2.28638, 0, 0, 0.909961, 0.414694, 25, 25, 100, 1, 0, 0, 4, 10),
(3416, 179970, 1, -1540.11, 172.019, -7.79281, 6.05629, 0, 0, -0.113203, 0.993572, 25, 25, 100, 1, 0, 0, 4, 10),
(3426, 179970, 1, -1540.97, 172.295, -7.79001, 0.349065, 0, 0, 0.173648, 0.984808, 25, 25, 100, 1, 0, 0, 4, 10),
(3432, 179970, 1, -1554.09, 142.742, -7.79281, 2.60053, 0, 0, 0.96363, 0.267241, 25, 25, 100, 1, 0, 0, 4, 10),
(3435, 179970, 1, -1543.47, 172.805, -7.79218, 1.39626, 0, 0, 0.642787, 0.766045, 25, 25, 100, 1, 0, 0, 4, 10),
(3470, 179972, 1, -1552.32, 141.552, -7.77837, 5.23599, 0, 0, -0.5, 0.866025, 25, 25, 100, 1, 0, 0, 4, 10),
(3482, 179972, 1, -1546.53, 174.356, -7.75742, 0.122173, 0, 0, 0.0610485, 0.998135, 25, 25, 100, 1, 0, 0, 4, 10),
(3546, 179972, 1, -1541.92, 174.814, -7.77837, 4.53786, 0, 0, -0.766044, 0.642789, 25, 25, 100, 1, 0, 0, 4, 10),
(3555, 179972, 1, -1553.95, 141.145, -7.79281, 1.74533, 0, 0, 0.766044, 0.642789, 25, 25, 100, 1, 0, 0, 4, 10),
(3564, 179972, 1, -1542.15, 173.27, -7.78568, 3.03684, 0, 0, 0.998629, 0.0523532, 25, 25, 100, 1, 0, 0, 4, 10),
(3576, 179972, 1, -1540.59, 173.874, -7.78565, 4.55531, 0, 0, -0.760405, 0.649449, 25, 25, 100, 1, 0, 0, 4, 10),
(3740, 179973, 1, -1547.83, 175.771, -7.73362, 0, 0, 0, 0, 1, 25, 25, 100, 1, 0, 0, 4, 10),
(3744, 179973, 1, -1548.88, 176.663, -7.70885, 2.58308, 0, 0, 0.961261, 0.27564, 25, 25, 100, 1, 0, 0, 4, 10),
(3799, 179976, 1, -1592.35, 152.061, -7.32053, 0.0174525, 0, 0, 0.00872612, 0.999962, 25, 25, 100, 1, 0, 0, 4, 10),
(3832, 179977, 1, -1552.99, 143.206, -7.16086, 1.76278, 0, 0, 0.771625, 0.636078, 25, 25, 100, 1, 0, 0, 4, 10),
(3859, 179977, 1, -1546.51, 174.436, -5.87434, 4.04917, 0, 0, -0.898793, 0.438373, 25, 25, 100, 1, 0, 0, 4, 10),
(3873, 179977, 1, -1588.67, 148.444, -6.34514, 1.46608, 0, 0, 0.66913, 0.743145, 25, 25, 100, 1, 0, 0, 4, 10),
(3876, 180005, 1, -1454.6, 195.243, -5.36443, 1.25664, 0, 0, 0.587785, 0.809017, 25, 25, 100, 1, 0, 0, 4, 10),
(3898, 180005, 1, -1481.96, 214.691, -5.53562, 0.820303, 0, 0, 0.398748, 0.91706, 25, 25, 100, 1, 0, 0, 4, 10),
(3899, 180005, 1, -1579.82, 175.471, -5.13308, 3.97936, 0, 0, -0.913545, 0.406738, 25, 25, 100, 1, 0, 0, 4, 10),
(3904, 180005, 1, -1627.53, 100.414, -15.5663, 4.36332, 0, 0, -0.819152, 0.573577, 25, 25, 100, 1, 0, 0, 4, 10),
(3913, 180006, 1, -1458.06, 217.981, -7.7928, 4.17134, 0, 0, -0.870356, 0.492424, 25, 25, 100, 1, 0, 0, 4, 10),
(4055, 180006, 1, -1461.62, 219.404, -7.79281, 4.5204, 0, 0, -0.771625, 0.636078, 25, 25, 100, 1, 0, 0, 4, 10),
(4059, 180007, 1, -1544.13, 152.873, -7.79281, 3.85718, 0, 0, -0.936671, 0.35021, 25, 25, 100, 1, 0, 0, 4, 10),
(4061, 180007, 1, -1550.68, 172.517, -7.79281, 1.67551, 0, 0, 0.743144, 0.669132, 25, 25, 100, 1, 0, 0, 4, 10),
(4062, 180007, 1, -1550.79, 147.957, -7.79178, 4.67748, 0, 0, -0.719339, 0.694659, 25, 25, 100, 1, 0, 0, 4, 10),
(4067, 180007, 1, -1590.86, 160.008, -7.12353, 3.21142, 0, 0, -0.999391, 0.0349061, 25, 25, 100, 1, 0, 0, 4, 10),
(4086, 180007, 1, -1622.89, 124.322, -17.9349, 2.47837, 0, 0, 0.945518, 0.325568, 25, 25, 100, 1, 0, 0, 4, 10),
(4096, 180026, 1, -1461.98, 170.177, -7.74639, 6.16101, 0, 0, -0.0610485, 0.998135, 25, 25, 100, 1, 0, 0, 4, 10),
(4108, 180026, 1, -1589.68, 101.771, -10.5788, 4.64258, 0, 0, -0.731354, 0.681998, 25, 25, 100, 1, 0, 0, 4, 10),
(4112, 180043, 1, -1460.33, 217.55, -7.7928, 4.29351, 0, 0, -0.83867, 0.54464, 25, 25, 100, 1, 0, 0, 4, 10),
(4128, 180043, 1, -1468.85, 196.597, -7.7928, 3.29869, 0, 0, -0.996917, 0.0784664, 25, 25, 100, 1, 0, 0, 4, 10),
(4134, 180043, 1, -1479.71, 208.215, -7.79273, 4.92183, 0, 0, -0.62932, 0.777146, 25, 25, 100, 1, 0, 0, 4, 10),
(4173, 180043, 1, -1621.75, 125.107, -17.9257, 3.99681, 0, 0, -0.909961, 0.414694, 25, 25, 100, 1, 0, 0, 4, 10),
(4181, 180045, 1, -1466.22, 192.318, -7.79276, 1.3439, 0, 0, 0.622514, 0.782609, 25, 25, 100, 1, 0, 0, 4, 10),
(4183, 180045, 1, -1555.72, 184.581, -7.53537, 2.72271, 0, 0, 0.978148, 0.207912, 25, 25, 100, 1, 0, 0, 4, 10),
(4190, 180045, 1, -1468.97, 202.423, -7.7928, 2.40855, 0, 0, 0.93358, 0.358368, 25, 25, 100, 1, 0, 0, 4, 10),
(4197, 180046, 1, -1471.24, 200.218, -7.7928, 4.25861, 0, 0, -0.848047, 0.529921, 25, 25, 100, 1, 0, 0, 4, 10),
(4198, 180046, 1, -1469.09, 193.511, -7.7928, 3.24635, 0, 0, -0.998629, 0.0523532, 25, 25, 100, 1, 0, 0, 4, 10),
(4200, 180046, 1, -1556.19, 181.754, -7.75374, 3.90954, 0, 0, -0.927183, 0.374608, 25, 25, 100, 1, 0, 0, 4, 10),
(4205, 180046, 1, -1469.61, 192.024, -7.7928, 2.51327, 0, 0, 0.951056, 0.309017, 25, 25, 100, 1, 0, 0, 4, 10),
(4210, 180047, 1, -1557.11, 182.306, -7.77944, 4.5204, 0, 0, -0.771625, 0.636078, 25, 25, 100, 1, 0, 0, 4, 10),
(4219, 180047, 1, -1470.37, 199.708, -7.7928, 3.9619, 0, 0, -0.91706, 0.39875, 25, 25, 100, 1, 0, 0, 4, 10),
(4220, 180048, 1, -1470.44, 199.788, -7.2928, 4.11898, 0, 0, -0.882947, 0.469473, 25, 25, 100, 1, 0, 0, 4, 10),
(4223, 180049, 1, -1556.98, 182.377, -7.26566, 0.767944, 0, 0, 0.374606, 0.927184, 25, 25, 100, 1, 0, 0, 4, 10),
(4233, 180050, 1, -1557.18, 182.379, -7.25799, 4.5204, 0, 0, -0.771625, 0.636078, 25, 25, 100, 1, 0, 0, 4, 10),
(4237, 180051, 1, -1557.27, 182.581, -7.26444, 3.68265, 0, 0, -0.96363, 0.267241, 25, 25, 100, 1, 0, 0, 4, 10),
(4252, 180052, 1, -1468.5, 197.41, -7.7928, 3.56047, 0, 0, -0.978148, 0.207912, 25, 25, 100, 1, 0, 0, 4, 10);
INSERT INTO `game_event_gameobject` (`guid`, `event`) VALUES
(3110, 24),
(3121, 24),
(3123, 24),
(3127, 24),
(3130, 24),
(3145, 24),
(3149, 24),
(3150, 24),
(3151, 24),
(3180, 24),
(3187, 24),
(3199, 24),
(3201, 24),
(3203, 24),
(3204, 24),
(3213, 24),
(3214, 24),
(3219, 24),
(3223, 24),
(3242, 24),
(3280, 24),
(3297, 24),
(3319, 24),
(3414, 24),
(3415, 24),
(3416, 24),
(3426, 24),
(3432, 24),
(3435, 24),
(3470, 24),
(3482, 24),
(3546, 24),
(3555, 24),
(3564, 24),
(3576, 24),
(3740, 24),
(3744, 24),
(3799, 24),
(3832, 24),
(3859, 24),
(3873, 24),
(3876, 24),
(3898, 24),
(3899, 24),
(3904, 24),
(3913, 24),
(4055, 24),
(4059, 24),
(4061, 24),
(4062, 24),
(4067, 24),
(4086, 24),
(4096, 24),
(4108, 24),
(4112, 24),
(4128, 24),
(4134, 24),
(4173, 24),
(4181, 24),
(4183, 24),
(4190, 24),
(4197, 24),
(4198, 24),
(4200, 24),
(4205, 24),
(4210, 24),
(4219, 24),
(4220, 24),
(4223, 24),
(4233, 24),
(4237, 24),
(4252, 24);
-- Update Some Creatures
DELETE FROM `creature` WHERE `guid` = 301272;
DELETE FROM `creature_addon` WHERE `guid` = 301272;
DELETE FROM `creature_movement` WHERE `id` = 301272;
DELETE FROM `creature_movement_scripts` WHERE `id` = 59;
DELETE FROM `creature_movement_scripts` WHERE `id` = 63;
DELETE FROM `creature_movement` WHERE `id` = 301276;
UPDATE `creature` SET `position_x` = -1542.71, `position_y` = 152.941, `position_z` = -7.70777, `orientation` = 3.19395, `movement_type` = 0, `wander_distance` = 0 WHERE `guid` = 301275;
UPDATE `creature` SET `position_x` = -1551.45, `position_y` = 171.644, `position_z` = -7.70948, `orientation` = 0.767945, `movement_type` = 0, `wander_distance` = 0 WHERE `guid` = 301273;
UPDATE `creature` SET `position_x` = -1552.1, `position_y` = 147.945, `position_z` = -7.70948, `orientation` = 0.0698132, `movement_type` = 0, `wander_distance` = 0 WHERE `guid` = 301274;
UPDATE `creature` SET `position_x` = -1589.81, `position_y` = 159.245, `position_z` = -7.16003, `orientation` = 2.49582, `movement_type` = 0, `wander_distance` = 0 WHERE `guid` = 301276;
UPDATE `creature` SET `position_x` = -1622.75, `position_y` = 123.118, `position_z` = -17.8536, `orientation` = 1.65806 , `movement_type` = 0, `wander_distance` = 0 WHERE `guid` = 301271;
INSERT INTO `creature_addon` (`guid`, `patch`, `display_id`, `mount_display_id`, `equipment_id`, `stand_state`, `sheath_state`, `emote_state`) VALUES
(301275, 4, 0, -1, 1715, 0, 1, 234),
(301273, 4, 0, -1, 1715, 0, 1, 234),
(301274, 4, 0, -1, 1715, 0, 1, 234),
(301276, 4, 0, -1, 1715, 0, 1, 234),
(301271, 4, 0, -1, 1715, 0, 1, 234),
(724, 4, 0, 0, 0, 0, 0, 0),
(725, 4, 0, 0, 0, 0, 0, 0),
(566, 4, 0, 0, 0, 0, 0, 0);
INSERT INTO `creature` (`guid`, `id`, `id2`, `id3`, `id4`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `wander_distance`, `health_percent`, `mana_percent`, `movement_type`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES
(724, 14849, 0, 0, 0, 1, -1538.66, 172.904, -7.79281, 2.96706, 270, 270, 0, 100, 0, 2, 0, 0, 4, 10),
(725, 14849, 0, 0, 0, 1, -1550.61, 176.078, -7.7726, 6.0912, 270, 270, 0, 100, 0, 2, 0, 0, 4, 10),
(566, 14849, 0, 0, 0, 1, -1577.23, 165.239, -7.58654, 6.0912, 270, 270, 0, 100, 0, 2, 0, 0, 4, 10);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES
(724, 24),
(725, 24),
(566, 24);
-- Darkmoon Faire Carnie Waypoints
INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `waittime`, `script_id`) VALUES
(724, 1, -1538.66, 172.904, -7.79281, 2.96706, 10000, 1484903),
(724, 2, -1538.66, 172.904, -7.79281, 100, 2000, 1484904),
(724, 3, -1489.46, 191.623, -7.7928, 100, 0, 0),
(724, 4, -1476.48, 209.988, -7.7928, 100, 0, 0),
(724, 5, -1476.76, 210.563, -7.68319, 2.42601, 10000, 1484901),
(724, 6, -1476.76, 210.563, -7.68319, 100, 2000, 1484902),
(724, 7, -1484.29, 197.849, -7.7928, 100, 0, 0),
(725, 1, -1550.61, 176.078, -7.7726, 6.0912, 10000, 1484903),
(725, 2, -1550.61, 176.078, -7.7726, 100, 2000, 1484904),
(725, 3, -1570.36, 173.563, -7.79281, 100, 0, 0),
(725, 4, -1571.6, 173.486, -7.66781, 100, 10000, 1484901),
(725, 5, -1571.6, 173.486, -7.66781, 100, 2000, 1484902),
(566, 1, -1577.23, 165.239, -7.58654, 100, 0, 0),
(566, 2, -1577.69, 166.553, -7.58654, 100, 10000, 1484901),
(566, 3, -1577.69, 166.553, -7.58654, 100, 2000, 1484902),
(566, 4, -1580.39, 159.027, -7.71154, 100, 0, 0),
(566, 5, -1582.79, 155.816, -7.68104, 100, 0, 0),
(566, 6, -1589.61, 150.533, -7.33654, 100, 10000, 1484903),
(566, 7, -1589.61, 150.533, -7.33654, 100, 2000, 1484904),
(566, 8, -1582.98, 155.125, -7.65518, 100, 0, 0),
(566, 9, -1580.05, 157.87, -7.71154, 100, 0, 0);
-- Darkmoon Faire Carnie Talk OOC
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 (1484904, 14849, 516, 1, 0, 100, 1, 45000, 84000, 45000, 84000, 1484904, 0, 0, 'Darkmoon Faire Carnie - Talk - OOC (Event 24)');
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 (1484904, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10058, 10059, 10060, 10061, 0, 0, 0, 0, 0, 'Darkmoon Faire Carnie - Talk');
INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES (516, 52, 301271, 724, 566, 301274, 0);
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;