-- smart scripts
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (4499, 5937, 10882);
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` IN (4499, 5937, 10882);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, 
`event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, 
`action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, 
`target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 
--
(4499, 0, 6, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 232, 44990, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,             'Rok Alim the Pounder - On Respawn - Waypoint Start'),
(5937, 0, 0, 0, 9, 0, 100, 0, 1000, 11000, 16000, 24000, 0, 5, 11, 8257, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Vile Sting - Within 0-5 Range - Cast Venom Sting'),
(10882, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 11, 17213, 0, 0, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 0,             'Arikara - In Combat - Cast Curse of Vengeance (No Repeat)');

-- Pooled Treasure Chests
DELETE FROM `pool_template` WHERE `entry` IN (66001);
INSERT INTO `pool_template` (`entry`,`max_limit`,`description`) VALUES
(66001, 1, 'Treasures - Thousand Needles');

UPDATE `gameobject` SET `spawntimesecs` = 900 WHERE `guid` IN (16718, 85670, 87381);

DELETE FROM `pool_gameobject` WHERE `pool_entry` = 66001;
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `chance`, `description`) VALUES 
(16718, 66001, 0, 'Solid Chest, Camp E\'thok, node 1'),
(85670, 66001, 0, 'Solid Chest, Camp E\'thok, node 2'),
(87381, 66001, 0, 'Solid Chest, Camp E\'thok, node 3');

    
-- Rok'Alim the Pounder, Waypoints
DELETE FROM `creature_addon` WHERE `guid` = 21591;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES 
(21591, 44990, 0, 0, 0, 0, 0, NULL);

DELETE FROM `waypoint_data` WHERE `id` = 44990;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES 
(44990, 1, -5204.92, -1565.98, -48.1972, 0, 0, 0, 0, 100, 0),
(44990, 2, -5214.62, -1555.88, -49.2243, 0, 0, 0, 0, 100, 0),
(44990, 3, -5230.7, -1546.65, -49.3283, 0, 0, 0, 0, 100, 0),
(44990, 4, -5241.37, -1540.68, -50.6353, 0, 0, 0, 0, 100, 0),
(44990, 5, -5257.24, -1534.29, -51.2466, 0, 0, 0, 0, 100, 0),
(44990, 6, -5269.84, -1529.99, -52.025, 0, 0, 0, 0, 100, 0),
(44990, 7, -5282.4, -1525.82, -53.1763, 0, 0, 0, 0, 100, 0),
(44990, 8, -5288.3, -1522.98, -56.4051, 0, 0, 0, 0, 100, 0),
(44990, 9, -5286.83, -1503.93, -56.481, 0, 0, 0, 0, 100, 0),
(44990, 10, -5270.15, -1482.05, -56.3993, 0, 0, 0, 0, 100, 0),
(44990, 11, -5254.26, -1461.2, -56.0616, 0, 0, 0, 0, 100, 0),
(44990, 12, -5241.19, -1442.79, -55.4567, 0, 0, 0, 0, 100, 0),
(44990, 13, -5221.53, -1416.03, -53.8072, 0, 0, 0, 0, 100, 0),
(44990, 14, -5198.85, -1395.52, -52.7577, 0, 0, 0, 0, 100, 0),
(44990, 15, -5181.67, -1374.63, -51.8565, 0, 0, 0, 0, 100, 0),
(44990, 16, -5169.68, -1349.39, -50.6463, 0, 0, 0, 0, 100, 0),
(44990, 17, -5154.09, -1328.35, -49.6798, 0, 0, 0, 0, 100, 0),
(44990, 18, -5133.36, -1309.61, -49.4684, 0, 0, 0, 0, 100, 0),
(44990, 19, -5128.83, -1305.52, -49.5074, 0, 0, 0, 0, 100, 0),
(44990, 20, -5116.85, -1280.28, -49.9129, 0, 0, 0, 0, 100, 0),
(44990, 21, -5102.61, -1250.27, -49.9234, 0, 0, 0, 0, 100, 0),
(44990, 22, -5092.12, -1228.17, -52.6244, 0, 0, 0, 0, 100, 0),
(44990, 23, -5069.58, -1197.09, -55.3233, 0, 0, 0, 0, 100, 0),
(44990, 24, -5062.96, -1184.76, -56.1412, 0, 0, 0, 0, 100, 0),
(44990, 25, -5039.98, -1165.97, -56.9965, 0, 0, 0, 0, 100, 0),
(44990, 26, -5016.58, -1158.92, -55.1305, 0, 0, 0, 0, 100, 0),
(44990, 27, -5006.19, -1139.71, -52.2228, 0, 0, 0, 0, 100, 0),
(44990, 28, -4991.9, -1125.57, -50.647, 0, 0, 0, 0, 100, 0),
(44990, 29, -4960.86, -1102.84, -52.0625, 0, 0, 0, 0, 100, 0),
(44990, 30, -4946.76, -1092.52, -52.4456, 0, 0, 0, 0, 100, 0),
(44990, 31, -4928.1, -1087.96, -53.0811, 0, 0, 0, 0, 100, 0),
(44990, 32, -4911.55, -1088.84, -54.6845, 0, 0, 0, 0, 100, 0),
(44990, 33, -4892.69, -1085.17, -58.7394, 0, 0, 0, 0, 100, 0),
(44990, 34, -4862.62, -1069.22, -58.5493, 0, 0, 0, 0, 100, 0),
(44990, 35, -4841.79, -1058.18, -58.3265, 0, 0, 0, 0, 100, 0),
(44990, 36, -4832.77, -1054.99, -58.5381, 0, 0, 0, 0, 100, 0),
(44990, 37, -4810.17, -1040.02, -58.7495, 0, 0, 0, 0, 100, 0),
(44990, 38, -4781.03, -1020.73, -58.7479, 0, 0, 0, 0, 100, 0),
(44990, 39, -4763.55, -1010.94, -58.3438, 0, 0, 0, 0, 100, 0),
(44990, 40, -4745.84, -1003.38, -58.7489, 0, 0, 0, 0, 100, 0),
(44990, 41, -4731.81, -989.059, -56.4676, 0, 0, 0, 0, 100, 0),
(44990, 42, -4718.22, -969.831, -52.847, 0, 0, 0, 0, 100, 0),
(44990, 43, -4702.23, -952.577, -50.7703, 0, 0, 0, 0, 100, 0),
(44990, 44, -4687.36, -943.465, -49.807, 0, 0, 0, 0, 100, 0),
(44990, 45, -4676.14, -938.654, -49.1061, 0, 0, 0, 0, 100, 0),
(44990, 46, -4664.32, -929.672, -50.7595, 0, 0, 0, 0, 100, 0),
(44990, 47, -4638.64, -916.618, -56.6334, 0, 0, 0, 0, 100, 0),
(44990, 48, -4625.96, -902.198, -54.0504, 0, 0, 0, 0, 100, 0),
(44990, 49, -4617.08, -882.245, -51.521, 0, 0, 0, 0, 100, 0),
(44990, 50, -4597.35, -850.377, -53.6356, 0, 0, 0, 0, 100, 0),
(44990, 51, -4579.89, -855.902, -52.0292, 0, 0, 0, 0, 100, 0),
(44990, 52, -4589.98, -867.978, -52.0226, 0, 0, 0, 0, 100, 0),
(44990, 53, -4601.74, -889.439, -50.6814, 0, 0, 0, 0, 100, 0),
(44990, 54, -4605.17, -901.682, -52.4203, 0, 0, 0, 0, 100, 0),
(44990, 55, -4610.44, -918.339, -57.6121, 0, 0, 0, 0, 100, 0),
(44990, 56, -4606.58, -931.714, -56.7672, 0, 0, 0, 0, 100, 0),
(44990, 57, -4596.94, -945.123, -52.9157, 0, 0, 0, 0, 100, 0),
(44990, 58, -4581.9, -955.52, -50.9032, 0, 0, 0, 0, 100, 0),
(44990, 59, -4572.11, -966.669, -49.0426, 0, 0, 0, 0, 100, 0),
(44990, 60, -4560.31, -987.143, -54.2615, 0, 0, 0, 0, 100, 0),
(44990, 61, -4541.68, -1003.01, -54.449, 0, 0, 0, 0, 100, 0),
(44990, 62, -4552.6, -1011.68, -55.3938, 0, 0, 0, 0, 100, 0),
(44990, 63, -4553.95, -1015.83, -55.5415, 0, 0, 0, 0, 100, 0),
(44990, 64, -4551.73, -1033.16, -56.3598, 0, 0, 0, 0, 100, 0),
(44990, 65, -4554.74, -1051.2, -55.7008, 0, 0, 0, 0, 100, 0),
(44990, 66, -4576.43, -1062.38, -52.3882, 0, 0, 0, 0, 100, 0),
(44990, 67, -4595.78, -1072.35, -47.8427, 0, 0, 0, 0, 100, 0),
(44990, 68, -4614.09, -1084.25, -50.2251, 0, 0, 0, 0, 100, 0),
(44990, 69, -4635.17, -1096.57, -53.1295, 0, 0, 0, 0, 100, 0),
(44990, 70, -4655.15, -1116.11, -54.7833, 0, 0, 0, 0, 100, 0),
(44990, 71, -4670.11, -1111.43, -52.6073, 0, 0, 0, 0, 100, 0),
(44990, 72, -4696.82, -1098.49, -52.938, 0, 0, 0, 0, 100, 0),
(44990, 73, -4708.96, -1097.21, -54.7856, 0, 0, 0, 0, 100, 0),
(44990, 74, -4727.26, -1112.01, -50.8514, 0, 0, 0, 0, 100, 0),
(44990, 75, -4730.2, -1135.72, -42.7862, 0, 0, 0, 0, 100, 0),
(44990, 76, -4734.1, -1146.39, -39.9821, 0, 0, 0, 0, 100, 0),
(44990, 77, -4742.57, -1153.98, -39.8057, 0, 0, 0, 0, 100, 0),
(44990, 78, -4748.47, -1163.7, -41.1494, 0, 0, 0, 0, 100, 0),
(44990, 79, -4753.23, -1182.36, -46.3681, 0, 0, 0, 0, 100, 0),
(44990, 80, -4754.96, -1211.99, -53.963, 0, 0, 0, 0, 100, 0),
(44990, 81, -4745.96, -1249.27, -54.0574, 0, 0, 0, 0, 100, 0),
(44990, 82, -4746.93, -1265.88, -52.9851, 0, 0, 0, 0, 100, 0),
(44990, 83, -4754.48, -1290.02, -48.5838, 0, 0, 0, 0, 100, 0),
(44990, 84, -4764.33, -1304.45, -48.6753, 0, 0, 0, 0, 100, 0),
(44990, 85, -4769.15, -1327.53, -49.0466, 0, 0, 0, 0, 100, 0),
(44990, 86, -4775, -1341.23, -53.1682, 0, 0, 0, 0, 100, 0),
(44990, 87, -4778.21, -1369.85, -53.8389, 0, 0, 0, 0, 100, 0),
(44990, 88, -4786.3, -1377.76, -53.4634, 0, 0, 0, 0, 100, 0),
(44990, 89, -4804.32, -1371.1, -54.4526, 0, 0, 0, 0, 100, 0),
(44990, 90, -4830.07, -1375.97, -53.9953, 0, 0, 0, 0, 100, 0),
(44990, 91, -4863.88, -1412.53, -52.4747, 0, 0, 0, 0, 100, 0),
(44990, 92, -4876.27, -1423.62, -50.5087, 0, 0, 0, 0, 100, 0),
(44990, 93, -4883.91, -1453.15, -50.5943, 0, 0, 0, 0, 100, 0),
(44990, 94, -4875.09, -1489.66, -47.697, 0, 0, 0, 0, 100, 0),
(44990, 95, -4868.9, -1500.25, -47.3607, 0, 0, 0, 0, 100, 0),
(44990, 96, -4864.04, -1520.62, -47.5608, 0, 0, 0, 0, 100, 0),
(44990, 97, -4840.64, -1540.3, -47.1878, 0, 0, 0, 0, 100, 0),
(44990, 98, -4813.21, -1563.37, -49.0607, 0, 0, 0, 0, 100, 0),
(44990, 99, -4798.37, -1586.05, -51.2704, 0, 0, 0, 0, 100, 0),
(44990, 100, -4797.3, -1611.32, -49.8867, 0, 0, 0, 0, 100, 0),
(44990, 101, -4802.75, -1637.81, -49.9839, 0, 0, 0, 0, 100, 0),
(44990, 102, -4811.28, -1665.36, -50.9323, 0, 0, 0, 0, 100, 0),
(44990, 103, -4829.82, -1672.43, -47.6692, 0, 0, 0, 0, 100, 0),
(44990, 104, -4850.17, -1677.41, -38.4677, 0, 0, 0, 0, 100, 0),
(44990, 105, -4868.01, -1681.78, -33.1823, 0, 0, 0, 0, 100, 0),
(44990, 106, -4885.85, -1686.15, -35.8888, 0, 0, 0, 0, 100, 0),
(44990, 107, -4907.88, -1691.54, -45.483, 0, 0, 0, 0, 100, 0),
(44990, 108, -4922.81, -1704.92, -53.1108, 0, 0, 0, 0, 100, 0),
(44990, 109, -4937.51, -1726.61, -57.509, 0, 0, 0, 0, 100, 0),
(44990, 110, -4969.21, -1749.86, -60.1434, 0, 0, 0, 0, 100, 0),
(44990, 111, -4994.72, -1763.31, -64.3609, 0, 0, 0, 0, 100, 0),
(44990, 112, -5028.79, -1764.86, -65.5336, 0, 0, 0, 0, 100, 0),
(44990, 113, -5065.95, -1759.59, -66.5919, 0, 0, 0, 0, 100, 0),
(44990, 114, -5093.52, -1770.39, -62.2996, 0, 0, 0, 0, 100, 0),
(44990, 115, -5105.65, -1775.34, -61.0208, 0, 0, 0, 0, 100, 0),
(44990, 116, -5123.93, -1792.82, -57.2378, 0, 0, 0, 0, 100, 0),
(44990, 117, -5149.56, -1806.05, -57.8151, 0, 0, 0, 0, 100, 0),
(44990, 118, -5173.42, -1831.56, -58.1518, 0, 0, 0, 0, 100, 0),
(44990, 119, -5186.01, -1870.63, -57.7254, 0, 0, 0, 0, 100, 0),
(44990, 120, -5197.27, -1905.54, -57.034, 0, 0, 0, 0, 100, 0),
(44990, 121, -5211.94, -1929.84, -62.5757, 0, 0, 0, 0, 100, 0),
(44990, 122, -5217.61, -1963.41, -63.2077, 0, 0, 0, 0, 100, 0),
(44990, 123, -5213.49, -1995.46, -61.1058, 0, 0, 0, 0, 100, 0),
(44990, 124, -5224.94, -2025.67, -60.3056, 0, 0, 0, 0, 100, 0),
(44990, 125, -5267.7, -2047.58, -61.7613, 0, 0, 0, 0, 100, 0),
(44990, 126, -5298.28, -2054.79, -60.6321, 0, 0, 0, 0, 100, 0),
(44990, 127, -5335.13, -2041.09, -61.2567, 0, 0, 0, 0, 100, 0),
(44990, 128, -5370.89, -2042.4, -62.2819, 0, 0, 0, 0, 100, 0),
(44990, 129, -5404.02, -2043.62, -63.9917, 0, 0, 0, 0, 100, 0),
(44990, 130, -5427.96, -2038.56, -64.7203, 0, 0, 0, 0, 100, 0),
(44990, 131, -5443.81, -2022.38, -63.5722, 0, 0, 0, 0, 100, 0),
(44990, 132, -5460.12, -1994.54, -58.3875, 0, 0, 0, 0, 100, 0),
(44990, 133, -5478.17, -1979.38, -58.9688, 0, 0, 0, 0, 100, 0),
(44990, 134, -5501.73, -1950.11, -60.4141, 0, 0, 0, 0, 100, 0),
(44990, 135, -5524.73, -1937.53, -59.9879, 0, 0, 0, 0, 100, 0),
(44990, 136, -5533.82, -1917.68, -59.0687, 0, 0, 0, 0, 100, 0),
(44990, 137, -5530.9, -1890.73, -58.5037, 0, 0, 0, 0, 100, 0),
(44990, 138, -5520.29, -1865.83, -57.9582, 0, 0, 0, 0, 100, 0),
(44990, 139, -5516.68, -1848.78, -57.2414, 0, 0, 0, 0, 100, 0),
(44990, 140, -5506.58, -1830.44, -56.6996, 0, 0, 0, 0, 100, 0),
(44990, 141, -5491.7, -1830.59, -56.4063, 0, 0, 0, 0, 100, 0),
(44990, 142, -5470.03, -1839.83, -54.3328, 0, 0, 0, 0, 100, 0),
(44990, 143, -5457.09, -1829.48, -50.7656, 0, 0, 0, 0, 100, 0),
(44990, 144, -5463.51, -1817.04, -48.0715, 0, 0, 0, 0, 100, 0),
(44990, 145, -5481.32, -1806.02, -49.6301, 0, 0, 0, 0, 100, 0),
(44990, 146, -5483.3, -1791.35, -45.245, 0, 0, 0, 0, 100, 0),
(44990, 147, -5480.45, -1769.64, -33.9141, 0, 0, 0, 0, 100, 0),
(44990, 148, -5475.24, -1759.54, -25.6579, 0, 0, 0, 0, 100, 0),
(44990, 149, -5471.3, -1747.98, -19.724, 0, 0, 0, 0, 100, 0),
(44990, 150, -5469.04, -1741.36, -17.7276, 0, 0, 0, 0, 100, 0),
(44990, 151, -5465.97, -1728.89, -21.8808, 0, 0, 0, 0, 100, 0),
(44990, 152, -5452.89, -1712.47, -31.4806, 0, 0, 0, 0, 100, 0),
(44990, 153, -5438.73, -1694.68, -39.2293, 0, 0, 0, 0, 100, 0),
(44990, 154, -5415, -1665.24, -52.9235, 0, 0, 0, 0, 100, 0),
(44990, 155, -5404.21, -1650.38, -54.0433, 0, 0, 0, 0, 100, 0),
(44990, 156, -5382.14, -1619.96, -55.4564, 0, 0, 0, 0, 100, 0),
(44990, 157, -5359.21, -1581.86, -54.3701, 0, 0, 0, 0, 100, 0),
(44990, 158, -5335.16, -1551.91, -54.5505, 0, 0, 0, 0, 100, 0),
(44990, 159, -5307.35, -1526.65, -56.18, 0, 0, 0, 0, 100, 0),
(44990, 160, -5277.19, -1490.33, -56.4778, 0, 0, 0, 0, 100, 0),
(44990, 161, -5254.46, -1467.41, -56.1179, 0, 0, 0, 0, 100, 0),
(44990, 162, -5234.6, -1435.62, -54.6556, 0, 0, 0, 0, 100, 0),
(44990, 163, -5208.81, -1408.3, -52.7023, 0, 0, 0, 0, 100, 0),
(44990, 164, -5186.86, -1376.82, -52.0997, 0, 0, 0, 0, 100, 0),
(44990, 165, -5161.9, -1341.03, -50.2505, 0, 0, 0, 0, 100, 0),
(44990, 166, -5111.66, -1355.74, -50.9843, 0, 0, 0, 0, 100, 0),
(44990, 167, -5094.4, -1380.98, -51.8489, 0, 0, 0, 0, 100, 0),
(44990, 168, -5073.89, -1397.17, -52.37, 0, 0, 0, 0, 100, 0),
(44990, 169, -5064.51, -1427.11, -52.3102, 0, 0, 0, 0, 100, 0),
(44990, 170, -5052.49, -1465.43, -50.1334, 0, 0, 0, 0, 100, 0),
(44990, 171, -5033.77, -1492.85, -49.7627, 0, 0, 0, 0, 100, 0),
(44990, 172, -5044.56, -1524.25, -48.7018, 0, 0, 0, 0, 100, 0),
(44990, 173, -5066.05, -1540.68, -48.0147, 0, 0, 0, 0, 100, 0),
(44990, 174, -5084.74, -1554.96, -47.1104, 0, 0, 0, 0, 100, 0),
(44990, 175, -5105.14, -1565.01, -46.4026, 0, 0, 0, 0, 100, 0),
(44990, 176, -5129.66, -1571.52, -49.5441, 0, 0, 0, 0, 100, 0),
(44990, 177, -5154.97, -1578.25, -54.2102, 0, 0, 0, 0, 100, 0),
(44990, 178, -5181.09, -1576.09, -53.6363, 0, 0, 0, 0, 100, 0);
