/* smart scripts */
UPDATE `creature_template` SET `AIName` = '' WHERE `entry` IN (4124, 4248, 4499, 9377);
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN 
(4093, 4094, 4095, 4096, 4097, 4099, 4100, 4101, 4104, 4107, 4109, 4110, 4111, 4112, 4116, 4117, 4118, 4119, 4120, 4131, 4133, 4139, 
4140, 4142, 4143, 4144, 4147, 4150, 4151, 4154, 4249, 4507, 5933, 5934, 5937, 7404, 10756, 10757, 10758, 10759, 10760, 10882, 10896, 14426, 14427);
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` IN 
(4093, 4094, 4095, 4096, 4097, 4099, 4100, 4101, 4104, 4107, 4109, 4110, 4111, 4112, 4116, 4117, 4118, 4119, 4120, 4124, 4131, 4133, 4139, 
4140, 4142, 4143, 4144, 4147, 4150, 4151, 4154, 4248, 4249, 4499, 4507, 5933, 5934, 5937, 7404, 9377, 10756, 10757, 10758, 10759, 10760, 10882, 10896, 14426, 14427);

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 
--
(4093, 0, 0, 0, 9, 0, 100, 0, 0, 0, 4000, 4000, 30, 60, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,               'Galak Wrangler - Outside 30 Range - Start Combat Movement'),
(4093, 0, 1, 0, 9, 0, 100, 0, 0, 0, 4000, 4000, 5, 30, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Galak Wrangler - Within 5-30 Range - Stop Combat Movement'),
(4093, 0, 2, 0, 9, 0, 100, 0, 0, 0, 4000, 4000, 0, 5, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                 'Galak Wrangler - Within 0-5 Range - Start Combat Movement'),
(4093, 0, 3, 0, 9, 0, 100, 0, 0, 0, 2000, 4000, 5, 30, 11, 6660, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Galak Wrangler - In Combat - Cast Shoot'),
(4093, 0, 4, 0, 0, 0, 100, 0, 3000, 6000, 25000, 35000, 0, 0, 11, 6533, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,      'Galak Wrangler - In Combat - Cast Net'),
(4093, 0, 5, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Galak Wrangler - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4094, 0, 0, 0, 9, 0, 100, 0, 0, 0, 4000, 4000, 30, 60, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,               'Galak Scout - Outside 30 Range - Start Combat Movement'),
(4094, 0, 1, 0, 9, 0, 100, 0, 0, 0, 4000, 4000, 5, 30, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Galak Scout - Within 5-30 Range - Stop Combat Movement'),
(4094, 0, 2, 0, 9, 0, 100, 0, 0, 0, 4000, 4000, 0, 5, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                 'Galak Scout - Within 0-5 Range - Start Combat Movement'),
(4094, 0, 3, 0, 0, 0, 100, 0, 0, 0, 2000, 4000, 0, 0, 11, 6660, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Galak Scout - In Combat - Cast Shoot'),
(4094, 0, 4, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Galak Scout - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4095, 0, 0, 0, 9, 0, 100, 0, 0, 0, 32000, 37000, 0, 8, 11, 13730, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,           'Galak Mauler - Within 0-8 Range - Cast Demoralizing Shout'),
(4095, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Galak Mauler - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4096, 0, 0, 0, 0, 0, 100, 0, 4000, 7000, 18000, 26000, 0, 0, 11, 6728, 96, 0, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 0,    'Galak Windchaser - In Combat - Cast Enveloping Winds (No Repeat)'),
(4096, 0, 1, 0, 14, 0, 100, 1, 300, 40, 0, 0, 0, 0, 11, 939, 65, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0,                'Galak Windchaser - Friendly Missing 300 Health - Cast Healing Wave (No Repeat)'),
(4096, 0, 2, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Galak Windchaser - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4097, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 6535, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,                   'Galak Stormer - On Aggro - Cast Lightning Cloud'),
(4097, 0, 1, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 9532, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Galak Stormer - In Combat - Cast Lightning Bolt'),
(4097, 0, 2, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Galak Stormer - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4099, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 6268, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                    'Galak Marauder - On Aggro - Cast Rushing Charge'),
(4099, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Galak Marauder - Between 0-15% Health - Flee For Assist (No Repeat)'),
--
(4100, 0, 0, 0, 0, 0, 100, 0, 5000, 8000, 17000, 25000, 0, 0, 11, 3589, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,      'Screeching Harpy - Within 0-5 Range - Cast Deafening Screech'),
(4100, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Screeching Harpy - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4101, 0, 0, 0, 67, 0, 100, 0, 2000, 4000, 10000, 15000, 0, 5, 11, 3589, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,     'Screeching Roguefeather - Behind Target - Cast Exploit Weakness'),
(4101, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Screeching Roguefeather - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4104, 0, 0, 0, 0, 0, 100, 0, 4000, 7000, 35000, 40000, 0, 0, 11, 6982, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Screeching Windcaller - In Combat - Cast Gust of Wind'),
(4104, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Screeching Windcaller - Between 0-15% Health - Flee For Assist (No Repeat)'),
--
(4107, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 3616, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                   'Highperch Wyvern - On Respawn - Cast Poison Proc'),
(4109, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 3616, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                   'Highperch Consort - On Respawn - Cast Poison Proc'),
(4110, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 3616, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                   'Highperch Patriarch - On Respawn - Cast Poison Proc'),
--
(4111, 0, 0, 0, 0, 0, 100, 0, 3000, 5000, 4000, 7000, 0, 0, 11, 11976, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,      'Gravelsnout Kobold - Within 0-5 Range - Cast Strike'),
(4111, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Gravelsnout Kobold - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4112, 0, 0, 0, 0, 0, 100, 0, 6000, 12000, 8000, 13000, 0, 0, 11, 3427, 32, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,    'Gravelsnout Vermin - In Combat - Cast Infected Wound'),
(4112, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Gravelsnout Vermin - Between 0-15% Health - Flee For Assist (No Repeat)'),
(4116, 0, 0, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 20806, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Gravelsnout Surveyor - In Combat - Cast Frostbolt'),
(4116, 0, 1, 0, 0, 0, 100, 0, 6000, 9000, 17000, 21000, 0, 0, 11, 6141, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,      'Gravelsnout Surveyor - In Combat - Cast Blizzard'),
(4116, 0, 2, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Gravelsnout Surveyor - Between 0-15% Health - Flee For Assist (No Repeat)'),
--
(4117, 0, 0, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 8246, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Cloud Serpent - In Combat - Cast Lightning Bolt'),
(4118, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 10022, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                  'Venomous Cloud Serpent - On Respawn - Cast Deadly Poison Proc'),
(4119, 0, 0, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 8246, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Elder Cloud Serpent - In Combat - Cast Lightning Bolt'),
(4119, 0, 1, 0, 9, 0, 100, 0, 0, 0, 7000, 11000, 0, 30, 11, 421, 65, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Elder Cloud Serpent - Within 0-30 Range - Cast Chain Lightning'),
(4120, 0, 0, 0, 0, 0, 70, 0, 8000, 8000, 15000, 15000, 0, 0, 11, 6524, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,       'Thundering Boulderkin - In Combat - Cast Ground Tremor'),
--
(4131, 0, 0, 0, 0, 0, 100, 0, 4000, 7000, 22000, 25000, 0, 0, 11, 6016, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,     'Silithid Invader - Within 0-5 Range - Cast Pierce Armor'),
(4131, 0, 1, 0, 9, 0, 100, 0, 0, 0, 10000, 16000, 0, 5, 11, 8137, 96, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Silithid Invader - Within 0-5 Range - Cast Silithid Pox'),
(4133, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 0, 39, 40, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                      'Silithid Hive Drone - On Aggro - Call For Help (No Repeat)'),
(4133, 0, 1, 0, 2, 0, 100, 1, 0, 20, 0, 0, 0, 0, 39, 40, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                     'Silithid Hive Drone - Between 0-20% Health - Call For Help (No Repeat)'),
(4139, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 11000, 17000, 0, 0, 11, 7399, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,      'Scorpid Terror - Within 0-5 Range - Cast Terrify'),
(4140, 0, 0, 0, 0, 0, 100, 0, 3000, 5000, 6000, 9000, 0, 0, 11, 40505, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,      'Scorpid Reaver - Within 0-5 Range - Cast Cleave'),
(4142, 0, 0, 0, 1, 0, 100, 1, 1000, 1000, 0, 0, 0, 0, 11, 7273, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,              'Sparkleshell Tortoise - Out of Combat - Cast Lightning Hide (No Repeat)'),
(4143, 0, 0, 0, 1, 0, 100, 1, 1000, 1000, 0, 0, 0, 0, 11, 7273, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,              'Sparkleshell Snapper - Out of Combat - Cast Lightning Hide (No Repeat)'),
(4143, 0, 1, 0, 0, 0, 60, 0, 5000, 5000, 15000, 15000, 0, 0, 11, 6730, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,       'Sparkleshell Snapper - Within 0-5 Range - Cast Head Butt'),
(4144, 0, 0, 0, 1, 0, 100, 1, 1000, 1000, 0, 0, 0, 0, 11, 7273, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,              'Sparkleshell Borer - Out of Combat - Cast Lightning Hide (No Repeat)'),
(4144, 0, 1, 0, 0, 0, 100, 1, 5000, 5000, 26000, 30000, 0, 0, 11, 6016, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,     'Sparkleshell Borer - Within 0-5 Range - Cast Pierce Armor'),
(4147, 0, 0, 0, 0, 0, 75, 0, 8000, 8000, 30000, 30000, 0, 0, 11, 3636, 96, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,      'Saltstone Basilisk - Within 0-5 Range - Cast Crystalline Slumber'),
(4150, 0, 0, 0, 0, 0, 75, 0, 12000, 12000, 15000, 15000, 0, 0, 11, 3635, 64, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,    'Saltstone Gazer - Within 0-5 Range - Cast Crystal Gaze'),
(4151, 0, 0, 0, 0, 0, 75, 0, 8000, 8000, 18000, 18000, 0, 0, 11, 8129, 320, 0, 0, 0, 0, 5, 30, 1, 0, 0, 0, 0, 0, 0,    'Saltstone Crystalhide - Within 0-30 Range - Cast Mana Burn'),
(4154, 0, 0, 0, 12, 0, 100, 1, 0, 20, 0, 0, 0, 0, 11, 7160, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,                  'Salt Flats Scavenger - Target Between 0-20% Health - Cast Execute (No Repeat)'),
(4249, 0, 0, 0, 0, 0, 100, 0, 5000, 10000, 12000, 16000, 0, 0, 11, 6576, 64, 0, 0, 0, 0, 6, 5, 0, 0, 0, 0, 0, 0, 0,    'Pesterhide Snarler - Within 0-5 Range - Cast Intimidating Growl'),
--
(4507, 0, 0, 0, 11, 0, 100, 512, 0, 0, 0, 0, 0, 0, 80, 450700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,               'Daisy - On Respawn - Call Action List'),
(4507, 0, 1, 2, 38, 1, 100, 513, 1, 1, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                    'Daisy - On Data Set 1 1 (Phase 1) - Set Phase 0 (No Repeat)'),
(4507, 0, 2, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 0, 80, 450701, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,               'Daisy - Linked - Call Action List'),
(4507, 0, 3, 4, 38, 1, 100, 513, 1, 2, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                    'Daisy - On Data Set 1 2 (Phase 1) - Set Phase 0 (No Repeat)'),
(4507, 0, 4, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 0, 80, 450701, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,               'Daisy - Linked - Call Action List'),
--
(5933, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 9128, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                    'Achellios the Banished - On Aggro - Cast Battle Shout'),
(5933, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Achellios the Banished - Between 0-15% Health - Flee For Assist (No Repeat)'),
(5934, 0, 0, 0, 0, 0, 100, 0, 10000, 16000, 12000, 24000, 0, 0, 11, 8256, 96, 0, 0, 0, 0, 21, 10, 0, 0, 0, 0, 0, 0, 0, 'Heartrazor - Within 0-10 Range - Cast Lethal Toxin'),
(5937, 0, 0, 0, 9, 0, 100, 0, 0, 0, 25000, 35000, 0, 5, 11, 8257, 64, 3, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Vile Sting - Within 0-5 Range - Cast Venom Sting'),
(7404, 0, 0, 0, 0, 0, 100, 0, 2000, 4000, 27000, 37000, 0, 0, 11, 13730, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Galak Flame Guard - In Combat - Cast Demoralizing Shout'),
(7404, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                      'Galak Flame Guard - Between 0-15% Health - Flee For Assist (No Repeat)'),
--
(10756, 0, 0, 0, 9, 0, 100, 0, 0, 0, 15000, 18000, 0, 20, 11, 17276, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,        'Scalding Elemental - Within 0-20 Range - Cast Scald'),
(10757, 0, 0, 0, 9, 0, 100, 9, 0, 0, 12000, 15000, 0, 5, 11, 11983, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,          'Boiling Elemental - Within 0-5 Range - Cast Steam Jet'),
(10758, 0, 0, 0, 105, 0, 100, 0, 0, 0, 12000, 16000, 0, 5, 11, 11978, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0,        'Grimtotem Bandit - Target Casting - Cast Kick'),
(10758, 0, 1, 0, 0, 0, 100, 0, 12000, 22000, 20000, 33000, 0, 0, 11, 6713, 32, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,  'Grimtotem Bandit -  Within 0-5 Range - Cast Disarm'),
(10758, 0, 2, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                     'Grimtotem Bandit - Between 0-15% Health - Flee For Assist (No Repeat)'),
(10759, 0, 0, 0, 9, 0, 100, 0, 0, 0, 9600, 12300, 0, 25, 11, 8046, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Grimtotem Stomper - Within 0-25 Range - Cast Earth Shock'),
(10759, 0, 1, 0, 2, 0, 100, 1, 0, 40, 0, 0, 0, 0, 11, 5605, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                  'Grimtotem Stomper - Between 0-40% Health - Cast Healing Ward (No Repeat)'),
(10759, 0, 2, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                     'Grimtotem Stomper - Between 0-15% Health - Flee For Assist (No Repeat)'),
(10760, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 11436, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,                  'Grimtotem Geomancer - On Aggro - Cast Slow'),
(10760, 0, 1, 0, 0, 0, 100, 0, 0, 0, 3500, 15000, 0, 0, 11, 8400, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Grimtotem Geomancer - In Combat - Cast Fireball'),
(10760, 0, 2, 0, 0, 0, 100, 0, 3000, 5000, 10000, 15000, 0, 0, 11, 20813, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Grimtotem Geomancer - In Combat - Cast Flamestrike'),
(10760, 0, 3, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                     'Grimtotem Geomancer - Between 0-15% Health - Flee For Assist (No Repeat)'),
(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)'),
(10896, 0, 0, 0, 9, 0, 100, 0, 0, 0, 15000, 18000, 0, 5, 11, 11977, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Arnak Grimtotem - Within 0-5 Range - Cast Rend'),
(10896, 0, 1, 0, 9, 0, 100, 0, 0, 0, 12000, 17000, 0, 8, 11, 10966, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Arnak Grimtotem - Within 0-8 Range - Cast Uppercut'),
(14426, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 8876, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                  'Harb Foulmountain - On Respawn - Cast Thrash Proc'),
(14426, 0, 1, 0, 0, 0, 100, 0, 8000, 12000, 12000, 18000, 0, 0, 11, 45, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,      'Harb Foulmountain - In Combat - Cast War Stomp'),
(14426, 0, 2, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                     'Harb Foulmountain - Between 0-15% Health - Flee For Assist (No Repeat)'),
(14427, 0, 0, 0, 9, 0, 100, 0, 0, 0, 5000, 9000, 0, 5, 11, 11971, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Gibblesnik - Within 0-5 Range - Cast Sunder Armor'),
(14427, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                     'Gibblesnik - Between 0-15% Health - Flee For Assist (No Repeat)');


UPDATE `creature` SET `MovementType` = 1, `wander_distance` = 5, `spawntimesecs` = 37800  WHERE `id1` = 14427; -- Gibblesnik
UPDATE `creature` SET `MovementType` = 1, `wander_distance` = 10 WHERE `id1` = 5937; -- give Vile Sting some movement
UPDATE `creature` SET `MovementType` = 2, `currentwaypoint` = 1  WHERE `id1` = 4499; -- 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, 215910, 0, 0, 0, 0, 0, NULL);

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