chore(DB): import pending files

Referenced commit(s): d3b047c27a
This commit is contained in:
AzerothCoreBot
2023-02-16 01:15:49 +00:00
parent d3b047c27a
commit 59292f5b13
4 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
-- DB update 2023_02_15_00 -> 2023_02_16_00
--
DELETE FROM `skinning_loot_template` WHERE (`Entry` = 17952);
UPDATE `creature_template` SET `skinloot` = 70068 WHERE (`entry` IN (17952, 22163));

View File

@@ -0,0 +1,394 @@
-- DB update 2023_02_16_00 -> 2023_02_16_01
-- Remove all of the same Ids, remove non-combat pet, remove mines
DELETE FROM `creature` WHERE `id1` IN (19754,19756,19757,19759,19760,20872,20878,20887,21080,21207,21210,21211,21725,22024,18381,22315) AND `map`=530;
SET @CGUID := 83028;
DELETE FROM `creature` WHERE `id1` IN (19754,19756,19757,19759,19760,20872,20878,20887,21080,21207,21210,21211,21725,22024) AND `map`=530 AND `ZoneId`=3520 AND `guid` BETWEEN @CGUID+0 AND @CGUID+84;
INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES
(@CGUID+0 , 19754, 530, 3520, 3748, 1, 1, 0, -3471.39, 2147.28, 33.2387, 5.74268, 300, 4, 1, 0, 0, 48001),
(@CGUID+1 , 19754, 530, 3520, 3748, 1, 1, 0, -3473.13, 2222.15, 33.5265, 0.567704, 300, 0, 0, 0, 0, 48001),
(@CGUID+2 , 19754, 530, 3520, 3748, 1, 1, 0, -3483.68, 2185.69, 33.5114, 3.69491, 300, 4, 1, 0, 0, 48001),
(@CGUID+3 , 19754, 530, 3520, 3748, 1, 1, 0, -3451.49, 2221.58, 33.4266, 5.38249, 300, 0, 0, 0, 0, 48001),
(@CGUID+4 , 19754, 530, 3520, 3748, 1, 1, 0, -3484.9, 2227.74, 33.5262, 1.15788, 300, 5, 1, 0, 0, 48001),
(@CGUID+5 , 19754, 530, 3520, 3748, 1, 1, 0, -3457.4, 2231.82, 33.6344, 3.76717, 300, 0, 0, 0, 0, 48001),
(@CGUID+6 , 19756, 530, 3520, 3748, 1, 1, 0, -3460.3118, 2176.2397, 33.525658, 4.537856101989746093, 300, 0, 0, 0, 0, 48001),
(@CGUID+7 , 19756, 530, 3520, 3748, 1, 1, 0, -3490.547, 2153.1892, 33.485687, 0.03490658476948738, 300, 0, 0, 0, 0, 48001),
(@CGUID+8 , 19756, 530, 3520, 3748, 1, 1, 0, -3470.43, 2181.19, 33.5385, 2.699963, 300, 0, 0, 0, 0, 48001),
(@CGUID+9 , 19756, 530, 3520, 3748, 1, 1, 0, -3466.94, 2202.81, 33.603, 3.31613, 300, 0, 0, 0, 0, 48001),
(@CGUID+10, 19756, 530, 3520, 3748, 1, 1, 0, -3502.97, 2183.39, 33.611, 5.75959, 300, 0, 0, 0, 0, 48001),
(@CGUID+11, 19756, 530, 3520, 3748, 1, 1, 0, -3498.51, 2210.14, 33.6135, 5.72468, 300, 0, 0, 0, 0, 48001),
(@CGUID+12, 19759, 530, 3520, 3748, 1, 1, 0, -3448.43, 2240.86, 33.7625, 2.36354, 300, 5, 1, 0, 0, 48001),
(@CGUID+13, 19759, 530, 3520, 3748, 1, 1, 0, -3555.51, 2190.91, 30.1227, 5.32783, 300, 4, 1, 0, 0, 48001),
(@CGUID+14, 19759, 530, 3520, 3748, 1, 1, 0, -3418.07, 2255.31, 33.6775, 2.97726, 300, 5, 1, 0, 0, 48001),
(@CGUID+15, 19760, 530, 3520, 3748, 1, 1, 0, -3475.41, 2170.14, 32.8636, 5.41052, 300, 0, 0, 33554432, 0, 48001),
(@CGUID+16, 19760, 530, 3520, 3748, 1, 1, 0, -3483.61, 2201.5, 32.8564, 5.06145, 300, 0, 0, 33554432, 0, 48001),
(@CGUID+17, 19760, 530, 3520, 3748, 1, 1, 0, -3554.93, 2140.11, 24.1701, 5.76413, 300, 8, 1, 0, 0, 48001),
(@CGUID+22, 20872, 530, 3520, 3748, 1, 1, 1, -3291.68, 1923.85, 143.069, 5.06823, 300, 0, 0, 0, 0, 48001),
(@CGUID+23, 20872, 530, 3520, 3748, 1, 1, 1, -3223.39, 1961.9, 109.363, 4.30813, 300, 0, 0, 0, 0, 48001),
(@CGUID+24, 20872, 530, 3520, 3748, 1, 1, 1, -3302.89, 2000.53, 46.7258, 5.07585, 300, 0, 0, 0, 0, 48001),
(@CGUID+25, 20872, 530, 3520, 3748, 1, 1, 1, -3275.83, 2026.08, 63.7421, 4.75732, 300, 0, 0, 0, 0, 48001),
(@CGUID+26, 20872, 530, 3520, 3748, 1, 1, 1, -3335.89, 2133.7, -2.183, 2.51327, 300, 0, 0, 0, 0, 48001),
(@CGUID+27, 20872, 530, 3520, 3748, 1, 1, 1, -3361.14, 2088.28, 4.8676, 0.819882, 300, 0, 0, 0, 0, 48001),
(@CGUID+28, 20872, 530, 3520, 3748, 1, 1, 1, -3335.6, 2151.81, -1.21132, 3.00197, 300, 0, 0, 0, 0, 48001),
(@CGUID+29, 20872, 530, 3520, 3748, 1, 1, 1, -3341.74, 2168.38, 2.22799, 3.9968, 300, 0, 0, 0, 0, 48001),
(@CGUID+30, 20872, 530, 3520, 3748, 1, 1, 1, -3415.38, 2095.36, 34.1878, 6.21337, 300, 0, 0, 0, 0, 48001),
(@CGUID+31, 20872, 530, 3520, 3748, 1, 1, 1, -3413.25, 2132.96, 34.4846, 4.97419, 300, 0, 0, 0, 0, 48001),
(@CGUID+32, 20872, 530, 3520, 3748, 1, 1, 1, -3437.93, 2131.51, 33.8578, 5.30604, 300, 0, 0, 0, 0, 48001),
(@CGUID+33, 20872, 530, 3520, 3748, 1, 1, 1, -3410.42, 2321.58, 37.2106, 4.72984, 300, 0, 0, 0, 0, 48001),
(@CGUID+34, 20878, 530, 3520, 3748, 1, 1, 1, -3292.99, 1907.61, 142.326, 0.122173, 300, 0, 0, 0, 0, 48001),
(@CGUID+35, 20878, 530, 3520, 3748, 1, 1, 1, -3223.44, 1969.5, 144.56, 5.32325, 300, 0, 0, 0, 0, 48001),
(@CGUID+36, 20878, 530, 3520, 3748, 1, 1, 1, -3258.72, 2051.92, 74.4014, 1.46608, 300, 0, 0, 0, 0, 48001),
(@CGUID+37, 20878, 530, 3520, 3748, 1, 1, 1, -3216.56, 2054.98, 84.2059, 4.36162, 300, 5, 1, 0, 0, 48001),
(@CGUID+38, 20878, 530, 3520, 3748, 1, 1, 1, -3295, 2059.66, 76.2516, 1.20428, 300, 0, 0, 0, 0, 48001),
(@CGUID+39, 20878, 530, 3520, 3748, 1, 1, 1, -3341.51, 2016.82, 33.6518, 5.42797, 300, 0, 0, 0, 0, 48001),
(@CGUID+40, 20878, 530, 3520, 3748, 1, 1, 1, -3280.61, 2093.41, 82.6315, 5.44455, 300, 10, 1, 0, 0, 48001),
(@CGUID+41, 20878, 530, 3520, 3748, 1, 1, 1, -3285.27, 2135.91, 85.348, 5.00357, 300, 10, 1, 0, 0, 48001),
(@CGUID+42, 20878, 530, 3520, 3748, 1, 1, 1, -3363.54, 2046.37, 39.0521, 5.18363, 300, 0, 0, 0, 0, 48001),
(@CGUID+43, 20878, 530, 3520, 3748, 1, 1, 1, -3356.56, 2107.09, 11.9433, 0.484243, 300, 4, 1, 0, 0, 48001),
(@CGUID+44, 20878, 530, 3520, 3748, 1, 1, 1, -3361.23, 1980.19, 26.3597, 1.76278, 300, 0, 0, 0, 0, 48001),
(@CGUID+45, 20878, 530, 3520, 3748, 1, 1, 1, -3376.09, 2038.66, 37.6801, 5.91667, 300, 0, 0, 0, 0, 48001),
(@CGUID+46, 20878, 530, 3520, 3748, 1, 1, 1, -3396.01, 2036.34, 20.4044, 3.31276, 300, 5, 1, 0, 0, 48001),
(@CGUID+47, 20878, 530, 3520, 3748, 1, 1, 1, -3392.49, 2062.84, 14.4613, 3.0207, 300, 4, 1, 0, 0, 48001),
(@CGUID+48, 20878, 530, 3520, 3748, 1, 1, 1, -3373.86, 2098, 34.0214, 5.07891, 300, 0, 0, 0, 0, 48001),
(@CGUID+49, 20878, 530, 3520, 3748, 1, 1, 1, -3396.89, 2070.46, 34.0593, 5.65487, 300, 0, 0, 0, 0, 48001),
(@CGUID+50, 20878, 530, 3520, 3748, 1, 1, 1, -3396.38, 2101.97, 77.6685, 3.68218, 300, 10, 1, 0, 0, 48001),
(@CGUID+51, 20878, 530, 3520, 3748, 1, 1, 1, -3415.89, 2058.72, 15.4273, 0.96285, 300, 4, 1, 0, 0, 48001),
(@CGUID+52, 20878, 530, 3520, 3748, 1, 1, 1, -3438.19, 2059.36, 15.2807, 2.66248, 300, 4, 1, 0, 0, 48001),
(@CGUID+53, 20878, 530, 3520, 3748, 1, 1, 1, -3387.48, 1996.93, 25.9171, 4.85202, 300, 0, 0, 0, 0, 48001),
(@CGUID+54, 20878, 530, 3520, 3748, 1, 1, 1, -3422.34, 2032.42, 79.414, 6.03884, 300, 10, 1, 0, 0, 48001),
(@CGUID+55, 20878, 530, 3520, 3748, 1, 1, 1, -3455.95, 2136.25, 31.6043, 0.15708, 300, 0, 0, 0, 0, 48001),
(@CGUID+56, 20878, 530, 3520, 3748, 1, 1, 1, -3440.93, 2151.51, 31.6043, 4.57276, 300, 0, 0, 0, 0, 48001),
(@CGUID+57, 20878, 530, 3520, 3748, 1, 1, 1, -3537.11, 2159.12, 34.0734, 0.872665, 300, 0, 0, 0, 0, 48001),
(@CGUID+58, 20878, 530, 3520, 3748, 1, 1, 1, -3541.49, 2176.84, 34.6825, 5.96903, 300, 0, 0, 0, 0, 48001),
(@CGUID+59, 20878, 530, 3520, 3748, 1, 1, 1, -3420.47, 2291.11, 33.8036, 5.11381, 300, 0, 0, 0, 0, 48001),
(@CGUID+60, 20878, 530, 3520, 3748, 1, 1, 1, -3405.89, 2290.53, 34.1082, 4.76475, 300, 0, 0, 0, 0, 48001),
(@CGUID+61, 20887, 530, 3520, 3748, 1, 1, 0, -3292.91, 1928.15, 143.472, 3.89206, 300, 0, 0, 0, 0, 48001),
(@CGUID+62, 20887, 530, 3520, 3748, 1, 1, 0, -3221.2, 1965.33, 109.058, 4.26113, 300, 0, 0, 0, 0, 48001),
(@CGUID+63, 20887, 530, 3520, 3748, 1, 1, 0, -3305.26, 1996.93, 47.4617, 5.07585, 300, 0, 0, 0, 0, 48001),
(@CGUID+64, 20887, 530, 3520, 3748, 1, 1, 0, -3272.2, 2023.24, 63.6514, 4.75732, 300, 0, 0, 0, 0, 48001),
(@CGUID+65, 20887, 530, 3520, 3748, 1, 1, 0, -3360.54, 2094.05, 5.31642, 0.819888, 300, 0, 0, 0, 0, 48001),
(@CGUID+66, 20887, 530, 3520, 3748, 1, 1, 0, -3412.58, 2100.51, 34.1129, 5.8287, 300, 5, 1, 0, 0, 48001),
(@CGUID+67, 20887, 530, 3520, 3748, 1, 1, 0, -3410.94, 2128.02, 34.3914, 6.07672, 300, 5, 1, 0, 0, 48001),
(@CGUID+68, 20887, 530, 3520, 3748, 1, 1, 0, -3433.5, 2131.21, 34.3465, 2.16448, 300, 0, 0, 0, 0, 48001),
(@CGUID+69, 20887, 530, 3520, 3748, 1, 1, 0, -3418.47, 2313.28, 37.0325, 4.43495, 300, 5, 1, 0, 0, 48001),
(@CGUID+70, 21080, 530, 3520, 3748, 1, 1, 0, -3456.48, 2241.29, 33.8697, 4.53786, 300, 0, 0, 0, 0, 48001),
(@CGUID+71, 21080, 530, 3520, 3748, 1, 1, 0, -3439.95, 2250.68, 33.574, 5.42797, 300, 0, 0, 0, 0, 48001),
(@CGUID+72, 21080, 530, 3520, 3748, 1, 1, 0, -3425.34, 2279.42, 33.4432, 1.09956, 300, 0, 0, 0, 0, 48001),
(@CGUID+73, 21080, 530, 3520, 3748, 1, 1, 0, -3404.85, 2266.46, 34.057, 2.74017, 300, 0, 0, 0, 0, 48001),
(@CGUID+74, 21080, 530, 3520, 3748, 1, 1, 0, -3422.23, 2237.42, 34.2742, 2.51327, 300, 0, 0, 0, 0, 48001),
(@CGUID+75, 21207, 530, 3520, 3748, 1, 1, 1, -3350.91, 2151.45, -7.08715, 3.71755, 300, 0, 0, 0, 0, 48001),
(@CGUID+76, 21210, 530, 3520, 3748, 1, 1, 0, -3366.9, 2121.34, -7.62779, 1.78024, 300, 0, 0, 0, 0, 48001),
(@CGUID+77, 21210, 530, 3520, 3748, 1, 1, 0, -3349.4, 2139.45, -7.73881, 3.15905, 300, 0, 0, 0, 0, 48001),
(@CGUID+78, 21210, 530, 3520, 3748, 1, 1, 0, -3368.91, 2145.37, -8.39026, 4.4855, 300, 0, 0, 0, 0, 48001),
(@CGUID+79, 21210, 530, 3520, 3748, 1, 1, 0, -3392.08, 2153.75, -7.5305, 6.16101, 300, 0, 0, 0, 0, 48001),
(@CGUID+80, 21210, 530, 3520, 3748, 1, 1, 0, -3369.89, 2164.47, -7.06302, 4.90438, 300, 0, 0, 0, 0, 48001),
(@CGUID+81, 21211, 530, 3520, 3748, 1, 1, 0, -3369, 2145.35, 2.92919, 1.309, 300, 0, 0, 0, 0, 48001),
(@CGUID+82, 21211, 530, 3520, 3748, 1, 1, 0, -3368.97, 2145.44, -8.01526, 1.13446, 300, 0, 0, 0, 0, 48001),
(@CGUID+83, 21725, 530, 3520, 3748, 1, 1, 0, -3421.36, 2289.39, 33.6348, 3.87463, 300, 0, 0, 0, 0, 48001),
(@CGUID+84, 22024, 530, 3520, 3748, 1, 1, 0, -3412.86, 2291.42, 63.1161, 3.12795, 300, 0, 0, 0, 0, 48001);
-- Pathing for Deathforge Smith Entry: 19756
SET @NPC := @CGUID+8;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3479.9746,`position_y`=2202.5378,`position_z`=33.05405 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,173,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3479.9746,2202.5378,33.05405,NULL,40000,0,0,100,0),
(@PATH,2,-3477.6575,2191.7336,33.01089,NULL,0,0,0,100,0),
(@PATH,3,-3474.3267,2184.2778,33.403313,NULL,0,0,0,100,0),
(@PATH,4,-3468.784,2179.888,33.52856,NULL,0,0,0,100,0),
(@PATH,5,-3467.121,2176.402,33.92342,NULL,0,0,0,100,0),
(@PATH,6,-3468.7075,2173.587,33.400917,NULL,0,0,0,100,0),
(@PATH,7,-3471.544,2172.4304,33.143215,NULL,0,0,0,100,0),
(@PATH,8,-3491.4849,2167.5889,34.046986,NULL,0,0,0,100,0),
(@PATH,9,-3493.7341,2188.488,33.526424,NULL,0,0,0,100,0),
(@PATH,10,-3487.2883,2193.0696,33.466507,NULL,0,0,0,100,0),
(@PATH,11,-3478.9119,2197.492,32.95795,NULL,0,0,0,100,0),
(@PATH,12,-3478.3247,2201.7632,33.23236,NULL,0,0,0,100,0),
(@PATH,13,-3479.9746,2202.5378,33.05405,NULL,80000,0,0,100,0),
(@PATH,14,-3478.9119,2197.492,32.95795,NULL,0,0,0,100,0),
(@PATH,15,-3477.9863,2199.7947,33.230984,NULL,0,0,0,100,0);
-- 0x2030FC4240134B0000392800016AA0E7 .go xyz -3479.9746 2202.5378 33.05405
-- GUID auras
DELETE FROM `creature_addon` WHERE `guid` IN (@CGUID+15, @CGUID+16, @CGUID+81,@CGUID+82,86493);
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES
(@CGUID+15,0,0,0,0,0,0, '31261'),
(@CGUID+16,0,0,0,0,0,0, '31261'),
(@CGUID+81,0,0,0,0,0,2, '30540'),
(@CGUID+82,0,0,0,0,0,2, '');
-- Cooling Infernal Flags
UPDATE `creature_template` SET `unit_flags` = 0 WHERE (`entry` = 19760);
-- Dormant Infernal Detection range
UPDATE `creature_template` SET `detection_range` = 10 WHERE (`entry` = 21080);
-- Dormant Infernal SAI
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21080);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(21080, 0, 0, 1, 25, 0, 100, 1, 0, 0, 0, 0, 0, 11, 36055, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Dormant Infernal - On Reset - Cast \'Stationary Infernal Ball\' (No Repeat)'),
(21080, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 36, 21080, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Dormant Infernal - On Reset - Update Template To \'Dormant Infernal\' (No Repeat)'),
(21080, 0, 2, 3, 4, 0, 100, 0, 0, 0, 0, 0, 0, 36, 19759, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Dormant Infernal - On Aggro - Update Template To \'Newly Crafted Infernal\''),
(21080, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 28, 36055, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Dormant Infernal - On Aggro - Remove Aura \'Stationary Infernal Ball\'');
-- Refactor
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 19756) AND (`source_type` = 0) AND (`id` IN (0, 1));
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(19756, 0, 0, 0, 0, 0, 100, 0, 8000, 8000, 10000, 15000, 0, 11, 37580, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Deathforge Smith - In Combat - Cast \'Drill Armor\''),
(19756, 0, 1, 0, 0, 0, 100, 0, 12000, 12000, 12000, 16000, 0, 11, 36225, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Deathforge Smith - In Combat - Cast \'Chaos Nova\'');
-- Invis Deathforge Caster
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21210;
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21210);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(21210, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 11, 36384, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Invis Deathforge Caster - On Reset - Cast \'Skartax Purple Beam\''),
(21210, 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Invis Deathforge Caster - On Data Set 1 1 - Despawn Instant');
-- GUID-Specific
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = -(@CGUID+78));
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(-(@CGUID+78), 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 11, 36393, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Invis Deathforge Caster - On Reset - Cast \'Deathforge Summon Visual\''),
(-(@CGUID+78), 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Invis Deathforge Caster - On Data Set 1 1 - Despawn Instant');
-- Delete old SAI
DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid` IN (-84858,-84857,-84856,-84855,-84854);
-- Formations
DELETE FROM `creature_formations` WHERE `memberGUID` IN (@CGUID+23,@CGUID+62,@CGUID+32,@CGUID+68,@CGUID+24,@CGUID+63,@CGUID+25,@CGUID+64,@CGUID+22,@CGUID+61,@CGUID+27,@CGUID+65);
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`) VALUES
(@CGUID+23, @CGUID+23, 0, 0, 3),
(@CGUID+23, @CGUID+62, 3, 90, 515),
(@CGUID+32, @CGUID+32, 0, 0, 3),
(@CGUID+32, @CGUID+68, 3, 90, 515),
(@CGUID+24, @CGUID+24, 0, 0, 3),
(@CGUID+24, @CGUID+63, 3, 90, 515),
(@CGUID+25, @CGUID+25, 0, 0, 3),
(@CGUID+25, @CGUID+64, 3, 90, 515),
(@CGUID+22, @CGUID+22, 0, 0, 3),
(@CGUID+22, @CGUID+61, 3, 90, 515),
(@CGUID+27, @CGUID+27, 0, 0, 3),
(@CGUID+27, @CGUID+65, 3, 90, 515);
-- Pathing for Deathforge Summoner Entry: 20872
SET @NPC := @CGUID+23;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3249.289,`position_y`=1934.058,`position_z`=106.556366 WHERE `guid`=@CGUID+23;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=0,`position_x`=-3249.289,`position_y`=1934.058,`position_z`=106.556366 WHERE `guid`=@CGUID+62;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3249.289,1934.058,106.556366,NULL,0,0,0,100,0),
(@PATH,2,-3240.7952,1940.6029,109.822235,NULL,0,0,0,100,0),
(@PATH,3,-3227.3296,1952.6995,110.57814,NULL,0,0,0,100,0),
(@PATH,4,-3217.4802,1975.721,107.65374,NULL,0,0,0,100,0),
(@PATH,5,-3212.6528,1977.6903,107.03326,NULL,0,0,0,100,0),
(@PATH,6,-3208.2712,1984.3756,106.52736,NULL,0,0,0,100,0),
(@PATH,7,-3199.6099,2005.0332,100.65568,NULL,0,0,0,100,0),
(@PATH,8,-3193.023,2012.7993,97.4439,NULL,0,0,0,100,0),
(@PATH,9,-3181.3623,2027.7971,93.296684,NULL,0,0,0,100,0),
(@PATH,10,-3193.023,2012.7993,97.4439,NULL,0,0,0,100,0),
(@PATH,11,-3199.6099,2005.0332,100.65568,NULL,0,0,0,100,0),
(@PATH,12,-3208.2712,1984.3756,106.52736,NULL,0,0,0,100,0),
(@PATH,13,-3212.646,1977.6931,107.030266,NULL,0,0,0,100,0),
(@PATH,14,-3217.4802,1975.721,107.65374,NULL,0,0,0,100,0),
(@PATH,15,-3227.3296,1952.6995,110.57814,NULL,0,0,0,100,0),
(@PATH,16,-3240.7952,1940.6029,109.822235,NULL,0,0,0,100,0);
-- 0x2030FC424014620000392800006AA0E7 .go xyz -3249.289 1934.058 106.556366
-- Pathing for Deathforge Summoner Entry: 20872
SET @NPC := @CGUID+32;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3441.2708,`position_y`=2136.4683,`position_z`=32.785088 WHERE `guid`=@CGUID+32;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=0,`position_x`=-3441.2708,`position_y`=2136.4683,`position_z`=32.785088 WHERE `guid`=@CGUID+68;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3441.2708,2136.4683,32.785088,NULL,0,0,0,100,0),
(@PATH,2,-3427.0508,2115.3972,34.58012,NULL,0,0,0,100,0),
(@PATH,3,-3421.247,2109.216,34.44698,NULL,0,0,0,100,0),
(@PATH,4,-3414.311,2109.6887,34.29539,NULL,0,0,0,100,0),
(@PATH,5,-3401.043,2112.6348,34.10258,NULL,0,0,0,100,0),
(@PATH,6,-3393.63,2105.9465,34.051487,NULL,0,0,0,100,0),
(@PATH,7,-3392.7725,2086.0906,34.250164,NULL,0,0,0,100,0),
(@PATH,8,-3382.6184,2065.6775,34.391132,NULL,0,0,0,100,0),
(@PATH,9,-3392.7725,2086.0906,34.250164,NULL,0,0,0,100,0),
(@PATH,10,-3393.63,2105.9465,34.051487,NULL,0,0,0,100,0),
(@PATH,11,-3401.043,2112.6348,34.10258,NULL,0,0,0,100,0),
(@PATH,12,-3414.311,2109.6887,34.29539,NULL,0,0,0,100,0),
(@PATH,13,-3421.247,2109.216,34.44698,NULL,0,0,0,100,0),
(@PATH,14,-3427.0508,2115.3972,34.58012,NULL,0,0,0,100,0);
-- 0x2030FC42401462000039280003EAA0E7 .go xyz -3441.2708 2136.4683 32.785088
-- Pathing for Deathforge Summoner Entry: 20872
SET @NPC := @CGUID+24;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3291.386,`position_y`=1982.4796,`position_z`=52.09859 WHERE `guid`=@CGUID+24;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=0,`position_x`=-3291.386,`position_y`=1982.4796,`position_z`=52.09859 WHERE `guid`=@CGUID+63;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3291.386,1982.4796,52.09859,NULL,0,0,0,100,0),
(@PATH,2,-3295.9385,1982.7728,51.78304,NULL,0,0,0,100,0),
(@PATH,3,-3299.0688,1990.464,49.55733,NULL,0,0,0,100,0),
(@PATH,4,-3306.1125,2009.0087,43.273743,NULL,0,0,0,100,0),
(@PATH,5,-3312.6907,2016.1764,40.107483,NULL,0,0,0,100,0),
(@PATH,6,-3341.4004,2012.4338,32.729168,NULL,0,0,0,100,0),
(@PATH,7,-3353.0286,1992.3295,29.830502,NULL,0,0,0,100,0),
(@PATH,8,-3361.1333,1987.2513,28.030022,NULL,0,0,0,100,0),
(@PATH,9,-3374.1396,1986.1565,24.836876,NULL,0,0,0,100,0),
(@PATH,10,-3394.2058,1991.6322,25.825983,NULL,0,0,0,100,0),
(@PATH,11,-3374.1396,1986.1565,24.836876,NULL,0,0,0,100,0),
(@PATH,12,-3361.1333,1987.2513,28.030022,NULL,0,0,0,100,0),
(@PATH,13,-3353.0286,1992.3295,29.830502,NULL,0,0,0,100,0),
(@PATH,14,-3341.4004,2012.4338,32.729168,NULL,0,0,0,100,0),
(@PATH,15,-3312.6907,2016.1764,40.107483,NULL,0,0,0,100,0),
(@PATH,16,-3306.1125,2009.0087,43.273743,NULL,0,0,0,100,0),
(@PATH,17,-3299.0688,1990.464,49.55733,NULL,0,0,0,100,0),
(@PATH,18,-3295.9385,1982.7728,51.78304,NULL,0,0,0,100,0);
-- 0x2030FC424014620000392800046AA0E7 .go xyz -3291.386 1982.4796 52.09859
-- Pathing for Deathforge Summoner Entry: 20872
SET @NPC := @CGUID+22;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3287.8828,`position_y`=1913.6244,`position_z`=142.81648 WHERE `guid`=@CGUID+22;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=0,`position_x`=-3287.8828,`position_y`=1913.6244,`position_z`=142.81648 WHERE `guid`=@CGUID+61;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3287.8828,1913.6244,142.81648,NULL,0,0,0,100,0),
(@PATH,2,-3293.4028,1928.4772,143.56796,NULL,0,0,0,100,0),
(@PATH,3,-3281.6875,1933.6029,144.61272,NULL,0,0,0,100,0),
(@PATH,4,-3270.929,1937.6763,144.4299,NULL,0,0,0,100,0),
(@PATH,5,-3257.2383,1944.8262,143.263,NULL,0,0,0,100,0),
(@PATH,6,-3244.7031,1948.7324,143.88599,NULL,0,0,0,100,0),
(@PATH,7,-3232.3496,1955.7667,145.72418,NULL,0,0,0,100,0),
(@PATH,8,-3219.4329,1965.9182,144.45306,NULL,0,0,0,100,0),
(@PATH,9,-3211.733,1981.3756,141.17262,NULL,0,0,0,100,0),
(@PATH,10,-3219.4329,1965.9182,144.45306,NULL,0,0,0,100,0),
(@PATH,11,-3232.3496,1955.7667,145.72418,NULL,0,0,0,100,0),
(@PATH,12,-3244.7031,1948.7324,143.88599,NULL,0,0,0,100,0),
(@PATH,13,-3257.2383,1944.8262,143.263,NULL,0,0,0,100,0),
(@PATH,14,-3270.929,1937.6763,144.4299,NULL,0,0,0,100,0),
(@PATH,15,-3281.6875,1933.6029,144.61272,NULL,0,0,0,100,0),
(@PATH,16,-3293.4028,1928.4772,143.56796,NULL,0,0,0,100,0);
-- 0x2030FC42401462000039280005EAA0E7 .go xyz -3287.8828 1913.6244 142.81648
-- Pathing for Deathforge Summoner Entry: 20872
SET @NPC := @CGUID+27;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3350.4548,`position_y`=2102.0413,`position_z`=6.35183 WHERE `guid`=@CGUID+27;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=0,`position_x`=-3350.4548,`position_y`=2102.0413,`position_z`=6.35183 WHERE `guid`=@CGUID+65;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3350.4548,2102.0413,6.35183,NULL,0,0,0,100,0),
(@PATH,2,-3371.799,2078.6301,6.4980073,NULL,0,0,0,100,0),
(@PATH,3,-3393.8728,2072.1277,10.005706,NULL,0,0,0,100,0),
(@PATH,4,-3404.8042,2054.7522,15.128708,NULL,0,0,0,100,0),
(@PATH,5,-3447.9324,2059.6836,15.746407,NULL,0,0,0,100,0),
(@PATH,6,-3406.7312,2053.7075,15.271384,NULL,0,0,0,100,0),
(@PATH,7,-3404.0933,2055.8787,15.2170315,NULL,0,0,0,100,0),
(@PATH,8,-3393.372,2075.341,9.194681,NULL,0,0,0,100,0),
(@PATH,9,-3369.0967,2079.7554,5.8863196,NULL,0,0,0,100,0),
(@PATH,10,-3348.3694,2101.9636,6.004652,NULL,0,0,0,100,0),
(@PATH,11,-3311.7373,2124.7922,8.987838,NULL,0,0,0,100,0),
(@PATH,12,-3350.4548,2102.0413,6.35183,NULL,0,0,0,100,0),
(@PATH,13,-3371.799,2078.6301,6.4980073,NULL,0,0,0,100,0),
(@PATH,14,-3393.8728,2072.1277,10.005706,NULL,0,0,0,100,0),
(@PATH,15,-3404.8042,2054.7522,15.128708,NULL,0,0,0,100,0),
(@PATH,16,-3447.9324,2059.6836,15.746407,NULL,0,0,0,100,0),
(@PATH,17,-3406.7312,2053.7075,15.271384,NULL,0,0,0,100,0),
(@PATH,18,-3395.842,2011.2098,23.021214,NULL,0,0,0,100,0),
(@PATH,19,-3404.0933,2055.8787,15.2170315,NULL,0,0,0,100,0),
(@PATH,20,-3393.372,2075.341,9.194681,NULL,0,0,0,100,0),
(@PATH,21,-3369.0967,2079.7554,5.8863196,NULL,0,0,0,100,0),
(@PATH,22,-3348.3694,2101.9636,6.004652,NULL,0,0,0,100,0),
(@PATH,23,-3311.7373,2124.7922,8.987838,NULL,0,0,0,100,0);
-- 0x2030FC424014620000392800066AA0E7 .go xyz -3350.4548 2102.0413 6.35183
-- Pathing for Deathforge Summoner Entry: 20872
SET @NPC := @CGUID+25;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3276.3625,`position_y`=2037.8624,`position_z`=66.73646 WHERE `guid`=@CGUID+25;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=0,`position_x`=-3276.3625,`position_y`=2037.8624,`position_z`=66.73646 WHERE `guid`=@CGUID+64;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1 ,-3275.4268,2016.694,61.82193,NULL,0,0,0,100,0),
(@PATH,2 ,-3276.3625,2037.8624,66.73646,NULL,0,0,0,100,0),
(@PATH,3 ,-3277.2617,2044.0239,68.41358,NULL,0,0,0,100,0),
(@PATH,4 ,-3274.2263,2055.0208,71.28834,NULL,0,0,0,100,0),
(@PATH,5 ,-3260.7517,2071.1848,74.81242,NULL,0,0,0,100,0),
(@PATH,6 ,-3241.4465,2084.1897,77.30461,NULL,0,0,0,100,0),
(@PATH,7 ,-3221.2805,2093.9385,76.65476,NULL,0,0,0,100,0),
(@PATH,8 ,-3210.8396,2101.748,75.629654,NULL,0,0,0,100,0),
(@PATH,9 ,-3221.25,2093.9658,76.65476,NULL,0,0,0,100,0),
(@PATH,10,-3241.4465,2084.1897,77.30461,NULL,0,0,0,100,0),
(@PATH,11,-3260.7517,2071.1848,74.81242,NULL,0,0,0,100,0),
(@PATH,12,-3274.205,2055.045,71.29359,NULL,0,0,0,100,0),
(@PATH,13,-3277.2617,2044.0239,68.41358,NULL,0,0,0,100,0),
(@PATH,14,-3276.3625,2037.8624,66.73646,NULL,0,0,0,100,0);
-- 0x2030FC42401462000039280004EAA0E7 .go xyz -3276.3625 2037.8624 66.73646
-- Pathing for Deathforge Tinkerer Entry: 19754
SET @NPC := @CGUID+1;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3420.1304,`position_y`=2282.9092,`position_z`=33.51472 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3420.1304,2282.9092,33.51472,NULL,0,1,0,100,0),
(@PATH,2,-3417.118,2263.4177,33.64922,NULL,0,1,0,100,0),
(@PATH,3,-3416.865,2254.3262,33.69727,NULL,0,1,0,100,0),
(@PATH,4,-3428.3596,2249.196,33.632732,NULL,0,1,0,100,0),
(@PATH,5,-3435.316,2242.5996,33.767357,NULL,0,1,0,100,0),
(@PATH,6,-3439.7942,2238.186,33.723534,NULL,0,1,0,100,0),
(@PATH,7,-3446.786,2237.977,33.72885,NULL,0,1,0,100,0),
(@PATH,8,-3462.82,2227.9,33.444492,NULL,0,1,0,100,0),
(@PATH,9,-3472.9297,2229.5059,33.525303,NULL,0,1,0,100,0),
(@PATH,10,-3477.2114,2231.8064,33.52516,NULL,0,1,0,100,0),
(@PATH,11,-3462.82,2227.9,33.444492,NULL,0,1,0,100,0),
(@PATH,12,-3452.246,2235.5383,33.707893,NULL,0,1,0,100,0),
(@PATH,13,-3446.786,2237.977,33.72885,NULL,0,1,0,100,0),
(@PATH,14,-3439.7942,2238.186,33.723534,NULL,0,1,0,100,0),
(@PATH,15,-3428.3596,2249.196,33.632732,NULL,0,1,0,100,0),
(@PATH,16,-3416.865,2254.3262,33.69727,NULL,0,1,0,100,0),
(@PATH,17,-3416.4163,2272.8167,33.712013,NULL,0,1,0,100,0);
-- 0x2030FC4240134A8000392800016AA0E7 .go xyz -3420.1304 2282.9092 33.51472
-- Pathing for Deathforge Tinkerer Entry: 19754
-- 0x2030FC4240134A8000392800006AA0E7 .go xyz -3412.3855 2280.988 33.848083
SET @NPC := @CGUID+5;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3412.3855,`position_y`=2280.988,`position_z`=33.848083 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3412.3855,2280.988,33.848083,NULL,0,1,0,100,0),
(@PATH,2,-3419.7566,2260.3987,33.625275,NULL,0,1,0,100,0),
(@PATH,3,-3432.1763,2248.1692,33.655376,NULL,0,1,0,100,0),
(@PATH,4,-3439.0522,2235.8691,33.697147,NULL,0,1,0,100,0),
(@PATH,5,-3445.5662,2231.0151,33.650684,NULL,0,1,0,100,0),
(@PATH,6,-3452.4036,2231.0183,33.658176,NULL,0,1,0,100,0),
(@PATH,7,-3468.3413,2225.2063,33.525757,NULL,0,1,0,100,0),
(@PATH,8,-3475.888,2220.3936,33.526955,NULL,0,1,0,100,0),
(@PATH,9,-3480.2568,2225.0461,33.526432,NULL,0,1,0,100,0),
(@PATH,10,-3468.3413,2225.2063,33.525757,NULL,0,1,0,100,0),
(@PATH,11,-3457.4155,2230.646,33.613297,NULL,0,1,0,100,0),
(@PATH,12,-3450.227,2229.2805,33.63662,NULL,0,1,0,100,0),
(@PATH,13,-3439.0522,2235.8691,33.697147,NULL,0,1,0,100,0),
(@PATH,14,-3432.1763,2248.1692,33.655376,NULL,0,1,0,100,0),
(@PATH,15,-3426.0977,2255.3433,33.588165,NULL,0,1,0,100,0),
(@PATH,16,-3419.7566,2260.3987,33.625275,NULL,0,1,0,100,0),
(@PATH,17,-3414.0315,2270.5618,33.757763,NULL,0,1,0,100,0);

View File

@@ -0,0 +1,349 @@
-- DB update 2023_02_16_01 -> 2023_02_16_02
-- Delete all old spawns
DELETE FROM `creature` WHERE `id1` IN (21788, 21795);
DELETE FROM `creature` WHERE `id1`=21788 AND `guid` IN (1162,1215,1317,1345,1361,1369,1374,1377,1382,1383,1392,1395,1528,1636,1881,1882,2212,2554,2577,2588,2606,2688,3137,3239,3243,3246,3255,3257,3258,3261,3262,3552,3554,3558,3567,3570,3573,3574,3578,3583,6294);
INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `VerifiedBuild`) VALUES
(1162, 21788, 530, 3520, 3744, 1, 1, 1, -2999.42, 2619.98, 76.7438, 1.65806, 300, 0, 0, 48069),
(1215, 21788, 530, 3520, 3744, 1, 1, 1, -2985.53, 2556.82, 76.6267, 3.9619, 300, 0, 0, 48069),
(1317, 21788, 530, 3520, 3744, 1, 1, 1, -2987.33, 2568.42, 76.6267, 5.84685, 300, 0, 0, 48069),
(1345, 21788, 530, 3520, 3744, 1, 1, 1, -2977.33, 2574.98, 76.6267, 1.41372, 300, 0, 0, 48069),
(1361, 21788, 530, 3520, 3744, 1, 1, 1, -2950.32, 2627.79, 90.1358, 3.91042, 300, 0, 2, 48069),
(1369, 21788, 530, 3520, 3744, 1, 1, 1, -2965.68, 2540.96, 76.6267, 4.45059, 300, 0, 0, 48069),
(1374, 21788, 530, 3520, 3744, 1, 1, 1, -2932.27, 2652.53, 93.7619, 3.9619, 300, 0, 0, 48069),
(1377, 21788, 530, 3520, 3744, 1, 1, 1, -3016.36, 2549.72, 79.1196, 1.29154, 300, 0, 0, 48069),
(1382, 21788, 530, 3520, 3744, 1, 1, 1, -3028.98, 2656.45, 77.0467, 4.20624, 300, 0, 0, 48069),
(1383, 21788, 530, 3520, 3744, 1, 1, 1, -3046.55, 2641.27, 76.6267, 5.91667, 300, 0, 0, 48069),
(1392, 21788, 530, 3520, 3744, 1, 1, 1, -2907.59, 2603.01, 93.7636, 2.42601, 300, 0, 0, 48069),
(1395, 21788, 530, 3520, 3744, 1, 1, 1, -2903.63, 2615.3, 93.7636, 3.07178, 300, 0, 0, 48069),
(1528, 21788, 530, 3520, 3744, 1, 1, 1, -2926.18, 2646.13, 93.7365, 3.68264, 300, 0, 0, 48069),
(1636, 21788, 530, 3520, 3744, 1, 1, 1, -3036.08, 2528.19, 63.4115, 5.16617, 300, 0, 0, 48069),
(1881, 21788, 530, 3520, 3744, 1, 1, 1, -2963.02, 2518.09, 78.1958, 0.10472, 300, 0, 0, 48069),
(1882, 21788, 530, 3520, 3744, 1, 1, 1, -3039.82, 2590.35, 75.343, 4.08158, 300, 0, 2, 48069),
(2212, 21788, 530, 3520, 3744, 1, 1, 1, -3020.44, 2502.76, 62.7676, 0.296706, 300, 0, 0, 48069),
(2554, 21788, 530, 3520, 3744, 1, 1, 1, -3001.51, 2507.45, 61.3395, 1.55334, 300, 0, 0, 48069),
(2577, 21788, 530, 3520, 3744, 1, 1, 1, -2939.04, 2675.21, 93.7636, 4.43314, 300, 0, 0, 48069),
(2588, 21788, 530, 3520, 3744, 1, 1, 1, -3073.79, 2609.98, 61.8124, 1.11701, 300, 0, 0, 48069),
(2606, 21788, 530, 3520, 3744, 1, 1, 1, -3022.7, 2512.11, 68.6565, 0.383972, 300, 0, 0, 48069),
(2688, 21788, 530, 3520, 3744, 1, 1, 1, -3034.21, 2499.92, 63.1432, 1.48353, 300, 0, 0, 48069),
(3137, 21788, 530, 3520, 3744, 1, 1, 1, -3079.53, 2527.94, 62.6586, 0.15708, 300, 0, 0, 48069),
(3239, 21788, 530, 3520, 3744, 1, 1, 1, -3088.92, 2564.31, 61.9645, 1.16096, 300, 0, 2, 48069),
(3243, 21788, 530, 3520, 3744, 1, 1, 1, -3090.44, 2579.88, 61.8531, 4.81711, 300, 0, 0, 48069),
(3246, 21788, 530, 3520, 3744, 1, 1, 1, -3067.42, 2495.91, 64.7398, 1.5708, 300, 0, 0, 48069),
(3255, 21788, 530, 3520, 3744, 1, 1, 1, -3116.47, 2572.71, 61.8892, 0.10472, 300, 0, 0, 48069),
(3257, 21788, 530, 3520, 3744, 1, 1, 1, -3115.36, 2556.79, 61.9195, 0.314159, 300, 0, 0, 48069),
(3258, 21788, 530, 3520, 3744, 1, 1, 1, -3130.25, 2537.19, 61.8124, 0.925025, 300, 0, 0, 48069),
(3261, 21788, 530, 3520, 3744, 1, 1, 1, -3133.15, 2585.91, 61.8072, 2.86234, 300, 0, 0, 48069),
(3262, 21788, 530, 3520, 3744, 1, 1, 1, -3133.63, 2548.74, 62.054, 6.19592, 300, 0, 0, 48069),
(3552, 21788, 530, 3520, 3744, 1, 1, 1, -3122.75, 2501.02, 62.7039, 5.51524, 300, 0, 0, 48069),
(3554, 21788, 530, 3520, 3744, 1, 1, 1, -3061.51, 2459.65, 65.1814, 4.5204, 300, 0, 0, 48069),
(3558, 21788, 530, 3520, 3744, 1, 1, 1, -3125.39, 2489.52, 62.0623, 5.11381, 300, 0, 0, 48069),
(3567, 21788, 530, 3520, 3744, 1, 1, 1, -3072.73, 2425.39, 62.5464, 4.25418, 300, 0, 2, 48069),
(3570, 21788, 530, 3520, 3744, 1, 1, 1, -3115.36, 2440.23, 64.6714, 1.90241, 300, 0, 0, 48069),
(3573, 21788, 530, 3520, 3744, 1, 1, 1, -3147.67, 2577.59, 62.381, 1.8675, 300, 0, 0, 48069),
(3574, 21788, 530, 3520, 3744, 1, 1, 1, -3163.9, 2579.59, 62.7036, 0.488692, 300, 0, 0, 48069),
(3578, 21788, 530, 3520, 3744, 1, 1, 1, -3138.01, 2452.76, 63.8288, 4.15388, 300, 0, 0, 48069),
(3583, 21788, 530, 3520, 3744, 1, 1, 1, -3144.15, 2617.15, 61.8556, 3.75246, 300, 0, 0, 48069),
(6294, 21788, 530, 3520, 3744, 1, 1, 1, -3090.62, 2402.48, 63.1453, 4.31096, 300, 0, 0, 48069);
-- Add missing aura
UPDATE `creature_template_addon` SET `bytes2` = 1, `auras` = '37509 37467' WHERE (`entry` = 21788);
-- EmoteStates
DELETE FROM `creature_addon` WHERE (`guid` IN (1317,1881,1162,1636,2688,2212,2554,2606,2588,1383,1382,3583,3574,3573,3261,3570,3578,3558,3552,3258,3262));
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES
(1317, 0, 0, 0, 1, 69, 0, '37509 37467'),
(1881, 0, 0, 0, 1, 69, 0, '37509 37467'),
(1162, 0, 0, 0, 1, 69, 0, '37509 37467'),
(1636, 0, 0, 0, 1, 173, 0, '37509 37467'),
(2688, 0, 0, 0, 1, 173, 0, '37509 37467'),
(2212, 0, 0, 0, 1, 173, 0, '37509 37467'),
(2554, 0, 0, 0, 1, 173, 0, '37509 37467'),
(2606, 0, 0, 0, 1, 173, 0, '37509 37467'),
(2588, 0, 0, 0, 1, 173, 0, '37509 37467'),
(1383, 0, 0, 0, 1, 173, 0, '37509 37467'),
(1382, 0, 0, 0, 1, 173, 0, '37509 37467'),
(3583, 0, 0, 0, 1, 173, 0, '37509 37467'),
(3574, 0, 0, 0, 1, 173, 0, '37509 37467'),
(3573, 0, 0, 0, 1, 173, 0, '37509 37467'),
(3261, 0, 0, 0, 1, 173, 0, '37509 37467'),
(3570, 0, 0, 0, 1, 69, 0, '37509 37467'),
(3578, 0, 0, 0, 1, 69, 0, '37509 37467'),
(3558, 0, 0, 0, 1, 173, 0, '37509 37467'),
(3552, 0, 0, 0, 1, 173, 0, '37509 37467'),
(3258, 0, 0, 0, 1, 173, 0, '37509 37467'),
(3262, 0, 0, 0, 1, 173, 0, '37509 37467');
SET @NPC := 1882;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-2983.5215,`position_y`=2598.1836,`position_z`=78.26283 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '37509 37467');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-2983.5215,2598.1836,78.26283,NULL,0,0,0,100,0),
(@PATH,2,-3024.7961,2595.5806,76.43522,NULL,0,0,0,100,0),
(@PATH,3,-3039.0452,2591.4111,75.666115,NULL,0,0,0,100,0),
(@PATH,4,-3047.9443,2579.204,72.64109,NULL,0,0,0,100,0),
(@PATH,5,-3061.8794,2539.9922,62.18476,NULL,0,0,0,100,0),
(@PATH,6,-3091.3047,2537.0774,61.979004,NULL,0,0,0,100,0),
(@PATH,7,-3061.8794,2539.9922,62.18476,NULL,0,0,0,100,0),
(@PATH,8,-3047.9443,2579.204,72.64109,NULL,0,0,0,100,0),
(@PATH,9,-3039.0957,2591.3184,75.63206,NULL,0,0,0,100,0),
(@PATH,10,-3024.7961,2595.5806,76.43522,NULL,0,0,0,100,0);
SET @NPC := 1361;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-2933.8972,`position_y`=2643.6787,`position_z`=93.74599 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '37509 37467');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1 ,-2933.8972,2643.6787,93.74599,NULL,0,0,0,100,0),
(@PATH,2 ,-2955.7297,2622.529,88.13892,NULL,0,0,0,100,0),
(@PATH,3 ,-2980.0588,2599.9182,78.87392,NULL,0,0,0,100,0),
(@PATH,4 ,-2978.64,2596.0317,78.716446,NULL,0,0,0,100,0),
(@PATH,5 ,-2972.57,2581.042,76.66835,NULL,0,0,0,100,0),
(@PATH,6 ,-2972.9563,2575.763,76.72368,NULL,0,0,0,100,0),
(@PATH,7 ,-2975.4248,2570.8157,78.03902,NULL,0,0,0,100,0),
(@PATH,8 ,-2982.6028,2555.2698,77.1833,NULL,0,0,0,100,0),
(@PATH,9 ,-2985.2214,2550.3682,76.64052,NULL,0,0,0,100,0),
(@PATH,10,-2982.6028,2555.2698,77.1833,NULL,0,0,0,100,0),
(@PATH,11,-2975.4248,2570.8157,78.03902,NULL,0,0,0,100,0),
(@PATH,12,-2972.9563,2575.763,76.72368,NULL,0,0,0,100,0),
(@PATH,13,-2972.57,2581.042,76.66835,NULL,0,0,0,100,0),
(@PATH,14,-2978.64,2596.0317,78.716446,NULL,0,0,0,100,0),
(@PATH,15,-2980.0588,2599.9182,78.87392,NULL,0,0,0,100,0),
(@PATH,16,-2955.7297,2622.529,88.13892,NULL,0,0,0,100,0);
SET @NPC := 3239;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3093.9133,`position_y`=2552.819,`position_z`=61.854004 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '37509 37467');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3093.9133,2552.819,61.854004,NULL,0,0,0,100,0),
(@PATH,2,-3088.2668,2565.8164,61.979004,NULL,0,0,0,100,0),
(@PATH,3,-3092.8552,2574.3938,61.85414,NULL,0,0,0,100,0),
(@PATH,4,-3104.494,2575.0054,61.879585,NULL,0,0,0,100,0),
(@PATH,5,-3114.3167,2564.6672,61.751812,NULL,0,0,0,100,0),
(@PATH,6,-3103.5955,2551.0715,61.751812,NULL,0,0,0,100,0);
SET @NPC := 3567;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3069.491,`position_y`=2529.9836,`position_z`=61.854004 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,1,0,0, '37509 37467');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3069.491,2529.9836,61.854004,NULL,0,0,0,100,0),
(@PATH,2,-3070.1697,2512.4446,62.604004,NULL,0,0,0,100,0),
(@PATH,3,-3062.1099,2501.7195,63.482788,NULL,0,0,0,100,0),
(@PATH,4,-3062.6467,2491.8025,64.98155,NULL,0,0,0,100,0),
(@PATH,5,-3063.126,2487.5073,64.8179,NULL,0,0,0,100,0),
(@PATH,6,-3065.7622,2464.375,65.06447,NULL,0,0,0,100,0),
(@PATH,7,-3066.259,2460.8157,65.101944,NULL,0,0,0,100,0),
(@PATH,8,-3071.4614,2433.7969,63.650608,NULL,0,0,0,100,0),
(@PATH,9,-3072.3816,2426.0962,62.559624,NULL,0,0,0,100,0),
(@PATH,10,-3083.289,2403.9827,62.741753,NULL,0,0,0,100,0),
(@PATH,11,-3088.302,2397.173,62.38616,NULL,0,0,0,100,0),
(@PATH,12,-3083.289,2403.9827,62.741753,NULL,0,0,0,100,0),
(@PATH,13,-3072.3816,2426.0962,62.559624,NULL,0,0,0,100,0),
(@PATH,14,-3065.7622,2464.375,65.06447,NULL,0,0,0,100,0),
(@PATH,15,-3063.126,2487.5073,64.8179,NULL,0,0,0,100,0),
(@PATH,16,-3062.6467,2491.8025,64.98155,NULL,0,0,0,100,0),
(@PATH,17,-3062.1099,2501.7195,63.482788,NULL,0,0,0,100,0),
(@PATH,18,-3070.1697,2512.4446,62.604004,NULL,0,0,0,100,0);
-- Corrects Positions of some NPCs
UPDATE `creature` SET `position_x`=-2903.655029296875, `position_y`=2615.60546875, `position_z`=93.76357269287109375, `orientation`=2.932153224945068359 WHERE `id1`=19343 AND `guid`=68959;
UPDATE `creature` SET `position_x`=-2908.09375, `position_y`=2603.760498046875, `position_z`=93.76357269287109375, `orientation`=2.30383467674255371 WHERE `id1`=19345 AND `guid`=68961;
UPDATE `creature` SET `position_x`=-2939.28369140625, `position_y`=2675.38134765625, `position_z`=93.76357269287109375, `orientation`=4.468042850494384765 WHERE `id1`=19348 AND `guid`=68964;
UPDATE `creature` SET `position_x`=-2999.8582, `position_y`=2619.497, `position_z`=76.782364, `orientation`=4.86946868896484375 WHERE `id1`=25099 AND `guid`=41791;
-- Zealot Equip Template
DELETE FROM `creature_equip_template` WHERE (`CreatureID` = 21788);
INSERT INTO `creature_equip_template` (`CreatureID`, `ID`, `ItemID1`, `ItemID2`, `ItemID3`, `VerifiedBuild`) VALUES
(21788, 1, 1902, 0, 0, 0);
-- Shadowmoon Harbingers
DELETE FROM `creature` WHERE `id1`=21795 AND `guid` IN (7202 ,8311 ,10196,11502,11511,11600,11601,11747,12158,12160,12161,12162,12163,12457,12582,12583,12606,12607,12811,12812,12817,12819,13050,14076,14324,14325,14326,14327,14328,14329,14330,14331,14332,14346,14543,14544,14547,14551,14558,14561,14579,14634,14638,15928,16383,16385,16387,20941,20942,23441,23741,23743,23744);
INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `areaId`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `VerifiedBuild`) VALUES
(7202, 21795, 530, 3520, 3745, 0, -4050.8, 2243.12, 112.043, 5.6946, 300, 2, 1, 48069),
(8311, 21795, 530, 3520, 3745, 0, -4080.77, 2180.18, 100.277, 6.24393, 300, 2, 1, 48069),
(10196, 21795, 530, 3520, 3745, 0, -4086.96, 2167.92, 111.387, 0.0649286, 300, 2, 1, 48069),
(11502, 21795, 530, 3520, 3745, 0, -4054.94, 2274.02, 121.762, 3.39019, 300, 2, 1, 48069),
(11511, 21795, 530, 3520, 3745, 0, -3999.76, 2176.03, 104.419, 5.62719, 300, 0, 2, 48069),
(11600, 21795, 530, 3520, 3745, 0, -4070.18, 2227.96, 113.434, 2.43949, 300, 2, 1, 48069),
(11601, 21795, 530, 3520, 3745, 0, -3939.28, 2225.49, 101.916, 3.34277, 300, 3, 1, 48069),
(11747, 21795, 530, 3520, 3745, 0, -4029.85, 2166.81, 106.749, 2.4746, 300, 3, 1, 48069),
(12158, 21795, 530, 3520, 3745, 0, -4085.28, 2247.69, 121.762, 4.80283, 300, 2, 1, 48069),
(12160, 21795, 530, 3520, 3745, 0, -4019.56, 2140.34, 104.301, 4.00924, 300, 2, 1, 48069),
(12161, 21795, 530, 3520, 3745, 0, -4074.58, 2178.52, 107.496, 5.21588, 300, 2, 1, 48069),
(12162, 21795, 530, 3520, 3745, 0, -3984.63, 2198.21, 101.978, 2.99783, 300, 3, 1, 48069),
(12163, 21795, 530, 3520, 3745, 0, -4087, 2244.29, 112.043, 2.76699, 300, 2, 1, 48069),
(12457, 21795, 530, 3520, 3745, 0, -3987.09, 2152.82, 104.346, 5.47441, 300, 3, 1, 48069),
(12582, 21795, 530, 3520, 3745, 0, -4008.08, 2160.41, 105.051, 6.10071, 300, 0, 2, 48069),
(12583, 21795, 530, 3520, 3745, 0, -4092.31, 2182.77, 106.936, 1.42375, 300, 2, 1, 48069),
(12606, 21795, 530, 3520, 3745, 0, -3956.32, 2237.76, 101.962, 2.20807, 300, 0, 2, 48069),
(12607, 21795, 530, 3520, 3745, 0, -4066.46, 2258.75, 94.8242, 5.52225, 300, 2, 1, 48069),
(12811, 21795, 530, 3520, 3745, 0, -3997.78, 2140.65, 104.734, 1.15619, 300, 0, 2, 48069),
(12812, 21795, 530, 3520, 3745, 0, -3941.4, 2192.35, 101.924, 1.11448, 300, 3, 1, 48069),
(12817, 21795, 530, 3520, 3745, 0, -4034.84, 2262.57, 113.434, 3.23854, 300, 2, 1, 48069),
(12819, 21795, 530, 3520, 3745, 0, -4093.05, 2185.36, 100.277, 1.10346, 300, 2, 1, 48069),
(13050, 21795, 530, 3520, 3745, 0, -4070.78, 2261.45, 112.043, 3.61995, 300, 2, 1, 48069),
(14076, 21795, 530, 3520, 3745, 0, -4087.86, 2207.58, 97.2149, 4.31553, 300, 2, 1, 48069),
(14324, 21795, 530, 3520, 3745, 0, -4052.95, 2279.67, 112.043, 1.38974, 300, 2, 1, 48069),
(14325, 21795, 530, 3520, 3745, 0, -3974.89, 2120.57, 104.232, 2.66117, 300, 3, 1, 48069),
(14326, 21795, 530, 3520, 3745, 0, -4074.12, 2266.24, 94.8243, 2.22216, 300, 2, 1, 48069),
(14327, 21795, 530, 3520, 3745, 0, -3939.81, 2152.92, 100.524, 1.08951, 300, 3, 1, 48069),
(14328, 21795, 530, 3520, 3745, 0, -3998.09, 2097.96, 137.242, 2.75096, 300, 0, 2, 48069),
(14329, 21795, 530, 3520, 3745, 0, -3949.75, 2265.68, 99.2305, 3.45364, 300, 3, 1, 48069),
(14330, 21795, 530, 3520, 3745, 0, -4086.29, 2261.55, 103.981, 4.91699, 300, 2, 1, 48069),
(14331, 21795, 530, 3520, 3745, 0, -4069.3, 2287.77, 103.98, 5.17287, 300, 2, 1, 48069),
(14332, 21795, 530, 3520, 3745, 0, -4096.8, 2258.41, 103.98, 4.80697, 300, 2, 1, 48069),
(14346, 21795, 530, 3520, 3745, 0, -3941.76, 2174.4, 101.475, 2.1149, 300, 0, 2, 48069),
(14543, 21795, 530, 3520, 3745, 0, -3915.35, 2108.43, 97.1916, 4.14084, 300, 3, 1, 48069),
(14544, 21795, 530, 3520, 3745, 0, -3914.45, 2103.59, 96.1418, 0.586566, 300, 3, 1, 48069),
(14547, 21795, 530, 3520, 3745, 0, -3858.33, 2202.6, 95.8032, 4.71239, 300, 12, 1, 48069),
(14551, 21795, 530, 3520, 3745, 0, -4070.84, 2292.97, 110.652, 5.08149, 300, 0, 0, 48069),
(14558, 21795, 530, 3520, 3745, 0, -4087.17, 2284.47, 103.98, 0.493549, 300, 0, 0, 48069),
(14561, 21795, 530, 3520, 3745, 0, -4077.56, 2297.66, 121.762, 5.84576, 300, 0, 0, 48069),
(14579, 21795, 530, 3520, 3745, 0, -4103.11, 2262.73, 110.652, 5.04158, 300, 0, 0, 48069),
(14634, 21795, 530, 3520, 3745, 0, -4094.2, 2275.16, 112.043, 1.64821, 300, 0, 0, 48069),
(14638, 21795, 530, 3520, 3745, 0, -4110.22, 2271.54, 121.762, 1.72507, 300, 0, 0, 48069),
(15928, 21795, 530, 3520, 3745, 0, -4109.65, 2297.24, 121.762, 1.22016, 300, 0, 0, 48069),
(16383, 21795, 530, 3520, 3745, 0, -3957.69, 2047.99, 95.1048, 0.965733, 300, 12, 1, 48069),
(16385, 21795, 530, 3520, 3745, 0, -3923.67, 2053.05, 95.1598, 4.87277, 300, 12, 1, 48069),
(16387, 21795, 530, 3520, 3745, 0, -3837.59, 2114.16, 94.0097, 6.05016, 300, 12, 1, 48069),
(20941, 21795, 530, 3520, 3745, 0, -3823.16, 2115.78, 91.368, 6.27049, 300, 12, 1, 48069),
(20942, 21795, 530, 3520, 3745, 0, -3841.24, 2176.07, 95.0957, 2.06718, 300, 12, 1, 48069),
(23441, 21795, 530, 3520, 3745, 0, -3848.2, 2249.49, 96.1485, 2.75056, 300, 0, 0, 48069),
(23741, 21795, 530, 3520, 3745, 0, -3820.97, 2188.18, 91.1958, 2.72862, 300, 12, 1, 48069),
(23743, 21795, 530, 3520, 3745, 0, -3822.84, 2231.41, 92.1447, 2.09902, 300, 0, 0, 48069),
(23744, 21795, 530, 3520, 3745, 0, -3999.95, 1999.96, 95.2805, 5.47502, 300, 0, 0, 48069);
-- Set movement for every harbinger inside the main building
UPDATE `creature` SET `wander_distance`=2, `MovementType`=1 WHERE `id1`=21795 AND `guid` IN (14332,14331,14330,14328,14326,14076,14324,13050,12817,12819,12607,12583,12158,12161,12163,11600,11502,10196,8311,7202,12161,12583,12160);
UPDATE `creature` SET `wander_distance`=12, `MovementType`=1 WHERE `id1`=21795 AND `guid` IN (16383,16387,20941,23741,20942,14547,16385);
SET @NPC := 11511;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3999.7612,`position_y`=2176.0293,`position_z`=104.41897 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37467 37509');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3999.7612,2176.0293,104.41897,NULL,0,0,0,100,0),
(@PATH,2,-3972.0134,2190.886,101.88503,NULL,0,0,0,100,0),
(@PATH,3,-3972.9146,2202.0095,101.70632,NULL,0,0,0,100,0),
(@PATH,4,-3997.1401,2217.4153,104.72634,NULL,0,0,0,100,0),
(@PATH,5,-4022.4749,2218.094,110.06057,NULL,0,0,0,100,0),
(@PATH,6,-4025.8816,2219.4587,110.31728,NULL,0,0,0,100,0),
(@PATH,7,-4024.3582,2209.3901,109.74197,NULL,0,0,0,100,0),
(@PATH,8,-4020.0977,2186.2214,107.882095,NULL,0,0,0,100,0),
(@PATH,9,-4010.251,2178.6438,105.79164,NULL,0,0,0,100,0);
SET @NPC := 14346;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3941.764,`position_y`=2174.395,`position_z`=101.47483 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37467 37509');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3941.764,2174.395,101.47483,NULL,0,0,0,100,0),
(@PATH,2,-3955.132,2167.856,100.00425,NULL,0,0,0,100,0),
(@PATH,3,-3952.9424,2141.3313,98.55625,NULL,0,0,0,100,0),
(@PATH,4,-3946.266,2130.2925,97.48784,NULL,0,0,0,100,0),
(@PATH,5,-3936.5078,2117.3242,96.29057,NULL,0,0,0,100,0),
(@PATH,6,-3931.6584,2103.5051,94.88107,NULL,0,0,0,100,0),
(@PATH,7,-3920.9348,2093.7053,94.28906,NULL,0,0,0,100,0),
(@PATH,8,-3911.3855,2084.8774,93.98193,NULL,0,0,0,100,0),
(@PATH,9,-3895.2727,2065.3416,94.288475,NULL,0,0,0,100,0),
(@PATH,10,-3911.3855,2084.8774,93.98193,NULL,0,0,0,100,0),
(@PATH,11,-3920.9348,2093.7053,94.28906,NULL,0,0,0,100,0),
(@PATH,12,-3931.6584,2103.5051,94.88107,NULL,0,0,0,100,0),
(@PATH,13,-3936.5078,2117.3242,96.29057,NULL,0,0,0,100,0),
(@PATH,14,-3946.266,2130.2925,97.48784,NULL,0,0,0,100,0),
(@PATH,15,-3952.9424,2141.3313,98.55625,NULL,0,0,0,100,0),
(@PATH,16,-3955.132,2167.856,100.00425,NULL,0,0,0,100,0);
SET @NPC := 14328;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3998.0916,`position_y`=2097.955,`position_z`=137.24152 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37467 37509');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3998.0916,2097.955,137.24152,NULL,0,0,0,100,0),
(@PATH,2,-4033.5908,2115.7417,137.23189,NULL,0,0,0,100,0),
(@PATH,3,-4067.9219,2129.8794,137.2598,NULL,0,0,0,100,0),
(@PATH,4,-4033.5908,2115.7417,137.23189,NULL,0,0,0,100,0);
SET @NPC := 12811;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3997.7783,`position_y`=2140.6536,`position_z`=104.73433 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37467 37509');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3997.7783,2140.6536,104.73433,NULL,0,0,0,100,0),
(@PATH,2,-4000.6433,2133.9727,105.73658,NULL,0,0,0,100,0),
(@PATH,3,-4006.1736,2121.4075,115.08989,NULL,0,0,0,100,0),
(@PATH,4,-4008.0847,2115.1497,115.623795,NULL,0,0,0,100,0),
(@PATH,5,-4047.5369,2133.2236,137.24315,NULL,0,0,0,100,0),
(@PATH,6,-4006.1736,2121.4075,115.08989,NULL,0,0,0,100,0),
(@PATH,7,-4000.6433,2133.9727,105.73658,NULL,0,0,0,100,0);
SET @NPC := 12582;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-4008.0833,`position_y`=2160.4094,`position_z`=105.05068 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37467 37509');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-4008.0833,2160.4094,105.05068,NULL,0,0,0,100,0),
(@PATH,2,-4004.2214,2174.4575,104.94032,NULL,0,0,0,100,0),
(@PATH,3,-4018.816,2179.6648,107.19447,NULL,0,0,0,100,0),
(@PATH,4,-4036.5151,2182.9263,108.911476,NULL,0,0,0,100,0),
(@PATH,5,-4018.816,2179.6648,107.19447,NULL,0,0,0,100,0),
(@PATH,6,-4004.2214,2174.4575,104.94032,NULL,0,0,0,100,0);
SET @NPC := 12606;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3956.3213,`position_y`=2237.7644,`position_z`=101.96201 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37467 37509');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3956.3213,2237.7644,101.96201,NULL,0,0,0,100,0),
(@PATH,2,-3959.4504,2211.259,101.91565,NULL,0,0,0,100,0),
(@PATH,3,-3969.9905,2205.709,101.76003,NULL,0,0,0,100,0),
(@PATH,4,-3972.0886,2195.8716,101.88503,NULL,0,0,0,100,0),
(@PATH,5,-3962.5134,2186.7585,101.96177,NULL,0,0,0,100,0),
(@PATH,6,-3955.4993,2190.8352,101.79905,NULL,0,0,0,100,0),
(@PATH,7,-3952.0386,2202.4385,101.77075,NULL,0,0,0,100,0),
(@PATH,8,-3958.7395,2211.49,101.91565,NULL,0,0,0,100,0);
-- Creature Texts
DELETE FROM `creature_text` WHERE `CreatureID` IN (21788, 21795);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(21788, 0, 0, 'We will never dissipate, mortal... Our fate is tied to Gorefiend...', 15, 0, 100, 0, 0, 0, 19444, 0, 'Shadowmoon Zealot'),
(21788, 0, 1, 'Pray that the chilling embrace of Teron Gorefiend does not reach out for you...', 15, 0, 100, 0, 0, 0, 19445, 0, 'Shadowmoon Zealot'),
(21788, 0, 2, 'It is you who have invaded our home. Gorefiend will avenge us!', 15, 0, 100, 0, 0, 0, 19446, 0, 'Shadowmoon Zealot'),
(21788, 0, 3, 'Gorefiend will have your head, interloper!', 15, 0, 100, 0, 0, 0, 19447, 0, 'Shadowmoon Zealot'),
(21788, 0, 4, 'We are bound here... eternally. It is the will of Gorefiend.', 15, 0, 100, 0, 0, 0, 19448, 0, 'Shadowmoon Zealot'),
(21795, 0, 0, 'We will never dissipate, mortal... Our fate is tied to Gorefiend...', 15, 0, 100, 0, 0, 0, 19444, 0, 'Shadowmoon Harbinger'),
(21795, 0, 1, 'Pray that the chilling embrace of Teron Gorefiend does not reach out for you...', 15, 0, 100, 0, 0, 0, 19445, 0, 'Shadowmoon Harbinger'),
(21795, 0, 2, 'It is you who have invaded our home. Gorefiend will avenge us!', 15, 0, 100, 0, 0, 0, 19446, 0, 'Shadowmoon Harbinger'),
(21795, 0, 3, 'Gorefiend will have your head, interloper!', 15, 0, 100, 0, 0, 0, 19447, 0, 'Shadowmoon Harbinger'),
(21795, 0, 4, 'We are bound here... eternally. It is the will of Gorefiend.', 15, 0, 100, 0, 0, 0, 19448, 0, 'Shadowmoon Harbinger');
-- SAI
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (21788, 21795);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (21788, 21795) AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(21788, 0, 0, 0, 6, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Shadowmoon Zealot - On Death - Say Line 0'),
(21795, 0, 0, 0, 6, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Shadowmoon Harbinger - On Death - Say Line 0');

View File

@@ -0,0 +1,256 @@
-- DB update 2023_02_16_02 -> 2023_02_16_03
-- Delete all previous spawns
DELETE FROM `creature` WHERE `id1`=21815;
DELETE FROM `creature_addon` WHERE `guid` BETWEEN 76347 AND 76376;
DELETE FROM `waypoint_data` WHERE `id` BETWEEN 763470 AND 763760;
-- Update Template
UPDATE `creature_template_addon` SET `bytes1` = 0, `bytes2` = 0, `auras` = '37509 37497' WHERE (`entry` = 21815);
SET @GUID := 76347;
DELETE FROM `creature` WHERE `id1`=21815 AND `guid` BETWEEN @GUID+0 AND @GUID+29;
INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `VerifiedBuild`) VALUES
(@GUID+0 , 21815, 530, 3520, 0, -3887.04, 713.771, 8.29782, 1.82762, 300, 10, 1, 48069),
(@GUID+1 , 21815, 530, 3520, 0, -3849.29, 694.933, 5.71439, 3.87034, 300, 10, 1, 48069),
(@GUID+2 , 21815, 530, 3520, 0, -3854.41, 698.188, 6.53198, 0.306488, 300, 10, 1, 48069),
(@GUID+3 , 21815, 530, 3520, 0, -3766.98, 700.139, 8.31596, 4.407, 300, 10, 1, 48069),
(@GUID+4 , 21815, 530, 3520, 0, -3750.56, 716.819, 8.73649, 4.53786, 300, 0, 0, 48069),
(@GUID+5 , 21815, 530, 3520, 0, -3744.44, 676.38, 6.24564, 2.32439, 300, 10, 1, 48069),
(@GUID+6 , 21815, 530, 3520, 0, -3733.26, 733.125, 8.4431, 4.72984, 300, 0, 0, 48069),
(@GUID+7 , 21815, 530, 3520, 0, -3717.39, 716.184, 5.91291, 4.31096, 300, 0, 0, 48069),
(@GUID+8 , 21815, 530, 3520, 0, -3716.77, 684.095, 2.97334, 4.59022, 300, 0, 0, 48069),
(@GUID+9 , 21815, 530, 3520, 0, -3714.98, 702.358, 4.65603, 3.05748, 300, 10, 1, 48069),
(@GUID+10, 21815, 530, 3520, 0, -3710.93, 745.914, 4.09289, 2.98865, 300, 10, 1, 48069),
(@GUID+11, 21815, 530, 3520, 0, -3682.72, 715.336, 1.83526, 4.5204, 300, 0, 0, 48069),
(@GUID+12, 21815, 530, 3520, 0, -3690.71, 636.486, 2.23195, 0.83101, 300, 10, 1, 48069),
(@GUID+13, 21815, 530, 3520, 0, -3699.59, 733.226, 2.86307, 4.59022, 300, 0, 0, 48069),
(@GUID+14, 21815, 530, 3520, 0, -3707.96, 745.452, 3.56198, 2.98575, 300, 10, 1, 48069),
(@GUID+15, 21815, 530, 3520, 0, -3682.75, 684.471, 4.11465, 4.67748, 300, 0, 0, 48069),
(@GUID+16, 21815, 530, 3520, 0, -3658.89, 678.813, 2.39562, 4.08407, 300, 0, 0, 48069),
(@GUID+17, 21815, 530, 3520, 0, -3649.91, 715.165, -0.439142, 4.81711, 300, 0, 0, 48069),
(@GUID+18, 21815, 530, 3520, 0, -3633.06, 688.628, -0.872612, 4.60767, 300, 0, 0, 48069),
(@GUID+19, 21815, 530, 3520, 0, -3618.23, 712.812, -5.62207, 4.55531, 300, 0, 0, 48069),
(@GUID+20, 21815, 530, 3520, 0, -3449.61, 651.914, 5.48536, 4.41568, 300, 0, 0, 48069),
(@GUID+21, 21815, 530, 3520, 0, -3448.87, 681.795, 1.83994, 4.39823, 300, 0, 0, 48069),
(@GUID+22, 21815, 530, 3520, 0, -3417.83, 683.332, 3.42784, 4.5204, 300, 0, 0, 48069),
(@GUID+23, 21815, 530, 3520, 0, -3417.53, 655.185, 8.10019, 4.45059, 300, 0, 0, 48069),
(@GUID+24, 21815, 530, 3520, 0, -3389.03, 685.481, 4.64398, 4.55531, 300, 0, 0, 48069),
(@GUID+25, 21815, 530, 3520, 0, -3381.63, 690.305, 2.30061, 0.896055, 300, 10, 1, 48069),
(@GUID+26, 21815, 530, 3520, 0, -3368.94, 689.885, 0.267471, 4.19106, 300, 10, 1, 48069),
(@GUID+27, 21815, 530, 3520, 0, -3352.51, 653.728, 8.90633, 4.55531, 300, 0, 0, 48069),
(@GUID+28, 21815, 530, 3520, 0, -3311.53, 681.949, 3.57055, 4.50295, 300, 0, 0, 48069),
(@GUID+29, 21815, 530, 3520, 0, -3298.01, 737.507, -12.9353, 4.28148, 300, 10, 1, 48069);
-- Delete Useless SAI (obsoleted by auras field
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 21815) AND (`source_type` = 0);
-- Stationary GUIDs do random emotes (these don't have any other SAI)
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21815);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(-(@GUID+4 ), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+6 ), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+7 ), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+8 ), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+11), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+13), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+15), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+17), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+18), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+19), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+20), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+21), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+22), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+23), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+24), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+27), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)'),
(-(@GUID+28), 0, 0, 0, 1, 0, 100, 0, 3000, 7000, 3000, 7000, 0, 10, 18, 20, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Cleric of Karabor - Out of Combat - Play Random Emote (18, 20)');
-- The Cleric near the Meeting Stone has an EmoteState
DELETE FROM `creature_addon` WHERE `guid`=@GUID+16;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@GUID+16,0,0,0,0,69,0, '37509 37497');
-- Pathing
SET @NPC := @GUID+0;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3869.5764,`position_y`=759.3223,`position_z`=10.068203 WHERE `guid`=@GUID+0;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=0,`position_x`=-3869.5764,`position_y`=759.3223,`position_z`=10.068203 WHERE `guid`=@GUID+1;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1 ,-3869.5764,759.3223,10.068203,NULL,0,0,0,100,0),
(@PATH,2 ,-3834.4094,750.589,11.009603,NULL,0,0,0,100,0),
(@PATH,3 ,-3800.625,749.4453,10.881915,NULL,0,0,0,100,0),
(@PATH,4 ,-3770.5815,746.9241,8.975661,NULL,0,0,0,100,0),
(@PATH,5 ,-3739.184,750.26605,7.625188,NULL,0,0,0,100,0),
(@PATH,6 ,-3705.9006,745.1378,3.2208452,NULL,0,0,0,100,0),
(@PATH,7 ,-3675.9314,737.9171,-0.3524542,NULL,0,0,0,100,0),
(@PATH,8 ,-3651.636,731.10114,-3.2281065,NULL,0,0,0,100,0),
(@PATH,9 ,-3634.649,725.6624,-5.1051817,NULL,0,0,0,100,0),
(@PATH,10,-3613.014,734.74524,-9.089146,NULL,0,0,0,100,0),
(@PATH,11,-3578.7466,738.03754,-11.877126,NULL,0,0,0,100,0),
(@PATH,12,-3613.014,734.74524,-9.089146,NULL,0,0,0,100,0),
(@PATH,13,-3634.649,725.6624,-5.1051817,NULL,0,0,0,100,0),
(@PATH,14,-3651.636,731.10114,-3.2281065,NULL,0,0,0,100,0),
(@PATH,15,-3675.9314,737.9171,-0.3524542,NULL,0,0,0,100,0),
(@PATH,16,-3705.9006,745.1378,3.2208452,NULL,0,0,0,100,0),
(@PATH,17,-3739.184,750.26605,7.625188,NULL,0,0,0,100,0),
(@PATH,18,-3770.5815,746.9241,8.975661,NULL,0,0,0,100,0),
(@PATH,19,-3800.625,749.4453,10.881915,NULL,0,0,0,100,0),
(@PATH,20,-3834.4094,750.589,11.009603,NULL,0,0,0,100,0);
DELETE FROM `creature_formations` WHERE `memberGUID` IN (@GUID+0, @GUID+1);
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`) VALUES
(@GUID+0, @GUID+0, 0, 0, 3),
(@GUID+0, @GUID+1, 4, 180, 515);
SET @NPC := @GUID+2;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3747.236,`position_y`=696.5975,`position_z`=6.5840187 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3747.236,696.5975,6.5840187,NULL,0,0,0,100,0),
(@PATH,2,-3730.9023,698.65857,3.9634356,NULL,0,0,0,100,0),
(@PATH,3,-3722.947,690.0796,3.4161944,NULL,0,0,0,100,0),
(@PATH,4,-3729.0647,673.63995,4.2409015,NULL,0,0,0,100,0),
(@PATH,5,-3740.9297,672.6357,5.4780617,NULL,0,0,0,100,0),
(@PATH,6,-3751.7456,684.16174,7.1030617,NULL,0,0,0,100,0);
SET @NPC := @GUID+3;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3760.0994,`position_y`=701.21185,`position_z`=8.138514 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3760.0994,701.21185,8.138514,NULL,0,0,0,100,0),
(@PATH,2,-3735.13,704.054,5.157435,NULL,0,0,0,100,0),
(@PATH,3,-3704.3057,701.4581,3.496435,NULL,0,0,0,100,0),
(@PATH,4,-3682.0999,701.26227,3.1714263,NULL,0,0,0,100,0),
(@PATH,5,-3651.9983,700.2391,0.22538471,NULL,0,0,0,100,0),
(@PATH,6,-3618.2942,698.29016,-4.0110435,NULL,0,0,0,100,0);
SET @NPC := @GUID+5;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3254.29,`position_y`=698.9422,`position_z`=-0.21338493 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3254.29,698.9422,-0.21338493,NULL,0,0,0,100,0),
(@PATH,2,-3269.0117,731.6173,-9.155927,NULL,0,0,0,100,0),
(@PATH,3,-3286.4524,743.7444,-13.61463,NULL,0,0,0,100,0),
(@PATH,4,-3296.0322,741.8055,-14.152838,NULL,0,0,0,100,0),
(@PATH,5,-3303.5566,725.4404,-9.488642,NULL,0,0,0,100,0),
(@PATH,6,-3298.8667,703.29083,-2.2325869,NULL,0,0,0,100,0),
(@PATH,7,-3281.4404,695.50433,-0.15322602,NULL,0,0,0,100,0),
(@PATH,8,-3270.842,697.1268,-0.31582367,NULL,0,0,0,100,0);
SET @NPC := @GUID+9;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3880.9531,`position_y`=743.5303,`position_z`=10.1663475 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3880.9531,743.5303,10.1663475,NULL,0,0,0,100,0),
(@PATH,2,-3861.636,742.01324,11.263143,NULL,0,0,0,100,0),
(@PATH,3,-3856.0808,731.877,12.064431,NULL,0,0,0,100,0),
(@PATH,4,-3855.645,711.5427,9.751931,NULL,0,0,0,100,0),
(@PATH,5,-3871.3838,700.5008,7.004488,NULL,0,0,0,100,0),
(@PATH,6,-3885.0618,706.26013,7.678072,NULL,0,0,0,100,0),
(@PATH,7,-3890.3376,726.3714,8.703218,NULL,0,0,0,100,0);
SET @NPC := @GUID+10;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3785.0684,`position_y`=683.5791,`position_z`=5.889006 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3785.0684,683.5791,5.889006,NULL,0,0,0,100,0),
(@PATH,2,-3803.7048,690.65753,6.0817604,NULL,0,0,0,100,0),
(@PATH,3,-3811.6797,707.48224,9.257961,NULL,0,0,0,100,0),
(@PATH,4,-3804.8096,734.0828,13.369342,NULL,0,0,0,100,0),
(@PATH,5,-3786.9722,736.4728,12.661452,NULL,0,0,0,100,0),
(@PATH,6,-3770.7656,734.17395,11.812331,NULL,0,0,0,100,0),
(@PATH,7,-3766.2847,718.8295,9.656214,NULL,0,0,0,100,0),
(@PATH,8,-3765.27,705.5667,8.656458,NULL,0,0,0,100,0),
(@PATH,9,-3770.7708,688.1346,7.402678,NULL,0,0,0,100,0);
SET @NPC := @GUID+12;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3843.1797,`position_y`=672.1553,`position_z`=3.1999207 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3843.1797,672.1553,3.1999207,NULL,0,0,0,100,0),
(@PATH,2,-3822.7634,678.561,3.681614,NULL,0,0,0,100,0),
(@PATH,3,-3820.191,690.44226,5.6217995,NULL,0,0,0,100,0),
(@PATH,4,-3825.3499,700.38947,7.2865257,NULL,0,0,0,100,0),
(@PATH,5,-3839.6736,703.5138,7.699929,NULL,0,0,0,100,0),
(@PATH,6,-3852.221,692.3139,5.230194,NULL,0,0,0,100,0);
SET @NPC := @GUID+14;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3681.981,`position_y`=672.6074,`position_z`=2.5414386 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3681.981,672.6074,2.5414386,NULL,0,0,0,100,0),
(@PATH,2,-3697.5095,679.7098,1.6525227,NULL,0,0,0,100,0),
(@PATH,3,-3716.136,662.59656,1.9161946,NULL,0,0,0,100,0),
(@PATH,4,-3695.6536,631.07117,2.1196935,NULL,0,0,0,100,0),
(@PATH,5,-3675.394,653.26544,1.074654,NULL,0,0,0,100,0);
SET @NPC := @GUID+25;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3361.677,`position_y`=663.71295,`position_z`=7.0698924 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3361.677,663.71295,7.0698924,NULL,0,0,0,100,0),
(@PATH,2,-3340.6047,658.2445,7.2334666,NULL,0,0,0,100,0),
(@PATH,3,-3330.0156,661.8594,7.659556,NULL,0,0,0,100,0),
(@PATH,4,-3324.579,681.2995,3.2608604,NULL,0,0,0,100,0),
(@PATH,5,-3334.5027,695.6724,-2.6810365,NULL,0,0,0,100,0),
(@PATH,6,-3352.145,705.7665,-7.396452,NULL,0,0,0,100,0),
(@PATH,7,-3363.9849,698.51746,-4.011969,NULL,0,0,0,100,0),
(@PATH,8,-3372.8135,683.12305,3.467493,NULL,0,0,0,100,0);
SET @NPC := @GUID+26;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3353.7112,`position_y`=738.6812,`position_z`=-21.589752 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3353.7112,738.6812,-21.589752,NULL,0,0,0,100,0),
(@PATH,2,-3368.1436,707.1668,-7.8815174,NULL,0,0,0,100,0),
(@PATH,3,-3390.9631,678.6413,6.280115,NULL,0,0,0,100,0),
(@PATH,4,-3424.6484,666.9002,5.771608,NULL,0,0,0,100,0),
(@PATH,5,-3450.5193,667.2751,3.0163298,NULL,0,0,0,100,0),
(@PATH,6,-3482.091,679.81305,0.5905714,NULL,0,0,0,100,0),
(@PATH,7,-3450.5193,667.2751,3.0163298,NULL,0,0,0,100,0),
(@PATH,8,-3424.6484,666.9002,5.771608,NULL,0,0,0,100,0),
(@PATH,9,-3390.9631,678.6413,6.280115,NULL,0,0,0,100,0),
(@PATH,10,-3368.1436,707.1668,-7.8815174,NULL,0,0,0,100,0);
SET @NPC := @GUID+29;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `wander_distance`=0,`MovementType`=2,`position_x`=-3857.2578,`position_y`=670.34406,`position_z`=3.6999207 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES (@NPC,@PATH,0,0,0,0,0, '37509 37497');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-3857.2578,670.34406,3.6999207,NULL,0,0,0,100,0),
(@PATH,2,-3876.7979,679.27246,3.8857965,NULL,0,0,0,100,0),
(@PATH,3,-3876.2832,691.2627,5.2607965,NULL,0,0,0,100,0),
(@PATH,4,-3854.0938,698.28723,6.538788,NULL,0,0,0,100,0),
(@PATH,5,-3848.75,681.0957,3.6999207,NULL,0,0,0,100,0);