Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/sql/updates/world/2012_09_09_05_world_wintergrasp.sql b/sql/updates/world/2012_09_09_05_world_wintergrasp.sql
- new file mode 100644
- index 0000000..1237266
- --- /dev/null
- +++ b/sql/updates/world/2012_09_09_05_world_wintergrasp.sql
- @@ -0,0 +1,293 @@
- +DELETE FROM creature WHERE id IN(28366,30739,30740,31102,32296,31101,39173,31091,31151,31106,31053,31107,31052,32294,31051,39172,31036,31153,31108,31054,31109);
- +INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES
- +(131258, 30739, 571, 1, 64, 24075, 0, 5350.68, 2917.01, 409.275, 1.46608, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131259, 30739, 571, 1, 64, 24074, 0, 5367.91, 2826.52, 409.323, 3.33358, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131260, 30739, 571, 1, 64, 24073, 0, 5368.71, 2856.36, 409.323, 2.94961, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131261, 30739, 571, 1, 64, 24073, 0, 5327.26, 2659.46, 409.179, 3.06991, 180, 5, 0, 11001, 0, 1, 0, 0, 0),
- +(131262, 30739, 571, 1, 64, 24073, 0, 5335.12, 2916.8, 409.444, 1.50098, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131263, 30739, 571, 1, 64, 24075, 0, 5349.81, 2763.63, 409.333, 4.66003, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131264, 30739, 571, 1, 64, 24073, 0, 5389.27, 2847.37, 418.759, 3.10669, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131265, 30739, 571, 1, 64, 24073, 0, 5270.06, 2847.55, 409.275, 3.07178, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131266, 30739, 571, 1, 64, 24074, 0, 5391.85, 3031.49, 409.208, 0.002589, 180, 5, 0, 11001, 0, 1, 0, 0, 0),
- +(131267, 30739, 571, 1, 64, 24074, 0, 5335.31, 2764.11, 409.275, 4.83456, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131268, 30739, 571, 1, 64, 24074, 0, 5270.16, 2833.48, 409.275, 3.12414, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131269, 30739, 571, 1, 64, 24073, 0, 5388.56, 2834.77, 418.759, 3.07178, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131270, 30739, 571, 1, 64, 24076, 0, 5179.67, 2846.6, 409.275, 3.08923, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131271, 30739, 571, 1, 64, 24073, 0, 5179.11, 2837.13, 409.275, 3.21141, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131274, 30739, 571, 1, 64, 24074, 0, 4781.71, 3275.76, 365.884, 3.01123, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131275, 30739, 571, 1, 64, 24076, 0, 4780.26, 3303.49, 365.638, 3.15052, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131276, 30739, 571, 1, 64, 24073, 0, 4689.69, 2878.61, 387.427, 3.35613, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131277, 30739, 571, 1, 64, 24076, 0, 4700.59, 2855.76, 387.874, -2.92258, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131278, 30739, 571, 1, 64, 24073, 0, 4867.99, 2884.67, 375.234, 3.0013, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131279, 30739, 571, 1, 64, 24073, 0, 4873.16, 2900.89, 375.937, 3.21141, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131280, 30739, 571, 1, 64, 24073, 0, 4694.58, 2393.48, 368.629, 3.29867, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(131281, 30739, 571, 1, 64, 24074, 0, 4686.43, 2414.86, 369.71, 3.31613, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(88371, 30740, 571, 1, 128, 0, 0, 5150.27, 2786.02, 409.547, 3.22886, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88372, 30740, 571, 1, 128, 0, 0, 5150.66, 2777.95, 409.405, 2.94961, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88373, 30740, 571, 1, 128, 0, 0, 5193.63, 2734.17, 409.273, 4.69494, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88374, 30740, 571, 1, 128, 0, 0, 5200.5, 2733.89, 409.273, 4.67748, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88375, 30740, 571, 1, 128, 0, 0, 5264.65, 2670.19, 409.182, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88376, 30740, 571, 1, 128, 0, 0, 5265.31, 2663.15, 409.182, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88377, 30740, 571, 1, 128, 0, 0, 5307.02, 2613.9, 409.172, 4.69494, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88378, 30740, 571, 1, 128, 0, 0, 5311.13, 3061.04, 408.81, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88379, 30740, 571, 1, 128, 0, 0, 5315.87, 2614.22, 408.973, 4.67748, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88380, 30740, 571, 1, 128, 0, 0, 5318.09, 3060.63, 408.883, 1.62316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88381, 30740, 571, 1, 128, 0, 0, 5149.4, 2897.04, 409.304, 3.03687, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88382, 30740, 571, 1, 128, 0, 0, 5149.52, 2904.19, 409.276, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88383, 30740, 571, 1, 128, 0, 0, 5192.79, 2948.45, 409.275, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88384, 30740, 571, 1, 128, 0, 0, 5201.65, 2948.78, 409.275, 1.62316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88385, 30740, 571, 1, 128, 0, 0, 5265.28, 3010.1, 408.896, 2.82743, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88388, 30740, 571, 1, 128, 0, 0, 5368.71, 2856.36, 409.323, 2.94961, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88389, 30740, 571, 1, 128, 0, 0, 5388.56, 2834.77, 418.759, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88400, 30740, 571, 1, 128, 0, 0, 5307.75, 3008.87, 409.193, 4.78168, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88401, 30740, 571, 1, 128, 0, 0, 5335.12, 2916.8, 409.444, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88402, 30740, 571, 1, 128, 0, 0, 5350.68, 2917.01, 409.275, 1.46608, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88403, 30740, 571, 1, 128, 0, 0, 5335.31, 2764.11, 409.275, 4.83456, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88406, 30740, 571, 1, 32, 0, 0, 4388.13, 2411.98, 374.743, 1.64061, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88407, 30740, 571, 1, 32, 0, 0, 4391.67, 2300.61, 374.743, 4.92183, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88408, 30740, 571, 1, 32, 0, 0, 4413.43, 2393.45, 376.36, 1.06465, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88410, 30740, 571, 1, 32, 0, 0, 4349.12, 2299.28, 374.743, 4.90438, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88386, 30740, 571, 1, 128, 0, 0, 5265.48, 3017.4, 408.583, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88387, 30740, 571, 1, 128, 0, 0, 5367.91, 2826.52, 409.323, 3.33358, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88390, 30740, 571, 1, 128, 0, 0, 5389.27, 2847.37, 418.759, 3.10669, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88391, 30740, 571, 1, 128, 0, 0, 4684.48, 2414.29, 369.962, -2.8578, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88392, 30740, 571, 1, 128, 0, 0, 4692.76, 2392.89, 369.018, -2.82922, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88393, 30740, 571, 1, 128, 0, 0, 5327.26, 2659.46, 409.179, 3.0699, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88394, 30740, 571, 1, 128, 0, 0, 5154.23, 2833.82, 409.262, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88395, 30740, 571, 1, 128, 0, 0, 5154.12, 2847.89, 409.248, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88396, 30740, 571, 1, 128, 0, 0, 5179.11, 2837.13, 409.275, 3.21141, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88397, 30740, 571, 1, 128, 0, 0, 5179.67, 2846.6, 409.275, 3.08923, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88398, 30740, 571, 1, 128, 0, 0, 5270.16, 2833.48, 409.275, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88399, 30740, 571, 1, 128, 0, 0, 5270.06, 2847.55, 409.275, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88404, 30740, 571, 1, 128, 0, 0, 5349.81, 2763.63, 409.333, 4.66003, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88405, 30740, 571, 1, 32, 0, 0, 4349.54, 2411.26, 374.743, 2.05949, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88409, 30740, 571, 1, 32, 0, 0, 4417.92, 2331.24, 370.919, 5.84685, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88411, 30740, 571, 1, 32, 0, 0, 4418.61, 2355.29, 372.491, 6.02139, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88337, 31036, 571, 1, 128, 0, 0, 5358.85, 2859.23, 409.543, 1.13263, 120, 0, 0, 1, 0, 2, 0, 0, 0),
- +(88336, 31036, 571, 1, 64, 0, 0, 5078.28, 2183.7, 365.029, 1.46608, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88339, 31051, 571, 1, 128, 0, 0, 5296.87, 2887.67, 409.275, 5.60251, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88338, 31051, 571, 1, 64, 0, 0, 5081.7, 2173.73, 365.878, 0.855211, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88341, 31052, 571, 1, 128, 0, 0, 5302.57, 2750.4, 409.275, 5.46288, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88340, 31052, 571, 1, 64, 0, 0, 5100.07, 2168.89, 365.779, 1.97222, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88355, 31053, 571, 1, 128, 0, 0, 5034.7, 3666.7, 363.274, 4.31096, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88354, 31053, 571, 1, 64, 0, 0, 5379.88, 3027.43, 409.206, 0, 120, 0, 0, 1, 0, 2, 0, 0, 0),
- +(88343, 31054, 571, 1, 128, 0, 0, 5372.06, 3028.34, 409.206, 0.0125653, 120, 0, 0, 1, 0, 2, 0, 0, 0),
- +(88342, 31054, 571, 1, 64, 0, 0, 5088.61, 2167.66, 365.689, 0.680678, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88357, 31091, 571, 1, 128, 0, 0, 5018.41, 3672.62, 362.864, 2.20914, 120, 0, 0, 1, 0, 2, 0, 0, 0),
- +(88356, 31091, 571, 1, 64, 0, 0, 5359.55, 2858.05, 409.364, 2.62603, 120, 0, 0, 1, 0, 2, 0, 0, 0),
- +(88359, 31101, 571, 1, 128, 0, 0, 5014.07, 3678.85, 362.996, 5.09636, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88358, 31101, 571, 1, 64, 0, 0, 5296.56, 2789.87, 409.275, 0.733038, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88361, 31102, 571, 1, 128, 0, 0, 5031.68, 3655.82, 362.235, 5.13127, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88360, 31102, 571, 1, 64, 0, 0, 5296.64, 2731.11, 409.316, 4.72111, 120, 0, 0, 1, 0, 2, 0, 0, 0),
- +(88363, 31106, 571, 1, 128, 0, 0, 5037.6, 3675.46, 363.148, 3.1765, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88362, 31106, 571, 1, 64, 0, 0, 5295.56, 2926.67, 409.275, 0.872665, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88365, 31107, 571, 1, 128, 0, 0, 5004.46, 3661.09, 361.336, 3.97935, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88364, 31107, 571, 1, 64, 0, 0, 5230.09, 2876.64, 409.316, -2.19855, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88345, 31108, 571, 1, 128, 0, 0, 5298.27, 2924.98, 409.275, 0.907571, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88344, 31108, 571, 1, 64, 0, 0, 5095.67, 2193.28, 365.924, 4.93928, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88347, 31109, 571, 1, 128, 0, 0, 5228.29, 2809.89, 409.275, 3.19395, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88346, 31109, 571, 1, 64, 0, 0, 5080.4, 2199, 359.489, 2.96706, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88367, 31151, 571, 1, 128, 0, 0, 5034.7, 3683.27, 363.129, 4.31096, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88366, 31151, 571, 1, 64, 0, 0, 5363.29, 2834.53, 409.361, 2.76273, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88349, 31153, 571, 1, 128, 0, 0, 5364.78, 2835.14, 409.323, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88348, 31153, 571, 1, 64, 0, 0, 5088.49, 2188.18, 365.647, 5.25344, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88350, 32294, 571, 1, 128, 0, 0, 5374.57, 2790.78, 409.323, 2.72271, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88368, 32296, 571, 1, 64, 0, 0, 5374.57, 2790.78, 409.323, 2.60054, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88351, 39172, 571, 1, 128, 0, 0, 5372.67, 2786.74, 409.442, 2.80998, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(88370, 39173, 571, 1, 64, 0, 0, 5372.67, 2786.74, 409.442, 2.80998, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 32, 0, 0, 4425.29, 3291.51, 370.773, 0.122173, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 32, 0, 0, 4424.60, 3321.10, 369.800, 0.034907, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 32, 0, 0, 4392.39, 3354.61, 369.597, 1.570800, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 32, 0, 0, 4370.97, 3355.02, 371.196, 1.675520, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 32, 0, 0, 4394.66, 3231.98, 369.721, 4.625120, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 32, 0, 0, 4366.97, 3233.56, 371.584, 4.939280, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 32, 0, 0, 4337.02, 3261.65, 373.524, 3.263770, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 32, 0, 0, 4323.77, 3287.10, 378.894, 2.862340, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4388.13, 2411.98, 374.743, 1.64061, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4391.67, 2300.61, 374.743, 4.92183, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4413.43, 2393.45, 376.36, 1.06465, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4349.12, 2299.28, 374.743, 4.90438, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4349.54, 2411.26, 374.743, 2.05949, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4417.92, 2331.24, 370.919, 5.84685, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4418.61, 2355.29, 372.491, 6.02139, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4425.29, 3291.51, 370.773, 0.122173, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4424.60, 3321.10, 369.800, 0.034907, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4392.39, 3354.61, 369.597, 1.570800, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4370.97, 3355.02, 371.196, 1.675520, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4394.66, 3231.98, 369.721, 4.625120, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4366.97, 3233.56, 371.584, 4.939280, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4337.02, 3261.65, 373.524, 3.263770, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 16, 0, 0, 4323.77, 3287.10, 378.894, 2.862340, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4501.06, 1990.28, 431.15, 1.029740, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4463.83, 2015.18, 430.29, 1.431170, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4494.58, 1943.76, 435.62, 6.195920, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4450.14, 1897.57, 435.04, 4.398230, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4428.87, 1906.86, 432.64, 3.996800, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4452.85, 2808.87, 402.60, 6.056290, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4455.89, 2835.95, 401.12, 0.034907, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4412.64, 2953.79, 374.79, 0.980838, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4362.08, 2811.51, 407.33, 3.193950, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4412.29, 2753.79, 401.01, 5.829400, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4421.93, 2773.18, 400.89, 5.707230, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 128, 0, 0, 4418.68, 3506.25, 358.97, 4.293305, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4501.06, 1990.28, 431.15, 1.029740, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4463.83, 2015.18, 430.29, 1.431170, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4494.58, 1943.76, 435.62, 6.195920, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4450.14, 1897.57, 435.04, 4.398230, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4428.87, 1906.86, 432.64, 3.996800, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4452.85, 2808.87, 402.60, 6.056290, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4455.89, 2835.95, 401.12, 0.034907, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4412.64, 2953.79, 374.79, 0.980838, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4362.08, 2811.51, 407.33, 3.193950, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4412.29, 2753.79, 401.01, 5.829400, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4421.93, 2773.18, 400.89, 5.707230, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 64, 0, 0, 4418.68, 3506.25, 358.97, 4.293305, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5391.19, 3060.8, 419.616, 1.69557, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5266.75, 2976.5, 421.067, 3.20354, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5234.86, 2948.8, 420.88, 1.61311, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5323.05, 2923.7, 421.645, 1.5817, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5363.82, 2923.87, 421.709, 1.60527, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5264.04, 2861.34, 421.587, 3.21142, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5264.68, 2819.78, 421.656, 3.15645, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5322.16, 2756.69, 421.646, 4.69978, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5363.78, 2756.77, 421.629, 4.78226, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5236.2, 2732.68, 421.649, 4.72336, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5265.02, 2704.63, 421.7, 3.12507, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5350.87, 2616.03, 421.243, 4.72729, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5390.95, 2615.5, 421.126, 4.6409, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5148.8, 2820.24, 421.621, 3.16043, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5147.98, 2861.93, 421.63, 3.18792, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5255.88, 3047.63, 438.499, 3.13677, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5280.9, 3071.32, 438.499, 1.62879, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5138.59, 2935.16, 439.845, 3.11723, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5163.06, 2959.52, 439.846, 1.47258, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5163.84, 2723.74, 439.844, 1.3994, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5139.69, 2747.4, 439.844, 3.17221, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5278.21, 2607.23, 439.755, 4.71944, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 5255.01, 2631.98, 439.755, 3.15257, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4537.38, 3599.53, 402.886, 3.998462, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4581.49, 3604.08, 402.886, 5.651723, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4469.44, 1966.62, 465.647, 1.153573, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4581.89, 3626.43, 426.539, 0.117806, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4421.64, 2799.93, 412.630, 5.459298, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4420.26, 2845.34, 412.630, 0.742197, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4423.43, 2822.76, 436.283, 6.223487, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4397.82, 2847.62, 436.283, 1.579430, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4398.81, 2797.26, 436.283, 4.703747, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4448.13, 1974.99, 441.995, 1.967238, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4448.71, 1955.14, 441.995, 0.380733, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4469.44, 1966.62, 465.647, 1.153573, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 28366, 571, 1, 1, 0, 0, 4481.99, 1933.65, 465.647, 5.873029, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 128, 0, 0, 4867.99, 2884.67, 375.234, 3.0013, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 128, 0, 0, 4873.16, 2900.89, 375.937, 3.21141, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 128, 0, 0, 4781.71, 3275.76, 365.884, 3.01123, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 128, 0, 0, 4780.26, 3303.49, 365.638, 3.15052, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 128, 0, 0, 4689.69, 2878.61, 387.427, 3.35613, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(NULL, 30740, 571, 1, 128, 0, 0, 4700.59, 2855.76, 387.874, -2.92258, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5150.27, 2786.02, 409.547, 3.22886, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5150.66, 2777.95, 409.405, 2.94961, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5193.63, 2734.17, 409.273, 4.69494, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5200.5, 2733.89, 409.273, 4.67748, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5264.65, 2670.19, 409.182, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5265.31, 2663.15, 409.182, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5307.02, 2613.9, 409.172, 4.69494, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5311.13, 3061.04, 408.81, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5315.87, 2614.22, 408.973, 4.67748, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5318.09, 3060.63, 408.883, 1.62316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5149.4, 2897.04, 409.304, 3.03687, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5149.52, 2904.19, 409.276, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5192.79, 2948.45, 409.275, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5201.65, 2948.78, 409.275, 1.62316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5265.28, 3010.1, 408.896, 2.82743, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5265.48, 3017.4, 408.583, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5154.23, 2833.82, 409.262, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
- +(NULL, 30739, 571, 1, 64, 0, 0, 5154.12, 2847.89, 409.248, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0);
- +-- Portals
- +DELETE FROM `gameobject` WHERE `id` IN(190763, 192951);
- +INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
- +(NULL, 190763, 571, 1, 1, 5153.41, 2901.35, 409.191, -0.069, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5268.70, 2666.42, 409.099, -0.715, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5197.05, 2944.81, 409.191, 2.3387, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5196.67, 2737.34, 409.189, -2.932, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5314.58, 3055.85, 408.862, 0.5410, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5391.28, 2828.09, 418.675, -2.164, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5153.93, 2781.67, 409.246, 1.6580, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5311.44, 2618.93, 409.092, -2.373, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5269.21, 3013.84, 408.828, -1.762, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190763, 571, 1, 1, 5401.62, 2853.66, 418.674, 2.6354, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192951, 571, 1, 1, 5314.51, 2703.69, 408.550, -0.890, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192951, 571, 1, 1, 5316.25, 2977.04, 408.539, -0.820, 0, 0, 0, 0, 900, 100, 1);
- +-- Walls and towers
- +DELETE FROM `gameobject` WHERE `id` IN(190219,190220,191795,191796,191799,191800,191801,191802,191803,191804,191806,191807,191808,191809,190369,190370,190371,190372,190374,190376,190221,190373,190377,190378,191797,191798,191805,190356,190357,190358,190375,191810) AND map = 571;
- +INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
- +(NULL, 190219, 571, 1, 1, 5371.46, 3047.47, 407.571, 3.14159, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190220, 571, 1, 1, 5331.26, 3047.1, 407.923, 0.052359, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191795, 571, 1, 1, 5385.84, 2909.49, 409.713, 0.00872, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191796, 571, 1, 1, 5384.45, 2771.84, 410.27, 3.14159, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191799, 571, 1, 1, 5371.44, 2630.61, 408.816, 3.13286, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191800, 571, 1, 1, 5301.84, 2909.09, 409.866, 0.008724, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191801, 571, 1, 1, 5301.06, 2771.41, 409.901, 3.14159, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191802, 571, 1, 1, 5280.2, 2995.58, 408.825, 1.61443, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191803, 571, 1, 1, 5279.14, 2956.02, 408.604, 1.5708, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191804, 571, 1, 1, 5278.69, 2882.51, 409.539, 1.5708, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191806, 571, 1, 1, 5279.5, 2798.94, 409.998, 1.5708, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191807, 571, 1, 1, 5279.94, 2724.77, 409.945, 1.56207, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191808, 571, 1, 1, 5279.6, 2683.79, 409.849, 1.55334, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191809, 571, 1, 1, 5330.96, 2630.78, 409.283, 3.13286, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190369, 571, 1, 1, 5256.08, 2933.96, 409.357, 3.13286, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190370, 571, 1, 1, 5257.46, 2747.33, 409.743, -3.13286, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190371, 571, 1, 1, 5214.96, 2934.09, 409.19, -0.008724, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190372, 571, 1, 1, 5215.82, 2747.57, 409.188, -3.13286, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190374, 571, 1, 1, 5162.27, 2883.04, 410.256, 1.57952, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190376, 571, 1, 1, 5163.72, 2799.84, 409.227, 1.57952, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190221, 571, 1, 1, 5281.15, 3044.59, 407.843, 3.11539, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190373, 571, 1, 1, 5163.76, 2932.23, 409.19, 3.12412, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190377, 571, 1, 1, 5166.4, 2748.37, 409.188, -1.5708, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190378, 571, 1, 1, 5281.19, 2632.48, 409.099, -1.58825, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191797, 571, 1, 1, 5343.29, 2908.86, 409.576, 0.008724, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191798, 571, 1, 1, 5342.72, 2771.39, 409.625, 3.14159, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191805, 571, 1, 1, 5279.13, 2840.8, 409.783, 1.57952, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190356, 571, 1, 1, 4557.17, 3623.94, 395.883, 1.67552, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190357, 571, 1, 1, 4398.17, 2822.5, 405.627, -3.12412, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190358, 571, 1, 1, 4459.1, 1944.33, 434.991, -2.00276, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 190375, 571, 1, 1, 5162.99, 2841.23, 410.162, -3.13286, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 191810, 571, 1, 1, 5397.11, 2841.54, 425.899, 3.14159, 0, 0, 0, 0, 900, 100, 1);
- +-- Gameobjects
- +DELETE FROM `gameobject` WHERE `id` IN(192488, 192269, 192366, 192501, 192278, 192429, 192416) AND map = 571;
- +INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
- +(75983, 192269, 571, 1, 64, 4526.46, 2810.18, 391.2, -2.99322, 0, 0, 0, 1, 180, 0, 1),
- +(76004, 192366, 571, 1, 64, 5236.27, 2739.46, 444.992, -1.59698, 0, 0, 0, 1, 180, 0, 1),
- +(76023, 192488, 571, 1, 64, 5278.38, 2613.83, 433.409, -1.58825, 0, 0, 0, 1, 180, 0, 1),
- +(76024, 192488, 571, 1, 64, 5260.82, 2631.8, 433.324, 3.05433, 0, 0, 0, 1, 180, 0, 1),
- +(76025, 192488, 571, 1, 64, 5163.13, 2952.59, 433.503, 1.53589, 0, 0, 0, 1, 180, 0, 1),
- +(76026, 192488, 571, 1, 64, 5145.11, 2935, 433.386, 3.14159, 0, 0, 0, 1, 180, 0, 1),
- +(76027, 192488, 571, 1, 64, 5262.54, 3047.95, 432.055, 3.10665, 0, 0, 0, 1, 180, 0, 1),
- +(76028, 192488, 571, 1, 64, 5146.04, 2747.21, 433.584, 3.07177, 0, 0, 0, 1, 180, 0, 1),
- +(76029, 192488, 571, 1, 64, 5163.78, 2729.68, 433.394, -1.58825, 0, 0, 0, 1, 180, 0, 1),
- +(76030, 192488, 571, 1, 64, 5280.89, 3064.95, 431.976, 1.55334, 0, 0, 0, 0, 120, 0, 1),
- +(76031, 192501, 571, 1, 64, 4398.82, 2804.7, 429.792, -1.58825, 0, 0, 0, 1, 180, 0, 1),
- +(76032, 192501, 571, 1, 64, 4416, 2822.67, 429.851, -0.017452, 0, 0, 0, 1, 180, 0, 1),
- +(76033, 192501, 571, 1, 64, 4559.11, 3606.22, 419.999, -1.48353, 0, 0, 0, 1, 180, 0, 1),
- +(76034, 192501, 571, 1, 64, 4539.42, 3622.49, 420.034, -3.07177, 0, 0, 0, 1, 180, 0, 1),
- +(76035, 192501, 571, 1, 64, 4555.26, 3641.65, 419.974, 1.67551, 0, 0, 0, 1, 180, 0, 1),
- +(76036, 192501, 571, 1, 64, 4574.87, 3625.91, 420.079, 0.087266, 0, 0, 0, 1, 180, 0, 1),
- +(76037, 192501, 571, 1, 64, 4466.79, 1960.42, 459.144, 1.15192, 0, 0, 0, 1, 180, 0, 1),
- +(76038, 192501, 571, 1, 64, 4475.35, 1937.03, 459.07, -0.436332, 0, 0, 0, 1, 180, 0, 1),
- +(76039, 192501, 571, 1, 64, 4451.76, 1928.1, 459.076, -2.00713, 0, 0, 0, 1, 180, 0, 1),
- +(76040, 192501, 571, 1, 64, 4442.99, 1951.9, 459.093, 2.74016, 0, 0, 0, 1, 180, 0, 1),
- +(76041, 192501, 571, 1, 64, 4380.36, 2822.38, 429.882, -3.10665, 0, 0, 0, 0, 120, 0, 1),
- +(76042, 192501, 571, 1, 64, 4397.66, 2840.3, 429.922, 1.58825, 0, 0, 0, 0, 120, 0, 1),
- +(NULL, 192269, 571, 1, 128, 4433.899902, 3534.139893, 360.274994, -1.850050, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192269, 571, 1, 128, 4572.930176, 3475.520020, 363.009003, 1.42240, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192366, 571, 1, 128, 4387.620117, 2719.570068, 389.934998, -1.544620, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192366, 571, 1, 128, 4464.120117, 2855.449951, 406.110992, 0.829032, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192278, 571, 1, 64, 4433.899902, 3534.139893, 360.274994, -1.850050, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192278, 571, 1, 64, 4572.930176, 3475.520020, 363.009003, 1.42240, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192414, 571, 1, 64, 4387.620117, 2719.570068, 389.934998, -1.544620, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192429, 571, 1, 64, 4464.120117, 2855.449951, 406.110992, 0.829032, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192488, 571, 1, 64, 5158.810059, 2883.129883, 431.618011, 3.141590, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192488, 571, 1, 64, 5160.339844, 2798.610107, 430.769012, 3.141590, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192416, 571, 1, 128, 5158.810059, 2883.129883, 431.618011, 3.141590, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192416, 571, 1, 128, 5160.339844, 2798.610107, 430.769012, 3.141590, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192269, 571, 1, 128, 5154.520020, 2853.310059, 409.183014, 3.141590, 0, 0, 0, 0, 900, 100, 1),
- +(NULL, 192269, 571, 1, 128, 5154.459961, 2828.939941, 409.188995, 3.141590, 0, 0, 0, 0, 900, 100, 1);
- \ No newline at end of file
- diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
- index 233dbec..ebb51f7 100644
- --- a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
- +++ b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
- @@ -124,6 +124,9 @@ bool BattlefieldWG::SetupBattlefield()
- WorkshopsList.insert(workshop);
- }
- + LoadBattlefieldGrid();
- +
- + /*
- // Spawn NPCs in the defender's keep, both Horde and Alliance
- for (uint8 i = 0; i < WG_MAX_KEEP_NPC; i++)
- {
- @@ -209,7 +212,7 @@ bool BattlefieldWG::SetupBattlefield()
- // Hide attackant banner in keep
- for (GameObjectSet::const_iterator itr = m_KeepGameObject[GetAttackerTeam()].begin(); itr != m_KeepGameObject[GetAttackerTeam()].end(); ++itr)
- - (*itr)->SetRespawnTime(RESPAWN_ONE_DAY);
- + (*itr)->SetRespawnTime(RESPAWN_ONE_DAY);*/
- UpdateCounterVehicle(true);
- return true;
- @@ -233,6 +236,8 @@ bool BattlefieldWG::Update(uint32 diff)
- void BattlefieldWG::OnBattleStart()
- {
- + LoadBattlefieldGrid();
- +
- // Spawn titan relic
- m_titansRelic = SpawnGameObject(GO_WINTERGRASP_TITAN_S_RELIC, 5440.0f, 2840.8f, 430.43f, 0);
- if (m_titansRelic)
- @@ -247,7 +252,7 @@ void BattlefieldWG::OnBattleStart()
- // Update tower visibility and update faction
- - for (GuidSet::const_iterator itr = CanonList.begin(); itr != CanonList.end(); ++itr)
- + /*for (GuidSet::const_iterator itr = CanonList.begin(); itr != CanonList.end(); ++itr)
- {
- if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- {
- @@ -257,6 +262,30 @@ void BattlefieldWG::OnBattleStart()
- creature->setFaction(WintergraspFaction[GetDefenderTeam()]);
- }
- }
- + }*/
- +
- + for (GuidSet::const_iterator itr = FortressCanonList.begin(); itr != FortressCanonList.end(); ++itr)
- + {
- + if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- + {
- + if (Creature* creature = unit->ToCreature())
- + {
- + ShowNpc(creature, true);
- + creature->setFaction(WintergraspFaction[GetDefenderTeam()]);
- + }
- + }
- + }
- +
- + for (GuidSet::const_iterator itr = TowersCanonList.begin(); itr != TowersCanonList.end(); ++itr)
- + {
- + if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- + {
- + if (Creature* creature = unit->ToCreature())
- + {
- + ShowNpc(creature, true);
- + creature->setFaction(WintergraspFaction[GetAttackerTeam()]);
- + }
- + }
- }
- // Rebuild all wall
- @@ -265,7 +294,7 @@ void BattlefieldWG::OnBattleStart()
- if (*itr)
- {
- (*itr)->Rebuild();
- - (*itr)->UpdateTurretAttack(false);
- + //(*itr)->UpdateTurretAttack(false);
- }
- }
- @@ -289,6 +318,8 @@ void BattlefieldWG::OnBattleStart()
- player->GetPosition(x, y, z);
- if (5500 > x && setFaction(WintergraspFaction[GetAttackerTeam()]);
- + }
- + }
- }
- // Rebuild all wall
- @@ -265,7 +294,7 @@ void BattlefieldWG::OnBattleStart()
- if (*itr)
- {
- (*itr)-x > 5392 && y < 2880 && y > 2800 && z < 480)
- player->TeleportTo(571, 5349.8686f, 2838.481f, 409.240f, 0.046328f);
- + if (player->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) || player->HasAuraType(SPELL_AURA_FLY))
- + player->CastSpell(player, SPELL_WINTERGRASP_RESTRICTED_FLIGHT_AREA, true);
- SendInitWorldStatesTo(player);
- }
- }
- @@ -300,6 +331,8 @@ void BattlefieldWG::OnBattleStart()
- void BattlefieldWG::UpdateCounterVehicle(bool init)
- {
- + if (!IsWarTime())
- + return;
- if (init)
- {
- SetData(BATTLEFIELD_WG_DATA_VEHICLE_H, 0);
- @@ -330,7 +363,7 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
- m_titansRelic = NULL;
- // Remove turret
- - for (GuidSet::const_iterator itr = CanonList.begin(); itr != CanonList.end(); ++itr)
- + /*for (GuidSet::const_iterator itr = CanonList.begin(); itr != CanonList.end(); ++itr)
- {
- if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- {
- @@ -341,9 +374,45 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
- HideNpc(creature);
- }
- }
- + }*/
- +
- + for (GuidSet::const_iterator itr = FortressCanonList.begin(); itr != FortressCanonList.end(); ++itr)
- + {
- + if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- + {
- + if (Creature* creature = unit->ToCreature())
- + {
- + HideNpc(creature);
- + creature->setFaction(WintergraspFaction[GetDefenderTeam()]);
- + }
- + }
- + }
- +
- + for (GuidSet::const_iterator itr = TowersCanonList.begin(); itr != TowersCanonList.end(); ++itr)
- + {
- + if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- + {
- + if (Creature* creature = unit->ToCreature())
- + {
- + HideNpc(creature);
- + creature->setFaction(WintergraspFaction[GetAttackerTeam()]);
- + }
- + }
- }
- - if (!endByTimer) // One player triggered the relic
- + for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
- + {
- + if (*itr)
- + {
- + if ((*itr)->m_Type == BATTLEFIELD_WG_OBJECTTYPE_DOOR_LAST)
- + {
- + (*itr)->Rebuild();
- + break;
- + }
- + }
- + }
- +
- + /*if (!endByTimer) // One player triggered the relic
- {
- // Change all npc in keep
- for (GuidSet::const_iterator itr = KeepCreature[GetAttackerTeam()].begin(); itr != KeepCreature[GetAttackerTeam()].end(); ++itr)
- @@ -366,23 +435,28 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
- if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- if (Creature* creature = unit->ToCreature())
- ShowNpc(creature, true);
- - }
- + }*/
- // Update all graveyard, control is to defender when no wartime
- for (uint8 i = 0; i < BATTLEFIELD_WG_GY_HORDE; i++)
- if (BfGraveyard* graveyard = GetGraveyardById(i))
- graveyard->GiveControlTo(GetDefenderTeam());
- - for (GameObjectSet::const_iterator itr = m_KeepGameObject[GetDefenderTeam()].begin(); itr != m_KeepGameObject[GetDefenderTeam()].end(); ++itr)
- + /*for (GameObjectSet::const_iterator itr = m_KeepGameObject[GetDefenderTeam()].begin(); itr != m_KeepGameObject[GetDefenderTeam()].end(); ++itr)
- (*itr)->SetRespawnTime(RESPAWN_IMMEDIATELY);
- for (GameObjectSet::const_iterator itr = m_KeepGameObject[GetAttackerTeam()].begin(); itr != m_KeepGameObject[GetAttackerTeam()].end(); ++itr)
- - (*itr)->SetRespawnTime(RESPAWN_ONE_DAY);
- + (*itr)->SetRespawnTime(RESPAWN_ONE_DAY);*/
- // Update portal defender faction
- for (GameObjectSet::const_iterator itr = DefenderPortalList.begin(); itr != DefenderPortalList.end(); ++itr)
- (*itr)->SetUInt32Value(GAMEOBJECT_FACTION, WintergraspFaction[GetDefenderTeam()]);
- + // Rebuild all wall
- + for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
- + if (*itr)
- + (*itr)->Rebuild();
- +
- // Saving data
- for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
- (*itr)->Save();
- @@ -394,7 +468,25 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
- if (Player* player = sObjectAccessor->FindPlayer(*itr))
- {
- player->CastSpell(player, SPELL_ESSENCE_OF_WINTERGRASP, true);
- - player->CastSpell(player, SPELL_VICTORY_REWARD, true);
- + int32 num_to_add = 0;
- + if (player->HasAura(SPELL_LIEUTENANT))
- + num_to_add = 3;
- + else
- + if (player->HasAura(SPELL_CORPORAL))
- + num_to_add = 2;
- + player->CastCustomSpell(player, SPELL_VICTORY_REWARD, 0, &num_to_add, 0, true);
- + if (GetData(BATTLEFIELD_WG_DATA_DAMAGED_TOWER_DEF))
- + player->CastSpell(player, SPELL_DAMAGED_BUILDING, true);
- + else
- + if (!GetData(BATTLEFIELD_WG_DATA_BROKEN_TOWER_DEF))
- + player->CastSpell(player, SPELL_INTACT_BUILDING, true);
- + if (GetData(BATTLEFIELD_WG_DATA_BROKEN_TOWER_ATT))
- + player->CastSpell(player, SPELL_DESTROYED_TOWER, true);
- + else
- + if (GetData(BATTLEFIELD_WG_DATA_DAMAGED_TOWER_ATT))
- + player->CastSpell(player, SPELL_DAMAGED_TOWER, true);
- + player->AreaExploredOrEventHappens(QUEST_VICTORY_IN_WINTERGRASP_A);
- + player->AreaExploredOrEventHappens(QUEST_VICTORY_IN_WINTERGRASP_H);
- // Send Wintergrasp victory achievement
- DoCompleteOrIncrementAchievement(ACHIEVEMENTS_WIN_WG, player);
- // Award achievement for succeeding in Wintergrasp in 10 minutes or less
- @@ -404,8 +496,20 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
- }
- for (GuidSet::const_iterator itr = m_PlayersInWar[GetAttackerTeam()].begin(); itr != m_PlayersInWar[GetAttackerTeam()].end(); ++itr)
- + {
- if (Player* player = sObjectAccessor->FindPlayer(*itr))
- - player->CastSpell(player, SPELL_DEFEAT_REWARD, true);
- + {
- + int32 num_to_add = 0;
- + if (player->HasAura(SPELL_LIEUTENANT) || player->HasAura(SPELL_CORPORAL))
- + num_to_add = 1;
- + player->CastCustomSpell(player, SPELL_DEFEAT_REWARD, 0, &num_to_add, 0, true);
- + if (GetData(BATTLEFIELD_WG_DATA_BROKEN_TOWER_DEF))
- + player->CastSpell(player, SPELL_DESTROYED_TOWER, true);
- + else
- + if (GetData(BATTLEFIELD_WG_DATA_DAMAGED_TOWER_DEF))
- + player->CastSpell(player, SPELL_DAMAGED_TOWER, true);
- + }
- + }
- for (uint8 team = 0; team < 2; ++team)
- {
- @@ -484,7 +588,7 @@ uint8 BattlefieldWG::GetSpiritGraveyardId(uint32 areaId)
- return BATTLEFIELD_WG_GY_KEEP;
- case AREA_THE_SUNKEN_RING:
- return BATTLEFIELD_WG_GY_WORKSHOP_NE;
- - case AREA_THE_BROKEN_TEMPLATE:
- + case AREA_THE_BROKEN_TEMPLE:
- return BATTLEFIELD_WG_GY_WORKSHOP_NW;
- case AREA_WESTPARK_WORKSHOP:
- return BATTLEFIELD_WG_GY_WORKSHOP_SW;
- @@ -516,6 +620,40 @@ void BattlefieldWG::OnCreatureCreate(Creature* creature)
- m_GraveyardList[graveyardId]->SetSpirit(creature, teamId);
- break;
- }
- + case NPC_TOWER_CANNON:
- + if (creature->GetAreaId() == AREA_WINTERGRASP_FORTRESS)
- + {
- + FortressCanonList.insert(creature->GetGUID());
- + for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
- + {
- + if (creature->GetDistance2d((*itr)->m_Build) < 30.0f)
- + {
- + if (creature->GetPositionZ() > (*itr)->m_Build->GetPositionZ() + 10.0f)
- + {
- + (*itr)->m_TowerCannonTopList.insert(creature->GetGUID());
- + }
- + break;
- + }
- + }
- + }
- + else
- + {
- + TowersCanonList.insert(creature->GetGUID());
- + for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
- + {
- + if (creature->GetAreaId() == (*itr)->m_Build->GetAreaId())
- + {
- + if (creature->GetPositionZ() > (*itr)->m_Build->GetPositionZ() + 10.0f)
- + {
- + (*itr)->m_TowerCannonTopList.insert(creature->GetGUID());
- + }
- + break;
- + }
- + }
- + }
- + creature->SetRespawnDelay(m_BattleTime);
- + HideNpc(creature);
- + break;
- }
- // untested code - not sure if it is valid.
- @@ -633,24 +771,76 @@ void BattlefieldWG::OnGameObjectCreate(GameObject* go)
- isWorkshop = true;
- workshopId = BATTLEFIELD_WG_WORKSHOP_SW;
- break;
- + case GO_WINTERGRASP_TELEPORTER:
- + case GO_WINTERGRASP_VEHICLE_TELEPORTER:
- + DefenderPortalList.insert(go);
- + go->SetUInt32Value(GAMEOBJECT_FACTION, WintergraspFaction[GetDefenderTeam()]);
- + break;
- + case 190219:
- + case 190220:
- + case 191795:
- + case 191796:
- + case 191799:
- + case 191800:
- + case 191801:
- + case 191802:
- + case 191803:
- + case 191804:
- + case 191806:
- + case 191807:
- + case 191808:
- + case 191809:
- + case 190369:
- + case 190370:
- + case 190371:
- + case 190372:
- + case 190374:
- + case 190376:
- + case 190221:
- + case 190373:
- + case 190377:
- + case 190378:
- + case 191797:
- + case 191798:
- + case 191805:
- + case 190356:
- + case 190357:
- + case 190358:
- + case GO_WINTERGRASP_FORTRESS_GATE:
- + case GO_WINTERGRASP_VAULT_GATE:
- + for (uint8 i = 0; i < WG_MAX_OBJ; i++)
- + {
- + if (go->GetEntry() == WGGameObjectBuilding[i].entry)
- + {
- + BfWGGameObjectBuilding* b = new BfWGGameObjectBuilding(this);
- + b->Init(go, WGGameObjectBuilding[i].type, WGGameObjectBuilding[i].WorldState, WGGameObjectBuilding[i].nameId);
- + if (!IsEnabled() && go->GetEntry() == GO_WINTERGRASP_VAULT_GATE)
- + go->SetDestructibleState(GO_DESTRUCTIBLE_DESTROYED);
- + BuildingsInZone.insert(b);
- + break;
- + }
- + }
- + if (!IsEnabled() && go->GetEntry() == GO_WINTERGRASP_VAULT_GATE)
- + go->SetDestructibleState(GO_DESTRUCTIBLE_DESTROYED);
- + break;
- }
- -
- - if (!isWorkshop)
- - return;
- -
- - for (Workshop::const_iterator itr = WorkshopsList.begin(); itr != WorkshopsList.end(); ++itr)
- +
- + if (isWorkshop)
- {
- - if (WGWorkshop* workshop = (*itr))
- + for (Workshop::const_iterator itr = WorkshopsList.begin(); itr != WorkshopsList.end(); ++itr)
- {
- - if (workshop->workshopId == workshopId)
- + if (WGWorkshop* workshop = (*itr))
- {
- - WintergraspCapturePoint* capturePoint = new WintergraspCapturePoint(this, GetAttackerTeam());
- + if (workshop->workshopId == workshopId)
- + {
- + WintergraspCapturePoint* capturePoint = new WintergraspCapturePoint(this, GetAttackerTeam());
- - capturePoint->SetCapturePointData(go);
- - capturePoint->LinkToWorkshop(workshop);
- - AddCapturePoint(capturePoint);
- - break;
- + capturePoint->SetCapturePointData(go);
- + capturePoint->LinkToWorkshop(workshop);
- + AddCapturePoint(capturePoint);
- + break;
- + }
- }
- }
- }
- @@ -668,27 +858,28 @@ void BattlefieldWG::HandleKill(Player* killer, Unit* victim)
- if (victim->GetTypeId() == TYPEID_PLAYER)
- {
- for (GuidSet::const_iterator itr = m_PlayersInWar[killerTeam].begin(); itr != m_PlayersInWar[killerTeam].end(); ++itr)
- + {
- if (Player* player = sObjectAccessor->FindPlayer(*itr))
- + {
- if (player->GetDistance2d(killer) < 40)
- + {
- PromotePlayer(player);
- - return;
- + player->KilledMonsterCredit(CREDIT_SLAY_THEM_ALL, 0);
- + }
- + }
- + }
- }
- -
- - for (GuidSet::const_iterator itr = KeepCreature[GetOtherTeam(killerTeam)].begin();
- - itr != KeepCreature[GetOtherTeam(killerTeam)].end(); ++itr)
- + else if (!victim->isPet() && !victim->IsVehicle())
- {
- - if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- + for (uint8 i = 0 ; i < BATTLEFIELD_WG_NPC_MAX ; i++)
- {
- - if (Creature* creature = unit->ToCreature())
- + if (victim->GetEntry() == WGNpcs[GetOtherTeam(killerTeam)][i])
- {
- - if (victim->GetEntry() == creature->GetEntry() && !again)
- - {
- - again = true;
- - for (GuidSet::const_iterator iter = m_PlayersInWar[killerTeam].begin(); iter != m_PlayersInWar[killerTeam].end(); ++iter)
- - if (Player* player = sObjectAccessor->FindPlayer(*iter))
- - if (player->GetDistance2d(killer) < 40.0f)
- - PromotePlayer(player);
- - }
- + for (GuidSet::const_iterator iter = m_PlayersInWar[killerTeam].begin(); iter != m_PlayersInWar[killerTeam].end(); ++iter)
- + if (Player* player = sObjectAccessor->FindPlayer(*iter))
- + if (player->GetDistance2d(killer) < 40.0f)
- + PromotePlayer(player);
- + break;
- }
- }
- }
- @@ -840,7 +1031,7 @@ uint32 BattlefieldWG::GetData(uint32 data)
- // Used to determine when the phasing spells must be casted
- // See: SpellArea::IsFitToRequirements
- case AREA_THE_SUNKEN_RING:
- - case AREA_THE_BROKEN_TEMPLATE:
- + case AREA_THE_BROKEN_TEMPLE:
- case AREA_WESTPARK_WORKSHOP:
- case AREA_EASTPARK_WORKSHOP:
- // Graveyards and Workshops are controlled by the same team.
- @@ -899,17 +1090,16 @@ void BattlefieldWG::SendInitWorldStatesToAll()
- player->GetSession()->SendPacket(&data);
- }
- -void BattlefieldWG::BrokenWallOrTower(TeamId /*team*/)
- +void BattlefieldWG::BrokenWallOrTower(TeamId team)
- {
- -// might be some use for this in the future. old code commented out below. KL
- -/* if (team == GetDefenderTeam())
- + if (team == GetAttackerTeam())
- {
- - for (GuidSet::const_iterator itr = m_PlayersInWar[GetAttackerTeam()].begin(); itr != m_PlayersInWar[GetAttackerTeam()].end(); ++itr)
- + for (GuidSet::const_iterator itr = m_PlayersInWar[GetDefenderTeam()].begin(); itr != m_PlayersInWar[GetDefenderTeam()].end(); ++itr)
- {
- if (Player* player = sObjectAccessor->FindPlayer(*itr))
- - IncrementQuest(player, WGQuest[player->GetTeamId()][2], true);
- + player->KilledMonsterCredit(CREDIT_TOWERS, 0);
- }
- - }*/
- + }
- }
- // Called when a tower is broke
- @@ -1005,6 +1195,58 @@ void BattlefieldWG::UpdateVehicleCountWG()
- SendUpdateWorldState(BATTLEFIELD_WG_WORLD_STATE_MAX_VEHICLE_A, GetData(BATTLEFIELD_WG_DATA_MAX_VEHICLE_A));
- }
- +void BattlefieldWG::UpdateWorkshopAura(uint32 workshopId, uint8 teamId)
- +{
- + uint32 areaId = 0;
- +
- + switch (workshopId)
- + {
- + case BATTLEFIELD_WG_WORKSHOP_NE:
- + areaId = AREA_THE_SUNKEN_RING;
- + break;
- + case BATTLEFIELD_WG_WORKSHOP_NW:
- + areaId = AREA_THE_BROKEN_TEMPLE;
- + break;
- + case BATTLEFIELD_WG_WORKSHOP_SE:
- + areaId = AREA_EASTPARK_WORKSHOP;
- + break;
- + case BATTLEFIELD_WG_WORKSHOP_SW:
- + areaId = AREA_WESTPARK_WORKSHOP;
- + break;
- + }
- +
- + if (!areaId)
- + return;
- +
- + for (uint8 team = 0; team < 2; ++team)
- + {
- + for (GuidSet::const_iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr)
- + {
- + if (Player* player = sObjectAccessor->FindPlayer(*itr))
- + {
- + if (player->GetAreaId() == areaId)
- + {
- + if (teamId == TEAM_ALLIANCE)
- + {
- + player->RemoveAurasDueToSpell(SPELL_HORDE_CONTROLS_FACTORY_PHASE_SHIFT);
- + player->CastSpell(player, SPELL_ALLIANCE_CONTROLS_FACTORY_PHASE_SHIFT, true);
- + }
- + else if (teamId == TEAM_HORDE)
- + {
- + player->RemoveAurasDueToSpell(SPELL_ALLIANCE_CONTROLS_FACTORY_PHASE_SHIFT);
- + player->CastSpell(player, SPELL_HORDE_CONTROLS_FACTORY_PHASE_SHIFT, true);
- + }
- + else
- + {
- + player->RemoveAurasDueToSpell(SPELL_ALLIANCE_CONTROLS_FACTORY_PHASE_SHIFT);
- + player->RemoveAurasDueToSpell(SPELL_HORDE_CONTROLS_FACTORY_PHASE_SHIFT);
- + }
- + }
- + }
- + }
- + }
- +}
- +
- void BattlefieldWG::UpdateTenacity()
- {
- TeamId team = TEAM_NEUTRAL;
- @@ -1083,6 +1325,21 @@ void BattlefieldWG::UpdateTenacity()
- }
- }
- +void BattlefieldWG::LoadBattlefieldGrid()
- +{
- + Map* map = const_cast < Map * >(sMapMgr->CreateBaseMap(m_MapId));
- + if (!map)
- + return;
- +
- + map->LoadGrid(4557.17f, 3623.94f);
- + map->LoadGrid(4398.17f, 2822.5f);
- + map->LoadGrid(4459.1f, 1944.33f);
- + map->LoadGrid(5162.99f, 2841.23f);
- + map->LoadGrid(5397.11f, 2841.54f);
- + map->LoadGrid(4942.25f, 2392.64f);
- + map->LoadGrid(4961.60f, 3380.93f);
- +}
- +
- WintergraspCapturePoint::WintergraspCapturePoint(BattlefieldWG* battlefield, TeamId teamInControl) : BfCapturePoint(battlefield)
- {
- m_Bf = battlefield;
- @@ -1099,4 +1356,4 @@ void WintergraspCapturePoint::ChangeTeam(TeamId /*oldTeam*/)
- BfGraveyardWG::BfGraveyardWG(BattlefieldWG* battlefield) : BfGraveyard(battlefield)
- {
- m_Bf = battlefield;
- -}
- +}
- \ No newline at end of file
- diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.h b/src/server/game/Battlefield/Zones/BattlefieldWG.h
- index 7341540..f120f35 100644
- --- a/src/server/game/Battlefield/Zones/BattlefieldWG.h
- +++ b/src/server/game/Battlefield/Zones/BattlefieldWG.h
- @@ -143,13 +143,21 @@ enum WintergraspAreaIds
- {
- AREA_WINTERGRASP_FORTRESS = 4575,
- AREA_THE_SUNKEN_RING = 4538,
- - AREA_THE_BROKEN_TEMPLATE = 4539,
- + AREA_THE_BROKEN_TEMPLE = 4539,
- AREA_WESTPARK_WORKSHOP = 4611,
- AREA_EASTPARK_WORKSHOP = 4612,
- AREA_WINTERGRASP = 4197,
- AREA_THE_CHILLED_QUAGMIRE = 4589,
- };
- +enum WintergraspCredits
- +{
- + CREDIT_SLAY_THEM_ALL = 31086,
- + CREDIT_TOWERS = 35074,
- + QUEST_VICTORY_IN_WINTERGRASP_A = 13181,
- + QUEST_VICTORY_IN_WINTERGRASP_H = 13183,
- +};
- +
- /*#########################
- *####### Graveyards ######
- *#########################*/
- @@ -225,6 +233,35 @@ enum WintergraspNpcs
- NPC_WINTERGRASP_TOWER_CANNON = 28366,
- };
- +#define BATTLEFIELD_WG_NPC_MAX 10
- +uint32 const WGNpcs[2][10] =
- +{
- + {
- + BATTLEFIELD_WG_NPC_GUARD_A ,
- + BATTLEFIELD_WG_NPC_BOWYER_RANDOLPH ,
- + BATTLEFIELD_WG_NPC_KNIGHT_DAMERON ,
- + BATTLEFIELD_WG_NPC_SORCERESS_KAYLANA ,
- + BATTLEFIELD_WG_NPC_MARSHAL_MAGRUDER ,
- + BATTLEFIELD_WG_NPC_COMMANDER_ZANNETH ,
- + BATTLEFIELD_WG_NPC_TACTICAL_OFFICER_AHBRAMIS ,
- + BATTLEFIELD_WG_NPC_SIEGE_MASTER_STOUTHANDLE ,
- + BATTLEFIELD_WG_NPC_ANCHORITE_TESSA ,
- + BATTLEFIELD_WG_NPC_SENIOR_DEMOLITIONIST_LEGOSO
- + },
- + {
- + BATTLEFIELD_WG_NPC_GUARD_H ,
- + BATTLEFIELD_WG_NPC_VIERON_BLAZEFEATHER ,
- + BATTLEFIELD_WG_NPC_STONE_GUARD_MUKAR ,
- + BATTLEFIELD_WG_NPC_HOODOO_MASTER_FU_JIN ,
- + BATTLEFIELD_WG_NPC_CHAMPION_ROS_SLAI ,
- + BATTLEFIELD_WG_NPC_COMMANDER_DARDOSH ,
- + BATTLEFIELD_WG_NPC_TACTICAL_OFFICER_KILRATH ,
- + BATTLEFIELD_WG_NPC_SIEGESMITH_STRONGHOOF ,
- + BATTLEFIELD_WG_NPC_PRIMALIST_MULFORT ,
- + BATTLEFIELD_WG_NPC_LIEUTENANT_MURP ,
- + }
- +};
- +
- struct BfWGCoordGY
- {
- float x;
- @@ -403,6 +440,7 @@ class BattlefieldWG : public Battlefield
- void UpdateVehicleCountWG();
- void UpdateCounterVehicle(bool init);
- + void UpdateWorkshopAura(uint32 workshopId, uint8 teamId);
- WorldPacket BuildInitWorldStates();
- void SendInitWorldStatesTo(Player* player);
- @@ -421,6 +459,8 @@ class BattlefieldWG : public Battlefield
- uint8 GetSpiritGraveyardId(uint32 areaId);
- uint32 GetData(uint32 data);
- +
- + void LoadBattlefieldGrid();
- protected:
- bool m_isRelicInteractible;
- @@ -435,6 +475,9 @@ class BattlefieldWG : public Battlefield
- GuidSet KeepCreature[2];
- GuidSet OutsideCreature[2];
- + GuidSet FortressCanonList;
- + GuidSet TowersCanonList;
- +
- uint32 m_tenacityStack;
- uint32 m_saveTimer;
- @@ -493,13 +536,6 @@ enum WintergraspWorldstates
- WORLDSTATE_WORKSHOP_K_E = 3699
- };
- -enum WintergraspTeamControl
- -{
- - BATTLEFIELD_WG_TEAM_ALLIANCE,
- - BATTLEFIELD_WG_TEAM_HORDE,
- - BATTLEFIELD_WG_TEAM_NEUTRAL,
- -};
- -
- // TODO: Handle this with creature_text ?
- enum WintergraspText
- {
- @@ -551,6 +587,9 @@ enum WintergraspGameObject
- GO_WINTERGRASP_KEEP_COLLISION_WALL = 194323,
- + GO_WINTERGRASP_TELEPORTER = 190763,
- + GO_WINTERGRASP_VEHICLE_TELEPORTER = 192951,
- +
- };
- struct WintergraspObjectPositionData
- @@ -672,7 +711,7 @@ const WintergraspBuildingSpawnData WGGameObjectBuilding[WG_MAX_OBJ] =
- // 192357 : 1 in sql, 1 in header
- // 192350 : 1 in sql, 1 in header
- // 192351 : 1 in sql, 1 in header
- -const WintergraspObjectPositionData WGKeepGameObject[WG_KEEPGAMEOBJECT_MAX] =
- +/*const WintergraspObjectPositionData WGKeepGameObject[WG_KEEPGAMEOBJECT_MAX] =
- {
- { 5262.540039f, 3047.949951f, 432.054993f, 3.106650f, 192488, 192501 }, // Flag on tower
- { 5272.939941f, 2976.550049f, 444.492004f, 3.124120f, 192374, 192416 }, // Flag on Wall Intersect
- @@ -1107,7 +1146,7 @@ const WintergraspTowerCannonData TowerCannon[WG_MAX_TOWER_CANNON] =
- { 0, 0, 0, 0 },
- },
- },
- -};
- +};*/
- // *********************************************************
- // *****************WorkShop Data & Element*****************
- @@ -1180,10 +1219,10 @@ struct BfWGGameObjectBuilding
- GameObjectSet m_GameObjectList[2];
- // Creature associations
- - GuidSet m_CreatureBottomList[2];
- - GuidSet m_CreatureTopList[2];
- - GuidSet m_TowerCannonBottomList;
- - GuidSet m_TurretTopList;
- + //GuidSet m_CreatureBottomList[2];
- + //GuidSet m_CreatureTopList[2];
- + //GuidSet m_TowerCannonBottomList;
- + GuidSet m_TowerCannonTopList;
- void Rebuild()
- {
- @@ -1207,6 +1246,7 @@ struct BfWGGameObjectBuilding
- if (m_Build->IsDestructibleBuilding())
- {
- m_Build->SetDestructibleState(GO_DESTRUCTIBLE_REBUILDING, NULL, true);
- + m_Build->UpdateObjectVisibility();
- if (m_Build->GetEntry() == GO_WINTERGRASP_VAULT_GATE)
- if (GameObject* go = m_Build->FindNearestGameObject(GO_WINTERGRASP_KEEP_COLLISION_WALL, 10.0f))
- go->EnableCollision(true);
- @@ -1215,7 +1255,7 @@ struct BfWGGameObjectBuilding
- m_State = BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT - (m_Team * 3);
- m_WG->SendUpdateWorldState(m_WorldState, m_State);
- }
- - UpdateCreatureAndGo();
- + //UpdateCreatureAndGo();
- m_Build->SetUInt32Value(GAMEOBJECT_FACTION, WintergraspFaction[m_Team]);
- }
- @@ -1230,12 +1270,12 @@ struct BfWGGameObjectBuilding
- if (m_NameId) // tower damage + name
- m_WG->SendWarningToAllInZone(m_NameId);
- - for (GuidSet::const_iterator itr = m_CreatureTopList[m_WG->GetAttackerTeam()].begin(); itr != m_CreatureTopList[m_WG->GetAttackerTeam()].end(); ++itr)
- + /*for (GuidSet::const_iterator itr = m_CreatureTopList[m_WG->GetAttackerTeam()].begin(); itr != m_CreatureTopList[m_WG->GetAttackerTeam()].end(); ++itr)
- if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- if (Creature* creature = unit->ToCreature())
- - m_WG->HideNpc(creature);
- + m_WG->HideNpc(creature);*/
- - for (GuidSet::const_iterator itr = m_TurretTopList.begin(); itr != m_TurretTopList.end(); ++itr)
- + for (GuidSet::const_iterator itr = m_TowerCannonTopList.begin(); itr != m_TowerCannonTopList.end(); ++itr)
- if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- if (Creature* creature = unit->ToCreature())
- m_WG->HideNpc(creature);
- @@ -1275,7 +1315,8 @@ struct BfWGGameObjectBuilding
- break;
- }
- - m_WG->BrokenWallOrTower(TeamId(m_Team));
- + if (m_Type == BATTLEFIELD_WG_OBJECTTYPE_TOWER)
- + m_WG->BrokenWallOrTower(TeamId(m_Team));
- }
- void Init(GameObject* go, uint32 type, uint32 worldstate, uint32 nameid)
- @@ -1328,7 +1369,7 @@ struct BfWGGameObjectBuilding
- }
- }
- - int32 towerid = -1;
- + /*int32 towerid = -1;
- switch (go->GetEntry())
- {
- case GO_WINTERGRASP_FORTRESS_TOWER_1:
- @@ -1422,7 +1463,7 @@ struct BfWGGameObjectBuilding
- TowerCannon[towerid].TurretTop[i].GetPosition(&towerCannonPos);
- if (Creature* turret = m_WG->SpawnCreature(28366, towerCannonPos, TeamId(0)))
- {
- - m_TurretTopList.insert(turret->GetGUID());
- + m_TowerCannonTopList.insert(turret->GetGUID());
- switch (go->GetEntry())
- {
- case GO_WINTERGRASP_FORTRESS_TOWER_1:
- @@ -1441,10 +1482,10 @@ struct BfWGGameObjectBuilding
- }
- }
- UpdateCreatureAndGo();
- - }
- + }*/
- }
- - void UpdateCreatureAndGo()
- + /*void UpdateCreatureAndGo()
- {
- for (GuidSet::const_iterator itr = m_CreatureTopList[m_WG->GetDefenderTeam()].begin(); itr != m_CreatureTopList[m_WG->GetDefenderTeam()].end(); ++itr)
- if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- @@ -1511,7 +1552,7 @@ struct BfWGGameObjectBuilding
- }
- }
- - for (GuidSet::const_iterator itr = m_TurretTopList.begin(); itr != m_TurretTopList.end(); ++itr)
- + for (GuidSet::const_iterator itr = m_TowerCannonTopList.begin(); itr != m_TowerCannonTopList.end(); ++itr)
- {
- if (Unit* unit = sObjectAccessor->FindUnit(*itr))
- {
- @@ -1546,7 +1587,7 @@ struct BfWGGameObjectBuilding
- }
- }
- }
- - }
- + }*/
- void Save()
- {
- @@ -1577,33 +1618,34 @@ struct WGWorkshop
- {
- switch (team)
- {
- - case BATTLEFIELD_WG_TEAM_NEUTRAL:
- + case TEAM_NEUTRAL:
- {
- // Send warning message to all player to inform a faction attack to a workshop
- // alliance / horde attacking a workshop
- bf->SendWarningToAllInZone(teamControl ? WorkshopsData[workshopId].text : WorkshopsData[workshopId].text + 1);
- break;
- }
- - case BATTLEFIELD_WG_TEAM_ALLIANCE:
- - case BATTLEFIELD_WG_TEAM_HORDE:
- + case TEAM_ALLIANCE:
- + case TEAM_HORDE:
- {
- // Updating worldstate
- - state = team == BATTLEFIELD_WG_TEAM_ALLIANCE ? BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT : BATTLEFIELD_WG_OBJECTSTATE_HORDE_INTACT;
- + state = team == TEAM_ALLIANCE ? BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT : BATTLEFIELD_WG_OBJECTSTATE_HORDE_INTACT;
- bf->SendUpdateWorldState(WorkshopsData[workshopId].worldstate, state);
- // Warning message
- if (!init) // workshop taken - alliance
- - bf->SendWarningToAllInZone(team == BATTLEFIELD_WG_TEAM_ALLIANCE ? WorkshopsData[workshopId].text : WorkshopsData[workshopId].text+1);
- + bf->SendWarningToAllInZone(team == TEAM_ALLIANCE ? WorkshopsData[workshopId].text : WorkshopsData[workshopId].text+1);
- // Found associate graveyard and update it
- if (workshopId < BATTLEFIELD_WG_WORKSHOP_KEEP_WEST)
- if (bf->GetGraveyardById(workshopId))
- - bf->GetGraveyardById(workshopId)->GiveControlTo(team == BATTLEFIELD_WG_TEAM_ALLIANCE ? TEAM_ALLIANCE : TEAM_HORDE);
- + bf->GetGraveyardById(workshopId)->GiveControlTo(team == TEAM_ALLIANCE ? TEAM_ALLIANCE : TEAM_HORDE);
- teamControl = team;
- break;
- }
- }
- + bf->UpdateWorkshopAura(workshopId, teamControl);
- if (!init)
- bf->UpdateCounterVehicle(false);
- @@ -1648,7 +1690,7 @@ struct WintergraspWorkshopData
- }
- // Spawning associate creature and store them
- - void AddCreature(WintergraspObjectPositionData obj)
- + /*void AddCreature(WintergraspObjectPositionData obj)
- {
- if (Creature* creature = m_WG->SpawnCreature(obj.entryHorde, obj.x, obj.y, obj.z, obj.o, TEAM_HORDE))
- m_CreatureOnPoint[TEAM_HORDE].insert(creature->GetGUID());
- @@ -1664,7 +1706,7 @@ struct WintergraspWorkshopData
- m_GameObjectOnPoint[TEAM_HORDE].insert(gameobject);
- if (GameObject* gameobject = m_WG->SpawnGameObject(obj.entryAlliance, obj.x, obj.y, obj.z, obj.o))
- m_GameObjectOnPoint[TEAM_ALLIANCE].insert(gameobject);
- - }
- + }*/
- // Init method, setup variable
- void Init(uint32 worldstate, uint32 type, uint32 nameid)
- @@ -1679,14 +1721,14 @@ struct WintergraspWorkshopData
- {
- switch (team)
- {
- - case BATTLEFIELD_WG_TEAM_NEUTRAL:
- + case TEAM_NEUTRAL:
- {
- // Send warning message to all player for inform a faction attack a workshop
- // alliance / horde attacking workshop
- m_WG->SendWarningToAllInZone(m_TeamControl ? m_NameId : m_NameId + 1);
- break;
- }
- - case BATTLEFIELD_WG_TEAM_ALLIANCE:
- + case TEAM_ALLIANCE:
- {
- // Show Alliance creature
- for (GuidSet::const_iterator itr = m_CreatureOnPoint[TEAM_ALLIANCE].begin(); itr != m_CreatureOnPoint[TEAM_ALLIANCE].end(); ++itr)
- @@ -1725,7 +1767,7 @@ struct WintergraspWorkshopData
- m_TeamControl = team;
- break;
- }
- - case BATTLEFIELD_WG_TEAM_HORDE:
- + case TEAM_HORDE:
- {
- // Show Horde creature
- for (GuidSet::const_iterator itr = m_CreatureOnPoint[TEAM_HORDE].begin(); itr != m_CreatureOnPoint[TEAM_HORDE].end(); ++itr)
- @@ -1782,4 +1824,4 @@ struct WintergraspWorkshopData
- }
- };
- -#endif
- +#endif
- \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment