Aokromes

wintergrasp josh

Sep 9th, 2012
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.47 KB | None | 0 0
  1. diff --git a/sql/updates/world/2012_09_09_05_world_wintergrasp.sql b/sql/updates/world/2012_09_09_05_world_wintergrasp.sql
  2. new file mode 100644
  3. index 0000000..1237266
  4. --- /dev/null
  5. +++ b/sql/updates/world/2012_09_09_05_world_wintergrasp.sql
  6. @@ -0,0 +1,293 @@
  7. +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);
  8. +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
  9. +(131258, 30739, 571, 1, 64, 24075, 0, 5350.68, 2917.01, 409.275, 1.46608, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  10. +(131259, 30739, 571, 1, 64, 24074, 0, 5367.91, 2826.52, 409.323, 3.33358, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  11. +(131260, 30739, 571, 1, 64, 24073, 0, 5368.71, 2856.36, 409.323, 2.94961, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  12. +(131261, 30739, 571, 1, 64, 24073, 0, 5327.26, 2659.46, 409.179, 3.06991, 180, 5, 0, 11001, 0, 1, 0, 0, 0),
  13. +(131262, 30739, 571, 1, 64, 24073, 0, 5335.12, 2916.8, 409.444, 1.50098, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  14. +(131263, 30739, 571, 1, 64, 24075, 0, 5349.81, 2763.63, 409.333, 4.66003, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  15. +(131264, 30739, 571, 1, 64, 24073, 0, 5389.27, 2847.37, 418.759, 3.10669, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  16. +(131265, 30739, 571, 1, 64, 24073, 0, 5270.06, 2847.55, 409.275, 3.07178, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  17. +(131266, 30739, 571, 1, 64, 24074, 0, 5391.85, 3031.49, 409.208, 0.002589, 180, 5, 0, 11001, 0, 1, 0, 0, 0),
  18. +(131267, 30739, 571, 1, 64, 24074, 0, 5335.31, 2764.11, 409.275, 4.83456, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  19. +(131268, 30739, 571, 1, 64, 24074, 0, 5270.16, 2833.48, 409.275, 3.12414, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  20. +(131269, 30739, 571, 1, 64, 24073, 0, 5388.56, 2834.77, 418.759, 3.07178, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  21. +(131270, 30739, 571, 1, 64, 24076, 0, 5179.67, 2846.6, 409.275, 3.08923, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  22. +(131271, 30739, 571, 1, 64, 24073, 0, 5179.11, 2837.13, 409.275, 3.21141, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  23. +(131274, 30739, 571, 1, 64, 24074, 0, 4781.71, 3275.76, 365.884, 3.01123, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  24. +(131275, 30739, 571, 1, 64, 24076, 0, 4780.26, 3303.49, 365.638, 3.15052, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  25. +(131276, 30739, 571, 1, 64, 24073, 0, 4689.69, 2878.61, 387.427, 3.35613, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  26. +(131277, 30739, 571, 1, 64, 24076, 0, 4700.59, 2855.76, 387.874, -2.92258, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  27. +(131278, 30739, 571, 1, 64, 24073, 0, 4867.99, 2884.67, 375.234, 3.0013, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  28. +(131279, 30739, 571, 1, 64, 24073, 0, 4873.16, 2900.89, 375.937, 3.21141, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  29. +(131280, 30739, 571, 1, 64, 24073, 0, 4694.58, 2393.48, 368.629, 3.29867, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  30. +(131281, 30739, 571, 1, 64, 24074, 0, 4686.43, 2414.86, 369.71, 3.31613, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  31. +(88371, 30740, 571, 1, 128, 0, 0, 5150.27, 2786.02, 409.547, 3.22886, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  32. +(88372, 30740, 571, 1, 128, 0, 0, 5150.66, 2777.95, 409.405, 2.94961, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  33. +(88373, 30740, 571, 1, 128, 0, 0, 5193.63, 2734.17, 409.273, 4.69494, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  34. +(88374, 30740, 571, 1, 128, 0, 0, 5200.5, 2733.89, 409.273, 4.67748, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  35. +(88375, 30740, 571, 1, 128, 0, 0, 5264.65, 2670.19, 409.182, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  36. +(88376, 30740, 571, 1, 128, 0, 0, 5265.31, 2663.15, 409.182, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  37. +(88377, 30740, 571, 1, 128, 0, 0, 5307.02, 2613.9, 409.172, 4.69494, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  38. +(88378, 30740, 571, 1, 128, 0, 0, 5311.13, 3061.04, 408.81, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  39. +(88379, 30740, 571, 1, 128, 0, 0, 5315.87, 2614.22, 408.973, 4.67748, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  40. +(88380, 30740, 571, 1, 128, 0, 0, 5318.09, 3060.63, 408.883, 1.62316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  41. +(88381, 30740, 571, 1, 128, 0, 0, 5149.4, 2897.04, 409.304, 3.03687, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  42. +(88382, 30740, 571, 1, 128, 0, 0, 5149.52, 2904.19, 409.276, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  43. +(88383, 30740, 571, 1, 128, 0, 0, 5192.79, 2948.45, 409.275, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  44. +(88384, 30740, 571, 1, 128, 0, 0, 5201.65, 2948.78, 409.275, 1.62316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  45. +(88385, 30740, 571, 1, 128, 0, 0, 5265.28, 3010.1, 408.896, 2.82743, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  46. +(88388, 30740, 571, 1, 128, 0, 0, 5368.71, 2856.36, 409.323, 2.94961, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  47. +(88389, 30740, 571, 1, 128, 0, 0, 5388.56, 2834.77, 418.759, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  48. +(88400, 30740, 571, 1, 128, 0, 0, 5307.75, 3008.87, 409.193, 4.78168, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  49. +(88401, 30740, 571, 1, 128, 0, 0, 5335.12, 2916.8, 409.444, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  50. +(88402, 30740, 571, 1, 128, 0, 0, 5350.68, 2917.01, 409.275, 1.46608, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  51. +(88403, 30740, 571, 1, 128, 0, 0, 5335.31, 2764.11, 409.275, 4.83456, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  52. +(88406, 30740, 571, 1, 32, 0, 0, 4388.13, 2411.98, 374.743, 1.64061, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  53. +(88407, 30740, 571, 1, 32, 0, 0, 4391.67, 2300.61, 374.743, 4.92183, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  54. +(88408, 30740, 571, 1, 32, 0, 0, 4413.43, 2393.45, 376.36, 1.06465, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  55. +(88410, 30740, 571, 1, 32, 0, 0, 4349.12, 2299.28, 374.743, 4.90438, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  56. +(88386, 30740, 571, 1, 128, 0, 0, 5265.48, 3017.4, 408.583, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  57. +(88387, 30740, 571, 1, 128, 0, 0, 5367.91, 2826.52, 409.323, 3.33358, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  58. +(88390, 30740, 571, 1, 128, 0, 0, 5389.27, 2847.37, 418.759, 3.10669, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  59. +(88391, 30740, 571, 1, 128, 0, 0, 4684.48, 2414.29, 369.962, -2.8578, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  60. +(88392, 30740, 571, 1, 128, 0, 0, 4692.76, 2392.89, 369.018, -2.82922, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  61. +(88393, 30740, 571, 1, 128, 0, 0, 5327.26, 2659.46, 409.179, 3.0699, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  62. +(88394, 30740, 571, 1, 128, 0, 0, 5154.23, 2833.82, 409.262, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  63. +(88395, 30740, 571, 1, 128, 0, 0, 5154.12, 2847.89, 409.248, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  64. +(88396, 30740, 571, 1, 128, 0, 0, 5179.11, 2837.13, 409.275, 3.21141, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  65. +(88397, 30740, 571, 1, 128, 0, 0, 5179.67, 2846.6, 409.275, 3.08923, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  66. +(88398, 30740, 571, 1, 128, 0, 0, 5270.16, 2833.48, 409.275, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  67. +(88399, 30740, 571, 1, 128, 0, 0, 5270.06, 2847.55, 409.275, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  68. +(88404, 30740, 571, 1, 128, 0, 0, 5349.81, 2763.63, 409.333, 4.66003, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  69. +(88405, 30740, 571, 1, 32, 0, 0, 4349.54, 2411.26, 374.743, 2.05949, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  70. +(88409, 30740, 571, 1, 32, 0, 0, 4417.92, 2331.24, 370.919, 5.84685, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  71. +(88411, 30740, 571, 1, 32, 0, 0, 4418.61, 2355.29, 372.491, 6.02139, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  72. +(88337, 31036, 571, 1, 128, 0, 0, 5358.85, 2859.23, 409.543, 1.13263, 120, 0, 0, 1, 0, 2, 0, 0, 0),
  73. +(88336, 31036, 571, 1, 64, 0, 0, 5078.28, 2183.7, 365.029, 1.46608, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  74. +(88339, 31051, 571, 1, 128, 0, 0, 5296.87, 2887.67, 409.275, 5.60251, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  75. +(88338, 31051, 571, 1, 64, 0, 0, 5081.7, 2173.73, 365.878, 0.855211, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  76. +(88341, 31052, 571, 1, 128, 0, 0, 5302.57, 2750.4, 409.275, 5.46288, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  77. +(88340, 31052, 571, 1, 64, 0, 0, 5100.07, 2168.89, 365.779, 1.97222, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  78. +(88355, 31053, 571, 1, 128, 0, 0, 5034.7, 3666.7, 363.274, 4.31096, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  79. +(88354, 31053, 571, 1, 64, 0, 0, 5379.88, 3027.43, 409.206, 0, 120, 0, 0, 1, 0, 2, 0, 0, 0),
  80. +(88343, 31054, 571, 1, 128, 0, 0, 5372.06, 3028.34, 409.206, 0.0125653, 120, 0, 0, 1, 0, 2, 0, 0, 0),
  81. +(88342, 31054, 571, 1, 64, 0, 0, 5088.61, 2167.66, 365.689, 0.680678, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  82. +(88357, 31091, 571, 1, 128, 0, 0, 5018.41, 3672.62, 362.864, 2.20914, 120, 0, 0, 1, 0, 2, 0, 0, 0),
  83. +(88356, 31091, 571, 1, 64, 0, 0, 5359.55, 2858.05, 409.364, 2.62603, 120, 0, 0, 1, 0, 2, 0, 0, 0),
  84. +(88359, 31101, 571, 1, 128, 0, 0, 5014.07, 3678.85, 362.996, 5.09636, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  85. +(88358, 31101, 571, 1, 64, 0, 0, 5296.56, 2789.87, 409.275, 0.733038, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  86. +(88361, 31102, 571, 1, 128, 0, 0, 5031.68, 3655.82, 362.235, 5.13127, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  87. +(88360, 31102, 571, 1, 64, 0, 0, 5296.64, 2731.11, 409.316, 4.72111, 120, 0, 0, 1, 0, 2, 0, 0, 0),
  88. +(88363, 31106, 571, 1, 128, 0, 0, 5037.6, 3675.46, 363.148, 3.1765, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  89. +(88362, 31106, 571, 1, 64, 0, 0, 5295.56, 2926.67, 409.275, 0.872665, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  90. +(88365, 31107, 571, 1, 128, 0, 0, 5004.46, 3661.09, 361.336, 3.97935, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  91. +(88364, 31107, 571, 1, 64, 0, 0, 5230.09, 2876.64, 409.316, -2.19855, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  92. +(88345, 31108, 571, 1, 128, 0, 0, 5298.27, 2924.98, 409.275, 0.907571, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  93. +(88344, 31108, 571, 1, 64, 0, 0, 5095.67, 2193.28, 365.924, 4.93928, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  94. +(88347, 31109, 571, 1, 128, 0, 0, 5228.29, 2809.89, 409.275, 3.19395, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  95. +(88346, 31109, 571, 1, 64, 0, 0, 5080.4, 2199, 359.489, 2.96706, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  96. +(88367, 31151, 571, 1, 128, 0, 0, 5034.7, 3683.27, 363.129, 4.31096, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  97. +(88366, 31151, 571, 1, 64, 0, 0, 5363.29, 2834.53, 409.361, 2.76273, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  98. +(88349, 31153, 571, 1, 128, 0, 0, 5364.78, 2835.14, 409.323, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  99. +(88348, 31153, 571, 1, 64, 0, 0, 5088.49, 2188.18, 365.647, 5.25344, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  100. +(88350, 32294, 571, 1, 128, 0, 0, 5374.57, 2790.78, 409.323, 2.72271, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  101. +(88368, 32296, 571, 1, 64, 0, 0, 5374.57, 2790.78, 409.323, 2.60054, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  102. +(88351, 39172, 571, 1, 128, 0, 0, 5372.67, 2786.74, 409.442, 2.80998, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  103. +(88370, 39173, 571, 1, 64, 0, 0, 5372.67, 2786.74, 409.442, 2.80998, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  104. +(NULL, 30740, 571, 1, 32, 0, 0, 4425.29, 3291.51, 370.773, 0.122173, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  105. +(NULL, 30740, 571, 1, 32, 0, 0, 4424.60, 3321.10, 369.800, 0.034907, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  106. +(NULL, 30740, 571, 1, 32, 0, 0, 4392.39, 3354.61, 369.597, 1.570800, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  107. +(NULL, 30740, 571, 1, 32, 0, 0, 4370.97, 3355.02, 371.196, 1.675520, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  108. +(NULL, 30740, 571, 1, 32, 0, 0, 4394.66, 3231.98, 369.721, 4.625120, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  109. +(NULL, 30740, 571, 1, 32, 0, 0, 4366.97, 3233.56, 371.584, 4.939280, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  110. +(NULL, 30740, 571, 1, 32, 0, 0, 4337.02, 3261.65, 373.524, 3.263770, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  111. +(NULL, 30740, 571, 1, 32, 0, 0, 4323.77, 3287.10, 378.894, 2.862340, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  112. +(NULL, 30739, 571, 1, 16, 0, 0, 4388.13, 2411.98, 374.743, 1.64061, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  113. +(NULL, 30739, 571, 1, 16, 0, 0, 4391.67, 2300.61, 374.743, 4.92183, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  114. +(NULL, 30739, 571, 1, 16, 0, 0, 4413.43, 2393.45, 376.36, 1.06465, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  115. +(NULL, 30739, 571, 1, 16, 0, 0, 4349.12, 2299.28, 374.743, 4.90438, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  116. +(NULL, 30739, 571, 1, 16, 0, 0, 4349.54, 2411.26, 374.743, 2.05949, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  117. +(NULL, 30739, 571, 1, 16, 0, 0, 4417.92, 2331.24, 370.919, 5.84685, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  118. +(NULL, 30739, 571, 1, 16, 0, 0, 4418.61, 2355.29, 372.491, 6.02139, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  119. +(NULL, 30739, 571, 1, 16, 0, 0, 4425.29, 3291.51, 370.773, 0.122173, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  120. +(NULL, 30739, 571, 1, 16, 0, 0, 4424.60, 3321.10, 369.800, 0.034907, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  121. +(NULL, 30739, 571, 1, 16, 0, 0, 4392.39, 3354.61, 369.597, 1.570800, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  122. +(NULL, 30739, 571, 1, 16, 0, 0, 4370.97, 3355.02, 371.196, 1.675520, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  123. +(NULL, 30739, 571, 1, 16, 0, 0, 4394.66, 3231.98, 369.721, 4.625120, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  124. +(NULL, 30739, 571, 1, 16, 0, 0, 4366.97, 3233.56, 371.584, 4.939280, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  125. +(NULL, 30739, 571, 1, 16, 0, 0, 4337.02, 3261.65, 373.524, 3.263770, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  126. +(NULL, 30739, 571, 1, 16, 0, 0, 4323.77, 3287.10, 378.894, 2.862340, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  127. +(NULL, 30739, 571, 1, 128, 0, 0, 4501.06, 1990.28, 431.15, 1.029740, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  128. +(NULL, 30739, 571, 1, 128, 0, 0, 4463.83, 2015.18, 430.29, 1.431170, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  129. +(NULL, 30739, 571, 1, 128, 0, 0, 4494.58, 1943.76, 435.62, 6.195920, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  130. +(NULL, 30739, 571, 1, 128, 0, 0, 4450.14, 1897.57, 435.04, 4.398230, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  131. +(NULL, 30739, 571, 1, 128, 0, 0, 4428.87, 1906.86, 432.64, 3.996800, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  132. +(NULL, 30739, 571, 1, 128, 0, 0, 4452.85, 2808.87, 402.60, 6.056290, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  133. +(NULL, 30739, 571, 1, 128, 0, 0, 4455.89, 2835.95, 401.12, 0.034907, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  134. +(NULL, 30739, 571, 1, 128, 0, 0, 4412.64, 2953.79, 374.79, 0.980838, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  135. +(NULL, 30739, 571, 1, 128, 0, 0, 4362.08, 2811.51, 407.33, 3.193950, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  136. +(NULL, 30739, 571, 1, 128, 0, 0, 4412.29, 2753.79, 401.01, 5.829400, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  137. +(NULL, 30739, 571, 1, 128, 0, 0, 4421.93, 2773.18, 400.89, 5.707230, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  138. +(NULL, 30739, 571, 1, 128, 0, 0, 4418.68, 3506.25, 358.97, 4.293305, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  139. +(NULL, 30740, 571, 1, 64, 0, 0, 4501.06, 1990.28, 431.15, 1.029740, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  140. +(NULL, 30740, 571, 1, 64, 0, 0, 4463.83, 2015.18, 430.29, 1.431170, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  141. +(NULL, 30740, 571, 1, 64, 0, 0, 4494.58, 1943.76, 435.62, 6.195920, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  142. +(NULL, 30740, 571, 1, 64, 0, 0, 4450.14, 1897.57, 435.04, 4.398230, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  143. +(NULL, 30740, 571, 1, 64, 0, 0, 4428.87, 1906.86, 432.64, 3.996800, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  144. +(NULL, 30740, 571, 1, 64, 0, 0, 4452.85, 2808.87, 402.60, 6.056290, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  145. +(NULL, 30740, 571, 1, 64, 0, 0, 4455.89, 2835.95, 401.12, 0.034907, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  146. +(NULL, 30740, 571, 1, 64, 0, 0, 4412.64, 2953.79, 374.79, 0.980838, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  147. +(NULL, 30740, 571, 1, 64, 0, 0, 4362.08, 2811.51, 407.33, 3.193950, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  148. +(NULL, 30740, 571, 1, 64, 0, 0, 4412.29, 2753.79, 401.01, 5.829400, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  149. +(NULL, 30740, 571, 1, 64, 0, 0, 4421.93, 2773.18, 400.89, 5.707230, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  150. +(NULL, 30740, 571, 1, 64, 0, 0, 4418.68, 3506.25, 358.97, 4.293305, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  151. +(NULL, 28366, 571, 1, 1, 0, 0, 5391.19, 3060.8, 419.616, 1.69557, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  152. +(NULL, 28366, 571, 1, 1, 0, 0, 5266.75, 2976.5, 421.067, 3.20354, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  153. +(NULL, 28366, 571, 1, 1, 0, 0, 5234.86, 2948.8, 420.88, 1.61311, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  154. +(NULL, 28366, 571, 1, 1, 0, 0, 5323.05, 2923.7, 421.645, 1.5817, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  155. +(NULL, 28366, 571, 1, 1, 0, 0, 5363.82, 2923.87, 421.709, 1.60527, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  156. +(NULL, 28366, 571, 1, 1, 0, 0, 5264.04, 2861.34, 421.587, 3.21142, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  157. +(NULL, 28366, 571, 1, 1, 0, 0, 5264.68, 2819.78, 421.656, 3.15645, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  158. +(NULL, 28366, 571, 1, 1, 0, 0, 5322.16, 2756.69, 421.646, 4.69978, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  159. +(NULL, 28366, 571, 1, 1, 0, 0, 5363.78, 2756.77, 421.629, 4.78226, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  160. +(NULL, 28366, 571, 1, 1, 0, 0, 5236.2, 2732.68, 421.649, 4.72336, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  161. +(NULL, 28366, 571, 1, 1, 0, 0, 5265.02, 2704.63, 421.7, 3.12507, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  162. +(NULL, 28366, 571, 1, 1, 0, 0, 5350.87, 2616.03, 421.243, 4.72729, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  163. +(NULL, 28366, 571, 1, 1, 0, 0, 5390.95, 2615.5, 421.126, 4.6409, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  164. +(NULL, 28366, 571, 1, 1, 0, 0, 5148.8, 2820.24, 421.621, 3.16043, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  165. +(NULL, 28366, 571, 1, 1, 0, 0, 5147.98, 2861.93, 421.63, 3.18792, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  166. +(NULL, 28366, 571, 1, 1, 0, 0, 5255.88, 3047.63, 438.499, 3.13677, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  167. +(NULL, 28366, 571, 1, 1, 0, 0, 5280.9, 3071.32, 438.499, 1.62879, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  168. +(NULL, 28366, 571, 1, 1, 0, 0, 5138.59, 2935.16, 439.845, 3.11723, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  169. +(NULL, 28366, 571, 1, 1, 0, 0, 5163.06, 2959.52, 439.846, 1.47258, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  170. +(NULL, 28366, 571, 1, 1, 0, 0, 5163.84, 2723.74, 439.844, 1.3994, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  171. +(NULL, 28366, 571, 1, 1, 0, 0, 5139.69, 2747.4, 439.844, 3.17221, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  172. +(NULL, 28366, 571, 1, 1, 0, 0, 5278.21, 2607.23, 439.755, 4.71944, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  173. +(NULL, 28366, 571, 1, 1, 0, 0, 5255.01, 2631.98, 439.755, 3.15257, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  174. +(NULL, 28366, 571, 1, 1, 0, 0, 4537.38, 3599.53, 402.886, 3.998462, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  175. +(NULL, 28366, 571, 1, 1, 0, 0, 4581.49, 3604.08, 402.886, 5.651723, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  176. +(NULL, 28366, 571, 1, 1, 0, 0, 4469.44, 1966.62, 465.647, 1.153573, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  177. +(NULL, 28366, 571, 1, 1, 0, 0, 4581.89, 3626.43, 426.539, 0.117806, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  178. +(NULL, 28366, 571, 1, 1, 0, 0, 4421.64, 2799.93, 412.630, 5.459298, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  179. +(NULL, 28366, 571, 1, 1, 0, 0, 4420.26, 2845.34, 412.630, 0.742197, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  180. +(NULL, 28366, 571, 1, 1, 0, 0, 4423.43, 2822.76, 436.283, 6.223487, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  181. +(NULL, 28366, 571, 1, 1, 0, 0, 4397.82, 2847.62, 436.283, 1.579430, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  182. +(NULL, 28366, 571, 1, 1, 0, 0, 4398.81, 2797.26, 436.283, 4.703747, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  183. +(NULL, 28366, 571, 1, 1, 0, 0, 4448.13, 1974.99, 441.995, 1.967238, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  184. +(NULL, 28366, 571, 1, 1, 0, 0, 4448.71, 1955.14, 441.995, 0.380733, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  185. +(NULL, 28366, 571, 1, 1, 0, 0, 4469.44, 1966.62, 465.647, 1.153573, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  186. +(NULL, 28366, 571, 1, 1, 0, 0, 4481.99, 1933.65, 465.647, 5.873029, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  187. +(NULL, 30740, 571, 1, 128, 0, 0, 4867.99, 2884.67, 375.234, 3.0013, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  188. +(NULL, 30740, 571, 1, 128, 0, 0, 4873.16, 2900.89, 375.937, 3.21141, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  189. +(NULL, 30740, 571, 1, 128, 0, 0, 4781.71, 3275.76, 365.884, 3.01123, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  190. +(NULL, 30740, 571, 1, 128, 0, 0, 4780.26, 3303.49, 365.638, 3.15052, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  191. +(NULL, 30740, 571, 1, 128, 0, 0, 4689.69, 2878.61, 387.427, 3.35613, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  192. +(NULL, 30740, 571, 1, 128, 0, 0, 4700.59, 2855.76, 387.874, -2.92258, 180, 0, 0, 11001, 0, 0, 0, 0, 0),
  193. +(NULL, 30739, 571, 1, 64, 0, 0, 5150.27, 2786.02, 409.547, 3.22886, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  194. +(NULL, 30739, 571, 1, 64, 0, 0, 5150.66, 2777.95, 409.405, 2.94961, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  195. +(NULL, 30739, 571, 1, 64, 0, 0, 5193.63, 2734.17, 409.273, 4.69494, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  196. +(NULL, 30739, 571, 1, 64, 0, 0, 5200.5, 2733.89, 409.273, 4.67748, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  197. +(NULL, 30739, 571, 1, 64, 0, 0, 5264.65, 2670.19, 409.182, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  198. +(NULL, 30739, 571, 1, 64, 0, 0, 5265.31, 2663.15, 409.182, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  199. +(NULL, 30739, 571, 1, 64, 0, 0, 5307.02, 2613.9, 409.172, 4.69494, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  200. +(NULL, 30739, 571, 1, 64, 0, 0, 5311.13, 3061.04, 408.81, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  201. +(NULL, 30739, 571, 1, 64, 0, 0, 5315.87, 2614.22, 408.973, 4.67748, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  202. +(NULL, 30739, 571, 1, 64, 0, 0, 5318.09, 3060.63, 408.883, 1.62316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  203. +(NULL, 30739, 571, 1, 64, 0, 0, 5149.4, 2897.04, 409.304, 3.03687, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  204. +(NULL, 30739, 571, 1, 64, 0, 0, 5149.52, 2904.19, 409.276, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  205. +(NULL, 30739, 571, 1, 64, 0, 0, 5192.79, 2948.45, 409.275, 1.50098, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  206. +(NULL, 30739, 571, 1, 64, 0, 0, 5201.65, 2948.78, 409.275, 1.62316, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  207. +(NULL, 30739, 571, 1, 64, 0, 0, 5265.28, 3010.1, 408.896, 2.82743, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  208. +(NULL, 30739, 571, 1, 64, 0, 0, 5265.48, 3017.4, 408.583, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  209. +(NULL, 30739, 571, 1, 64, 0, 0, 5154.23, 2833.82, 409.262, 3.12414, 120, 0, 0, 1, 0, 0, 0, 0, 0),
  210. +(NULL, 30739, 571, 1, 64, 0, 0, 5154.12, 2847.89, 409.248, 3.07178, 120, 0, 0, 1, 0, 0, 0, 0, 0);
  211. +-- Portals
  212. +DELETE FROM `gameobject` WHERE `id` IN(190763, 192951);
  213. +INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
  214. +(NULL, 190763, 571, 1, 1, 5153.41, 2901.35, 409.191, -0.069, 0, 0, 0, 0, 900, 100, 1),
  215. +(NULL, 190763, 571, 1, 1, 5268.70, 2666.42, 409.099, -0.715, 0, 0, 0, 0, 900, 100, 1),
  216. +(NULL, 190763, 571, 1, 1, 5197.05, 2944.81, 409.191, 2.3387, 0, 0, 0, 0, 900, 100, 1),
  217. +(NULL, 190763, 571, 1, 1, 5196.67, 2737.34, 409.189, -2.932, 0, 0, 0, 0, 900, 100, 1),
  218. +(NULL, 190763, 571, 1, 1, 5314.58, 3055.85, 408.862, 0.5410, 0, 0, 0, 0, 900, 100, 1),
  219. +(NULL, 190763, 571, 1, 1, 5391.28, 2828.09, 418.675, -2.164, 0, 0, 0, 0, 900, 100, 1),
  220. +(NULL, 190763, 571, 1, 1, 5153.93, 2781.67, 409.246, 1.6580, 0, 0, 0, 0, 900, 100, 1),
  221. +(NULL, 190763, 571, 1, 1, 5311.44, 2618.93, 409.092, -2.373, 0, 0, 0, 0, 900, 100, 1),
  222. +(NULL, 190763, 571, 1, 1, 5269.21, 3013.84, 408.828, -1.762, 0, 0, 0, 0, 900, 100, 1),
  223. +(NULL, 190763, 571, 1, 1, 5401.62, 2853.66, 418.674, 2.6354, 0, 0, 0, 0, 900, 100, 1),
  224. +(NULL, 192951, 571, 1, 1, 5314.51, 2703.69, 408.550, -0.890, 0, 0, 0, 0, 900, 100, 1),
  225. +(NULL, 192951, 571, 1, 1, 5316.25, 2977.04, 408.539, -0.820, 0, 0, 0, 0, 900, 100, 1);
  226. +-- Walls and towers
  227. +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;
  228. +INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
  229. +(NULL, 190219, 571, 1, 1, 5371.46, 3047.47, 407.571, 3.14159, 0, 0, 0, 0, 900, 100, 1),
  230. +(NULL, 190220, 571, 1, 1, 5331.26, 3047.1, 407.923, 0.052359, 0, 0, 0, 0, 900, 100, 1),
  231. +(NULL, 191795, 571, 1, 1, 5385.84, 2909.49, 409.713, 0.00872, 0, 0, 0, 0, 900, 100, 1),
  232. +(NULL, 191796, 571, 1, 1, 5384.45, 2771.84, 410.27, 3.14159, 0, 0, 0, 0, 900, 100, 1),
  233. +(NULL, 191799, 571, 1, 1, 5371.44, 2630.61, 408.816, 3.13286, 0, 0, 0, 0, 900, 100, 1),
  234. +(NULL, 191800, 571, 1, 1, 5301.84, 2909.09, 409.866, 0.008724, 0, 0, 0, 0, 900, 100, 1),
  235. +(NULL, 191801, 571, 1, 1, 5301.06, 2771.41, 409.901, 3.14159, 0, 0, 0, 0, 900, 100, 1),
  236. +(NULL, 191802, 571, 1, 1, 5280.2, 2995.58, 408.825, 1.61443, 0, 0, 0, 0, 900, 100, 1),
  237. +(NULL, 191803, 571, 1, 1, 5279.14, 2956.02, 408.604, 1.5708, 0, 0, 0, 0, 900, 100, 1),
  238. +(NULL, 191804, 571, 1, 1, 5278.69, 2882.51, 409.539, 1.5708, 0, 0, 0, 0, 900, 100, 1),
  239. +(NULL, 191806, 571, 1, 1, 5279.5, 2798.94, 409.998, 1.5708, 0, 0, 0, 0, 900, 100, 1),
  240. +(NULL, 191807, 571, 1, 1, 5279.94, 2724.77, 409.945, 1.56207, 0, 0, 0, 0, 900, 100, 1),
  241. +(NULL, 191808, 571, 1, 1, 5279.6, 2683.79, 409.849, 1.55334, 0, 0, 0, 0, 900, 100, 1),
  242. +(NULL, 191809, 571, 1, 1, 5330.96, 2630.78, 409.283, 3.13286, 0, 0, 0, 0, 900, 100, 1),
  243. +(NULL, 190369, 571, 1, 1, 5256.08, 2933.96, 409.357, 3.13286, 0, 0, 0, 0, 900, 100, 1),
  244. +(NULL, 190370, 571, 1, 1, 5257.46, 2747.33, 409.743, -3.13286, 0, 0, 0, 0, 900, 100, 1),
  245. +(NULL, 190371, 571, 1, 1, 5214.96, 2934.09, 409.19, -0.008724, 0, 0, 0, 0, 900, 100, 1),
  246. +(NULL, 190372, 571, 1, 1, 5215.82, 2747.57, 409.188, -3.13286, 0, 0, 0, 0, 900, 100, 1),
  247. +(NULL, 190374, 571, 1, 1, 5162.27, 2883.04, 410.256, 1.57952, 0, 0, 0, 0, 900, 100, 1),
  248. +(NULL, 190376, 571, 1, 1, 5163.72, 2799.84, 409.227, 1.57952, 0, 0, 0, 0, 900, 100, 1),
  249. +(NULL, 190221, 571, 1, 1, 5281.15, 3044.59, 407.843, 3.11539, 0, 0, 0, 0, 900, 100, 1),
  250. +(NULL, 190373, 571, 1, 1, 5163.76, 2932.23, 409.19, 3.12412, 0, 0, 0, 0, 900, 100, 1),
  251. +(NULL, 190377, 571, 1, 1, 5166.4, 2748.37, 409.188, -1.5708, 0, 0, 0, 0, 900, 100, 1),
  252. +(NULL, 190378, 571, 1, 1, 5281.19, 2632.48, 409.099, -1.58825, 0, 0, 0, 0, 900, 100, 1),
  253. +(NULL, 191797, 571, 1, 1, 5343.29, 2908.86, 409.576, 0.008724, 0, 0, 0, 0, 900, 100, 1),
  254. +(NULL, 191798, 571, 1, 1, 5342.72, 2771.39, 409.625, 3.14159, 0, 0, 0, 0, 900, 100, 1),
  255. +(NULL, 191805, 571, 1, 1, 5279.13, 2840.8, 409.783, 1.57952, 0, 0, 0, 0, 900, 100, 1),
  256. +(NULL, 190356, 571, 1, 1, 4557.17, 3623.94, 395.883, 1.67552, 0, 0, 0, 0, 900, 100, 1),
  257. +(NULL, 190357, 571, 1, 1, 4398.17, 2822.5, 405.627, -3.12412, 0, 0, 0, 0, 900, 100, 1),
  258. +(NULL, 190358, 571, 1, 1, 4459.1, 1944.33, 434.991, -2.00276, 0, 0, 0, 0, 900, 100, 1),
  259. +(NULL, 190375, 571, 1, 1, 5162.99, 2841.23, 410.162, -3.13286, 0, 0, 0, 0, 900, 100, 1),
  260. +(NULL, 191810, 571, 1, 1, 5397.11, 2841.54, 425.899, 3.14159, 0, 0, 0, 0, 900, 100, 1);
  261. +-- Gameobjects
  262. +DELETE FROM `gameobject` WHERE `id` IN(192488, 192269, 192366, 192501, 192278, 192429, 192416) AND map = 571;
  263. +INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
  264. +(75983, 192269, 571, 1, 64, 4526.46, 2810.18, 391.2, -2.99322, 0, 0, 0, 1, 180, 0, 1),
  265. +(76004, 192366, 571, 1, 64, 5236.27, 2739.46, 444.992, -1.59698, 0, 0, 0, 1, 180, 0, 1),
  266. +(76023, 192488, 571, 1, 64, 5278.38, 2613.83, 433.409, -1.58825, 0, 0, 0, 1, 180, 0, 1),
  267. +(76024, 192488, 571, 1, 64, 5260.82, 2631.8, 433.324, 3.05433, 0, 0, 0, 1, 180, 0, 1),
  268. +(76025, 192488, 571, 1, 64, 5163.13, 2952.59, 433.503, 1.53589, 0, 0, 0, 1, 180, 0, 1),
  269. +(76026, 192488, 571, 1, 64, 5145.11, 2935, 433.386, 3.14159, 0, 0, 0, 1, 180, 0, 1),
  270. +(76027, 192488, 571, 1, 64, 5262.54, 3047.95, 432.055, 3.10665, 0, 0, 0, 1, 180, 0, 1),
  271. +(76028, 192488, 571, 1, 64, 5146.04, 2747.21, 433.584, 3.07177, 0, 0, 0, 1, 180, 0, 1),
  272. +(76029, 192488, 571, 1, 64, 5163.78, 2729.68, 433.394, -1.58825, 0, 0, 0, 1, 180, 0, 1),
  273. +(76030, 192488, 571, 1, 64, 5280.89, 3064.95, 431.976, 1.55334, 0, 0, 0, 0, 120, 0, 1),
  274. +(76031, 192501, 571, 1, 64, 4398.82, 2804.7, 429.792, -1.58825, 0, 0, 0, 1, 180, 0, 1),
  275. +(76032, 192501, 571, 1, 64, 4416, 2822.67, 429.851, -0.017452, 0, 0, 0, 1, 180, 0, 1),
  276. +(76033, 192501, 571, 1, 64, 4559.11, 3606.22, 419.999, -1.48353, 0, 0, 0, 1, 180, 0, 1),
  277. +(76034, 192501, 571, 1, 64, 4539.42, 3622.49, 420.034, -3.07177, 0, 0, 0, 1, 180, 0, 1),
  278. +(76035, 192501, 571, 1, 64, 4555.26, 3641.65, 419.974, 1.67551, 0, 0, 0, 1, 180, 0, 1),
  279. +(76036, 192501, 571, 1, 64, 4574.87, 3625.91, 420.079, 0.087266, 0, 0, 0, 1, 180, 0, 1),
  280. +(76037, 192501, 571, 1, 64, 4466.79, 1960.42, 459.144, 1.15192, 0, 0, 0, 1, 180, 0, 1),
  281. +(76038, 192501, 571, 1, 64, 4475.35, 1937.03, 459.07, -0.436332, 0, 0, 0, 1, 180, 0, 1),
  282. +(76039, 192501, 571, 1, 64, 4451.76, 1928.1, 459.076, -2.00713, 0, 0, 0, 1, 180, 0, 1),
  283. +(76040, 192501, 571, 1, 64, 4442.99, 1951.9, 459.093, 2.74016, 0, 0, 0, 1, 180, 0, 1),
  284. +(76041, 192501, 571, 1, 64, 4380.36, 2822.38, 429.882, -3.10665, 0, 0, 0, 0, 120, 0, 1),
  285. +(76042, 192501, 571, 1, 64, 4397.66, 2840.3, 429.922, 1.58825, 0, 0, 0, 0, 120, 0, 1),
  286. +(NULL, 192269, 571, 1, 128, 4433.899902, 3534.139893, 360.274994, -1.850050, 0, 0, 0, 0, 900, 100, 1),
  287. +(NULL, 192269, 571, 1, 128, 4572.930176, 3475.520020, 363.009003, 1.42240, 0, 0, 0, 0, 900, 100, 1),
  288. +(NULL, 192366, 571, 1, 128, 4387.620117, 2719.570068, 389.934998, -1.544620, 0, 0, 0, 0, 900, 100, 1),
  289. +(NULL, 192366, 571, 1, 128, 4464.120117, 2855.449951, 406.110992, 0.829032, 0, 0, 0, 0, 900, 100, 1),
  290. +(NULL, 192278, 571, 1, 64, 4433.899902, 3534.139893, 360.274994, -1.850050, 0, 0, 0, 0, 900, 100, 1),
  291. +(NULL, 192278, 571, 1, 64, 4572.930176, 3475.520020, 363.009003, 1.42240, 0, 0, 0, 0, 900, 100, 1),
  292. +(NULL, 192414, 571, 1, 64, 4387.620117, 2719.570068, 389.934998, -1.544620, 0, 0, 0, 0, 900, 100, 1),
  293. +(NULL, 192429, 571, 1, 64, 4464.120117, 2855.449951, 406.110992, 0.829032, 0, 0, 0, 0, 900, 100, 1),
  294. +(NULL, 192488, 571, 1, 64, 5158.810059, 2883.129883, 431.618011, 3.141590, 0, 0, 0, 0, 900, 100, 1),
  295. +(NULL, 192488, 571, 1, 64, 5160.339844, 2798.610107, 430.769012, 3.141590, 0, 0, 0, 0, 900, 100, 1),
  296. +(NULL, 192416, 571, 1, 128, 5158.810059, 2883.129883, 431.618011, 3.141590, 0, 0, 0, 0, 900, 100, 1),
  297. +(NULL, 192416, 571, 1, 128, 5160.339844, 2798.610107, 430.769012, 3.141590, 0, 0, 0, 0, 900, 100, 1),
  298. +(NULL, 192269, 571, 1, 128, 5154.520020, 2853.310059, 409.183014, 3.141590, 0, 0, 0, 0, 900, 100, 1),
  299. +(NULL, 192269, 571, 1, 128, 5154.459961, 2828.939941, 409.188995, 3.141590, 0, 0, 0, 0, 900, 100, 1);
  300. \ No newline at end of file
  301. diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
  302. index 233dbec..ebb51f7 100644
  303. --- a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
  304. +++ b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
  305. @@ -124,6 +124,9 @@ bool BattlefieldWG::SetupBattlefield()
  306. WorkshopsList.insert(workshop);
  307. }
  308.  
  309. + LoadBattlefieldGrid();
  310. +
  311. + /*
  312. // Spawn NPCs in the defender's keep, both Horde and Alliance
  313. for (uint8 i = 0; i < WG_MAX_KEEP_NPC; i++)
  314. {
  315. @@ -209,7 +212,7 @@ bool BattlefieldWG::SetupBattlefield()
  316.  
  317. // Hide attackant banner in keep
  318. for (GameObjectSet::const_iterator itr = m_KeepGameObject[GetAttackerTeam()].begin(); itr != m_KeepGameObject[GetAttackerTeam()].end(); ++itr)
  319. - (*itr)->SetRespawnTime(RESPAWN_ONE_DAY);
  320. + (*itr)->SetRespawnTime(RESPAWN_ONE_DAY);*/
  321.  
  322. UpdateCounterVehicle(true);
  323. return true;
  324. @@ -233,6 +236,8 @@ bool BattlefieldWG::Update(uint32 diff)
  325.  
  326. void BattlefieldWG::OnBattleStart()
  327. {
  328. + LoadBattlefieldGrid();
  329. +
  330. // Spawn titan relic
  331. m_titansRelic = SpawnGameObject(GO_WINTERGRASP_TITAN_S_RELIC, 5440.0f, 2840.8f, 430.43f, 0);
  332. if (m_titansRelic)
  333. @@ -247,7 +252,7 @@ void BattlefieldWG::OnBattleStart()
  334.  
  335.  
  336. // Update tower visibility and update faction
  337. - for (GuidSet::const_iterator itr = CanonList.begin(); itr != CanonList.end(); ++itr)
  338. + /*for (GuidSet::const_iterator itr = CanonList.begin(); itr != CanonList.end(); ++itr)
  339. {
  340. if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  341. {
  342. @@ -257,6 +262,30 @@ void BattlefieldWG::OnBattleStart()
  343. creature->setFaction(WintergraspFaction[GetDefenderTeam()]);
  344. }
  345. }
  346. + }*/
  347. +
  348. + for (GuidSet::const_iterator itr = FortressCanonList.begin(); itr != FortressCanonList.end(); ++itr)
  349. + {
  350. + if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  351. + {
  352. + if (Creature* creature = unit->ToCreature())
  353. + {
  354. + ShowNpc(creature, true);
  355. + creature->setFaction(WintergraspFaction[GetDefenderTeam()]);
  356. + }
  357. + }
  358. + }
  359. +
  360. + for (GuidSet::const_iterator itr = TowersCanonList.begin(); itr != TowersCanonList.end(); ++itr)
  361. + {
  362. + if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  363. + {
  364. + if (Creature* creature = unit->ToCreature())
  365. + {
  366. + ShowNpc(creature, true);
  367. + creature->setFaction(WintergraspFaction[GetAttackerTeam()]);
  368. + }
  369. + }
  370. }
  371.  
  372. // Rebuild all wall
  373. @@ -265,7 +294,7 @@ void BattlefieldWG::OnBattleStart()
  374. if (*itr)
  375. {
  376. (*itr)->Rebuild();
  377. - (*itr)->UpdateTurretAttack(false);
  378. + //(*itr)->UpdateTurretAttack(false);
  379. }
  380. }
  381.  
  382. @@ -289,6 +318,8 @@ void BattlefieldWG::OnBattleStart()
  383. player->GetPosition(x, y, z);
  384. if (5500 > x && setFaction(WintergraspFaction[GetAttackerTeam()]);
  385. + }
  386. + }
  387. }
  388.  
  389. // Rebuild all wall
  390. @@ -265,7 +294,7 @@ void BattlefieldWG::OnBattleStart()
  391. if (*itr)
  392. {
  393. (*itr)-x > 5392 && y < 2880 && y > 2800 && z < 480)
  394. player->TeleportTo(571, 5349.8686f, 2838.481f, 409.240f, 0.046328f);
  395. + if (player->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) || player->HasAuraType(SPELL_AURA_FLY))
  396. + player->CastSpell(player, SPELL_WINTERGRASP_RESTRICTED_FLIGHT_AREA, true);
  397. SendInitWorldStatesTo(player);
  398. }
  399. }
  400. @@ -300,6 +331,8 @@ void BattlefieldWG::OnBattleStart()
  401.  
  402. void BattlefieldWG::UpdateCounterVehicle(bool init)
  403. {
  404. + if (!IsWarTime())
  405. + return;
  406. if (init)
  407. {
  408. SetData(BATTLEFIELD_WG_DATA_VEHICLE_H, 0);
  409. @@ -330,7 +363,7 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
  410. m_titansRelic = NULL;
  411.  
  412. // Remove turret
  413. - for (GuidSet::const_iterator itr = CanonList.begin(); itr != CanonList.end(); ++itr)
  414. + /*for (GuidSet::const_iterator itr = CanonList.begin(); itr != CanonList.end(); ++itr)
  415. {
  416. if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  417. {
  418. @@ -341,9 +374,45 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
  419. HideNpc(creature);
  420. }
  421. }
  422. + }*/
  423. +
  424. + for (GuidSet::const_iterator itr = FortressCanonList.begin(); itr != FortressCanonList.end(); ++itr)
  425. + {
  426. + if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  427. + {
  428. + if (Creature* creature = unit->ToCreature())
  429. + {
  430. + HideNpc(creature);
  431. + creature->setFaction(WintergraspFaction[GetDefenderTeam()]);
  432. + }
  433. + }
  434. + }
  435. +
  436. + for (GuidSet::const_iterator itr = TowersCanonList.begin(); itr != TowersCanonList.end(); ++itr)
  437. + {
  438. + if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  439. + {
  440. + if (Creature* creature = unit->ToCreature())
  441. + {
  442. + HideNpc(creature);
  443. + creature->setFaction(WintergraspFaction[GetAttackerTeam()]);
  444. + }
  445. + }
  446. }
  447.  
  448. - if (!endByTimer) // One player triggered the relic
  449. + for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
  450. + {
  451. + if (*itr)
  452. + {
  453. + if ((*itr)->m_Type == BATTLEFIELD_WG_OBJECTTYPE_DOOR_LAST)
  454. + {
  455. + (*itr)->Rebuild();
  456. + break;
  457. + }
  458. + }
  459. + }
  460. +
  461. + /*if (!endByTimer) // One player triggered the relic
  462. {
  463. // Change all npc in keep
  464. for (GuidSet::const_iterator itr = KeepCreature[GetAttackerTeam()].begin(); itr != KeepCreature[GetAttackerTeam()].end(); ++itr)
  465. @@ -366,23 +435,28 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
  466. if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  467. if (Creature* creature = unit->ToCreature())
  468. ShowNpc(creature, true);
  469. - }
  470. + }*/
  471.  
  472. // Update all graveyard, control is to defender when no wartime
  473. for (uint8 i = 0; i < BATTLEFIELD_WG_GY_HORDE; i++)
  474. if (BfGraveyard* graveyard = GetGraveyardById(i))
  475. graveyard->GiveControlTo(GetDefenderTeam());
  476.  
  477. - for (GameObjectSet::const_iterator itr = m_KeepGameObject[GetDefenderTeam()].begin(); itr != m_KeepGameObject[GetDefenderTeam()].end(); ++itr)
  478. + /*for (GameObjectSet::const_iterator itr = m_KeepGameObject[GetDefenderTeam()].begin(); itr != m_KeepGameObject[GetDefenderTeam()].end(); ++itr)
  479. (*itr)->SetRespawnTime(RESPAWN_IMMEDIATELY);
  480.  
  481. for (GameObjectSet::const_iterator itr = m_KeepGameObject[GetAttackerTeam()].begin(); itr != m_KeepGameObject[GetAttackerTeam()].end(); ++itr)
  482. - (*itr)->SetRespawnTime(RESPAWN_ONE_DAY);
  483. + (*itr)->SetRespawnTime(RESPAWN_ONE_DAY);*/
  484.  
  485. // Update portal defender faction
  486. for (GameObjectSet::const_iterator itr = DefenderPortalList.begin(); itr != DefenderPortalList.end(); ++itr)
  487. (*itr)->SetUInt32Value(GAMEOBJECT_FACTION, WintergraspFaction[GetDefenderTeam()]);
  488.  
  489. + // Rebuild all wall
  490. + for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
  491. + if (*itr)
  492. + (*itr)->Rebuild();
  493. +
  494. // Saving data
  495. for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
  496. (*itr)->Save();
  497. @@ -394,7 +468,25 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
  498. if (Player* player = sObjectAccessor->FindPlayer(*itr))
  499. {
  500. player->CastSpell(player, SPELL_ESSENCE_OF_WINTERGRASP, true);
  501. - player->CastSpell(player, SPELL_VICTORY_REWARD, true);
  502. + int32 num_to_add = 0;
  503. + if (player->HasAura(SPELL_LIEUTENANT))
  504. + num_to_add = 3;
  505. + else
  506. + if (player->HasAura(SPELL_CORPORAL))
  507. + num_to_add = 2;
  508. + player->CastCustomSpell(player, SPELL_VICTORY_REWARD, 0, &num_to_add, 0, true);
  509. + if (GetData(BATTLEFIELD_WG_DATA_DAMAGED_TOWER_DEF))
  510. + player->CastSpell(player, SPELL_DAMAGED_BUILDING, true);
  511. + else
  512. + if (!GetData(BATTLEFIELD_WG_DATA_BROKEN_TOWER_DEF))
  513. + player->CastSpell(player, SPELL_INTACT_BUILDING, true);
  514. + if (GetData(BATTLEFIELD_WG_DATA_BROKEN_TOWER_ATT))
  515. + player->CastSpell(player, SPELL_DESTROYED_TOWER, true);
  516. + else
  517. + if (GetData(BATTLEFIELD_WG_DATA_DAMAGED_TOWER_ATT))
  518. + player->CastSpell(player, SPELL_DAMAGED_TOWER, true);
  519. + player->AreaExploredOrEventHappens(QUEST_VICTORY_IN_WINTERGRASP_A);
  520. + player->AreaExploredOrEventHappens(QUEST_VICTORY_IN_WINTERGRASP_H);
  521. // Send Wintergrasp victory achievement
  522. DoCompleteOrIncrementAchievement(ACHIEVEMENTS_WIN_WG, player);
  523. // Award achievement for succeeding in Wintergrasp in 10 minutes or less
  524. @@ -404,8 +496,20 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
  525. }
  526.  
  527. for (GuidSet::const_iterator itr = m_PlayersInWar[GetAttackerTeam()].begin(); itr != m_PlayersInWar[GetAttackerTeam()].end(); ++itr)
  528. + {
  529. if (Player* player = sObjectAccessor->FindPlayer(*itr))
  530. - player->CastSpell(player, SPELL_DEFEAT_REWARD, true);
  531. + {
  532. + int32 num_to_add = 0;
  533. + if (player->HasAura(SPELL_LIEUTENANT) || player->HasAura(SPELL_CORPORAL))
  534. + num_to_add = 1;
  535. + player->CastCustomSpell(player, SPELL_DEFEAT_REWARD, 0, &num_to_add, 0, true);
  536. + if (GetData(BATTLEFIELD_WG_DATA_BROKEN_TOWER_DEF))
  537. + player->CastSpell(player, SPELL_DESTROYED_TOWER, true);
  538. + else
  539. + if (GetData(BATTLEFIELD_WG_DATA_DAMAGED_TOWER_DEF))
  540. + player->CastSpell(player, SPELL_DAMAGED_TOWER, true);
  541. + }
  542. + }
  543.  
  544. for (uint8 team = 0; team < 2; ++team)
  545. {
  546. @@ -484,7 +588,7 @@ uint8 BattlefieldWG::GetSpiritGraveyardId(uint32 areaId)
  547. return BATTLEFIELD_WG_GY_KEEP;
  548. case AREA_THE_SUNKEN_RING:
  549. return BATTLEFIELD_WG_GY_WORKSHOP_NE;
  550. - case AREA_THE_BROKEN_TEMPLATE:
  551. + case AREA_THE_BROKEN_TEMPLE:
  552. return BATTLEFIELD_WG_GY_WORKSHOP_NW;
  553. case AREA_WESTPARK_WORKSHOP:
  554. return BATTLEFIELD_WG_GY_WORKSHOP_SW;
  555. @@ -516,6 +620,40 @@ void BattlefieldWG::OnCreatureCreate(Creature* creature)
  556. m_GraveyardList[graveyardId]->SetSpirit(creature, teamId);
  557. break;
  558. }
  559. + case NPC_TOWER_CANNON:
  560. + if (creature->GetAreaId() == AREA_WINTERGRASP_FORTRESS)
  561. + {
  562. + FortressCanonList.insert(creature->GetGUID());
  563. + for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
  564. + {
  565. + if (creature->GetDistance2d((*itr)->m_Build) < 30.0f)
  566. + {
  567. + if (creature->GetPositionZ() > (*itr)->m_Build->GetPositionZ() + 10.0f)
  568. + {
  569. + (*itr)->m_TowerCannonTopList.insert(creature->GetGUID());
  570. + }
  571. + break;
  572. + }
  573. + }
  574. + }
  575. + else
  576. + {
  577. + TowersCanonList.insert(creature->GetGUID());
  578. + for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
  579. + {
  580. + if (creature->GetAreaId() == (*itr)->m_Build->GetAreaId())
  581. + {
  582. + if (creature->GetPositionZ() > (*itr)->m_Build->GetPositionZ() + 10.0f)
  583. + {
  584. + (*itr)->m_TowerCannonTopList.insert(creature->GetGUID());
  585. + }
  586. + break;
  587. + }
  588. + }
  589. + }
  590. + creature->SetRespawnDelay(m_BattleTime);
  591. + HideNpc(creature);
  592. + break;
  593. }
  594.  
  595. // untested code - not sure if it is valid.
  596. @@ -633,24 +771,76 @@ void BattlefieldWG::OnGameObjectCreate(GameObject* go)
  597. isWorkshop = true;
  598. workshopId = BATTLEFIELD_WG_WORKSHOP_SW;
  599. break;
  600. + case GO_WINTERGRASP_TELEPORTER:
  601. + case GO_WINTERGRASP_VEHICLE_TELEPORTER:
  602. + DefenderPortalList.insert(go);
  603. + go->SetUInt32Value(GAMEOBJECT_FACTION, WintergraspFaction[GetDefenderTeam()]);
  604. + break;
  605. + case 190219:
  606. + case 190220:
  607. + case 191795:
  608. + case 191796:
  609. + case 191799:
  610. + case 191800:
  611. + case 191801:
  612. + case 191802:
  613. + case 191803:
  614. + case 191804:
  615. + case 191806:
  616. + case 191807:
  617. + case 191808:
  618. + case 191809:
  619. + case 190369:
  620. + case 190370:
  621. + case 190371:
  622. + case 190372:
  623. + case 190374:
  624. + case 190376:
  625. + case 190221:
  626. + case 190373:
  627. + case 190377:
  628. + case 190378:
  629. + case 191797:
  630. + case 191798:
  631. + case 191805:
  632. + case 190356:
  633. + case 190357:
  634. + case 190358:
  635. + case GO_WINTERGRASP_FORTRESS_GATE:
  636. + case GO_WINTERGRASP_VAULT_GATE:
  637. + for (uint8 i = 0; i < WG_MAX_OBJ; i++)
  638. + {
  639. + if (go->GetEntry() == WGGameObjectBuilding[i].entry)
  640. + {
  641. + BfWGGameObjectBuilding* b = new BfWGGameObjectBuilding(this);
  642. + b->Init(go, WGGameObjectBuilding[i].type, WGGameObjectBuilding[i].WorldState, WGGameObjectBuilding[i].nameId);
  643. + if (!IsEnabled() && go->GetEntry() == GO_WINTERGRASP_VAULT_GATE)
  644. + go->SetDestructibleState(GO_DESTRUCTIBLE_DESTROYED);
  645. + BuildingsInZone.insert(b);
  646. + break;
  647. + }
  648. + }
  649. + if (!IsEnabled() && go->GetEntry() == GO_WINTERGRASP_VAULT_GATE)
  650. + go->SetDestructibleState(GO_DESTRUCTIBLE_DESTROYED);
  651. + break;
  652.  
  653. }
  654. -
  655. - if (!isWorkshop)
  656. - return;
  657. -
  658. - for (Workshop::const_iterator itr = WorkshopsList.begin(); itr != WorkshopsList.end(); ++itr)
  659. +
  660. + if (isWorkshop)
  661. {
  662. - if (WGWorkshop* workshop = (*itr))
  663. + for (Workshop::const_iterator itr = WorkshopsList.begin(); itr != WorkshopsList.end(); ++itr)
  664. {
  665. - if (workshop->workshopId == workshopId)
  666. + if (WGWorkshop* workshop = (*itr))
  667. {
  668. - WintergraspCapturePoint* capturePoint = new WintergraspCapturePoint(this, GetAttackerTeam());
  669. + if (workshop->workshopId == workshopId)
  670. + {
  671. + WintergraspCapturePoint* capturePoint = new WintergraspCapturePoint(this, GetAttackerTeam());
  672.  
  673. - capturePoint->SetCapturePointData(go);
  674. - capturePoint->LinkToWorkshop(workshop);
  675. - AddCapturePoint(capturePoint);
  676. - break;
  677. + capturePoint->SetCapturePointData(go);
  678. + capturePoint->LinkToWorkshop(workshop);
  679. + AddCapturePoint(capturePoint);
  680. + break;
  681. + }
  682. }
  683. }
  684. }
  685. @@ -668,27 +858,28 @@ void BattlefieldWG::HandleKill(Player* killer, Unit* victim)
  686. if (victim->GetTypeId() == TYPEID_PLAYER)
  687. {
  688. for (GuidSet::const_iterator itr = m_PlayersInWar[killerTeam].begin(); itr != m_PlayersInWar[killerTeam].end(); ++itr)
  689. + {
  690. if (Player* player = sObjectAccessor->FindPlayer(*itr))
  691. + {
  692. if (player->GetDistance2d(killer) < 40)
  693. + {
  694. PromotePlayer(player);
  695. - return;
  696. + player->KilledMonsterCredit(CREDIT_SLAY_THEM_ALL, 0);
  697. + }
  698. + }
  699. + }
  700. }
  701. -
  702. - for (GuidSet::const_iterator itr = KeepCreature[GetOtherTeam(killerTeam)].begin();
  703. - itr != KeepCreature[GetOtherTeam(killerTeam)].end(); ++itr)
  704. + else if (!victim->isPet() && !victim->IsVehicle())
  705. {
  706. - if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  707. + for (uint8 i = 0 ; i < BATTLEFIELD_WG_NPC_MAX ; i++)
  708. {
  709. - if (Creature* creature = unit->ToCreature())
  710. + if (victim->GetEntry() == WGNpcs[GetOtherTeam(killerTeam)][i])
  711. {
  712. - if (victim->GetEntry() == creature->GetEntry() && !again)
  713. - {
  714. - again = true;
  715. - for (GuidSet::const_iterator iter = m_PlayersInWar[killerTeam].begin(); iter != m_PlayersInWar[killerTeam].end(); ++iter)
  716. - if (Player* player = sObjectAccessor->FindPlayer(*iter))
  717. - if (player->GetDistance2d(killer) < 40.0f)
  718. - PromotePlayer(player);
  719. - }
  720. + for (GuidSet::const_iterator iter = m_PlayersInWar[killerTeam].begin(); iter != m_PlayersInWar[killerTeam].end(); ++iter)
  721. + if (Player* player = sObjectAccessor->FindPlayer(*iter))
  722. + if (player->GetDistance2d(killer) < 40.0f)
  723. + PromotePlayer(player);
  724. + break;
  725. }
  726. }
  727. }
  728. @@ -840,7 +1031,7 @@ uint32 BattlefieldWG::GetData(uint32 data)
  729. // Used to determine when the phasing spells must be casted
  730. // See: SpellArea::IsFitToRequirements
  731. case AREA_THE_SUNKEN_RING:
  732. - case AREA_THE_BROKEN_TEMPLATE:
  733. + case AREA_THE_BROKEN_TEMPLE:
  734. case AREA_WESTPARK_WORKSHOP:
  735. case AREA_EASTPARK_WORKSHOP:
  736. // Graveyards and Workshops are controlled by the same team.
  737. @@ -899,17 +1090,16 @@ void BattlefieldWG::SendInitWorldStatesToAll()
  738. player->GetSession()->SendPacket(&data);
  739. }
  740.  
  741. -void BattlefieldWG::BrokenWallOrTower(TeamId /*team*/)
  742. +void BattlefieldWG::BrokenWallOrTower(TeamId team)
  743. {
  744. -// might be some use for this in the future. old code commented out below. KL
  745. -/* if (team == GetDefenderTeam())
  746. + if (team == GetAttackerTeam())
  747. {
  748. - for (GuidSet::const_iterator itr = m_PlayersInWar[GetAttackerTeam()].begin(); itr != m_PlayersInWar[GetAttackerTeam()].end(); ++itr)
  749. + for (GuidSet::const_iterator itr = m_PlayersInWar[GetDefenderTeam()].begin(); itr != m_PlayersInWar[GetDefenderTeam()].end(); ++itr)
  750. {
  751. if (Player* player = sObjectAccessor->FindPlayer(*itr))
  752. - IncrementQuest(player, WGQuest[player->GetTeamId()][2], true);
  753. + player->KilledMonsterCredit(CREDIT_TOWERS, 0);
  754. }
  755. - }*/
  756. + }
  757. }
  758.  
  759. // Called when a tower is broke
  760. @@ -1005,6 +1195,58 @@ void BattlefieldWG::UpdateVehicleCountWG()
  761. SendUpdateWorldState(BATTLEFIELD_WG_WORLD_STATE_MAX_VEHICLE_A, GetData(BATTLEFIELD_WG_DATA_MAX_VEHICLE_A));
  762. }
  763.  
  764. +void BattlefieldWG::UpdateWorkshopAura(uint32 workshopId, uint8 teamId)
  765. +{
  766. + uint32 areaId = 0;
  767. +
  768. + switch (workshopId)
  769. + {
  770. + case BATTLEFIELD_WG_WORKSHOP_NE:
  771. + areaId = AREA_THE_SUNKEN_RING;
  772. + break;
  773. + case BATTLEFIELD_WG_WORKSHOP_NW:
  774. + areaId = AREA_THE_BROKEN_TEMPLE;
  775. + break;
  776. + case BATTLEFIELD_WG_WORKSHOP_SE:
  777. + areaId = AREA_EASTPARK_WORKSHOP;
  778. + break;
  779. + case BATTLEFIELD_WG_WORKSHOP_SW:
  780. + areaId = AREA_WESTPARK_WORKSHOP;
  781. + break;
  782. + }
  783. +
  784. + if (!areaId)
  785. + return;
  786. +
  787. + for (uint8 team = 0; team < 2; ++team)
  788. + {
  789. + for (GuidSet::const_iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr)
  790. + {
  791. + if (Player* player = sObjectAccessor->FindPlayer(*itr))
  792. + {
  793. + if (player->GetAreaId() == areaId)
  794. + {
  795. + if (teamId == TEAM_ALLIANCE)
  796. + {
  797. + player->RemoveAurasDueToSpell(SPELL_HORDE_CONTROLS_FACTORY_PHASE_SHIFT);
  798. + player->CastSpell(player, SPELL_ALLIANCE_CONTROLS_FACTORY_PHASE_SHIFT, true);
  799. + }
  800. + else if (teamId == TEAM_HORDE)
  801. + {
  802. + player->RemoveAurasDueToSpell(SPELL_ALLIANCE_CONTROLS_FACTORY_PHASE_SHIFT);
  803. + player->CastSpell(player, SPELL_HORDE_CONTROLS_FACTORY_PHASE_SHIFT, true);
  804. + }
  805. + else
  806. + {
  807. + player->RemoveAurasDueToSpell(SPELL_ALLIANCE_CONTROLS_FACTORY_PHASE_SHIFT);
  808. + player->RemoveAurasDueToSpell(SPELL_HORDE_CONTROLS_FACTORY_PHASE_SHIFT);
  809. + }
  810. + }
  811. + }
  812. + }
  813. + }
  814. +}
  815. +
  816. void BattlefieldWG::UpdateTenacity()
  817. {
  818. TeamId team = TEAM_NEUTRAL;
  819. @@ -1083,6 +1325,21 @@ void BattlefieldWG::UpdateTenacity()
  820. }
  821. }
  822.  
  823. +void BattlefieldWG::LoadBattlefieldGrid()
  824. +{
  825. + Map* map = const_cast < Map * >(sMapMgr->CreateBaseMap(m_MapId));
  826. + if (!map)
  827. + return;
  828. +
  829. + map->LoadGrid(4557.17f, 3623.94f);
  830. + map->LoadGrid(4398.17f, 2822.5f);
  831. + map->LoadGrid(4459.1f, 1944.33f);
  832. + map->LoadGrid(5162.99f, 2841.23f);
  833. + map->LoadGrid(5397.11f, 2841.54f);
  834. + map->LoadGrid(4942.25f, 2392.64f);
  835. + map->LoadGrid(4961.60f, 3380.93f);
  836. +}
  837. +
  838. WintergraspCapturePoint::WintergraspCapturePoint(BattlefieldWG* battlefield, TeamId teamInControl) : BfCapturePoint(battlefield)
  839. {
  840. m_Bf = battlefield;
  841. @@ -1099,4 +1356,4 @@ void WintergraspCapturePoint::ChangeTeam(TeamId /*oldTeam*/)
  842. BfGraveyardWG::BfGraveyardWG(BattlefieldWG* battlefield) : BfGraveyard(battlefield)
  843. {
  844. m_Bf = battlefield;
  845. -}
  846. +}
  847. \ No newline at end of file
  848. diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.h b/src/server/game/Battlefield/Zones/BattlefieldWG.h
  849. index 7341540..f120f35 100644
  850. --- a/src/server/game/Battlefield/Zones/BattlefieldWG.h
  851. +++ b/src/server/game/Battlefield/Zones/BattlefieldWG.h
  852. @@ -143,13 +143,21 @@ enum WintergraspAreaIds
  853. {
  854. AREA_WINTERGRASP_FORTRESS = 4575,
  855. AREA_THE_SUNKEN_RING = 4538,
  856. - AREA_THE_BROKEN_TEMPLATE = 4539,
  857. + AREA_THE_BROKEN_TEMPLE = 4539,
  858. AREA_WESTPARK_WORKSHOP = 4611,
  859. AREA_EASTPARK_WORKSHOP = 4612,
  860. AREA_WINTERGRASP = 4197,
  861. AREA_THE_CHILLED_QUAGMIRE = 4589,
  862. };
  863.  
  864. +enum WintergraspCredits
  865. +{
  866. + CREDIT_SLAY_THEM_ALL = 31086,
  867. + CREDIT_TOWERS = 35074,
  868. + QUEST_VICTORY_IN_WINTERGRASP_A = 13181,
  869. + QUEST_VICTORY_IN_WINTERGRASP_H = 13183,
  870. +};
  871. +
  872. /*#########################
  873. *####### Graveyards ######
  874. *#########################*/
  875. @@ -225,6 +233,35 @@ enum WintergraspNpcs
  876. NPC_WINTERGRASP_TOWER_CANNON = 28366,
  877. };
  878.  
  879. +#define BATTLEFIELD_WG_NPC_MAX 10
  880. +uint32 const WGNpcs[2][10] =
  881. +{
  882. + {
  883. + BATTLEFIELD_WG_NPC_GUARD_A ,
  884. + BATTLEFIELD_WG_NPC_BOWYER_RANDOLPH ,
  885. + BATTLEFIELD_WG_NPC_KNIGHT_DAMERON ,
  886. + BATTLEFIELD_WG_NPC_SORCERESS_KAYLANA ,
  887. + BATTLEFIELD_WG_NPC_MARSHAL_MAGRUDER ,
  888. + BATTLEFIELD_WG_NPC_COMMANDER_ZANNETH ,
  889. + BATTLEFIELD_WG_NPC_TACTICAL_OFFICER_AHBRAMIS ,
  890. + BATTLEFIELD_WG_NPC_SIEGE_MASTER_STOUTHANDLE ,
  891. + BATTLEFIELD_WG_NPC_ANCHORITE_TESSA ,
  892. + BATTLEFIELD_WG_NPC_SENIOR_DEMOLITIONIST_LEGOSO
  893. + },
  894. + {
  895. + BATTLEFIELD_WG_NPC_GUARD_H ,
  896. + BATTLEFIELD_WG_NPC_VIERON_BLAZEFEATHER ,
  897. + BATTLEFIELD_WG_NPC_STONE_GUARD_MUKAR ,
  898. + BATTLEFIELD_WG_NPC_HOODOO_MASTER_FU_JIN ,
  899. + BATTLEFIELD_WG_NPC_CHAMPION_ROS_SLAI ,
  900. + BATTLEFIELD_WG_NPC_COMMANDER_DARDOSH ,
  901. + BATTLEFIELD_WG_NPC_TACTICAL_OFFICER_KILRATH ,
  902. + BATTLEFIELD_WG_NPC_SIEGESMITH_STRONGHOOF ,
  903. + BATTLEFIELD_WG_NPC_PRIMALIST_MULFORT ,
  904. + BATTLEFIELD_WG_NPC_LIEUTENANT_MURP ,
  905. + }
  906. +};
  907. +
  908. struct BfWGCoordGY
  909. {
  910. float x;
  911. @@ -403,6 +440,7 @@ class BattlefieldWG : public Battlefield
  912.  
  913. void UpdateVehicleCountWG();
  914. void UpdateCounterVehicle(bool init);
  915. + void UpdateWorkshopAura(uint32 workshopId, uint8 teamId);
  916.  
  917. WorldPacket BuildInitWorldStates();
  918. void SendInitWorldStatesTo(Player* player);
  919. @@ -421,6 +459,8 @@ class BattlefieldWG : public Battlefield
  920. uint8 GetSpiritGraveyardId(uint32 areaId);
  921.  
  922. uint32 GetData(uint32 data);
  923. +
  924. + void LoadBattlefieldGrid();
  925. protected:
  926. bool m_isRelicInteractible;
  927.  
  928. @@ -435,6 +475,9 @@ class BattlefieldWG : public Battlefield
  929. GuidSet KeepCreature[2];
  930. GuidSet OutsideCreature[2];
  931.  
  932. + GuidSet FortressCanonList;
  933. + GuidSet TowersCanonList;
  934. +
  935. uint32 m_tenacityStack;
  936. uint32 m_saveTimer;
  937.  
  938. @@ -493,13 +536,6 @@ enum WintergraspWorldstates
  939. WORLDSTATE_WORKSHOP_K_E = 3699
  940. };
  941.  
  942. -enum WintergraspTeamControl
  943. -{
  944. - BATTLEFIELD_WG_TEAM_ALLIANCE,
  945. - BATTLEFIELD_WG_TEAM_HORDE,
  946. - BATTLEFIELD_WG_TEAM_NEUTRAL,
  947. -};
  948. -
  949. // TODO: Handle this with creature_text ?
  950. enum WintergraspText
  951. {
  952. @@ -551,6 +587,9 @@ enum WintergraspGameObject
  953.  
  954. GO_WINTERGRASP_KEEP_COLLISION_WALL = 194323,
  955.  
  956. + GO_WINTERGRASP_TELEPORTER = 190763,
  957. + GO_WINTERGRASP_VEHICLE_TELEPORTER = 192951,
  958. +
  959. };
  960.  
  961. struct WintergraspObjectPositionData
  962. @@ -672,7 +711,7 @@ const WintergraspBuildingSpawnData WGGameObjectBuilding[WG_MAX_OBJ] =
  963. // 192357 : 1 in sql, 1 in header
  964. // 192350 : 1 in sql, 1 in header
  965. // 192351 : 1 in sql, 1 in header
  966. -const WintergraspObjectPositionData WGKeepGameObject[WG_KEEPGAMEOBJECT_MAX] =
  967. +/*const WintergraspObjectPositionData WGKeepGameObject[WG_KEEPGAMEOBJECT_MAX] =
  968. {
  969. { 5262.540039f, 3047.949951f, 432.054993f, 3.106650f, 192488, 192501 }, // Flag on tower
  970. { 5272.939941f, 2976.550049f, 444.492004f, 3.124120f, 192374, 192416 }, // Flag on Wall Intersect
  971. @@ -1107,7 +1146,7 @@ const WintergraspTowerCannonData TowerCannon[WG_MAX_TOWER_CANNON] =
  972. { 0, 0, 0, 0 },
  973. },
  974. },
  975. -};
  976. +};*/
  977.  
  978. // *********************************************************
  979. // *****************WorkShop Data & Element*****************
  980. @@ -1180,10 +1219,10 @@ struct BfWGGameObjectBuilding
  981. GameObjectSet m_GameObjectList[2];
  982.  
  983. // Creature associations
  984. - GuidSet m_CreatureBottomList[2];
  985. - GuidSet m_CreatureTopList[2];
  986. - GuidSet m_TowerCannonBottomList;
  987. - GuidSet m_TurretTopList;
  988. + //GuidSet m_CreatureBottomList[2];
  989. + //GuidSet m_CreatureTopList[2];
  990. + //GuidSet m_TowerCannonBottomList;
  991. + GuidSet m_TowerCannonTopList;
  992.  
  993. void Rebuild()
  994. {
  995. @@ -1207,6 +1246,7 @@ struct BfWGGameObjectBuilding
  996. if (m_Build->IsDestructibleBuilding())
  997. {
  998. m_Build->SetDestructibleState(GO_DESTRUCTIBLE_REBUILDING, NULL, true);
  999. + m_Build->UpdateObjectVisibility();
  1000. if (m_Build->GetEntry() == GO_WINTERGRASP_VAULT_GATE)
  1001. if (GameObject* go = m_Build->FindNearestGameObject(GO_WINTERGRASP_KEEP_COLLISION_WALL, 10.0f))
  1002. go->EnableCollision(true);
  1003. @@ -1215,7 +1255,7 @@ struct BfWGGameObjectBuilding
  1004. m_State = BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT - (m_Team * 3);
  1005. m_WG->SendUpdateWorldState(m_WorldState, m_State);
  1006. }
  1007. - UpdateCreatureAndGo();
  1008. + //UpdateCreatureAndGo();
  1009. m_Build->SetUInt32Value(GAMEOBJECT_FACTION, WintergraspFaction[m_Team]);
  1010. }
  1011.  
  1012. @@ -1230,12 +1270,12 @@ struct BfWGGameObjectBuilding
  1013. if (m_NameId) // tower damage + name
  1014. m_WG->SendWarningToAllInZone(m_NameId);
  1015.  
  1016. - for (GuidSet::const_iterator itr = m_CreatureTopList[m_WG->GetAttackerTeam()].begin(); itr != m_CreatureTopList[m_WG->GetAttackerTeam()].end(); ++itr)
  1017. + /*for (GuidSet::const_iterator itr = m_CreatureTopList[m_WG->GetAttackerTeam()].begin(); itr != m_CreatureTopList[m_WG->GetAttackerTeam()].end(); ++itr)
  1018. if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  1019. if (Creature* creature = unit->ToCreature())
  1020. - m_WG->HideNpc(creature);
  1021. + m_WG->HideNpc(creature);*/
  1022.  
  1023. - for (GuidSet::const_iterator itr = m_TurretTopList.begin(); itr != m_TurretTopList.end(); ++itr)
  1024. + for (GuidSet::const_iterator itr = m_TowerCannonTopList.begin(); itr != m_TowerCannonTopList.end(); ++itr)
  1025. if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  1026. if (Creature* creature = unit->ToCreature())
  1027. m_WG->HideNpc(creature);
  1028. @@ -1275,7 +1315,8 @@ struct BfWGGameObjectBuilding
  1029. break;
  1030. }
  1031.  
  1032. - m_WG->BrokenWallOrTower(TeamId(m_Team));
  1033. + if (m_Type == BATTLEFIELD_WG_OBJECTTYPE_TOWER)
  1034. + m_WG->BrokenWallOrTower(TeamId(m_Team));
  1035. }
  1036.  
  1037. void Init(GameObject* go, uint32 type, uint32 worldstate, uint32 nameid)
  1038. @@ -1328,7 +1369,7 @@ struct BfWGGameObjectBuilding
  1039. }
  1040. }
  1041.  
  1042. - int32 towerid = -1;
  1043. + /*int32 towerid = -1;
  1044. switch (go->GetEntry())
  1045. {
  1046. case GO_WINTERGRASP_FORTRESS_TOWER_1:
  1047. @@ -1422,7 +1463,7 @@ struct BfWGGameObjectBuilding
  1048. TowerCannon[towerid].TurretTop[i].GetPosition(&towerCannonPos);
  1049. if (Creature* turret = m_WG->SpawnCreature(28366, towerCannonPos, TeamId(0)))
  1050. {
  1051. - m_TurretTopList.insert(turret->GetGUID());
  1052. + m_TowerCannonTopList.insert(turret->GetGUID());
  1053. switch (go->GetEntry())
  1054. {
  1055. case GO_WINTERGRASP_FORTRESS_TOWER_1:
  1056. @@ -1441,10 +1482,10 @@ struct BfWGGameObjectBuilding
  1057. }
  1058. }
  1059. UpdateCreatureAndGo();
  1060. - }
  1061. + }*/
  1062. }
  1063.  
  1064. - void UpdateCreatureAndGo()
  1065. + /*void UpdateCreatureAndGo()
  1066. {
  1067. for (GuidSet::const_iterator itr = m_CreatureTopList[m_WG->GetDefenderTeam()].begin(); itr != m_CreatureTopList[m_WG->GetDefenderTeam()].end(); ++itr)
  1068. if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  1069. @@ -1511,7 +1552,7 @@ struct BfWGGameObjectBuilding
  1070. }
  1071. }
  1072.  
  1073. - for (GuidSet::const_iterator itr = m_TurretTopList.begin(); itr != m_TurretTopList.end(); ++itr)
  1074. + for (GuidSet::const_iterator itr = m_TowerCannonTopList.begin(); itr != m_TowerCannonTopList.end(); ++itr)
  1075. {
  1076. if (Unit* unit = sObjectAccessor->FindUnit(*itr))
  1077. {
  1078. @@ -1546,7 +1587,7 @@ struct BfWGGameObjectBuilding
  1079. }
  1080. }
  1081. }
  1082. - }
  1083. + }*/
  1084.  
  1085. void Save()
  1086. {
  1087. @@ -1577,33 +1618,34 @@ struct WGWorkshop
  1088. {
  1089. switch (team)
  1090. {
  1091. - case BATTLEFIELD_WG_TEAM_NEUTRAL:
  1092. + case TEAM_NEUTRAL:
  1093. {
  1094. // Send warning message to all player to inform a faction attack to a workshop
  1095. // alliance / horde attacking a workshop
  1096. bf->SendWarningToAllInZone(teamControl ? WorkshopsData[workshopId].text : WorkshopsData[workshopId].text + 1);
  1097. break;
  1098. }
  1099. - case BATTLEFIELD_WG_TEAM_ALLIANCE:
  1100. - case BATTLEFIELD_WG_TEAM_HORDE:
  1101. + case TEAM_ALLIANCE:
  1102. + case TEAM_HORDE:
  1103. {
  1104. // Updating worldstate
  1105. - state = team == BATTLEFIELD_WG_TEAM_ALLIANCE ? BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT : BATTLEFIELD_WG_OBJECTSTATE_HORDE_INTACT;
  1106. + state = team == TEAM_ALLIANCE ? BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT : BATTLEFIELD_WG_OBJECTSTATE_HORDE_INTACT;
  1107. bf->SendUpdateWorldState(WorkshopsData[workshopId].worldstate, state);
  1108.  
  1109. // Warning message
  1110. if (!init) // workshop taken - alliance
  1111. - bf->SendWarningToAllInZone(team == BATTLEFIELD_WG_TEAM_ALLIANCE ? WorkshopsData[workshopId].text : WorkshopsData[workshopId].text+1);
  1112. + bf->SendWarningToAllInZone(team == TEAM_ALLIANCE ? WorkshopsData[workshopId].text : WorkshopsData[workshopId].text+1);
  1113.  
  1114. // Found associate graveyard and update it
  1115. if (workshopId < BATTLEFIELD_WG_WORKSHOP_KEEP_WEST)
  1116. if (bf->GetGraveyardById(workshopId))
  1117. - bf->GetGraveyardById(workshopId)->GiveControlTo(team == BATTLEFIELD_WG_TEAM_ALLIANCE ? TEAM_ALLIANCE : TEAM_HORDE);
  1118. + bf->GetGraveyardById(workshopId)->GiveControlTo(team == TEAM_ALLIANCE ? TEAM_ALLIANCE : TEAM_HORDE);
  1119.  
  1120. teamControl = team;
  1121. break;
  1122. }
  1123. }
  1124. + bf->UpdateWorkshopAura(workshopId, teamControl);
  1125.  
  1126. if (!init)
  1127. bf->UpdateCounterVehicle(false);
  1128. @@ -1648,7 +1690,7 @@ struct WintergraspWorkshopData
  1129. }
  1130.  
  1131. // Spawning associate creature and store them
  1132. - void AddCreature(WintergraspObjectPositionData obj)
  1133. + /*void AddCreature(WintergraspObjectPositionData obj)
  1134. {
  1135. if (Creature* creature = m_WG->SpawnCreature(obj.entryHorde, obj.x, obj.y, obj.z, obj.o, TEAM_HORDE))
  1136. m_CreatureOnPoint[TEAM_HORDE].insert(creature->GetGUID());
  1137. @@ -1664,7 +1706,7 @@ struct WintergraspWorkshopData
  1138. m_GameObjectOnPoint[TEAM_HORDE].insert(gameobject);
  1139. if (GameObject* gameobject = m_WG->SpawnGameObject(obj.entryAlliance, obj.x, obj.y, obj.z, obj.o))
  1140. m_GameObjectOnPoint[TEAM_ALLIANCE].insert(gameobject);
  1141. - }
  1142. + }*/
  1143.  
  1144. // Init method, setup variable
  1145. void Init(uint32 worldstate, uint32 type, uint32 nameid)
  1146. @@ -1679,14 +1721,14 @@ struct WintergraspWorkshopData
  1147. {
  1148. switch (team)
  1149. {
  1150. - case BATTLEFIELD_WG_TEAM_NEUTRAL:
  1151. + case TEAM_NEUTRAL:
  1152. {
  1153. // Send warning message to all player for inform a faction attack a workshop
  1154. // alliance / horde attacking workshop
  1155. m_WG->SendWarningToAllInZone(m_TeamControl ? m_NameId : m_NameId + 1);
  1156. break;
  1157. }
  1158. - case BATTLEFIELD_WG_TEAM_ALLIANCE:
  1159. + case TEAM_ALLIANCE:
  1160. {
  1161. // Show Alliance creature
  1162. for (GuidSet::const_iterator itr = m_CreatureOnPoint[TEAM_ALLIANCE].begin(); itr != m_CreatureOnPoint[TEAM_ALLIANCE].end(); ++itr)
  1163. @@ -1725,7 +1767,7 @@ struct WintergraspWorkshopData
  1164. m_TeamControl = team;
  1165. break;
  1166. }
  1167. - case BATTLEFIELD_WG_TEAM_HORDE:
  1168. + case TEAM_HORDE:
  1169. {
  1170. // Show Horde creature
  1171. for (GuidSet::const_iterator itr = m_CreatureOnPoint[TEAM_HORDE].begin(); itr != m_CreatureOnPoint[TEAM_HORDE].end(); ++itr)
  1172. @@ -1782,4 +1824,4 @@ struct WintergraspWorkshopData
  1173. }
  1174. };
  1175.  
  1176. -#endif
  1177. +#endif
  1178. \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment