From 8d972c1e5095ee0e3310f2c84b91fabcc15bfb1f Mon Sep 17 00:00:00 2001 From: funjoker Date: Wed, 7 Jul 2021 23:18:22 +0200 Subject: [PATCH] DB/Quest: Fix Westfall quests till Sentinel Hill --- .../world/4.3.4/2021_07_07_00_world.sql | 1058 +++++++++++++++++ 1 file changed, 1058 insertions(+) create mode 100644 sql/updates/world/4.3.4/2021_07_07_00_world.sql diff --git a/sql/updates/world/4.3.4/2021_07_07_00_world.sql b/sql/updates/world/4.3.4/2021_07_07_00_world.sql new file mode 100644 index 00000000000..237886ba6d2 --- /dev/null +++ b/sql/updates/world/4.3.4/2021_07_07_00_world.sql @@ -0,0 +1,1058 @@ +SET @CGUID := 275618; +SET @PATH := @CGUID * 10; +DELETE FROM `waypoint_data` WHERE `id`= @PATH; +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `delay`) VALUES +(@PATH, 0, -10333.47, 978.7831, 31.25493, -1168), +(@PATH, 1, -10300.25, 965.637, 31.25304, -946), +(@PATH, 2, -10285.64, 964.0901, 31.18562, -770), +(@PATH, 3, -10273.86, 970.6926, 31.18562, -1371), +(@PATH, 4, -10267.59, 983.3521, 31.31062, -890), +(@PATH, 5, -10260.89, 989.9033, 31.37751, -1058), +(@PATH, 6, -10233.98, 996.2642, 31.49177, -1160), +(@PATH, 7, -10215.86, 994.5016, 32.50314, -1227), +(@PATH, 8, -10200.06, 989.352, 32.93331, -573), +(@PATH, 9, -10190.04, 984.9003, 33.7804, -1369), +(@PATH, 10, -10166.77, 986.7172, 34.05408, -996), +(@PATH, 11, -10133.55, 990.6491, 36.04857, -1029), +(@PATH, 12, -10116.65, 990.1268, 38.21965, -1779), +(@PATH, 13, -10100.18, 999.1907, 37.46087, 405), +(@PATH, 14, -10116.65, 990.1268, 38.21965, -1463), +(@PATH, 15, -10133.55, 990.6491, 36.04857, -997), +(@PATH, 16, -10166.77, 986.7172, 34.05408, -1056), +(@PATH, 17, -10190.04, 984.9003, 33.7804, -661), +(@PATH, 18, -10200.06, 989.352, 32.93331, -1319), +(@PATH, 19, -10215.86, 994.5016, 32.50314, -720), +(@PATH, 20, -10233.98, 996.2642, 31.49177, -733), +(@PATH, 21, -10260.89, 989.9033, 31.37751, -882), +(@PATH, 22, -10267.59, 983.3521, 31.31062, -989), +(@PATH, 23, -10273.86, 970.6926, 31.18562, -1777), +(@PATH, 24, -10285.64, 964.0901, 31.18562, -1132), +(@PATH, 25, -10300.25, 965.637, 31.25304, -961), +(@PATH, 26, -10333.47, 978.7831, 31.25493, -675), +(@PATH, 27, -10367.39, 980.6182, 31.47285, -948), +(@PATH, 28, -10386.81, 984.0738, 31.59785, -1645), +(@PATH, 29, -10400.42, 992.5428, 31.57906, -772), +(@PATH, 30, -10410.51, 994.7161, 32.16426, -1326), +(@PATH, 31, -10433.16, 981.9645, 34.75752, -694), +(@PATH, 32, -10466.91, 953.8127, 35.8982, -1360), +(@PATH, 33, -10500.21, 952.6395, 39.4598, -1417), +(@PATH, 34, -10532.88, 961.9837, 40.88522, -1638), +(@PATH, 35, -10564.63, 975.733, 40.63445, -961), +(@PATH, 36, -10593.99, 987.9368, 36.87707, -1630), +(@PATH, 37, -10620.2, 1000.852, 32.99437, -1310), +(@PATH, 38, -10642.8, 1016.665, 31.5651, -1399), +(@PATH, 39, -10647.46, 1012.368, 31.77653, 91), +(@PATH, 40, -10642.8, 1016.665, 31.5651, -1714), +(@PATH, 41, -10620.2, 1000.852, 32.99437, -610), +(@PATH, 42, -10593.99, 987.9368, 36.87707, -1574), +(@PATH, 43, -10564.63, 975.733, 40.63445, -890), +(@PATH, 44, -10532.88, 961.9837, 40.88522, -1435), +(@PATH, 45, -10500.21, 952.6395, 39.4598, -1707), +(@PATH, 46, -10466.91, 953.8127, 35.8982, -1770), +(@PATH, 47, -10433.16, 981.9645, 34.75752, -1069), +(@PATH, 48, -10410.51, 994.7161, 32.16426, -598), +(@PATH, 49, -10400.42, 992.5428, 31.57906, -1073), +(@PATH, 50, -10386.81, 984.0738, 31.59785, -1417), +(@PATH, 51, -10367.39, 980.6182, 31.47285, -813); + +DELETE FROM `waypoint_data_addon` WHERE `PathID`=@PATH; +INSERT INTO `waypoint_data_addon` (`PathID`, `PointID`, `SplinePointIndex`, `PositionX`, `PositionY`, `PositionZ`) VALUES +(@PATH, 0, 0, -10367.16, 980.6694, 31.621803), +(@PATH, 0, 1, -10345.41, 979.6694, 31.371803), +(@PATH, 1, 0, -10333.144, 978.79395, 31.503986), +(@PATH, 2, 0, -10300.053, 965.5531, 31.46939), +(@PATH, 3, 0, -10285.467, 964.2441, 31.440094), +(@PATH, 4, 0, -10273.713, 970.9385, 31.248116), +(@PATH, 5, 0, -10267.266, 983.5679, 31.5836), +(@PATH, 6, 0, -10260.627, 990.1626, 31.425236), +(@PATH, 7, 0, -10233.673, 996.2778, 31.991074), +(@PATH, 7, 1, -10230.673, 996.0278, 31.991074), +(@PATH, 7, 2, -10227.673, 995.7778, 32.241074), +(@PATH, 7, 3, -10222.923, 995.2778, 32.491074), +(@PATH, 8, 0, -10215.494, 994.57666, 32.691444), +(@PATH, 8, 1, -10204.494, 991.07666, 32.941444), +(@PATH, 9, 0, -10199.75, 989.3556, 33.328045), +(@PATH, 9, 1, -10196.25, 987.6056, 33.328045), +(@PATH, 9, 2, -10194.5, 987.1056, 33.578045), +(@PATH, 9, 3, -10191.0, 985.6056, 33.828045), +(@PATH, 10, 0, -10190.69, 985.49084, 33.775803), +(@PATH, 10, 1, -10189.69, 985.24084, 34.025803), +(@PATH, 10, 2, -10187.69, 985.24084, 34.275803), +(@PATH, 10, 3, -10185.69, 985.49084, 34.525803), +(@PATH, 10, 4, -10182.94, 985.74084, 34.775803), +(@PATH, 10, 5, -10169.19, 986.49084, 34.525803), +(@PATH, 11, 0, -10166.3955, 987.0904, 34.411644), +(@PATH, 11, 1, -10162.6455, 987.3404, 34.411644), +(@PATH, 11, 2, -10154.6455, 988.3404, 34.661644), +(@PATH, 11, 3, -10150.8955, 988.5904, 34.911644), +(@PATH, 11, 4, -10146.8955, 989.0904, 35.161644), +(@PATH, 11, 5, -10143.8955, 989.3404, 35.161644), +(@PATH, 11, 6, -10141.8955, 989.5904, 35.411644), +(@PATH, 11, 7, -10139.8955, 989.8404, 35.661644), +(@PATH, 11, 8, -10136.8955, 990.3404, 35.911644), +(@PATH, 11, 9, -10134.8955, 990.5904, 36.161644), +(@PATH, 12, 0, -10134.869, 990.48364, 36.250603), +(@PATH, 12, 1, -10133.369, 990.73364, 36.500603), +(@PATH, 12, 2, -10132.369, 990.73364, 36.750603), +(@PATH, 12, 3, -10130.369, 990.48364, 37.000603), +(@PATH, 12, 4, -10128.369, 990.48364, 37.000603), +(@PATH, 12, 5, -10126.369, 990.48364, 37.250603), +(@PATH, 12, 6, -10125.619, 990.48364, 37.500603), +(@PATH, 12, 7, -10123.619, 990.23364, 37.750603), +(@PATH, 12, 8, -10120.619, 990.23364, 38.000603), +(@PATH, 13, 0, -10120.391, 990.47546, 38.128624), +(@PATH, 13, 1, -10116.391, 990.47546, 38.378624), +(@PATH, 13, 2, -10111.141, 993.22546, 38.628624), +(@PATH, 13, 3, -10104.391, 996.97546, 38.378624), +(@PATH, 13, 4, -10101.641, 998.22546, 37.878624), +(@PATH, 14, 0, -10102.917, 997.65875, 38.09026), +(@PATH, 14, 1, -10105.417, 996.40875, 38.34026), +(@PATH, 15, 0, -10116.751, 990.2687, 38.383728), +(@PATH, 15, 1, -10119.751, 990.5187, 37.883728), +(@PATH, 15, 2, -10123.501, 990.5187, 37.633728), +(@PATH, 15, 3, -10125.501, 990.7687, 37.383728), +(@PATH, 15, 4, -10126.501, 990.7687, 37.133728), +(@PATH, 15, 5, -10128.501, 990.7687, 37.133728), +(@PATH, 15, 6, -10130.501, 990.7687, 36.883728), +(@PATH, 15, 7, -10131.501, 990.7687, 36.633728), +(@PATH, 16, 0, -10131.682, 990.6478, 36.517265), +(@PATH, 16, 1, -10133.432, 990.6478, 36.267265), +(@PATH, 16, 2, -10135.432, 990.3978, 36.017265), +(@PATH, 16, 3, -10137.432, 990.1478, 35.767265), +(@PATH, 16, 4, -10141.432, 989.6478, 35.267265), +(@PATH, 16, 5, -10144.432, 989.3978, 35.267265), +(@PATH, 16, 6, -10146.432, 989.1478, 35.017265), +(@PATH, 16, 7, -10149.182, 988.8978, 34.767265), +(@PATH, 16, 8, -10152.182, 988.6478, 34.517265), +(@PATH, 16, 9, -10160.182, 987.6478, 34.267265), +(@PATH, 16, 10, -10165.932, 987.1478, 34.517265), +(@PATH, 17, 0, -10166.233, 986.7014, 34.43416), +(@PATH, 17, 1, -10166.733, 986.7014, 34.18416), +(@PATH, 17, 2, -10171.733, 986.2014, 34.68416), +(@PATH, 17, 3, -10186.483, 985.4514, 34.43416), +(@PATH, 17, 4, -10188.483, 985.2014, 34.18416), +(@PATH, 18, 0, -10190.032, 985.18195, 33.926556), +(@PATH, 18, 1, -10191.782, 985.93195, 33.676556), +(@PATH, 18, 2, -10195.282, 987.43195, 33.426556), +(@PATH, 18, 3, -10197.032, 988.18195, 33.426556), +(@PATH, 19, 0, -10197.385, 988.478, 33.293), +(@PATH, 19, 1, -10200.135, 989.478, 33.043), +(@PATH, 19, 2, -10205.885, 991.228, 32.793), +(@PATH, 20, 0, -10215.805, 994.85034, 32.758183), +(@PATH, 20, 1, -10224.555, 995.35034, 32.508183), +(@PATH, 20, 2, -10228.555, 995.85034, 32.258183), +(@PATH, 20, 3, -10231.555, 996.10034, 32.008183), +(@PATH, 21, 0, -10234.017, 996.2433, 31.544418), +(@PATH, 21, 1, -10237.017, 995.4933, 31.544418), +(@PATH, 22, 0, -10260.922, 989.8804, 31.594063), +(@PATH, 23, 0, -10267.58, 983.3974, 31.50705), +(@PATH, 24, 0, -10273.746, 970.66486, 31.455597), +(@PATH, 25, 0, -10285.689, 964.3148, 31.469326), +(@PATH, 26, 0, -10300.146, 965.8318, 31.498398), +(@PATH, 27, 0, -10333.578, 979.1134, 31.363842), +(@PATH, 28, 0, -10367.309, 980.776, 31.52704), +(@PATH, 29, 0, -10386.83, 984.4463, 31.825356), +(@PATH, 29, 0, -10395.08, 989.4463, 32.075356), +(@PATH, 30, 0, -10400.398, 992.87244, 31.914444), +(@PATH, 30, 0, -10407.898, 994.12244, 32.164444), +(@PATH, 31, 0, -10408.297, 994.25995, 32.341698), +(@PATH, 31, 0, -10410.547, 994.75995, 32.591698), +(@PATH, 31, 0, -10413.047, 993.25995, 32.841698), +(@PATH, 31, 0, -10415.797, 991.75995, 33.091698), +(@PATH, 31, 0, -10418.297, 990.25995, 33.341698), +(@PATH, 31, 0, -10421.547, 988.25995, 33.341698), +(@PATH, 31, 0, -10423.297, 987.50995, 33.591698), +(@PATH, 31, 0, -10425.047, 986.50995, 34.091698), +(@PATH, 31, 0, -10428.547, 984.75995, 34.341698), +(@PATH, 31, 0, -10429.297, 984.25995, 34.591698), +(@PATH, 32, 0, -10433.19, 981.86304, 35.22736), +(@PATH, 32, 1, -10434.69, 980.61304, 35.22736), +(@PATH, 32, 2, -10437.69, 978.11304, 35.22736), +(@PATH, 32, 3, -10440.94, 975.61304, 35.47736), +(@PATH, 32, 4, -10451.44, 966.86304, 35.22736), +(@PATH, 32, 5, -10458.19, 961.11304, 35.47736), +(@PATH, 32, 6, -10463.69, 956.61304, 35.72736), +(@PATH, 32, 7, -10465.94, 954.61304, 35.97736), +(@PATH, 33, 7, -10466.248, 954.3108, 36.276665), +(@PATH, 33, 7, -10466.998, 954.0608, 36.276665), +(@PATH, 33, 7, -10470.998, 953.8108, 36.526665), +(@PATH, 33, 7, -10474.998, 953.8108, 36.776665), +(@PATH, 33, 7, -10476.998, 953.8108, 37.026665), +(@PATH, 33, 7, -10478.998, 953.5608, 37.276665), +(@PATH, 33, 7, -10480.998, 953.5608, 37.526665), +(@PATH, 33, 7, -10481.998, 953.5608, 37.526665), +(@PATH, 33, 7, -10483.748, 953.5608, 37.776665), +(@PATH, 33, 7, -10485.748, 953.3108, 38.026665), +(@PATH, 33, 7, -10487.748, 953.3108, 38.276665), +(@PATH, 33, 7, -10488.748, 953.3108, 38.526665), +(@PATH, 33, 7, -10491.748, 953.0608, 38.776665), +(@PATH, 33, 7, -10492.748, 953.0608, 39.026665), +(@PATH, 33, 7, -10496.748, 953.0608, 39.276665), +(@PATH, 33, 7, -10499.748, 952.8108, 39.526665), +(@PATH, 34, 0, -10499.805, 952.8739, 39.7781), +(@PATH, 34, 1, -10500.305, 952.8739, 39.7781), +(@PATH, 34, 2, -10502.055, 953.3739, 40.0281), +(@PATH, 34, 3, -10505.055, 954.3739, 40.2781), +(@PATH, 34, 4, -10507.055, 954.8739, 40.5281), +(@PATH, 34, 5, -10508.805, 955.3739, 40.7781), +(@PATH, 34, 6, -10511.805, 956.1239, 41.0281), +(@PATH, 34, 7, -10516.305, 957.3739, 41.2781), +(@PATH, 35, 0, -10533.008, 962.28796, 41.02411), +(@PATH, 35, 1, -10534.758, 963.03796, 41.27411), +(@PATH, 35, 2, -10539.258, 965.03796, 41.52411), +(@PATH, 35, 3, -10556.508, 972.28796, 41.27411), +(@PATH, 35, 4, -10561.008, 974.28796, 41.02411), +(@PATH, 35, 5, -10563.758, 975.53796, 40.77411), +(@PATH, 36, 0, -10564.217, 975.85925, 40.83076), +(@PATH, 36, 1, -10564.717, 975.85925, 40.83076), +(@PATH, 36, 2, -10567.467, 977.10925, 40.58076), +(@PATH, 36, 3, -10568.217, 977.60925, 40.33076), +(@PATH, 36, 4, -10570.217, 978.35925, 40.08076), +(@PATH, 36, 5, -10571.217, 978.60925, 39.83076), +(@PATH, 36, 6, -10572.967, 979.35925, 39.58076), +(@PATH, 36, 7, -10574.717, 980.10925, 39.33076), +(@PATH, 36, 8, -10575.717, 980.60925, 39.08076), +(@PATH, 36, 9, -10577.467, 981.35925, 38.83076), +(@PATH, 36, 10, -10579.217, 981.85925, 38.83076), +(@PATH, 36, 11, -10580.967, 982.60925, 38.58076), +(@PATH, 36, 12, -10583.717, 983.85925, 38.33076), +(@PATH, 36, 13, -10585.717, 984.60925, 38.08076), +(@PATH, 36, 14, -10588.467, 985.60925, 37.83076), +(@PATH, 36, 15, -10591.217, 986.85925, 37.58076), +(@PATH, 36, 16, -10592.967, 987.60925, 37.33076), +(@PATH, 37, 0, -10591.465, 987.1112, 37.35917), +(@PATH, 37, 1, -10593.215, 987.8612, 37.10917), +(@PATH, 37, 2, -10593.965, 988.1112, 37.10917), +(@PATH, 37, 3, -10595.715, 989.1112, 36.85917), +(@PATH, 37, 4, -10597.465, 989.8612, 36.35917), +(@PATH, 37, 5, -10599.465, 990.8612, 36.10917), +(@PATH, 37, 6, -10600.215, 991.3612, 35.85917), +(@PATH, 37, 7, -10601.965, 992.1112, 35.60917), +(@PATH, 37, 8, -10604.715, 993.6112, 35.35917), +(@PATH, 37, 9, -10606.215, 994.1112, 35.10917), +(@PATH, 37, 10, -10607.965, 995.1112, 35.10917), +(@PATH, 37, 11, -10609.965, 995.8612, 34.85917), +(@PATH, 37, 12, -10611.715, 996.8612, 34.60917), +(@PATH, 37, 13, -10612.465, 997.1112, 34.35917), +(@PATH, 37, 14, -10614.465, 998.1112, 33.85917), +(@PATH, 37, 15, -10616.215, 999.1112, 33.60917), +(@PATH, 37, 16, -10618.965, 1000.3612, 33.35917), +(@PATH, 38, 0, -10619.047, 1000.55115, 33.117054), +(@PATH, 38, 1, -10620.297, 1001.05115, 33.117054), +(@PATH, 38, 2, -10623.547, 1003.30115, 32.867054), +(@PATH, 38, 3, -10625.047, 1004.55115, 32.617054), +(@PATH, 38, 4, -10630.547, 1008.30115, 32.367054), +(@PATH, 38, 5, -10633.797, 1010.55115, 32.367054), +(@PATH, 38, 6, -10638.047, 1013.55115, 32.117054), +(@PATH, 38, 7, -10640.547, 1015.30115, 31.867054), +(@PATH, 39, 0, -10640.686, 1015.24756, 31.711212), +(@PATH, 39, 1, -10642.686, 1016.74756, 31.711212), +(@PATH, 40, 0, -10645.629, 1014.0167, 31.670815), +(@PATH, 41, 0, -10642.584, 1016.5453, 32.029736), +(@PATH, 41, 0, -10637.584, 1013.2953, 32.279736), +(@PATH, 41, 0, -10635.084, 1011.5453, 32.279736), +(@PATH, 41, 0, -10632.084, 1009.2953, 32.529736), +(@PATH, 41, 0, -10628.084, 1006.5453, 32.779736), +(@PATH, 41, 0, -10623.834, 1003.7953, 33.029736), +(@PATH, 41, 0, -10620.584, 1001.5453, 33.279736), +(@PATH, 42, 0, -10620.461, 1001.0863, 33.405834), +(@PATH, 42, 1, -10619.961, 1000.8363, 33.405834), +(@PATH, 42, 2, -10616.461, 999.0863, 33.655834), +(@PATH, 42, 3, -10614.461, 998.0863, 33.905834), +(@PATH, 42, 4, -10613.711, 997.8363, 34.155834), +(@PATH, 42, 5, -10611.961, 996.8363, 34.655834), +(@PATH, 42, 6, -10609.961, 996.0863, 34.905834), +(@PATH, 42, 7, -10608.211, 995.0863, 34.905834), +(@PATH, 42, 8, -10606.711, 994.5863, 35.155834), +(@PATH, 42, 9, -10604.961, 993.5863, 35.405834), +(@PATH, 42, 10, -10602.211, 992.3363, 35.655834), +(@PATH, 42, 11, -10601.461, 991.8363, 35.905834), +(@PATH, 42, 12, -10598.711, 990.5863, 36.405834), +(@PATH, 42, 13, -10596.961, 989.5863, 36.655834), +(@PATH, 42, 14, -10595.211, 988.8363, 36.905834), +(@PATH, 43, 0, -10596.723, 989.397, 36.720825), +(@PATH, 43, 1, -10594.723, 988.397, 37.220825), +(@PATH, 43, 2, -10593.723, 987.897, 37.220825), +(@PATH, 43, 3, -10591.973, 987.147, 37.470825), +(@PATH, 43, 4, -10589.223, 985.897, 37.720825), +(@PATH, 43, 5, -10586.473, 984.897, 37.970825), +(@PATH, 43, 6, -10584.473, 984.147, 38.220825), +(@PATH, 43, 7, -10582.723, 983.397, 38.470825), +(@PATH, 43, 8, -10580.223, 982.397, 38.470825), +(@PATH, 43, 9, -10577.473, 981.397, 38.720825), +(@PATH, 43, 10, -10575.473, 980.397, 38.970825), +(@PATH, 43, 11, -10573.723, 979.647, 39.470825), +(@PATH, 43, 12, -10571.723, 978.897, 39.720825), +(@PATH, 43, 13, -10569.973, 978.147, 39.970825), +(@PATH, 43, 14, -10568.223, 977.397, 40.220825), +(@PATH, 43, 15, -10567.223, 977.147, 40.470825), +(@PATH, 43, 16, -10565.473, 976.397, 40.720825), +(@PATH, 44, 0, -10565.117, 976.073, 40.90123), +(@PATH, 44, 1, -10564.367, 975.823, 40.90123), +(@PATH, 44, 2, -10561.617, 974.573, 41.15123), +(@PATH, 44, 3, -10557.117, 972.573, 41.40123), +(@PATH, 44, 4, -10550.617, 969.823, 41.65123), +(@PATH, 44, 5, -10536.117, 963.573, 41.40123), +(@PATH, 45, 0, -10532.692, 962.0271, 41.065723), +(@PATH, 45, 1, -10512.692, 956.5271, 40.815723), +(@PATH, 45, 2, -10508.942, 955.2771, 40.565723), +(@PATH, 45, 3, -10506.942, 954.7771, 40.315723), +(@PATH, 45, 4, -10504.942, 954.2771, 40.315723), +(@PATH, 45, 5, -10503.192, 953.7771, 40.065723), +(@PATH, 46, 0, -10502.847, 953.8004, 39.902634), +(@PATH, 46, 1, -10499.847, 952.8004, 39.652634), +(@PATH, 46, 2, -10497.847, 953.0504, 39.402634), +(@PATH, 46, 3, -10495.847, 953.0504, 39.152634), +(@PATH, 46, 4, -10491.847, 953.0504, 38.902634), +(@PATH, 46, 5, -10488.847, 953.3004, 38.652634), +(@PATH, 46, 6, -10487.847, 953.3004, 38.402634), +(@PATH, 46, 7, -10485.847, 953.3004, 38.152634), +(@PATH, 46, 8, -10484.097, 953.5504, 37.902634), +(@PATH, 46, 9, -10482.097, 953.5504, 37.902634), +(@PATH, 46, 10, -10481.097, 953.5504, 37.652634), +(@PATH, 46, 11, -10478.097, 953.5504, 37.402634), +(@PATH, 46, 12, -10476.097, 953.8004, 37.152634), +(@PATH, 46, 13, -10474.097, 953.8004, 36.902634), +(@PATH, 46, 14, -10471.097, 953.8004, 36.652634), +(@PATH, 46, 15, -10467.097, 953.8004, 36.402634), +(@PATH, 47, 0, -10466.906, 954.06274, 36.218224), +(@PATH, 47, 1, -10466.656, 954.06274, 35.968224), +(@PATH, 47, 2, -10465.156, 955.31274, 35.718224), +(@PATH, 47, 3, -10462.906, 957.31274, 35.468224), +(@PATH, 47, 4, -10457.406, 961.81274, 35.468224), +(@PATH, 47, 5, -10437.656, 978.06274, 35.218224), +(@PATH, 47, 6, -10433.906, 981.31274, 34.968224), +(@PATH, 48, 0, -10433.617, 981.73254, 34.69893), +(@PATH, 48, 1, -10432.867, 982.23254, 34.94893), +(@PATH, 48, 2, -10430.367, 983.73254, 34.44893), +(@PATH, 48, 3, -10428.617, 984.73254, 34.19893), +(@PATH, 48, 4, -10425.867, 986.23254, 33.94893), +(@PATH, 48, 5, -10424.117, 987.23254, 33.69893), +(@PATH, 48, 6, -10422.617, 987.73254, 33.44893), +(@PATH, 48, 7, -10420.867, 988.73254, 33.44893), +(@PATH, 48, 8, -10417.367, 990.73254, 33.19893), +(@PATH, 48, 9, -10414.867, 992.23254, 32.94893), +(@PATH, 48, 10, -10412.367, 993.73254, 32.69893), +(@PATH, 49, 0, -10410.355, 994.76685, 32.436687), +(@PATH, 49, 1, -10407.355, 994.01685, 32.186687), +(@PATH, 49, 2, -10402.605, 993.26685, 31.936687), +(@PATH, 50, 0, -10402.436, 993.09204, 31.91666), +(@PATH, 50, 1, -10400.186, 992.59204, 31.66666), +(@PATH, 51, 0, -10386.627, 984.04565, 31.783241); + +UPDATE `creature` SET `position_x`= -10333.47, `position_y`= 978.7831, `position_z`= 31.25493, `orientation`= 0, `spawndist`= 0, `MovementType`= 2 WHERE `guid`= @CGUID; +DELETE FROM `creature_addon` WHERE `guid`= @CGUID; +INSERT INTO `creature_addon` (`guid`, `waypointPathId`, `bytes2`) VALUES +(@CGUID, @PATH, 1); + +SET @CGUID := 274917; +SET @PATH := @CGUID * 10; +DELETE FROM `waypoint_data` WHERE `id`= @PATH; +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES +(@PATH, 0, -10916.35, 868.8564, 32.45573, NULL, -710), +(@PATH, 1, -10926.3, 852.3051, 32.84294, NULL, -1168), +(@PATH, 2, -10929.21, 832.7261, 32.29058, NULL, -610), +(@PATH, 3, -10919.83, 800.1399, 30.84746, NULL, -899), +(@PATH, 4, -10900.73, 777.5663, 30.75943, NULL, -609), +(@PATH, 5, -10880.35, 749.3021, 31.09746, NULL, -1214), +(@PATH, 6, -10877.12, 732.9159, 31.1069, NULL, -610), +(@PATH, 7, -10871.73, 699.8195, 30.98836, NULL, -702), +(@PATH, 8, -10866.87, 665.3965, 31.0318, NULL, 7), +(@PATH, 9, -10871.73, 699.8195, 30.98836, NULL, -1749), +(@PATH, 10, -10877.12, 732.9159, 31.1069, NULL, -1781), +(@PATH, 11, -10880.35, 749.3021, 31.09746, NULL, -1153), +(@PATH, 12, -10900.73, 777.5663, 30.75943, NULL, -1749), +(@PATH, 13, -10919.83, 800.1399, 30.84746, NULL, -1414), +(@PATH, 14, -10929.21, 832.7261, 32.29058, NULL, -1712), +(@PATH, 15, -10926.3, 852.3051, 32.84294, NULL, -1052), +(@PATH, 16, -10916.35, 868.8564, 32.45573, NULL, -1636), +(@PATH, 17, -10914.47, 901.5839, 32.28352, NULL, -1370), +(@PATH, 18, -10946.8, 934.3032, 31.55006, NULL, -1507), +(@PATH, 19, -10949.25, 940.715, 31.55006, NULL, -612), +(@PATH, 20, -10942.45, 967.619, 32.45774, NULL, -752), +(@PATH, 21, -10919.73, 993.3299, 35.46926, NULL, -1199), +(@PATH, 22, -10898.81, 999.4549, 35.70985, NULL, -1402), +(@PATH, 23, -10864.48, 1006.455, 31.67381, NULL, -1032), +(@PATH, 24, -10833.29, 1009.724, 32.82467, NULL, -1457), +(@PATH, 25, -10794.01, 1018.667, 32.32072, NULL, -1790), +(@PATH, 26, -10768.83, 1017.259, 32.24479, NULL, -935), +(@PATH, 27, -10746.82, 1018.542, 34.10905, NULL, -1313), +(@PATH, 28, -10732.51, 1027.076, 34.58892, NULL, -694), +(@PATH, 29, -10719.79, 1032.385, 34.58892, NULL, -1112), +(@PATH, 30, -10699.92, 1033.696, 34.47182, NULL, -558), +(@PATH, 31, -10663.54, 1029.08, 32.6901, NULL, -720), +(@PATH, 32, -10655.06, 1038.739, 33.58622, NULL, -1071), +(@PATH, 33, -10640.83, 1056.614, 33.69242, NULL, -1607), +(@PATH, 34, -10634.18, 1072.219, 33.90115, NULL, -1137), +(@PATH, 35, -10634, 1085.885, 33.74294, NULL, 249), +(@PATH, 36, -10634.18, 1072.219, 33.90115, NULL, -1421), +(@PATH, 37, -10640.83, 1056.614, 33.69242, NULL, -943), +(@PATH, 38, -10655.06, 1038.739, 33.58622, NULL, -1534), +(@PATH, 39, -10663.54, 1029.08, 32.6901, NULL, -649), +(@PATH, 40, -10699.92, 1033.696, 34.47182, NULL, -781), +(@PATH, 41, -10719.79, 1032.385, 34.58892, NULL, -1485), +(@PATH, 42, -10732.51, 1027.076, 34.58892, NULL, -885), +(@PATH, 43, -10746.82, 1018.542, 34.10905, NULL, -1599), +(@PATH, 44, -10768.83, 1017.259, 32.24479, NULL, -737), +(@PATH, 45, -10794.01, 1018.667, 32.32072, NULL, -1120), +(@PATH, 46, -10833.29, 1009.724, 32.82467, NULL, -1430), +(@PATH, 47, -10864.48, 1006.455, 31.67381, NULL, -617), +(@PATH, 48, -10898.81, 999.4549, 35.70985, NULL, -1371), +(@PATH, 49, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 50, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 51, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 52, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 53, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 54, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 55, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 56, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 57, -10919.73, 993.3299, 35.46926, NULL, -1723), +(@PATH, 58, -10942.45, 967.619, 32.45774, NULL, -971), +(@PATH, 59, -10949.25, 940.715, 31.55006, NULL, -1149), +(@PATH, 60, -10946.8, 934.3032, 31.55006, NULL, -1466), +(@PATH, 61, -10914.47, 901.5839, 32.28352, NULL, -1680), +(@PATH, 62, -10916.35, 868.8564, 32.45573, NULL, -1451), +(@PATH, 63, -10926.3, 852.3051, 32.84294, NULL, -695), +(@PATH, 64, -10929.21, 832.7261, 32.29058, NULL, -1342), +(@PATH, 65, -10919.83, 800.1399, 30.84746, NULL, -1633), +(@PATH, 66, -10900.73, 777.5663, 30.75943, NULL, -1316), +(@PATH, 67, -10880.35, 749.3021, 31.09746, NULL, -715), +(@PATH, 68, -10877.12, 732.9159, 31.1069, NULL, -1382), +(@PATH, 69, -10871.73, 699.8195, 30.98836, NULL, -1306), +(@PATH, 70, -10866.87, 665.3965, 31.0318, NULL, 37), +(@PATH, 71, -10871.73, 699.8195, 30.98836, NULL, -1312), +(@PATH, 72, -10877.12, 732.9159, 31.1069, NULL, -1371), +(@PATH, 73, -10880.35, 749.3021, 31.09746, NULL, -757), +(@PATH, 74, -10900.73, 777.5663, 30.75943, NULL, -1307), +(@PATH, 75, -10919.83, 800.1399, 30.84746, NULL, -982), +(@PATH, 76, -10929.21, 832.7261, 32.29058, NULL, 0); + +DELETE FROM `waypoint_data_addon` WHERE `PathID`= @PATH; +INSERT INTO `waypoint_data_addon` (`PathID`, `PointID`, `SplinePointIndex`, `PositionX`, `PositionY`, `PositionZ`) VALUES +(@PATH, 0, 0, -10914.51, 901.5842, 32.36962), +(@PATH, 0, 1, -10914.76, 894.5842, 32.36962), +(@PATH, 0, 2, -10915.01, 891.5842, 32.11962), +(@PATH, 0, 3, -10915.76, 879.8342, 32.36962), +(@PATH, 0, 4, -10916.01, 873.8342, 32.36962), +(@PATH, 0, 5, -10916.26, 869.8342, 32.61962), +(@PATH, 1, 0, -10916.27, 869.718, 32.65617), +(@PATH, 1, 1, -10916.27, 868.968, 32.65617), +(@PATH, 1, 2, -10917.27, 867.218, 32.90617), +(@PATH, 1, 3, -10918.02, 866.218, 33.15617), +(@PATH, 1, 4, -10920.52, 861.968, 33.40617), +(@PATH, 1, 5, -10924.27, 855.468, 33.15617), +(@PATH, 2, 0, -10926.25, 852.2709, 33.12215), +(@PATH, 2, 1, -10927, 847.2709, 32.87215), +(@PATH, 3, 0, -10928.91, 832.689, 32.33464), +(@PATH, 3, 1, -10928.91, 832.689, 32.58464), +(@PATH, 3, 2, -10928.16, 829.939, 32.33464), +(@PATH, 3, 3, -10927.41, 826.939, 32.08464), +(@PATH, 3, 4, -10926.16, 823.189, 31.83464), +(@PATH, 3, 5, -10925.41, 820.189, 31.58464), +(@PATH, 3, 6, -10923.66, 813.689, 31.58464), +(@PATH, 3, 7, -10922.66, 809.939, 31.33464), +(@PATH, 4, 0, -10919.6, 800.2079, 31.06795), +(@PATH, 5, 0, -10900.56, 777.5497, 30.93085), +(@PATH, 5, 1, -10892.31, 766.2997, 31.18085), +(@PATH, 5, 2, -10889.06, 761.5497, 31.43085), +(@PATH, 6, 0, -10880.13, 749.3499, 31.36507), +(@PATH, 7, 0, -10876.83, 732.8907, 31.29718), +(@PATH, 7, 1, -10874.58, 719.1407, 31.04718), +(@PATH, 8, 0, -10871.44, 699.7166, 31.26034), +(@PATH, 10, 0, -10871.62, 699.9628, 31.05035), +(@PATH, 10, 1, -10875.87, 726.4628, 31.30035), +(@PATH, 11, 0, -10877.12, 733.1501, 31.14933), +(@PATH, 11, 1, -10878.62, 741.6501, 31.14933), +(@PATH, 12, 0, -10880.26, 749.5018, 31.17845), +(@PATH, 12, 1, -10893.01, 767.2518, 30.92845), +(@PATH, 13, 0, -10900.74, 777.824, 30.81849), +(@PATH, 14, 0, -10919.86, 800.3114, 31.31367), +(@PATH, 14, 1, -10922.86, 811.0614, 31.56367), +(@PATH, 14, 2, -10923.36, 813.8114, 31.56367), +(@PATH, 14, 3, -10925.61, 821.3114, 31.81367), +(@PATH, 14, 4, -10926.61, 824.0614, 32.06367), +(@PATH, 14, 5, -10927.61, 828.0614, 32.31367), +(@PATH, 14, 6, -10928.36, 830.8114, 32.56367), +(@PATH, 15, 0, -10928.45, 831.0491, 32.50429), +(@PATH, 15, 1, -10928.95, 833.0491, 32.50429), +(@PATH, 15, 2, -10928.95, 833.0491, 32.75429), +(@PATH, 15, 3, -10927.45, 842.5491, 33.00429), +(@PATH, 16, 0, -10926.05, 852.6105, 33.13036), +(@PATH, 16, 1, -10924.05, 855.8605, 33.38036), +(@PATH, 16, 2, -10917.55, 866.8605, 32.88036), +(@PATH, 16, 3, -10916.55, 868.6105, 32.63036), +(@PATH, 17, 0, -10917.21, 867.2287, 33.05337), +(@PATH, 17, 1, -10916.46, 868.7287, 32.80337), +(@PATH, 17, 2, -10916.46, 869.2287, 32.55337), +(@PATH, 17, 3, -10916.21, 870.9787, 32.55337), +(@PATH, 17, 4, -10915.71, 878.9787, 32.55337), +(@PATH, 17, 5, -10915.46, 885.7287, 32.30337), +(@PATH, 17, 6, -10914.96, 892.7287, 32.55337), +(@PATH, 17, 7, -10914.71, 897.7287, 32.55337), +(@PATH, 18, 0, -10914.5, 901.7255, 32.41566), +(@PATH, 18, 1, -10924.25, 911.7255, 32.16566), +(@PATH, 18, 2, -10926.5, 913.9755, 31.91566), +(@PATH, 18, 3, -10930, 917.2255, 31.91566), +(@PATH, 19, 0, -10946.69, 934.6538, 31.79874), +(@PATH, 20, 0, -10949.08, 940.9575, 32.0039), +(@PATH, 20, 1, -10945.08, 957.2075, 32.0039), +(@PATH, 20, 2, -10943.58, 962.9575, 32.2539), +(@PATH, 20, 3, -10942.83, 965.9575, 32.5039), +(@PATH, 21, 0, -10942.09, 967.7684, 32.87517), +(@PATH, 21, 1, -10940.84, 969.2684, 33.12517), +(@PATH, 21, 2, -10938.84, 971.5184, 33.62517), +(@PATH, 21, 3, -10936.84, 973.7684, 33.87517), +(@PATH, 21, 4, -10935.59, 975.2684, 33.87517), +(@PATH, 21, 5, -10934.34, 976.7684, 34.12517), +(@PATH, 21, 6, -10932.84, 978.2684, 34.37517), +(@PATH, 21, 7, -10931.09, 980.2684, 34.62517), +(@PATH, 21, 8, -10929.09, 982.5184, 34.87517), +(@PATH, 21, 9, -10927.84, 984.0184, 35.12517), +(@PATH, 21, 10, -10926.59, 985.5184, 35.37517), +(@PATH, 21, 11, -10923.84, 988.5184, 35.62517), +(@PATH, 22, 0, -10919.51, 993.5255, 35.57577), +(@PATH, 22, 1, -10911.76, 995.5255, 36.07577), +(@PATH, 22, 2, -10910.26, 996.0255, 36.32577), +(@PATH, 22, 3, -10907.26, 997.0255, 36.57577), +(@PATH, 22, 4, -10903.51, 998.0255, 36.32577), +(@PATH, 22, 5, -10900.51, 999.0255, 36.07577), +(@PATH, 23, 0, -10900.35, 999.2108, 36.05213), +(@PATH, 23, 1, -10898.6, 999.7108, 35.80213), +(@PATH, 23, 2, -10898.6, 999.7108, 35.55213), +(@PATH, 23, 3, -10896.6, 1000.211, 35.30213), +(@PATH, 23, 4, -10893.6, 1000.711, 35.05213), +(@PATH, 23, 5, -10891.6, 1001.211, 34.55213), +(@PATH, 23, 6, -10888.85, 1001.711, 34.30213), +(@PATH, 23, 7, -10886.85, 1002.211, 34.05213), +(@PATH, 23, 8, -10884.85, 1002.461, 33.80213), +(@PATH, 23, 9, -10883.1, 1002.711, 33.80213), +(@PATH, 23, 10, -10881.1, 1002.961, 33.55213), +(@PATH, 23, 11, -10878.35, 1003.711, 33.30213), +(@PATH, 23, 12, -10876.35, 1003.961, 33.05213), +(@PATH, 23, 13, -10874.35, 1004.461, 32.80213), +(@PATH, 23, 14, -10872.35, 1004.961, 32.55213), +(@PATH, 23, 15, -10870.35, 1005.211, 32.30213), +(@PATH, 24, 0, -10864.17, 1006.829, 32.03347), +(@PATH, 24, 1, -10854.17, 1007.829, 32.28347), +(@PATH, 24, 2, -10851.42, 1007.829, 32.28347), +(@PATH, 24, 3, -10848.67, 1008.079, 32.53347), +(@PATH, 24, 4, -10836.67, 1009.329, 32.78347), +(@PATH, 25, 0, -10832.95, 1010.01, 32.99461), +(@PATH, 25, 1, -10811.95, 1014.51, 32.74461), +(@PATH, 25, 2, -10805.95, 1016.01, 32.49461), +(@PATH, 26, 0, -10793.84, 1018.717, 32.53347), +(@PATH, 26, 1, -10790.84, 1018.467, 32.78347), +(@PATH, 26, 2, -10787.84, 1018.217, 33.03347), +(@PATH, 26, 3, -10778.09, 1017.717, 32.78347), +(@PATH, 26, 4, -10773.09, 1017.467, 32.53347), +(@PATH, 27, 0, -10768.51, 1017.467, 32.72453), +(@PATH, 27, 1, -10758.76, 1017.967, 32.97453), +(@PATH, 27, 2, -10757.76, 1017.967, 33.22453), +(@PATH, 27, 3, -10755.76, 1017.967, 33.22453), +(@PATH, 27, 4, -10754.76, 1017.967, 33.47453), +(@PATH, 27, 5, -10752.76, 1018.217, 33.72453), +(@PATH, 27, 6, -10750.76, 1018.217, 33.97453), +(@PATH, 27, 7, -10748.76, 1018.467, 34.22453), +(@PATH, 28, 0, -10748.57, 1018.716, 34.23449), +(@PATH, 28, 1, -10746.57, 1018.716, 34.23449), +(@PATH, 28, 2, -10742.32, 1021.466, 34.48449), +(@PATH, 28, 3, -10733.07, 1026.716, 34.73449), +(@PATH, 29, 0, -10732.84, 1026.964, 34.83601), +(@PATH, 29, 1, -10732.34, 1027.214, 34.83601), +(@PATH, 30, 0, -10719.44, 1032.485, 34.78037), +(@PATH, 31, 0, -10699.75, 1033.587, 34.58549), +(@PATH, 31, 1, -10695.75, 1033.087, 34.33549), +(@PATH, 31, 2, -10692.75, 1032.837, 34.08549), +(@PATH, 31, 3, -10689.75, 1032.337, 33.83549), +(@PATH, 31, 4, -10686.75, 1032.087, 33.58549), +(@PATH, 31, 5, -10683.75, 1031.587, 33.58549), +(@PATH, 31, 6, -10680, 1031.337, 33.33549), +(@PATH, 31, 7, -10672.25, 1030.337, 33.08549), +(@PATH, 32, 0, -10663.21, 1029.273, 33.14645), +(@PATH, 32, 1, -10660.21, 1033.023, 33.14645), +(@PATH, 32, 2, -10658.21, 1035.023, 33.39645), +(@PATH, 32, 3, -10656.96, 1036.523, 33.64645), +(@PATH, 33, 0, -10654.79, 1038.967, 33.83326), +(@PATH, 33, 1, -10648.29, 1047.467, 33.58326), +(@PATH, 33, 2, -10642.54, 1054.467, 33.83326), +(@PATH, 34, 0, -10642.3, 1054.542, 33.72561), +(@PATH, 34, 1, -10640.55, 1056.792, 33.97561), +(@PATH, 34, 2, -10635.3, 1069.542, 33.97561), +(@PATH, 35, 0, -10634.15, 1072.468, 34.05269), +(@PATH, 37, 0, -10634.23, 1072.195, 34.0262), +(@PATH, 38, 0, -10640.74, 1056.5, 33.90368), +(@PATH, 38, 1, -10645.74, 1050.25, 33.65368), +(@PATH, 38, 2, -10651.74, 1042.75, 33.65368), +(@PATH, 39, 0, -10655.08, 1038.693, 33.63816), +(@PATH, 39, 1, -10657.58, 1035.693, 33.38816), +(@PATH, 39, 2, -10658.83, 1034.443, 33.13816), +(@PATH, 39, 3, -10660.83, 1032.193, 33.13816), +(@PATH, 40, 0, -10663.44, 1029.249, 33.10739), +(@PATH, 40, 1, -10673.44, 1030.499, 33.35739), +(@PATH, 40, 2, -10680.44, 1031.499, 33.60739), +(@PATH, 40, 3, -10684.19, 1031.999, 33.60739), +(@PATH, 40, 4, -10688.19, 1032.249, 33.85739), +(@PATH, 40, 5, -10691.19, 1032.499, 34.10739), +(@PATH, 40, 6, -10693.94, 1032.999, 34.35739), +(@PATH, 40, 7, -10696.94, 1033.249, 34.60739), +(@PATH, 41, 0, -10699.86, 1033.666, 34.73351), +(@PATH, 42, 0, -10719.74, 1032.357, 34.82769), +(@PATH, 43, 0, -10732.55, 1027.022, 34.84898), +(@PATH, 43, 1, -10740.05, 1022.772, 34.59898), +(@PATH, 43, 2, -10745.05, 1019.772, 34.34898), +(@PATH, 44, 0, -10745.42, 1019.391, 34.25037), +(@PATH, 44, 1, -10746.92, 1018.891, 34.25037), +(@PATH, 44, 2, -10749.92, 1018.641, 34.00037), +(@PATH, 44, 3, -10751.92, 1018.391, 33.75037), +(@PATH, 44, 4, -10753.92, 1018.391, 33.50037), +(@PATH, 44, 5, -10755.92, 1018.141, 33.25037), +(@PATH, 44, 6, -10757.67, 1018.141, 33.25037), +(@PATH, 44, 7, -10758.67, 1018.141, 33.00037), +(@PATH, 44, 8, -10760.42, 1017.891, 32.75037), +(@PATH, 45, 0, -10768.76, 1017.515, 32.28779), +(@PATH, 45, 1, -10774.76, 1017.765, 32.78779), +(@PATH, 45, 2, -10778.76, 1018.015, 33.03779), +(@PATH, 45, 3, -10784.51, 1018.265, 33.28779), +(@PATH, 45, 4, -10788.51, 1018.265, 32.78779), +(@PATH, 45, 5, -10791.51, 1018.515, 32.53779), +(@PATH, 46, 0, -10791.75, 1018.615, 32.64362), +(@PATH, 46, 1, -10794, 1018.615, 32.64362), +(@PATH, 46, 2, -10811.5, 1014.615, 32.64362), +(@PATH, 46, 3, -10819, 1013.115, 32.89362), +(@PATH, 47, 0, -10833.38, 1009.74, 32.99924), +(@PATH, 47, 1, -10838.38, 1009.24, 32.74924), +(@PATH, 47, 2, -10848.88, 1008.24, 32.49924), +(@PATH, 47, 3, -10851.88, 1007.99, 32.24924), +(@PATH, 47, 4, -10855.88, 1007.49, 32.24924), +(@PATH, 47, 5, -10859.88, 1007.24, 31.99924), +(@PATH, 48, 0, -10864.37, 1006.535, 32.16938), +(@PATH, 48, 1, -10871.37, 1005.035, 32.41938), +(@PATH, 48, 2, -10873.37, 1004.535, 32.66938), +(@PATH, 48, 3, -10875.37, 1004.285, 32.91938), +(@PATH, 48, 4, -10877.12, 1003.785, 33.16938), +(@PATH, 48, 5, -10879.12, 1003.535, 33.41938), +(@PATH, 48, 6, -10881.87, 1003.035, 33.66938), +(@PATH, 48, 7, -10883.87, 1002.785, 33.66938), +(@PATH, 48, 8, -10885.87, 1002.285, 33.91938), +(@PATH, 48, 9, -10887.87, 1001.785, 34.16938), +(@PATH, 48, 10, -10889.62, 1001.535, 34.41938), +(@PATH, 48, 11, -10892.62, 1000.785, 34.91938), +(@PATH, 48, 12, -10894.62, 1000.535, 35.16938), +(@PATH, 48, 13, -10897.62, 999.7853, 35.41938), +(@PATH, 58, 0, -10919.77, 993.3289, 35.52422), +(@PATH, 58, 1, -10924.27, 988.0789, 35.52422), +(@PATH, 58, 2, -10927.02, 985.0789, 35.27422), +(@PATH, 58, 3, -10928.27, 983.5789, 35.02422), +(@PATH, 58, 4, -10929.52, 982.0789, 34.77422), +(@PATH, 58, 5, -10931.27, 980.0789, 34.52422), +(@PATH, 58, 6, -10933.27, 977.8289, 34.27422), +(@PATH, 58, 7, -10935.27, 975.5789, 34.02422), +(@PATH, 58, 8, -10936.77, 974.0789, 33.77422), +(@PATH, 58, 9, -10938.77, 971.8289, 33.52422), +(@PATH, 58, 10, -10940.02, 970.3289, 33.27422), +(@PATH, 58, 11, -10941.27, 968.8289, 33.02422), +(@PATH, 59, 0, -10941.55, 968.5653, 32.93592), +(@PATH, 59, 1, -10942.55, 967.5653, 32.68592), +(@PATH, 59, 2, -10943.3, 964.8153, 32.43592), +(@PATH, 59, 3, -10943.8, 961.8153, 32.18592), +(@PATH, 59, 4, -10945.05, 956.0653, 32.18592), +(@PATH, 60, 0, -10948.92, 940.6628, 31.81155), +(@PATH, 61, 0, -10946.55, 934.1824, 31.91679), +(@PATH, 61, 1, -10927.05, 914.6824, 31.91679), +(@PATH, 61, 2, -10925.05, 912.4324, 32.16679), +(@PATH, 61, 3, -10921.55, 908.9324, 32.41679), +(@PATH, 62, 0, -10914.42, 901.4957, 32.36962), +(@PATH, 62, 1, -10914.92, 894.4957, 32.36962), +(@PATH, 62, 2, -10914.92, 891.4957, 32.11962), +(@PATH, 62, 3, -10915.67, 879.9957, 32.36962), +(@PATH, 62, 4, -10916.17, 873.9957, 32.36962), +(@PATH, 62, 5, -10916.17, 869.9957, 32.61962), +(@PATH, 63, 0, -10916.21, 869.6471, 32.59798), +(@PATH, 63, 1, -10916.46, 868.8971, 32.59798), +(@PATH, 63, 2, -10917.46, 867.1471, 32.84798), +(@PATH, 63, 3, -10917.96, 866.3971, 33.09798), +(@PATH, 63, 4, -10920.46, 862.1471, 33.34798), +(@PATH, 63, 5, -10924.46, 855.3971, 33.09798), +(@PATH, 64, 0, -10926.31, 852.2661, 33.09988), +(@PATH, 64, 1, -10927.06, 847.2661, 32.84988), +(@PATH, 65, 0, -10929.03, 832.8467, 32.3534), +(@PATH, 65, 1, -10929.03, 832.8467, 32.6034), +(@PATH, 65, 2, -10928.03, 829.8467, 32.3534), +(@PATH, 65, 3, -10927.28, 826.8467, 32.1034), +(@PATH, 65, 4, -10926.28, 823.0967, 31.8534), +(@PATH, 65, 5, -10925.28, 820.3467, 31.6034), +(@PATH, 65, 6, -10923.78, 813.8467, 31.6034), +(@PATH, 65, 7, -10922.53, 809.8467, 31.3534), +(@PATH, 66, 0, -10919.6, 800.0774, 31.07936), +(@PATH, 67, 0, -10900.38, 777.4722, 30.93347), +(@PATH, 67, 1, -10892.38, 766.2222, 31.18347), +(@PATH, 67, 2, -10889.13, 761.4722, 31.43347), +(@PATH, 68, 0, -10880.01, 749.3342, 31.35971), +(@PATH, 69, 0, -10876.75, 733.0356, 31.29667), +(@PATH, 69, 1, -10874.75, 719.0356, 31.04667), +(@PATH, 70, 0, -10871.59, 699.8546, 31.26062), +(@PATH, 72, 0, -10871.69, 699.9703, 31.04971), +(@PATH, 72, 1, -10875.69, 726.4703, 31.29971), +(@PATH, 73, 0, -10877.21, 733.1684, 31.38827), +(@PATH, 73, 1, -10878.71, 741.6684, 31.13827), +(@PATH, 74, 0, -10880.36, 749.506, 31.16309), +(@PATH, 74, 1, -10892.86, 767.256, 30.91309), +(@PATH, 75, 0, -10900.79, 777.7304, 30.81505), +(@PATH, 76, 0, -10919.71, 800.4728, 31.31528), +(@PATH, 76, 1, -10922.96, 810.9728, 31.56528), +(@PATH, 76, 2, -10923.71, 813.7228, 31.56528), +(@PATH, 76, 3, -10925.71, 821.2228, 31.81528), +(@PATH, 76, 4, -10926.46, 824.2228, 32.06528), +(@PATH, 76, 5, -10927.71, 827.9728, 32.31528), +(@PATH, 76, 6, -10928.46, 830.9728, 32.56528); + +UPDATE `creature` SET `position_x`= -10916.35, `position_y`= 868.8564, `position_z`= 32.45573, `orientation`= 0, `spawndist`= 0, `MovementType`= 2 WHERE `guid`= @CGUID; +DELETE FROM `creature_addon` WHERE `guid`= @CGUID; +INSERT INTO `creature_addon` (`guid`, `waypointPathId`, `bytes2`) VALUES +(@CGUID, @PATH, 1); + +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26291; -- Big Trouble in Moonbrook +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26288; -- Jango Spothide +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26290; -- Secrets of the Tower +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26289; -- Find Agent Kearnen +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26271; -- Feeding the Hungry and the Hopeless +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26287; -- The Westfall Brigade +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26286; -- In Defense of Westfall +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26266; -- Hope for the People +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26257; -- It's Alive! +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26270; -- You Have Our Thanks +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26241; -- Westfall Stew +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26252; -- Heart of the Watcher +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26237; -- Times are Tough +UPDATE `quest_offer_reward` SET `VerifiedBuild`=15595 WHERE `ID`=26236; -- Shakedown at the Saldean's + +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26292; -- To Moonbrook! +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26291; -- Big Trouble in Moonbrook +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26290; -- Secrets of the Tower +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26289; -- Find Agent Kearnen +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26288; -- Jango Spothide +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26288; -- Jango Spothide +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26287; -- The Westfall Brigade +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26286; -- In Defense of Westfall +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26271; -- Feeding the Hungry and the Hopeless +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26371; -- The Legend of Captain Grayson +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26365; -- Hero's Call: Redridge Mountains! +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26266; -- Hope for the People +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26266; -- Hope for the People +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26270; -- You Have Our Thanks +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26257; -- It's Alive! +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26257; -- It's Alive! +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26252; -- Heart of the Watcher +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26241; -- Westfall Stew +UPDATE `quest_details` SET `VerifiedBuild`=15595 WHERE `ID`=26237; -- Times are Tough + +DELETE FROM `quest_request_items` WHERE `ID` IN (26257 /*It's Alive!*/, 26237 /*Times are Tough*/, 26290 /*Secrets of the Tower*/, 26288 /*Jango Spothide*/, 26287 /*The Westfall Brigade*/, 26271 /*Feeding the Hungry and the Hopeless*/); +INSERT INTO `quest_request_items` (`ID`, `EmoteOnComplete`, `EmoteOnIncomplete`, `CompletionText`, `VerifiedBuild`) VALUES +(26257, 0, 6, 'Did you find the golems?', 15595), -- It's Alive! +(26237, 0, 0, 'Did you destroy the harvest watchers?', 15595), -- Times are Tough +(26290, 0, 0, 'I won\'t let you down, $n.', 15595), -- Secrets of the Tower +(26288, 0, 6, 'Have you found Jango?', 15595), -- Jango Spothide +(26287, 0, 5, 'Defend Sentinel Hill!', 15595), -- The Westfall Brigade +(26271, 0, 6, 'Have you fed the homeless?', 15595); -- Feeding the Hungry and the Hopeless + +UPDATE `quest_request_items` SET `EmoteOnComplete`=1, `EmoteOnIncomplete`=1, `VerifiedBuild`=15595 WHERE `ID`=26241; -- Westfall Stew +UPDATE `quest_request_items` SET `VerifiedBuild`=15595 WHERE `ID`=26286; -- In Defense of Westfall + +DELETE FROM `gossip_menu` WHERE (`MenuId`=14236 AND `TextId`=4837) OR (`MenuId`=14238 AND `TextId`=539) OR (`MenuId`=14200 AND `TextId`=16569) OR (`MenuId`=14237 AND `TextId`=4434) OR (`MenuId`=14234 AND `TextId`=5721) OR (`MenuId`=14235 AND `TextId`=3976); +INSERT INTO `gossip_menu` (`MenuId`, `TextId`, `VerifiedBuild`) VALUES +(14236, 4837, 15595), -- 49745 (Sern Hallows) +(14238, 539, 15595), -- 49760 (Zalna Wefhellt) +(14200, 16569, 15595), -- 43011 (Lyndsay Hollister) +(14237, 4434, 15595), -- 49749 (Priestess Cocoa Anderson) +(14234, 5721, 15595), -- 49736 (Kallen Stanner) +(14235, 3976, 15595); -- 49741 (Sister Darnhald) + +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4107 AND `TextId`=5010); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4106 AND `TextId`=5009); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4107 AND `TextId`=5010); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4107 AND `TextId`=5010); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4107 AND `TextId`=5010); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11651 AND `TextId`=16275); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=342 AND `TextId`=820); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=9821 AND `TextId`=13584); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=12793 AND `TextId`=17980); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=12793 AND `TextId`=17980); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=12793 AND `TextId`=17980); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=12793 AND `TextId`=17980); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `TextId`=16260); -- 0 +UPDATE `gossip_menu` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11779 AND `TextId`=16511); -- 0 + +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4107 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4106 AND `OptionIndex`=1); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4106 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4107 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4107 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=4107 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=342 AND `OptionIndex`=1); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=342 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=9821 AND `OptionIndex`=1); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=1781 AND `OptionIndex`=0); +UPDATE `gossip_menu_option` SET `VerifiedBuild`=15595 WHERE (`MenuId`=11779 AND `OptionIndex`=0); + +UPDATE `gossip_menu_option` SET `OptionType`=3, `OptionNpcflag`=128 WHERE `MenuId`=1781 AND `OptionIndex`=0; + +DELETE FROM `creature_text` WHERE `CreatureID` = 235; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES +(235, 0, 0, 'Thank you, $n. Your kindness will not be forgotten.', 12, 7, 100, 2, 0, 0, 42468, 'Salma Saldean to Player'), +(235, 1, 0, 'Dinner\'s ready! Come and get it!', 14, 7, 100, 22, 0, 0, 42469, 'Salma Saldean to Player'); + + -- Salma Saldean +SET @ENTRY := 235; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 0; +UPDATE creature_template SET AIName="SmartAI" WHERE entry=@ENTRY; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 0, 0, 1, 20, 0, 100, 0, 26241, 0, 0, 0, 80, 23500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On player rewarded quest Westfall Stew (26241) - Self: Start timed action list id #23500 (update out of combat)"), +(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On player rewarded quest Westfall Stew (26241) - Self: storedTarget[1] = Rewarded player"), +(@ENTRY, 0, 2, 0, 34, 0, 100, 0, 8, 1, 0, 0, 5, 432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On movement of type POINT_MOTION_TYPE inform, point 1 - Self: Play emote ONESHOT_USESTANDING (432)"), +(@ENTRY, 0, 3, 0, 34, 0, 100, 0, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.890118, "On movement of type POINT_MOTION_TYPE inform, point 2 - Self: Set orientation to 0.890118"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 235 AND SourceId = 0; + + -- Timed list 23500 +SET @ENTRY := 23500; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 9; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, "After 0 seconds - Self: Talk 0 to storedTarget[1]"), +(@ENTRY, 9, 1, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "After 3.5 seconds - Self: Set walk"), +(@ENTRY, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10108.9, 1039.86, 37.8048, 0, "After 0 seconds - Self: Move to position (-10108.9, 1039.86, 37.8048, 0) (point id 1)"), +(@ENTRY, 9, 3, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 50, 203983, 35, 1, 0, 0, 0, 8, 0, 0, 0, -10107.7, 1039.03, 37.9568, 0, "After 4 seconds - Self: Summon gameobject 203983 at (-10107.7, 1039.03, 37.9568, 0) and despawn in 35 ms"), +(@ENTRY, 9, 4, 0, 0, 0, 100, 0, 4500, 4500, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.44346, "After 4.5 seconds - Self: Set orientation to 2.44346"), +(@ENTRY, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, "After 0 seconds - Self: Talk 1 to storedTarget[1]"), +(@ENTRY, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 10, 275648, 42385, 0, 0, 0, 0, 0, "After 0 seconds - Send stored target storedTarget[1] to Creature Orphan (42385) with guid 275648"), +(@ENTRY, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 10, 275647, 42385, 0, 0, 0, 0, 0, "After 0 seconds - Send stored target storedTarget[1] to Creature Orphan (42385) with guid 275647"), +(@ENTRY, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 10, 275646, 42385, 0, 0, 0, 0, 0, "After 0 seconds - Send stored target storedTarget[1] to Creature Orphan (42385) with guid 275646"), +(@ENTRY, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 275648, 42385, 0, 0, 0, 0, 0, "After 0 seconds - Creature Orphan (42385) with guid 275648: Set creature data #1 to 1"), +(@ENTRY, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 2, 1, 0, 0, 0, 0, 10, 275647, 42385, 0, 0, 0, 0, 0, "After 0 seconds - Creature Orphan (42385) with guid 275647: Set creature data #2 to 1"), +(@ENTRY, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 3, 1, 0, 0, 0, 0, 10, 275646, 42385, 0, 0, 0, 0, 0, "After 0 seconds - Creature Orphan (42385) with guid 275646: Set creature data #3 to 1"), +(@ENTRY, 9, 12, 0, 0, 0, 100, 0, 30500, 30500, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10112.2, 1042.1, 37.5764, 0, "After 30.5 seconds - Self: Move to position (-10112.2, 1042.1, 37.5764, 0) (point id 2)"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 23500 AND SourceId = 9; + + -- Orphan +SET @ENTRY := 42385; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 0; +UPDATE creature_template SET AIName="SmartAI" WHERE entry=@ENTRY; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 80, 4238500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On data[1] set to 1 - Self: Start timed action list id #4238500 (update out of combat)"), +(@ENTRY, 0, 1, 2, 34, 0, 100, 0, 8, 1, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.0090947, "On movement of type POINT_MOTION_TYPE inform, point 1 - Self: Set orientation to 5.0090947"), +(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, "On movement of type POINT_MOTION_TYPE inform, point 1 - Self: Talk 0 to storedTarget[1]"), +(@ENTRY, 0, 3, 0, 34, 0, 100, 0, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.2915436, "On movement of type POINT_MOTION_TYPE inform, point 2 - Self: Set orientation to 1.2915436"), +(@ENTRY, 0, 4, 0, 38, 0, 100, 0, 2, 1, 0, 0, 80, 4238501, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On data[2] set to 1 - Self: Start timed action list id #4238501 (update out of combat)"), +(@ENTRY, 0, 5, 6, 34, 0, 100, 0, 8, 3, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.9599311, "On movement of type POINT_MOTION_TYPE inform, point 3 - Self: Set orientation to 0.9599311"), +(@ENTRY, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, "On movement of type POINT_MOTION_TYPE inform, point 3 - Self: Talk 1 to storedTarget[1]"), +(@ENTRY, 0, 7, 0, 34, 0, 100, 0, 8, 4, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.94247776, "On movement of type POINT_MOTION_TYPE inform, point 4 - Self: Set orientation to 0.94247776"), +(@ENTRY, 0, 8, 0, 38, 0, 100, 0, 3, 1, 0, 0, 80, 4238502, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On data[3] set to 1 - Self: Start timed action list id #4238502 (update out of combat)"), +(@ENTRY, 0, 9, 10, 34, 0, 100, 0, 8, 5, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.08726646, "On movement of type POINT_MOTION_TYPE inform, point 5 - Self: Set orientation to 0.08726646"), +(@ENTRY, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, "On movement of type POINT_MOTION_TYPE inform, point 5 - Self: Talk 2 to storedTarget[1]"), +(@ENTRY, 0, 11, 0, 34, 0, 100, 0, 8, 6, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.2617994, "On movement of type POINT_MOTION_TYPE inform, point 6 - Self: Set orientation to 0.2617994"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 42385 AND SourceId = 0; + + -- Timed list 4238500 +SET @ENTRY := 4238500; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 9; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 9, 0, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 59, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "After 3.5 seconds - Self: Set run"), +(@ENTRY, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10108.174, 1040.3698, 37.950733, 0, "After 0 seconds - Self: Move to position (-10108.174, 1040.3698, 37.950733, 0) (point id 1)"), +(@ENTRY, 9, 2, 0, 0, 0, 100, 0, 26500, 26500, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "After 26.5 seconds - Self: Set walk"), +(@ENTRY, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10111.306, 1044.0226, 37.640194, 0, "After 0 seconds - Self: Move to position (-10111.306, 1044.0226, 37.640194, 0) (point id 2)"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 4238500 AND SourceId = 9; + + -- Timed list 4238501 +SET @ENTRY := 4238501; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 9; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 9, 0, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 59, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "After 3.5 seconds - Self: Set run"), +(@ENTRY, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 3, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10108.578, 1038.0173, 37.956802, 0, "After 0 seconds - Self: Move to position (-10108.578, 1038.0173, 37.956802, 0) (point id 3)"), +(@ENTRY, 9, 2, 0, 0, 0, 100, 0, 26500, 26500, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "After 26.5 seconds - Self: Set walk"), +(@ENTRY, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10112.441, 1044.9271, 37.60088, 0, "After 0 seconds - Self: Move to position (-10112.441, 1044.9271, 37.60088, 0) (point id 4)"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 4238501 AND SourceId = 9; + + -- Timed list 4238502 +SET @ENTRY := 4238502; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 9; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 9, 0, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 59, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "After 3.5 seconds - Self: Set run"), +(@ENTRY, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 5, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10109.114, 1038.8611, 37.95167, 0, "After 0 seconds - Self: Move to position (-10109.114, 1038.8611, 37.95167, 0) (point id 5)"), +(@ENTRY, 9, 2, 0, 0, 0, 100, 0, 26500, 26500, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "After 26.5 seconds - Self: Set walk"), +(@ENTRY, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 6, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10113.542, 1045.9098, 37.524895, 0, "After 0 seconds - Self: Move to position (-10113.542, 1045.9098, 37.524895, 0) (point id 6)"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 4238502 AND SourceId = 9; + +DELETE FROM `creature_text` WHERE `CreatureID` = 42385; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES +(42385, 0, 0, 'I\'m so happy. Thank you, mama and thank you, $n.', 12, 7, 100, 1, 0, 0, 42470, 'Orphan to Player'), +(42385, 1, 0, 'YAY FOR $n!', 12, 7, 100, 1, 0, 0, 42472, 'Orphan to Player'), +(42385, 2, 0, '%s cries.', 16, 7, 100, 1, 0, 0, 25304, 'Orphan to Player'); -- BroadcastTextID: 6104 - 25304 - 25698 - 29772 - 42473 + +DELETE FROM `creature_addon` WHERE `guid` IN (275640, 275638, 275636, 275632, 275635, 275642, 275641, 275645, 275643); +INSERT INTO `creature_addon` (`guid`, `waypointPathId`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES +(275640, 0, 0, 1, 1, 0, ''), -- Homeless Stormwind Citizen +(275638, 0, 0, 1, 1, 0, ''), -- Homeless Stormwind Citizen +(275636, 0, 0, 1, 1, 0, ''), -- Homeless Stormwind Citizen +(275632, 0, 0, 1, 1, 0, ''), -- Homeless Stormwind Citizen +(275635, 0, 0, 1, 1, 0, ''), -- Homeless Stormwind Citizen +(275642, 0, 0, 1, 1, 0, ''), -- Homeless Stormwind Citizen +(275641, 0, 0, 1, 1, 0, ''), -- Homeless Stormwind Citizen +(275645, 0, 0, 3, 1, 0, '78677'), -- Homeless Stormwind Citizen - 78677 - Cosmetic - Sleep Zzz Breakable +(275643, 0, 0, 3, 1, 0, '78677'); -- Homeless Stormwind Citizen - 78677 - Cosmetic - Sleep Zzz Breakable + +UPDATE `creature` SET `position_x`=-10120.87, `position_y`=1046.53, `position_z`=42.23, `orientation`=2.5, `spawndist`=2, `MovementType`=1 WHERE `guid`=275639; + +DELETE FROM `spell_area` WHERE `spell`=79489 AND `area`=916 AND `quest_start`=0 AND `aura_spell`=0 AND `racemask`=0 AND `gender`=2; + +DELETE FROM spell_area WHERE area IN (40); +INSERT INTO spell_area (`area`, `spell`, `quest_start`, `quest_start_status`, `quest_end`, `quest_end_status`, `flags`, `aura_spell`, `racemask`, `gender`) VALUES +(40, 79489, 0, 64, 26232, 9, 3, 0, 0, 2), +(40, 79229, 0, 64, 26232, 9, 3, 0, 0, 2), +(40, 79341, 26232, 66, 26270, 11, 3, 0, 0, 2), +(40, 79498, 26270, 64, 0, 11, 3, 0, 0, 2); + +DELETE FROM `creature_text` WHERE `CreatureID` = 234; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES +(234, 0, 0, 'You have our full cooperation, lieutenant. The Furlbrows were good people. Their deaths will not go unpunished.', 12, 0, 100, 1, 0, 0, 42505, 'Marshal Gryan Stoutmantle to Player'), +(234, 1, 0, 'We caught this beast slaughtering sheep in the countryside. He is unrepentant and easily agitated. Keep your distance, lieutenant.', 12, 0, 100, 1, 0, 0, 42508, 'Marshal Gryan Stoutmantle to Player'), +(234, 2, 0, 'Do you know anything about this, beast? Who is the admiral? Speak!', 12, 0, 100, 6, 0, 0, 42528, 'Marshal Gryan Stoutmantle to Player'), +(234, 3, 0, 'Gibberish from a mad wolf. Bah!', 12, 0, 100, 5, 0, 0, 42530, 'Marshal Gryan Stoutmantle to Player'); + +DELETE FROM `creature_text` WHERE `CreatureID` = 42308 AND `GroupID` BETWEEN 3 AND 7; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES +(42308, 3, 0, 'That\'s good to hear, marshal. While $n has brought the perpetrators to justice, their ringleader is still on the loose. Perhaps with the aid of the Westfall Brigade we will finally be able to solve this case.', 12, 0, 100, 1, 0, 0, 42506, 'Lieutenant Horatio Laine to Player'), +(42308, 4, 0, 'Might I ask, what\'s with the worgen in the stocks?', 12, 0, 100, 6, 0, 0, 42507, 'Lieutenant Horatio Laine to Player'), +(42308, 5, 0, 'Wow, the marshal wasn\'t kidding.', 12, 0, 100, 0, 0, 0, 42510, 'Lieutenant Horatio Laine to Player'), +(42308, 6, 0, 'But is your bark...', 12, 0, 100, 0, 0, 0, 42511, 'Lieutenant Horatio Laine to Player'), +(42308, 7, 0, 'Worse than your bite?', 12, 0, 100, 0, 0, 0, 42512, 'Lieutenant Horatio Laine to Player'); + +DELETE FROM `creature_text` WHERE `CreatureID` = 42635; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES +(42635, 0, 0, 'When I break out of these stocks I\'m going to rip out your heart and devour it whole!', 12, 0, 100, 0, 0, 0, 42509, 'Ripsnarl to Player'), +(42635, 1, 0, 'The dawning comes, Stoutmantle, and with it comes your end.', 12, 0, 100, 0, 0, 0, 42529, 'Ripsnarl to Player'); + + -- Marshal Gryan Stoutmantle +SET @ENTRY := 234; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 0; +UPDATE creature_template SET AIName="SmartAI" WHERE entry=@ENTRY; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 0, 0, 0, 38, 0, 100, 0, 5993, 1, 60000, 60000, 80, 23400, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On data[5993] set to 1 (wait 60000 - 60000 ms before next event trigger) - Self: Start timed action list id #23400 (update out of combat)"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 234 AND SourceId = 0; + + -- Clientside area trigger 5993 +SET @ENTRY := 5993; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 2; +DELETE FROM areatrigger_scripts WHERE entry = @ENTRY; +INSERT INTO areatrigger_scripts(entry, ScriptName) VALUES(@ENTRY, "SmartTrigger"); +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 2, 0, 1, 46, 0, 100, 0, 0, 0, 0, 0, 64, 5993, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On trigger - Self: storedTarget[5993] = Triggering player"), +(@ENTRY, 2, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 100, 5993, 0, 0, 0, 0, 0, 10, 350867, 42308, 0, 0, 0, 0, 0, "On trigger - Send stored target storedTarget[5993] to Creature Lieutenant Horatio Laine (42308) with guid 350867"), +(@ENTRY, 2, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 45, 5993, 1, 0, 0, 0, 0, 10, 350867, 42308, 0, 0, 0, 0, 0, "On trigger - Creature Lieutenant Horatio Laine (42308) with guid 350867: Set creature data #5993 to 1"), +(@ENTRY, 2, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 100, 5993, 0, 0, 0, 0, 0, 10, 275162, 234, 0, 0, 0, 0, 0, "On trigger - Send stored target storedTarget[5993] to Creature Marshal Gryan Stoutmantle (234) with guid 275162"), +(@ENTRY, 2, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 45, 5993, 1, 0, 0, 0, 0, 10, 275162, 234, 0, 0, 0, 0, 0, "On trigger - Creature Marshal Gryan Stoutmantle (234) with guid 275162: Set creature data #5993 to 1"), +(@ENTRY, 2, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 100, 5993, 0, 0, 0, 0, 0, 10, 275323, 42635, 0, 0, 0, 0, 0, "On trigger - Send stored target storedTarget[5993] to Creature Ripsnarl (42635) with guid 275323"), +(@ENTRY, 2, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 5993, 1, 0, 0, 0, 0, 10, 275323, 42635, 0, 0, 0, 0, 0, "On trigger - Creature Ripsnarl (42635) with guid 275323: Set creature data #5993 to 1"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 5993 AND SourceId = 2; + +INSERT INTO conditions (SourceTypeOrReferenceId, SourceGroup, SourceEntry, SourceId, ElseGroup, ConditionTypeOrReference, ConditionTarget, ConditionValue1, ConditionValue2, ConditionValue3, NegativeCondition, Comment) VALUES +(22, 1, 5993, 2, 0, 28, 0, 26266, 0, 0, 0, "Action invoker has completed quest quest Hope for the People (26266) (but not yet rewarded)"); + + -- Lieutenant Horatio Laine +SET @ENTRY := 42308; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 0; +UPDATE creature_template SET AIName="SmartAI" WHERE entry=@ENTRY; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 0, 0, 1, 38, 0, 100, 0, 1, 1, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On data[1] set to 1 - Self: Set walk"), +(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 4230800, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On data[1] set to 1 - Self: Start timed action list id #4230800 (update out of combat)"), +(@ENTRY, 0, 2, 0, 34, 0, 100, 0, 8, 1, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On movement of type POINT_MOTION_TYPE inform, point 1 - Self: Set UNIT_FIELD_BYTES_1 with Type UNIT_BYTES_1_OFFSET_STAND_STATE to 8"), +(@ENTRY, 0, 3, 0, 34, 0, 100, 0, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On movement of type POINT_MOTION_TYPE inform, point 2 - Self: Set orientation to home position orientation"), +(@ENTRY, 0, 4, 0, 38, 0, 100, 0, 5993, 1, 60000, 60000, 80, 4230801, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On data[5993] set to 1 (wait 60000 - 60000 ms before next event trigger) - Self: Start timed action list id #4230801 (update out of combat)"), +(@ENTRY, 0, 5, 6, 34, 0, 100, 0, 8, 4, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.363323, "On movement of type POINT_MOTION_TYPE inform, point 4 - Self: Set orientation to 4.363323"), +(@ENTRY, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 78935, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On movement of type POINT_MOTION_TYPE inform, point 4 - Self: Remove aura due to spell Horatio's Sunglasses (78935)"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 42308 AND SourceId = 0; + + -- Timed list 23400 +SET @ENTRY := 23400; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 9; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 5993, 0, 0, 0, 0, 0, 0, "After 0 seconds - Self: Talk 0 to storedTarget[5993]"), +(@ENTRY, 9, 1, 0, 0, 0, 100, 0, 24000, 24000, 0, 0, 1, 1, 0, 1, 0, 0, 0, 12, 5993, 0, 0, 0, 0, 0, 0, "After 24 seconds - Self: Talk 1 to storedTarget[5993]"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 23400 AND SourceId = 9; + + -- Timed list 4230801 +SET @ENTRY := 4230801; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 9; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 9, 0, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 1, 3, 0, 1, 0, 0, 0, 12, 5993, 0, 0, 0, 0, 0, 0, "After 9 seconds - Self: Talk 3 to storedTarget[5993]"), +(@ENTRY, 9, 1, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 1, 4, 0, 1, 0, 0, 0, 12, 5993, 0, 0, 0, 0, 0, 0, "After 9 seconds - Self: Talk 4 to storedTarget[5993]"), +(@ENTRY, 9, 2, 0, 0, 0, 100, 0, 22000, 22000, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "After 22 seconds - Self: Set walk"), +(@ENTRY, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 3, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10511.849, 1046.6962, 60.51798, 0, "After 0 seconds - Self: Move to position (-10511.849, 1046.6962, 60.51798, 0) (point id 3)"), +(@ENTRY, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 5, 0, 1, 0, 0, 0, 12, 5993, 0, 0, 0, 0, 0, 0, "After 0 seconds - Self: Talk 5 to storedTarget[5993]"), +(@ENTRY, 9, 5, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 11, 78935, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "After 6 seconds - Self: Cast spell Horatio's Sunglasses (78935) on Self"), +(@ENTRY, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 6, 0, 1, 0, 0, 0, 12, 5993, 0, 0, 0, 0, 0, 0, "After 0 seconds - Self: Talk 6 to storedTarget[5993]"), +(@ENTRY, 9, 7, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 7, 0, 1, 0, 0, 0, 12, 5993, 0, 0, 0, 0, 0, 0, "After 4 seconds - Self: Talk 7 to storedTarget[5993]"), +(@ENTRY, 9, 8, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 69, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, -10507.958, 1047.5435, 60.596706, 0, "After 7 seconds - Self: Move to position (-10507.958, 1047.5435, 60.596706, 0) (point id 4)"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 4230801 AND SourceId = 9; + + -- Ripsnarl +SET @ENTRY := 42635; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 0; +UPDATE creature_template SET AIName="SmartAI" WHERE entry=@ENTRY; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 0, 0, 0, 38, 0, 100, 0, 5993, 1, 60000, 60000, 80, 4263500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On data[5993] set to 1 (wait 60000 - 60000 ms before next event trigger) - Self: Start timed action list id #4263500 (update out of combat)"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 42635 AND SourceId = 0; + + -- Timed list 4263500 +SET @ENTRY := 4263500; +DELETE FROM smart_scripts WHERE entryOrGuid = @ENTRY AND source_type = 9; +INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES +(@ENTRY, 9, 0, 0, 0, 0, 100, 0, 32000, 32000, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 5993, 0, 0, 0, 0, 0, 0, "After 32 seconds - Self: Talk 0 to storedTarget[5993]"); + +DELETE FROM conditions WHERE SourceTypeOrReferenceId = 22 AND SourceEntry = 4263500 AND SourceId = 9;