Partial Fix Quest 27969 Make Yourself Useful

By Malcrom
This commit is contained in:
Aokromes authored and Ovahlord committed 2019-05-28 13:02:57 +02:00
1 parent 91dc7db90f
commit 51da8e66a2
1 file changed
+445
@@ -0,0 +1,445 @@
-- Partial Fix Quest 27969 "Make Yourself Useful"
-- Set Equipment
UPDATE `creature` SET `equipment_id`=0 WHERE `guid` IN (266313,266329,226330,266333,266341,266342,266545,266561,266642,266320,252598,264000,266615); -- PATHING
UPDATE `creature` SET `equipment_id`=0 WHERE `guid` IN (266332,266344,266544,266548,266643,266343,266312,252600,252602,266613); -- KNEELING
UPDATE `creature` SET `equipment_id`=0 WHERE `guid` IN (266346,266546,266547,266562,266327,266317,266340,266314,266319,252601,266638); -- STATE_USESTANDING_NOSHEATHE
UPDATE `creature` SET `equipment_id`=1 WHERE `guid` IN (266345,266347,266331,266334,266328,266641,266318,266315,266316,266337,266339,266336,266338,266335,252599,266614,266639); -- STATE_WORK_MINING
-- Set kneel state
DELETE FROM `creature_addon` WHERE `guid` IN (266332,266344,266544,266548,266643,266343,266312,252600,252602,266613);
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(266332,0,0,8,1,0, ''),(266344,0,0,8,1,0, ''),(266544,0,0,8,1,0, ''),(266548,0,0,8,1,0, ''),(266643,0,0,8,1,0, ''),
(266343,0,0,8,1,0, ''),(266312,0,0,8,1,0, ''),(252600,0,0,8,1,0, ''),(252602,0,0,8,1,0, ''),(266613,0,0,8,1,0, '');
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266561;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10775.6,`position_y`=859.326,`position_z`=1.250772 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10775.6,859.326,1.250772,0,0,0,0,100,0),
(@PATH,2,-10796.6,861.438,1.250772,0,0,0,0,100,0),
(@PATH,3,-10813.5,862.566,1.250772,0,0,0,0,100,0),
(@PATH,4,-10796.6,861.438,1.250772,0,0,0,0,100,0),
(@PATH,5,-10775.6,859.326,1.250772,0,0,0,0,100,0),
(@PATH,6,-10765.5,858.356,1.039835,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266342;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10563.6,`position_y`=952.899,`position_z`=42.44232 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10563.6,952.899,42.44232,0,0,0,0,100,0),
(@PATH,2,-10577.9,966.635,38.78928,0,0,0,0,100,0),
(@PATH,3,-10563.6,952.899,42.44232,0,0,0,0,100,0),
(@PATH,4,-10545.3,943.399,44.03229,0,0,0,0,100,0),
(@PATH,5,-10525.9,935.929,44.25151,0,0,0,0,100,0),
(@PATH,6,-10545.3,943.399,44.03229,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 264000;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10383.3,`position_y`=1074.79,`position_z`=64.9967 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10383.3,1074.79,64.9967,0,0,0,0,100,0),
(@PATH,2,-10387.1,1077.4,63.45007,0,0,0,0,100,0),
(@PATH,3,-10383.3,1074.79,64.9967,0,0,0,0,100,0),
(@PATH,4,-10380.1,1073.14,65.50549,0,0,0,0,100,0),
(@PATH,5,-10377,1070.57,66.25256,0,0,0,0,100,0),
(@PATH,6,-10373.9,1066.66,67.04495,0,0,0,0,100,0),
(@PATH,7,-10370.8,1063.3,67.29495,0,0,0,0,100,0),
(@PATH,8,-10366.6,1061.83,67.80446,0,0,0,0,100,0),
(@PATH,9,-10357.7,1064.41,67.06459,0,0,0,0,100,0),
(@PATH,10,-10366.6,1061.83,67.80446,0,0,0,0,100,0),
(@PATH,11,-10370.8,1063.3,67.29495,0,0,0,0,100,0),
(@PATH,12,-10373.9,1066.66,67.04495,0,0,0,0,100,0),
(@PATH,13,-10377,1070.57,66.25256,0,0,0,0,100,0),
(@PATH,14,-10380.1,1073.14,65.50549,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266329;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10439.6,`position_y`=1152.14,`position_z`=55.6641 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10439.6,1152.14,55.6641,0,0,0,0,100,0),
(@PATH,2,-10437.5,1155.74,56.73246,0,0,0,0,100,0),
(@PATH,3,-10436.8,1159.21,57.33964,0,0,0,0,100,0),
(@PATH,4,-10435.6,1162.64,58.18327,0,0,0,0,100,0),
(@PATH,5,-10437,1166.55,58.5745,0,0,0,0,100,0),
(@PATH,6,-10438.5,1170.07,58.71746,0,0,0,0,100,0),
(@PATH,7,-10441.1,1173.35,59.06781,0,0,0,0,100,0),
(@PATH,8,-10444.2,1176.43,59.06781,0,0,0,0,100,0),
(@PATH,9,-10446.9,1178.58,58.88617,0,0,0,0,100,0),
(@PATH,10,-10450.3,1180.94,58.03668,0,0,0,0,100,0),
(@PATH,11,-10452.9,1181.8,57.35467,0,0,0,0,100,0),
(@PATH,12,-10455.8,1182.63,56.66961,0,0,0,0,100,0),
(@PATH,13,-10452.9,1181.8,57.35467,0,0,0,0,100,0),
(@PATH,14,-10450.3,1180.94,58.03668,0,0,0,0,100,0),
(@PATH,15,-10446.9,1178.58,58.88617,0,0,0,0,100,0),
(@PATH,16,-10444.2,1176.43,59.06781,0,0,0,0,100,0),
(@PATH,17,-10441.1,1173.35,59.06781,0,0,0,0,100,0),
(@PATH,18,-10438.5,1170.07,58.71746,0,0,0,0,100,0),
(@PATH,19,-10437,1166.55,58.5745,0,0,0,0,100,0),
(@PATH,20,-10435.6,1162.64,58.18327,0,0,0,0,100,0),
(@PATH,21,-10436.8,1159.21,57.33964,0,0,0,0,100,0),
(@PATH,22,-10437.5,1155.74,56.73246,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266313;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10478,`position_y`=974.563,`position_z`=42.0183 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10478,974.563,42.0183,0,0,0,0,100,0),
(@PATH,2,-10477.8,956.802,41.9409,0,0,0,0,100,0),
(@PATH,3,-10478,974.563,42.0183,0,0,0,0,100,0),
(@PATH,4,-10490.9,989.656,42.61961,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266330;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10557.2,`position_y`=1142.97,`position_z`=34.87698 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10557.2,1142.97,34.87698,0,0,0,0,100,0),
(@PATH,2,-10557.8,1148.17,34.96328,0,0,0,0,100,0),
(@PATH,3,-10559.1,1151.83,34.77578,0,0,0,0,100,0),
(@PATH,4,-10560.4,1157.37,34.27431,0,0,0,0,100,0),
(@PATH,5,-10563.2,1161.22,33.4164,0,0,0,0,100,0),
(@PATH,6,-10565.2,1166.57,32.38552,0,0,0,0,100,0),
(@PATH,7,-10567.8,1170.83,31.70522,0,0,0,0,100,0),
(@PATH,8,-10565.2,1166.57,32.38552,0,0,0,0,100,0),
(@PATH,9,-10563.2,1161.22,33.4164,0,0,0,0,100,0),
(@PATH,10,-10560.4,1157.37,34.27431,0,0,0,0,100,0),
(@PATH,11,-10559.1,1151.83,34.77578,0,0,0,0,100,0),
(@PATH,12,-10557.8,1148.17,34.96328,0,0,0,0,100,0),
(@PATH,13,-10557.2,1142.97,34.87698,0,0,0,0,100,0),
(@PATH,14,-10557.8,1135.69,34.18179,0,0,0,0,100,0),
(@PATH,15,-10561.9,1131.307,33.0752,0,0,0,0,100,0),
(@PATH,16,-10567.9,1129.29,32.25073,0,0,0,0,100,0),
(@PATH,17,-10561.9,1131.3,33.14368,0,0,0,0,100,0),
(@PATH,18,-10557.8,1135.683,34.20986,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266333;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10592.2,`position_y`=1119.23,`position_z`=30.25427 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10592.2,1119.23,30.25427,0,0,0,0,100,0),
(@PATH,2,-10597.5,1121.32,30.25513,0,0,0,0,100,0),
(@PATH,3,-10601.5,1125.25,30.17081,0,0,0,0,100,0),
(@PATH,4,-10606,1129.28,29.67984,0,0,0,0,100,0),
(@PATH,5,-10609.1,1132,28.98148,0,0,0,0,100,0),
(@PATH,6,-10612.4,1135.15,28.10674,0,0,0,0,100,0),
(@PATH,7,-10609.1,1132,28.98148,0,0,0,0,100,0),
(@PATH,8,-10606,1129.28,29.67984,0,0,0,0,100,0),
(@PATH,9,-10601.5,1125.25,30.17081,0,0,0,0,100,0),
(@PATH,10,-10597.5,1121.32,30.25513,0,0,0,0,100,0),
(@PATH,11,-10592.2,1119.23,30.25427,0,0,0,0,100,0),
(@PATH,12,-10584.7,1118.94,30.46936,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266341;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10512.6,`position_y`=1000.55,`position_z`=43.22828 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10512.6,1000.55,43.22828,0,0,0,0,100,0),
(@PATH,2,-10527,1003.19,42.97486,0,0,0,0,100,0),
(@PATH,3,-10549.2,1002.18,41.2632,0,0,0,0,100,0),
(@PATH,4,-10570.4,996.976,38.84095,0,0,0,0,100,0),
(@PATH,5,-10549.2,1002.18,41.2632,0,0,0,0,100,0),
(@PATH,6,-10527,1003.19,42.97486,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266642;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10514.3,`position_y`=1305.84,`position_z`=63.59494 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10514.3,1305.84,63.59494,0,0,0,0,100,0),
(@PATH,2,-10512.4,1302.32,63.8005,0,0,0,0,100,0),
(@PATH,3,-10508.8,1298.02,64.26659,0,0,0,0,100,0),
(@PATH,4,-10506.1,1294.49,64.44091,0,0,0,0,100,0),
(@PATH,5,-10502.8,1289.3,65.27966,0,0,0,0,100,0),
(@PATH,6,-10500.2,1284.32,65.95507,0,0,0,0,100,0),
(@PATH,7,-10496.7,1280.49,65.74802,0,0,0,0,100,0),
(@PATH,8,-10500.2,1284.32,65.95507,0,0,0,0,100,0),
(@PATH,9,-10502.8,1289.3,65.27966,0,0,0,0,100,0),
(@PATH,10,-10506.1,1294.49,64.44091,0,0,0,0,100,0),
(@PATH,11,-10508.8,1298.02,64.26659,0,0,0,0,100,0),
(@PATH,12,-10512.4,1302.32,63.8005,0,0,0,0,100,0);
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 252598;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10338.6,`position_y`=894.453,`position_z`=59.4205 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10338.6,894.453,59.4205,0,0,0,0,100,0),
(@PATH,2,-10336,899.299,60.6705,0,0,0,0,100,0),
(@PATH,3,-10332.5,902.281,61.41233,0,0,0,0,100,0),
(@PATH,4,-10329.1,906.035,62.16233,0,0,0,0,100,0),
(@PATH,5,-10327.3,910.976,62.41233,0,0,0,0,100,0),
(@PATH,6,-10329.1,906.035,62.16233,0,0,0,0,100,0),
(@PATH,7,-10332.5,902.281,61.41233,0,0,0,0,100,0),
(@PATH,8,-10336,899.299,60.6705,0,0,0,0,100,0),
(@PATH,9,-10338.6,894.453,59.4205,0,0,0,0,100,0),
(@PATH,10,-10341.1,892.181,58.0455,0,0,0,0,100,0);
-- 0xF130BA4A000171F2 .go xyz -10338.6 894.453 59.4205
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT'
SET @NPC := 266615;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10633.3,`position_y`=1267.26,`position_z`=29.29817 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10633.3,1267.26,29.29817,0,0,0,0,100,0),
(@PATH,2,-10626.7,1268.97,29.42317,0,0,0,0,100,0),
(@PATH,3,-10620.2,1271.45,29.04011,0,0,0,0,100,0),
(@PATH,4,-10611.6,1275.37,30.13166,0,0,0,0,100,0),
(@PATH,5,-10605.4,1279.3,31.01643,0,0,0,0,100,0),
(@PATH,6,-10600.2,1284.23,31.01399,0,0,0,0,100,0),
(@PATH,7,-10605.4,1279.3,31.01643,0,0,0,0,100,0),
(@PATH,8,-10611.6,1275.37,30.13166,0,0,0,0,100,0),
(@PATH,9,-10620.2,1271.45,29.04011,0,0,0,0,100,0),
(@PATH,10,-10626.7,1268.97,29.42317,0,0,0,0,100,0);
-- 0xF130BA4A00005CA7 .go xyz -10633.3 1267.26 29.29817
-- Pathing for Schnottz's Landing Laborer Entry: 47291 'TDB FORMAT' **** Part Path ****
SET @NPC := 266320;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-10270.8,`position_y`=1180.47,`position_z`=109.6696 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,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,-10270.8,1180.47,109.6696,0,0,0,0,100,0),
(@PATH,2,-10275,1176.85,108.1696,0,0,0,0,100,0),
(@PATH,3,-10270.8,1180.47,109.6696,0,0,0,0,100,0),
(@PATH,4,-10267.3,1183.04,110.9196,0,0,0,0,100,0),
(@PATH,5,-10262.7,1185.24,112.5931,0,0,0,0,100,0),
(@PATH,6,-10255.84,1186.187,114.72,0,0,0,0,100,0),
(@PATH,7,-10250.63,1182.774,114.7818,0,0,0,0,100,0),
(@PATH,8,-10255.84,1186.187,114.72,0,0,0,0,100,0),
(@PATH,9,-10267.3,1183.04,110.9196,0,0,0,0,100,0);
-- 0xF130B8BB0000A23D .go xyz -10270.8 1180.47 109.6696
-- Fix entry 47690
UPDATE `creature_template` SET `unit_flags`=0 WHERE `entry` IN (47690);
-- Add missing npcs
DELETE FROM `creature` WHERE `guid` BETWEEN 259631 AND 259680;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseUseFlags`, `phaseMask`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
-- Use standing
(259631,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10487.1,953.938,42.2085,1.09956,120,0,0,1,0,0,0,0,0,'',0),
(259632,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10389.2,1094.8,60.6248,5.34071,120,0,0,1,0,0,0,0,0,'',0),
(259633,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10267.7,1168.89,109.417,1.02974,120,0,0,1,0,0,0,0,0,'',0),
(259634,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10478.9,1251.24,61.3526,0.593412,120,0,0,1,0,0,0,0,0,'',0),
(259635,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10510.5,983.854,44.0004,3.45575,120,0,0,1,0,0,0,0,0,'',0),
(259636,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10645.4,877.13,27.0717,2.47837,120,0,0,1,0,0,0,0,0,'',0),
(259637,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10743,879.047,16.5781,4.46804,120,0,0,1,0,0,0,0,0,'',0),
(259638,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10764.1,851.431,1.10149,3.4383,120,0,0,1,0,0,0,0,0,'',0),
(259639,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10821.1,859.221,1.3341,2.07694,120,0,0,1,0,0,0,0,0,'',0),
(259640,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10596.1,1291.55,30.0507,1.58825,120,0,0,1,0,0,0,0,0,'',0),
(259641,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10357.6,888.941,53.3628,6.17846,120,0,0,1,0,0,0,0,0,'',0),
-- Working with pick
(259642,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10478.5,1025.56,42.0008,4.31096,120,0,0,1,0,0,0,0,0,'',0),
(259643,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10470.8,1007.46,43.342,2.3911,120,0,0,1,0,0,0,0,0,'',0),
(259644,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10372.1,1090.53,64.8038,2.30383,120,0,0,1,0,0,0,0,0,'',0),
(259645,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10476.5,1160.64,43.413,6.10865,120,0,0,1,0,0,0,0,0,'',0),
(259646,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10598.4,1137.92,24.5409,6.16101,120,0,0,1,0,0,0,0,0,'',0),
(259647,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10577.6,1139.56,23.0552,3.63029,120,0,0,1,0,0,0,0,0,'',0),
(259648,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10505.5,947.641,37.5263,3.7001,120,0,0,1,0,0,0,0,0,'',0),
(259649,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10527.4,958.309,37.3206,5.25344,120,0,0,1,0,0,0,0,0,'',0),
(259650,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10513.3,1015.63,43.5008,5.06145,120,0,0,1,0,0,0,0,0,'',0),
(259651,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10509.6,971.422,36.9291,3.92699,120,0,0,1,0,0,0,0,0,'',0),
(259652,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10499.4,1008.18,43.2797,1.32645,120,0,0,1,0,0,0,0,0,'',0),
(259653,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10661.3,866.047,23.3188,6.17846,120,0,0,1,0,0,0,0,0,'',0),
(259654,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10649.2,859.221,24.8267,3.12414,120,0,0,1,0,0,0,0,0,'',0),
(259655,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10608.6,1296.74,25.2261,0,120,0,0,1,0,0,0,0,0,'',0),
(259656,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10599.6,1303.41,34.2536,4.79965,120,0,0,1,0,0,0,0,0,'',0),
(259657,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10481.6,1270.89,61.2745,6.05629,120,0,0,1,0,0,0,0,0,'',0),
(259658,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10348.1,881.429,55.0621,1.50098,120,0,0,1,0,0,0,0,0,'',0),
-- Kneeling
(259659,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10508.6,1314.48,65.8654,1.6057,120,0,0,1,0,0,0,0,0,'',0),
(259660,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10350.1,898.05,58.1504,4.71239,120,0,0,1,0,0,0,0,0,'',0),
(259661,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10250.5,1179.73,114.221,5.49779,120,0,0,1,0,0,0,0,0,'',0),
(259662,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10510.8,926.373,43.055,0.610865,120,0,0,1,0,0,0,0,0,'',0),
(259663,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10588.1,1139.63,22.1896,4.90438,120,0,0,1,0,0,0,0,0,'',0),
(259664,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10575.4,993.358,37.8502,4.2237,120,0,0,1,0,0,0,0,0,'',0),
(259665,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10655.4,878.413,26.0874,1.58825,120,0,0,1,0,0,0,0,0,'',0),
(259666,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10703.6,831.686,1.20066,1.71042,120,0,0,1,0,0,0,0,0,'',0),
(259667,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10746.4,827.941,1.19232,1.20428,120,0,0,1,0,0,0,0,0,'',0),
(259668,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10627.6,1279.04,28.2729,3.08923,120,0,0,1,0,0,0,0,0,'',0),
-- Pathing
(259669,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10478,974.563,42.0183,2.27803,120,0,0,1,0,2,0,0,0,'',0),
(259670,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10270.8,1180.47,109.67,0.634903,120,0,0,1,0,2,0,0,0,'',0),
(259671,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10439.6,1152.14,55.6641,4.18416,120,0,0,1,0,2,0,0,0,'',0),
(259672,47690,1,5034,5602,1,0,1,315,0,-1,0,1,-10557.2,1142.97,34.877,4.63053,120,0,0,1,0,2,0,0,0,'',0),
(259673,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10592.2,1119.23,30.2543,5.90756,120,0,0,1,0,2,0,0,0,'',0),
(259674,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10512.6,1000.55,43.2283,3.18755,120,0,0,1,0,2,0,0,0,'',0),
(259675,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10563.6,952.899,42.4423,5.51815,120,0,0,1,0,2,0,0,0,'',0),
(259676,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10742.4,888.491,16.6804,1.64388,120,0,0,1,0,2,0,0,0,'',0),
(259677,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10775.6,859.326,1.25077,3.07494,120,0,0,1,0,2,0,0,0,'',0),
(259678,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10620.2,1271.45,29.0401,0.426216,120,0,0,1,0,2,0,0,0,'',0),
(259679,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10514.3,1305.84,63.5949,2.06562,120,0,0,1,0,2,0,0,0,'',0),
(259680,47690,1,5034,5602,1,0,1,315,0,-1,0,0,-10338.6,894.453,59.4205,3.84814,120,0,0,1,0,2,0,0,0,'',0);
-- Set kneel state
DELETE FROM `creature_addon` WHERE `guid` BETWEEN 259659 AND 259668;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(259659,0,0,8,1,0, ''),(259660,0,0,8,1,0, ''),(259661,0,0,8,1,0, ''),(259662,0,0,8,1,0, ''),(259663,0,0,8,1,0, ''),
(259664,0,0,8,1,0, ''),(259665,0,0,8,1,0, ''),(259666,0,0,8,1,0, ''),(259667,0,0,8,1,0, ''),(259668,0,0,8,1,0, '');
-- Set Paths
DELETE FROM `creature_addon` WHERE `guid` BETWEEN 259669 AND 259680;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(259669,2663130,0,0,1,0, ''),(259670,2663200,0,0,1,0, ''),(259671,2663290,0,0,1,0, ''),(259672,2663300,0,0,1,0, ''),(259673,2663330,0,0,1,0, ''),(259674,2663410,0,0,1,0, ''),
(259675,2663420,0,0,1,0, ''),(259676,2665450,0,0,1,0, ''),(259677,2665610,0,0,1,0, ''),(259678,2666150,0,0,1,0, ''),(259679,2666420,0,0,1,0, ''),(259680,2525980,0,0,1,0, '');
-- Fix Gossip Option
UPDATE `gossip_menu_option` SET `OptionBroadcastTextID`=47450,`OptionType`=1,`OptionNpcFlag`=1 WHERE `MenuID`=12238;
-- Add Spell Script for Spell Refurbished Trooper Uniform
DELETE FROM `spell_scripts` WHERE `id`=88236;
INSERT INTO `spell_scripts` (`id`,`effIndex`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES
(88236,0,0,15,88210,2,0,0,0,0,0);
DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=88210;
INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment`) VALUES
(88210,88225,2, 'Uniform - Make Yourself Useful - Uniform 01'),
(88210,88234,2, 'Uniform - See Quest Invis 5'),
(88210,88235,2, 'Uniform - Force Reaction 1');
-- Add missing equipment for Slacking Laborer
DELETE FROM `creature_equip_template` WHERE `CreatureID`=47292;
INSERT INTO `creature_equip_template` (`CreatureID`,`ID`,`ItemID1`,`ItemID2`,`ItemID3`,`VerifiedBuild`) VALUES
(47292,1,2716,0,0,0);
DELETE FROM `creature_text` WHERE `CreatureID`=47292;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(47292, 0, 0, 'I didn''t sign up for this...', 12, 0, 100, 0, 0, 0, 47451, 'Slacking Laborer'),
(47292, 0, 1, 'I should never have left Tanaris.', 12, 0, 100, 0, 0, 0, 47452, 'Slacking Laborer'),
(47292, 0, 2, 'I was happier as a Wastewander.', 12, 0, 100, 0, 0, 0, 47453, 'Slacking Laborer'),
(47292, 0, 3, 'Yeah, yeah. When aren''t we behind schedule?', 12, 0, 100, 0, 0, 0, 47454, 'Slacking Laborer'),
(47292, 0, 4, 'I''m not working for that maniac anymore!', 12, 0, 100, 0, 0, 0, 47455, 'Slacking Laborer'),
(47292, 0, 5, 'I have a message for you to deliver to that tyrant!', 12, 0, 100, 0, 0, 0, 47456, 'Slacking Laborer'),
(47292, 0, 6, 'I haven''t been paid since I got here! I''m through with this place!', 12, 0, 100, 0, 0, 0, 47457, 'Slacking Laborer'),
(47292, 0, 7, 'I''m done working in this heat!', 12, 0, 100, 0, 0, 0, 47458, 'Slacking Laborer'),
(47292, 0, 8, 'I can''t believe I fell for Schnottz''s lies! I''m out of here!', 12, 0, 100, 0, 0, 0, 47459, 'Slacking Laborer');
-- Fix Gossip Option
UPDATE `gossip_menu_option` SET `OptionBroadcastTextID`=47450,`OptionType`=1,`OptionNpcFlag`=1 WHERE `MenuID`=12238;
-- Add missing npcs
SET @GUID := 259681;
DELETE FROM `creature` WHERE `guid` BETWEEN @GUID AND @GUID+36;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseUseFlags`, `phaseMask`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(@GUID,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10671.4,875.599,25.36993,6.091199,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+1,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10745,894.814,17.60773,3.822271,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+2,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10660.6,845.981,25.30503,0,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+3,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10523.1,943.073,44.24103,3.804818,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+4,47292,1,5034,5602,1,0,1,315,0,-1,0,0,-10531.1,928.894,44.34563,1.064651,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+5,47292,1,5034,5602,1,0,1,315,0,-1,0,0,-10574.9,1123.05,31.29493,4.904375,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+6,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10566.3,1134.34,32.74553,2.80998,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+7,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10458.2,1016.51,43.60713,2.879793,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+8,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10379.8,1064,66.08694,0.5585054,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+9,47292,1,5034,5602,1,0,1,315,0,-1,0,0,-10473.8,937.125,41.81823,2.617994,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+10,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10515.4,1032.32,43.63223,5.078908,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+11,47292,1,5034,5602,1,0,1,315,0,-1,0,0,-10578.3,1153.32,22.72743,1.745329,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+12,47292,1,5034,5602,1,0,1,315,0,-1,0,0,-10471.4,1226.74,61.94303,2.338741,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+13,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10450.4,1230.71,68.40813,3.525565,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+14,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10477.2,1181.94,48.24493,4.206244,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+15,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10490.6,1157.75,43.72463,0.1919862,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+16,47292,1,5034,5602,1,0,1,315,0,-1,0,0,-10509.5,1326.52,67.63514,3.298672,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+17,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10522.2,1322.25,63.63873,0.4363323,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+18,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10516.6,1335.02,67.09213,4.729842,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+19,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10539.6,1209.62,37.16003,3.961897,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+20,47292,1,5034,5602,1,0,1,315,0,-1,0,0,-10637.7,1285.77,29.62563,5.305801,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+21,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10536.7,1195.49,36.99943,4.642576,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+22,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10647,1278.97,30.21303,0.5759587,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+23,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10595,1162.07,24.95893,5.340707,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+24,47292,1,5034,5602,1,0,1,315,0,-1,0,0,-10750.8,853.922,1.200663,5.410521,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+25,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10516.9,987.859,43.92903,1.500983,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+26,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10467.7,970.101,42.45603,3.316126,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+27,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10325,929.554,63.37803,3.403392,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+28,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10329.7,923.464,62.50573,6.091199,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+29,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10338.6,885.014,60.11883,3.071779,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+30,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10310.2,923.663,65.39544,3.630285,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+31,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10358.9,1087.05,66.82143,3.665191,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+32,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10354.3,1075.71,66.67973,2.775074,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+33,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10476.1,1142.17,43.94343,2.548181,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+34,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10546.6,1206.74,36.69683,3.804818,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+35,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10634,1301.73,31.49943,5.305801,120,0,0,1,0,0,0,0,0,'',0),
(@GUID+36,47292,1,5034,5602,1,0,1,315,0,-1,0,1,-10648,1292.19,30.40663,5.532694,120,0,0,1,0,0,0,0,0,'',0);
DELETE FROM `creature_addon` WHERE `guid` BETWEEN @GUID AND @GUID+24;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(@GUID,0,0,1,1,0, ''),
(@GUID+1,0,0,1,1,0, ''),
(@GUID+2,0,0,1,1,0, ''),
(@GUID+3,0,0,1,1,0, ''),
(@GUID+4,0,0,0,1,0, '32951'),
(@GUID+5,0,0,0,1,0, '32951'),
(@GUID+6,0,0,1,1,0, ''),
(@GUID+7,0,0,1,1,0, ''),
(@GUID+8,0,0,1,1,0, ''),
(@GUID+9,0,0,0,1,0, '32951'),
(@GUID+10,0,0,1,1,0, ''),
(@GUID+11,0,0,0,1,0, '32951'),
(@GUID+12,0,0,0,1,0, '32951'),
(@GUID+13,0,0,1,1,0, ''),
(@GUID+14,0,0,1,1,0, ''),
(@GUID+15,0,0,1,1,0, ''),
(@GUID+16,0,0,0,1,0, '32951'),
(@GUID+17,0,0,1,1,0, ''),
(@GUID+18,0,0,1,1,0, ''),
(@GUID+19,0,0,1,1,0, ''),
(@GUID+20,0,0,0,1,0, '32951'),
(@GUID+21,0,0,1,1,0, ''),
(@GUID+22,0,0,1,1,0, ''),
(@GUID+23,0,0,1,1,0, ''),
(@GUID+24,0,0,0,1,0, '32951'),
(@GUID+25,0,0,1,1,0, ''),
(@GUID+26,0,0,1,1,0, ''),
(@GUID+27,0,0,1,1,0, ''),
(@GUID+28,0,0,1,1,0, ''),
(@GUID+29,0,0,1,1,0, ''),
(@GUID+30,0,0,1,1,0, ''),
(@GUID+31,0,0,1,1,0, ''),
(@GUID+32,0,0,1,1,0, ''),
(@GUID+33,0,0,1,1,0, ''),
(@GUID+34,0,0,1,1,0, ''),
(@GUID+35,0,0,1,1,0, ''),
(@GUID+36,0,0,1,1,0, '');
-- You need to see Seige tank See Quest Invis 23 to Area Schnottz's Landing
DELETE FROM `spell_area` WHERE `spell`=88847;
INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_end`,`aura_spell`,`racemask`,`gender`,`autocast`,`quest_start_status`,`quest_end_status`) VALUES
(88847,5602,0,0,0,0,2,1,64,64);