/* smart scripts */
UPDATE `creature_template` SET `AIName` = '' WHERE `entry` IN (14340, 14343);
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN 
(7092, 7093, 7097, 7098, 7099, 7100, 7101, 7104, 7105, 7106, 7107, 7108, 7109, 7110, 7111, 7112, 7113, 7114, 7115, 7118, 7120, 7125, 7132, 7136, 7139, 7153, 7154, 7155, 7156, 7157, 7158,
8957, 8958, 8959, 8960, 8961, 9454, 9462, 9464, 9516, 9517, 9518, 9860, 9861, 9862, 9877, 9878, 10648, 14342, 14344, 14345);
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` IN 
(7092, 7093, 7097, 7098, 7099, 7100, 7101, 7104, 7105, 7106, 7107, 7108, 7109, 7110, 7111, 7112, 7113, 7114, 7115, 7118, 7120, 7125, 7132, 7136, 7139, 7153, 7154, 7155, 7156, 7157, 7158,
8957, 8958, 8959, 8960, 8961, 9454, 9462, 9464, 9516, 9517, 9518, 9860, 9861, 9862, 9877, 9878, 10648, 14340, 14342, 14343, 14344, 14345);

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 
--
(7092, 0, 0, 0, 106, 0, 100, 0, 0, 0, 180000, 180000, 0, 5, 11, 3335, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,        'Tainted Ooze - Within 0-5 Range - Cast Dark Sludge'),
(7093, 0, 0, 0, 0, 0, 100, 0, 0, 0, 4000, 6000, 0, 0, 11, 21067, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Vile Ooze - In Combat - Cast Poison Bolt'),
(7093, 0, 1, 0, 9, 0, 100, 0, 0, 0, 11000, 14000, 0, 5, 11, 22595, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Vile Ooze - Within 0-5 Range - Cast Poison Shock'),
(7097, 0, 0, 0, 9, 0, 100, 0, 0, 0, 8000, 11000, 0, 5, 11, 5708, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Ironbeak Owl - Within 0-5 Range - Cast Swoop'),
(7098, 0, 0, 0, 9, 0, 100, 0, 0, 0, 13000, 16000, 0, 5, 11, 3589, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,            'Ironbeak Screecher - Within 0-5 Range - Cast Deafening Screech'),
(7099, 0, 0, 0, 9, 0, 100, 0, 0, 0, 21000, 24000, 0, 5, 11, 13443, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Ironbeak Hunter - Within 0-5 Range - Cast Rend'),
(7100, 0, 0, 0, 9, 0, 100, 0, 0, 0, 21000, 25000, 0, 30, 11, 11922, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,         'Warpwood Moss Flayer - In Combat - Cast Entangling Roots'),
(7101, 0, 0, 0, 0, 0, 100, 0, 8000, 12000, 15000, 20000, 0, 0, 11, 3391, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Warpwood Shredder - In Combat - Cast Thrash'),
(7101, 0, 1, 0, 9, 0, 100, 0, 0, 0, 5000, 9000, 0, 5, 11, 13444, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Warpwood Shredder - Within 0-5 Range - Cast Sunder Armor'),
(7104, 0, 0, 0, 9, 0, 100, 0, 0, 0, 6000, 10000, 0, 30, 11, 12058, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Dessecus - In Combat - Cast Chain Lightning'),
(7104, 0, 1, 0, 0, 0, 100, 0, 6000, 11000, 16000, 21000, 0, 0, 11, 8293, 64, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 0,  'Dessecus - In Combat - Cast Lightning Cloud'),
--
(7105, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Jadefire Satyr - In Combat - Cast Jadefire'),
(7106, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Jadefire Rogue - In Combat - Cast Jadefire'),
(7106, 0, 1, 0, 0, 0, 100, 0, 4000, 7000, 9000, 12000, 0, 0, 11, 13579, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,     'Jadefire Rogue - Within 0-5 Range - Cast Gouge'),
(7106, 0, 2, 0, 67, 0, 100, 0, 0, 0, 6000, 11000, 0, 5, 11, 7159, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Jadefire Rogue - Behind Target - Cast Backstab'),
(7107, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Jadefire Trickster - In Combat - Cast Jadefire'),
(7107, 0, 1, 0, 0, 0, 100, 0, 5000, 9000, 21000, 25000, 0, 0, 11, 13338, 256, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Jadefire Trickster - In Combat - Cast Curse of Tongues'),
(7107, 0, 2, 0, 9, 0, 100, 0, 0, 0, 120000, 125000, 0, 30, 11, 11980, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,        'Jadefire Trickster - In Combat - Cast Curse of Weakness'),
(7108, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Jadefire Betrayer - In Combat - Cast Jadefire'),
(7108, 0, 1, 0, 0, 0, 100, 0, 5000, 8000, 18000, 22000, 0, 0, 11, 13443, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,    'Jadefire Betrayer - Within 0-5 Range - Cast Rend'),
(7108, 0, 2, 0, 9, 0, 100, 0, 0, 0, 7000, 11000, 0, 5, 11, 15496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Jadefire Betrayer - Within 0-5 Range - Cast Cleave'),
(7109, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Jadefire Felsworn - In Combat - Cast Jadefire'),
(7109, 0, 1, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 9613, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Jadefire Felsworn - In Combat - Cast Shadow Bolt'),
(7109, 0, 2, 0, 0, 0, 100, 0, 7000, 11000, 21000, 24000, 0, 0, 11, 11443, 64, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 0, 'Jadefire Felsworn - In Combat - Cast Cripple'),
(7110, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Jadefire Shadowstalker - In Combat - Cast Jadefire'),
(7111, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Jadefire Hellcaller - In Combat - Cast Jadefire'),
(7111, 0, 1, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 20823, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Jadefire Hellcaller - In Combat - Cast Fireball'),
(7111, 0, 2, 0, 0, 0, 100, 0, 9000, 13000, 18000, 22000, 0, 0, 11, 11990, 65, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Jadefire Hellcaller - In Combat - Cast Rain of Fire'),
--
(7112, 0, 0, 0, 0, 0, 100, 0, 9000, 14000, 22000, 25000, 0, 0, 11, 11639, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Jaedenar Cultist - In Combat - Cast Shadow Word: Pain'),
(7112, 0, 1, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 20825, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,            'Jaedenar Cultist - In Combat - Cast Shadow Bolt'),
(7112, 0, 2, 0, 0, 0, 100, 0, 7000, 9000, 15000, 25000, 0, 0, 11, 11980, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,    'Jaedenar Cultist - In Combat - Cast Curse of Weakness'),
(7112, 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,                      'Jaedenar Cultist - Between 0-15% Health - Flee For Assist (No Repeat)'),
(7113, 0, 0, 0, 0, 0, 100, 0, 5000, 9000, 13000, 17000, 0, 0, 11, 3248, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,      'Jaedenar Guardian - In Combat - Cast Improved Blocking'),
(7113, 0, 1, 0, 105, 0, 100, 0, 0, 0, 9000, 12000, 0, 5, 11, 11972, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0,          'Jaedenar Guardian - Within 0-5 Range - Cast Shield Bash'),
(7114, 0, 0, 0, 9, 0, 100, 0, 0, 0, 17000, 21000, 0, 5, 11, 11977, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Jaedenar Enforcer - Within 0-5 Range - Cast Rend'),
(7115, 0, 0, 0, 0, 0, 100, 0, 11000, 15000, 12000, 16000, 0, 0, 11, 20832, 0, 0, 0, 0, 0, 21, 20, 0, 0, 0, 0, 0, 0, 0, 'Jaedenar Adept - Within 0-20 Range - Cast Fire Blast'),
(7115, 0, 1, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 20823, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Jaedenar Adept - In Combat - Cast Fireball'),
(7115, 0, 2, 0, 9, 0, 100, 0, 0, 0, 16000, 21000, 0, 5, 11, 14514, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,           'Jaedenar Adept - Within 0-5 Range - Cast Blink'),
(7115, 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,                      'Jaedenar Adept - Between 0-15% Health - Flee For Assist (No Repeat)'),
(7118, 0, 0, 0, 0, 0, 100, 0, 9000, 13000, 21000, 26000, 0, 0, 11, 11962, 97, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Jaedenar Darkweaver - In Combat - Cast Immolate'),
(7118, 0, 1, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 9613, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Jaedenar Darkweaver - In Combat - Cast Shadow Bolt'),
(7118, 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,                      'Jaedenar Darkweaver - Between 0-15% Health - Flee For Assist (No Repeat)'),
(7120, 0, 0, 0, 1, 0, 100, 1, 1000, 1000, 0, 0, 0, 0, 11, 11939, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,             'Jaedenar Warlock - Out of Combat - Cast Summon Imp (No Repeat)'),
(7120, 0, 1, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 9613, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Jaedenar Warlock - In Combat - Cast Shadow Bolt'),
(7120, 0, 2, 0, 2, 0, 100, 1, 0, 30, 0, 0, 0, 0, 11, 8699, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                   'Jaedenar Warlock - Between 0-30% Health - Cast Unholy Frenzy (No Repeat)'),
(7120, 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,                      'Jaedenar Warlock - Between 0-15% Health - Flee For Assist (No Repeat)'),
(7125, 0, 0, 0, 9, 0, 100, 0, 0, 0, 9000, 15000, 0, 30, 11, 13321, 320, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,         'Jaedenar Hound - Within 0-30 Range - Cast Mana Burn'),
--
(7132, 0, 0, 0, 9, 0, 100, 0, 0, 0, 8000, 16000, 0, 5, 11, 7947, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Toxic Horror - Within 0-5 Range - Cast Localized Toxin'),
(7132, 0, 1, 0, 0, 0, 100, 0, 6000, 9000, 12000, 18000, 0, 0, 11, 13582, 32, 0, 0, 0, 0, 21, 10, 0, 0, 0, 0, 0, 0, 0,  'Toxic Horror - Within 0-10 Range - Cast Deadly Poison'),
(7136, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 2602, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                    'Infernal Sentry - On Aggro - Cast Fire Shield IV'),
(7139, 0, 0, 0, 9, 0, 100, 0, 0, 0, 9000, 16000, 0, 5, 11, 45, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,               'Irontree Stomper - Within 0-5 Range - Cast War Stomp'),
--
(7153, 0, 0, 0, 0, 0, 100, 0, 4000, 11000, 12000, 15000, 0, 0, 11, 13583, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Deadwood Warrior - In Combat - Cast Curse of the Deadwood'),
(7153, 0, 1, 0, 9, 0, 100, 0, 0, 0, 6000, 9000, 0, 5, 11, 13584, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Deadwood Warrior - Within 0-5 Range - Cast Strike'),
(7154, 0, 0, 0, 0, 0, 100, 0, 4000, 11000, 12000, 15000, 0, 0, 11, 13583, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Deadwood Gardener - In Combat - Cast Curse of the Deadwood'),
(7154, 0, 1, 0, 14, 0, 100, 0, 1000, 40, 14000, 17000, 0, 0, 11, 12160, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0,      'Deadwood Gardener - Friendly Missing 1000 Health - Cast Rejuvenation'),
(7154, 0, 3, 0, 2, 0, 100, 0, 0, 50, 12000, 15000, 0, 0, 11, 11986, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,         'Deadwood Gardener - Between 0-50% Health - Cast Healing Wave'),
(7155, 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,               'Deadwood Pathfinder - Outside 30 Range - Start Combat Movement'),
(7155, 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,                'Deadwood Pathfinder - Within 5-30 Range - Stop Combat Movement'),
(7155, 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,                 'Deadwood Pathfinder - Within 0-5 Range - Start Combat Movement'),
(7155, 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,            'Deadwood Pathfinder - In Combat - Cast Shoot'),
(7155, 0, 4, 0, 9, 0, 100, 0, 0, 0, 6000, 12000, 5, 30, 11, 6685, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Deadwood Pathfinder - Within 5-30 Range - Cast Piercing Shot'),
(7155, 0, 5, 0, 0, 0, 100, 0, 4000, 11000, 12000, 15000, 0, 0, 11, 13583, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Deadwood Pathfinder - In Combat - Cast Curse of the Deadwood'),
(7156, 0, 0, 0, 0, 0, 100, 0, 4000, 11000, 12000, 15000, 0, 0, 11, 13583, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Deadwood Den Watcher - In Combat - Cast Curse of the Deadwood'),
(7156, 0, 1, 0, 2, 0, 100, 1, 0, 50, 0, 0, 0, 0, 39, 20, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                     'Deadwood Den Watcher - Between 0-50% Health - Call For Help (No Repeat)'),
(7156, 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,                      'Deadwood Den Watcher - Between 0-15% Health - Flee For Assist (No Repeat)'),
(7156, 0, 3, 4, 6, 0, 100, 0, 0, 0, 0, 0, 0, 0, 86, 8599, 2, 9, 7157, 0, 15, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Deadwood Den Watcher - On Death - Cross Cast Enrage'),
(7156, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 9, 7157, 0, 15, 1, 0, 0, 0, 0,                   'Deadwood Den Watcher - On Death - Deadwood Avenger Say Line 0'),
(7157, 0, 0, 0, 0, 0, 100, 0, 4000, 11000, 12000, 15000, 0, 0, 11, 13583, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,    'Deadwood Avenger - In Combat - Cast Curse of the Deadwood'),
(7157, 0, 1, 2, 6, 0, 100, 0, 0, 0, 0, 0, 0, 0, 86, 8599, 2, 9, 7157, 0, 15, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Deadwood Avenger - On Death - Cross Cast Enrage'),
(7157, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 9, 7157, 0, 15, 1, 0, 0, 0, 0,                   'Deadwood Avenger - On Death - Deadwood Avenger Say Line 0'),
(7158, 0, 0, 0, 1, 0, 100, 0, 1000, 1000, 90000, 90000, 0, 0, 11, 13585, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,    'Deadwood Shaman - Out of Combat - Cast Lightning Shield'),
(7158, 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,             'Deadwood Shaman - In Combat- Cast Lightning Bolt'),
(7158, 0, 2, 0, 0, 0, 100, 0, 4000, 11000, 12000, 15000, 0, 0, 11, 13583, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Deadwood Shaman - In Combat - Cast Curse of the Deadwood'),
(7158, 0, 3, 0, 0, 0, 100, 0, 5000, 9000, 6000, 9000, 0, 0, 11, 12058, 65, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,      'Deadwood Shaman - In Combat - Cast Chain Lightning'),
(7158, 0, 4, 5, 6, 0, 100, 0, 0, 0, 0, 0, 0, 0, 86, 8599, 2, 9, 7157, 0, 15, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Deadwood Shaman - On Death - Cross Cast Enrage'),
(7158, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 9, 7157, 0, 15, 1, 0, 0, 0, 0,                   'Deadwood Shaman - On Death - Deadwood Avenger Say Line 0'),
--
(8957, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                   'Angerclaw Grizzly - Between 0-30% Health - Cast Enrage (No Repeat)'),
(8957, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                       'Angerclaw Grizzly - On Enrage - Say Line 0'),
(8957, 0, 2, 0, 9, 0, 100, 0, 0, 0, 16000, 19000, 0, 5, 11, 8716, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Angerclaw Grizzly - Within 0-5 Range - Cast Low Swipe'),
(8958, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                   'Angerclaw Mauler - Between 0-30% Health - Cast Enrage (No Repeat)'),
(8958, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                       'Angerclaw Mauler - On Enrage - Say Line 0'),
(8958, 0, 2, 0, 9, 0, 100, 0, 0, 0, 5000, 8000, 0, 5, 11, 15793, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Angerclaw Mauler - Within 0-5 Range - Cast Maul'),
(8959, 0, 0, 0, 9, 0, 100, 0, 0, 0, 8000, 14000, 0, 5, 11, 3427, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Felpaw Wolf - Within 0-5 Range - Cast Infected Wound'),
(8960, 0, 0, 0, 9, 0, 100, 0, 0, 0, 20000, 24000, 0, 5, 11, 3604, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Felpaw Scavenger - Within 0-5 Range - Cast Tendon Rip'),
(8960, 0, 1, 0, 9, 0, 100, 0, 0, 0, 8000, 14000, 0, 5, 11, 17230, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Felpaw Scavenger - Within 0-5 Range - Cast Infected Wound'),
(8961, 0, 0, 0, 0, 0, 100, 0, 8000, 12000, 15000, 20000, 0, 0, 11, 3391, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Felpaw Ravager - In Combat - Cast Thrash'),
(8961, 0, 1, 0, 9, 0, 100, 0, 0, 0, 8000, 14000, 0, 5, 11, 17230, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Felpaw Ravager - In Combat - Cast Infected Wound'),
--
(9454, 0, 0, 0, 9, 0, 100, 0, 0, 0, 21000, 26000, 0, 5, 11, 13443, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Xavathras - Within 0-5 Range - Cast Rend'),
(9454, 0, 1, 2, 2, 0, 100, 1, 0, 30, 0, 0, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                   'Xavathras - Between 0-30% Health - Cast Enrage (No Repeat)'),
(9454, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                       'Xavathras - On Enrage - Say Line 0'),
(9462, 0, 0, 0, 0, 0, 100, 0, 4000, 11000, 12000, 15000, 0, 0, 11, 13583, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Chieftain Bloodmaw - In Combat - Cast Curse of the Deadwood'),
(9462, 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,                      'Chieftain Bloodmaw - Between 0-15% Health - Flee For Assist (No Repeat)'),
(9464, 0, 0, 0, 9, 0, 100, 0, 0, 0, 5000, 8000, 0, 5, 11, 15793, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Overlord Ror - In Combat - Cast Maul'),
(9464, 0, 1, 0, 0, 0, 100, 0, 12000, 18000, 17000, 21000, 0, 0, 11, 14100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,   'Overlord Ror - In Combat - Cast Terrifying Roar'),
(9464, 0, 2, 0, 2, 0, 100, 1, 0, 50, 0, 0, 0, 0, 39, 20, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                     'Overlord Ror - Between 0-50% Health - Call For Help (No Repeat)'), -- https://www.youtube.com/watch?v=mJFGtJ2fg9U
(9516, 0, 0, 0, 9, 0, 100, 0, 0, 0, 8000, 13000, 0, 15, 11, 17399, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Lord Banehollow - Within 0-15 Range - Cast Shadow Shock'),
(9516, 0, 1, 0, 9, 0, 100, 0, 0, 0, 12000, 21000, 0, 5, 11, 16247, 96, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Lord Banehollow - Within 0-5 Range - Cast Curse of Thorns (No Repeat)'),
(9517, 0, 0, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 0, 0, 11, 20825, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,            'Shadow Lord Fel dan - In Combat - Cast Shadow Bolt'),
(9517, 0, 1, 0, 0, 0, 100, 0, 9000, 14000, 11000, 15000, 0, 0, 11, 9081, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,    'Shadow Lord Fel dan - In Combat - Cast Shadow Bolt Volley'),
(9517, 0, 2, 0, 0, 0, 100, 0, 12000, 16000, 10000, 13000, 0, 0, 11, 16583, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Shadow Lord Fel dan - In Combat - Cast Shadow Shock'),
(9518, 0, 0, 0, 0, 0, 100, 0, 5000, 8000, 14000, 19000, 0, 0, 11, 17227, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,    'Rakaiah - In Combat - Cast Curse of Weakness'),
(9518, 0, 1, 0, 9, 0, 100, 0, 0, 0, 5000, 9000, 0, 5, 11, 15968, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,             'Rakaiah - Within 0-5 Range - Cast Lash of Pain'),
(9860, 0, 0, 0, 0, 0, 100, 0, 0, 0, 18000, 24000, 0, 0, 11, 12888, 0, 0, 0, 0, 0, 6, 30, 0, 0, 0, 0, 0, 0, 0,          'Salia - In Combat - Cast Cause Insanity'),
(9861, 0, 0, 0, 0, 0, 100, 0, 6000, 12000, 21000, 26000, 0, 0, 11, 11639, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,    'Moora - In Combat - Cast Shadow Word: Pain'),
(9862, 0, 0, 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,           'Jaedenar Legionnaire - Within 0-8 Range - Cast Uppercut'),
(9877, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,     'Prince Xavalis - In Combat - Cast Jadefire'),
(9877, 0, 1, 0, 0, 0, 100, 0, 4000, 6000, 19000, 22000, 0, 0, 11, 11962, 96, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,    'Prince Xavalis - In Combat - Cast Immolate'),
(9878, 0, 0, 0, 9, 0, 100, 0, 0, 0, 25000, 28000, 0, 30, 11, 15661, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,         'Entropic Beast - Within 0-30 Range - Cast Immolate'),
(10648, 0, 0, 0, 0, 0, 100, 0, 6000, 9000, 16000, 19000, 0, 0, 11, 13578, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,    'Xavaric - In Combat - Cast Jadefire'),
(10648, 0, 1, 0, 9, 0, 100, 0, 3000, 6000, 6500, 7200, 0, 5, 11, 15496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,      'Xavaric - Within 0-5 Range - Cast Cleave'), -- https://www.youtube.com/watch?v=vrKLtNwHMvE
(14342, 0, 0, 0, 0, 0, 100, 0, 4000, 11000, 12000, 15000, 0, 0, 11, 13583, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'Ragepaw - On Aggro - Cast Curse of the Deadwood'),
(14344, 0, 0, 1, 2, 0, 100, 0, 0, 30, 0, 0, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                  'Mongress - Between 0-30% Health - Cast Enrage'),
(14344, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                      'Mongress - On Enrage - Say Line 0'),
(14345, 0, 0, 0, 9, 0, 100, 0, 0, 0, 180000, 180000, 0, 5, 11, 3335, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,         'The Ongar - Within 0-5 Range - Cast Dark Sludge');


DELETE FROM `creature_text` WHERE `CreatureID` IN (14344);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES 
(14344, 0, 0, '$s becomes enraged!', 16, 0, 100, 0, 0, 0, 10677, 0, 'Mongress enrage at 30%');

-- Ragepaw, fix movement
UPDATE `creature` SET `MovementType` = 1, `wander_distance` = 5 WHERE `id1` = 14342;

-- fix Irontree Wood Ancients
SET @IPPPHASE := 65536;

DELETE FROM `creature` WHERE `id1` IN (14524, 14525, 14526);
INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, 
`wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 
(614524, 14524, 0, 0, 1, 0, 0, 1, @IPPPHASE, 0, 6194.55, -1176.35, 369.056, 1.1098,  600, 0, 0, 3331, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(614525, 14525, 0, 0, 1, 0, 0, 1, @IPPPHASE, 0, 6197.12, -1135.42, 366.31,  5.28025, 600, 0, 0, 3331, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(614526, 14526, 0, 0, 1, 0, 0, 1, @IPPPHASE, 0, 6245.91, -1165.98, 366.325, 2.60598, 600, 0, 0, 3331, 0, 0, 0, 0, 0, '', 0, 0, NULL);


-- fix Withered Protector waypoints
DELETE FROM `creature` WHERE `id1` IN (7149);
INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, 
`wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 
(39489, 7149, 0, 0, 1, 0, 0, 1, 1, 0, 6177, -1322.46, 376.746, 5.71257, 300, 0, 1, 4318, 0, 2, 0, 0, 0, '', 0, 0, NULL);

DELETE FROM `creature_addon` WHERE `guid` IN (39489);
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES 
(39489, 394890, 0, 0, 0, 0, 0, NULL);

DELETE FROM `waypoint_data` WHERE `id` IN (394890);
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES 
--
(394890, 1, 6185.15, -1343.8, 376.725, NULL, 0, 0, 0, 100, 0),
(394890, 2, 6200.33, -1366.76, 376.234, NULL, 0, 0, 0, 100, 0),
(394890, 3, 6213.58, -1397.37, 376.786, NULL, 0, 0, 0, 100, 0),
(394890, 4, 6238.82, -1411.68, 372.25, NULL, 0, 0, 0, 100, 0),
(394890, 5, 6282.93, -1406.55, 370.638, NULL, 0, 0, 0, 100, 0),
(394890, 6, 6308.93, -1406.51, 370.295, NULL, 0, 0, 0, 100, 0),
(394890, 7, 6357.76, -1402.54, 370.945, NULL, 0, 0, 0, 100, 0),
(394890, 8, 6384.76, -1391.93, 373.277, NULL, 0, 0, 0, 100, 0),
(394890, 9, 6400.03, -1363.85, 375.462, NULL, 0, 0, 0, 100, 0),
(394890, 10, 6408.86, -1339.61, 376.621, NULL, 0, 0, 0, 100, 0),
(394890, 11, 6412.35, -1313.64, 379.794, NULL, 0, 0, 0, 100, 0),
(394890, 12, 6401.01, -1279.11, 379.081, NULL, 0, 0, 0, 100, 0),
(394890, 13, 6423.06, -1268.15, 381.728, NULL, 0, 0, 0, 100, 0),
(394890, 14, 6434.93, -1250.84, 385.469, NULL, 0, 0, 0, 100, 0),
(394890, 15, 6442.63, -1225.7, 390.61, NULL, 0, 0, 0, 100, 0),
(394890, 16, 6436.44, -1204.09, 392.225, NULL, 0, 0, 0, 100, 0),
(394890, 17, 6417.1, -1190.06, 389.608, NULL, 0, 0, 0, 100, 0),
(394890, 18, 6398.51, -1175.39, 387.424, NULL, 0, 0, 0, 100, 0),
(394890, 19, 6371.36, -1160.43, 382.567, NULL, 0, 0, 0, 100, 0),
(394890, 20, 6341.42, -1165.91, 375.961, NULL, 0, 0, 0, 100, 0),
(394890, 21, 6309.84, -1170.13, 371.677, NULL, 0, 0, 0, 100, 0),
(394890, 22, 6292.18, -1151.85, 371.909, NULL, 0, 0, 0, 100, 0),
(394890, 23, 6275.61, -1129.28, 370.882, NULL, 0, 0, 0, 100, 0),
(394890, 24, 6268.55, -1107.78, 371.973, NULL, 0, 0, 0, 100, 0),
(394890, 25, 6255.55, -1078.33, 374.156, NULL, 0, 0, 0, 100, 0),
(394890, 26, 6235.98, -1054.85, 380.147, NULL, 0, 0, 0, 100, 0),
(394890, 27, 6208.46, -1035.83, 386.205, NULL, 0, 0, 0, 100, 0),
(394890, 28, 6181.56, -1042.82, 385.763, NULL, 0, 0, 0, 100, 0),
(394890, 29, 6160.69, -1056.06, 385.035, NULL, 0, 0, 0, 100, 0),
(394890, 30, 6151.48, -1069.31, 386.8, NULL, 0, 0, 0, 100, 0),
(394890, 31, 6137.64, -1090.03, 378.23, NULL, 0, 0, 0, 100, 0),
(394890, 32, 6124.49, -1103.05, 378.807, NULL, 0, 0, 0, 100, 0),
(394890, 33, 6101.35, -1113.09, 381.406, NULL, 0, 0, 0, 100, 0),
(394890, 34, 6079.77, -1119.24, 383.916, NULL, 0, 0, 0, 100, 0),
(394890, 35, 6047.43, -1141.62, 380.805, NULL, 0, 0, 0, 100, 0),
(394890, 36, 6022.5, -1147.51, 380.638, NULL, 0, 0, 0, 100, 0),
(394890, 37, 6000.33, -1154.68, 382.455, NULL, 0, 0, 0, 100, 0),
(394890, 38, 5998.6, -1180.63, 377.405, NULL, 0, 0, 0, 100, 0),
(394890, 39, 6012.38, -1203.89, 375.345, NULL, 0, 0, 0, 100, 0),
(394890, 40, 5998.61, -1180.64, 377.405, NULL, 0, 0, 0, 100, 0),
(394890, 41, 6000.31, -1154.69, 382.554, NULL, 0, 0, 0, 100, 0),
(394890, 42, 6022.5, -1147.51, 380.638, NULL, 0, 0, 0, 100, 0),
(394890, 43, 6047.43, -1141.62, 380.805, NULL, 0, 0, 0, 100, 0),
(394890, 44, 6079.77, -1119.24, 383.916, NULL, 0, 0, 0, 100, 0),
(394890, 45, 6101.35, -1113.09, 381.406, NULL, 0, 0, 0, 100, 0),
(394890, 46, 6124.49, -1103.05, 378.807, NULL, 0, 0, 0, 100, 0),
(394890, 47, 6137.64, -1090.03, 378.23, NULL, 0, 0, 0, 100, 0),
(394890, 48, 6151.48, -1069.31, 386.8, NULL, 0, 0, 0, 100, 0),
(394890, 49, 6160.62, -1056.18, 385.022, NULL, 0, 0, 0, 100, 0),
(394890, 50, 6181.56, -1042.82, 385.763, NULL, 0, 0, 0, 100, 0),
(394890, 51, 6208.46, -1035.83, 386.205, NULL, 0, 0, 0, 100, 0),
(394890, 52, 6235.98, -1054.85, 380.147, NULL, 0, 0, 0, 100, 0),
(394890, 53, 6255.55, -1078.33, 374.156, NULL, 0, 0, 0, 100, 0),
(394890, 54, 6268.55, -1107.78, 371.973, NULL, 0, 0, 0, 100, 0),
(394890, 55, 6275.61, -1129.28, 370.882, NULL, 0, 0, 0, 100, 0),
(394890, 56, 6292.18, -1151.85, 371.909, NULL, 0, 0, 0, 100, 0),
(394890, 57, 6309.84, -1170.13, 371.677, NULL, 0, 0, 0, 100, 0),
(394890, 58, 6341.42, -1165.91, 375.961, NULL, 0, 0, 0, 100, 0),
(394890, 59, 6371.3, -1160.39, 382.554, NULL, 0, 0, 0, 100, 0),
(394890, 60, 6398.51, -1175.39, 387.424, NULL, 0, 0, 0, 100, 0),
(394890, 61, 6417.1, -1190.06, 389.608, NULL, 0, 0, 0, 100, 0),
(394890, 62, 6436.44, -1204.09, 392.225, NULL, 0, 0, 0, 100, 0),
(394890, 63, 6442.63, -1225.7, 390.61, NULL, 0, 0, 0, 100, 0),
(394890, 64, 6435, -1250.72, 385.471, NULL, 0, 0, 0, 100, 0),
(394890, 65, 6423.06, -1268.15, 381.728, NULL, 0, 0, 0, 100, 0),
(394890, 66, 6401.01, -1279.11, 379.081, NULL, 0, 0, 0, 100, 0),
(394890, 67, 6412.35, -1313.64, 379.794, NULL, 0, 0, 0, 100, 0),
(394890, 68, 6408.86, -1339.61, 376.621, NULL, 0, 0, 0, 100, 0),
(394890, 69, 6400.03, -1363.85, 375.462, NULL, 0, 0, 0, 100, 0),
(394890, 70, 6384.76, -1391.93, 373.277, NULL, 0, 0, 0, 100, 0),
(394890, 71, 6357.76, -1402.54, 370.945, NULL, 0, 0, 0, 100, 0),
(394890, 72, 6308.93, -1406.51, 370.295, NULL, 0, 0, 0, 100, 0),
(394890, 73, 6282.93, -1406.55, 370.638, NULL, 0, 0, 0, 100, 0),
(394890, 74, 6238.82, -1411.68, 372.25, NULL, 0, 0, 0, 100, 0),
(394890, 75, 6213.58, -1397.37, 376.786, NULL, 0, 0, 0, 100, 0),
(394890, 76, 6200.33, -1366.76, 376.234, NULL, 0, 0, 0, 100, 0),
(394890, 77, 6185.15, -1343.8, 376.725, NULL, 0, 0, 0, 100, 0),
(394890, 78, 6178.72, -1323.57, 376.671, NULL, 0, 0, 0, 100, 0);
