/* smart scripts */
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN 
(11685, 11686, 11687, 11688, 11777, 11785, 11786, 11787, 11790, 11791, 11792, 11793, 11794, 12203, 12206, 12207, 12216, 12219, 12220, 12221, 12222, 12223, 12224, 12236, 12258, 13141, 13142, 13323, 13533, 13596, 13601, 13696, 13718);
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` IN 
(11685, 11686, 11687, 11688, 11777, 11785, 11786, 11787, 11790, 11791, 11792, 11793, 11794, 12203, 12206, 12207, 12216, 12219, 12220, 12221, 12222, 12223, 12224, 12236, 12258, 13141, 13142, 13323, 13533, 13596, 13601, 13696, 13718);

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 
--
(11685, 0, 0, 0, 0, 0, 100, 0, 7000, 12000, 21000, 25000, 0, 0, 11, 11639, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Maraudine Priest - In Combat - Cast Shadow Word: Pain'),
(11685, 0, 1, 0, 9, 0, 100, 0, 0, 0, 7000, 12000, 0, 20, 11, 16568, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,        'Maraudine Priest - Within 0-20 Range - Cast Mind Flay'),
(11686, 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,             'Ghostly Raider - Outside 30 Range - Start Combat Movement'),
(11686, 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,              'Ghostly Raider - Within 5-30 Range - Stop Combat Movement'),
(11686, 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,               'Ghostly Raider - Within 0-5 Range - Start Combat Movement'),
(11686, 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,          'Ghostly Raider - Within 5-30 Range - Cast Shoot'),
(11686, 0, 4, 0, 9, 0, 100, 0, 0, 5000, 8000, 12000, 5, 30, 11, 17174, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,     'Ghostly Raider - Within 5-30 Range - Cast Concussive Shot'),
(11686, 0, 5, 0, 9, 0, 100, 0, 0, 0, 12000, 25000, 5, 20, 11, 6533, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,        'Ghostly Raider - Within 5-20 Range - Cast Net'),
(11687, 0, 0, 0, 9, 0, 100, 0, 0, 0, 6000, 9000, 0, 5, 11, 11976, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Ghostly Marauder - Within 0-5 Range - Cast Strike'),
(11688, 0, 0, 0, 0, 0, 100, 0, 0, 0, 25000, 35000, 0, 0, 11, 21048, 96, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,        'Cursed Centaur - In Combat  - Cast Curse of the Tribes'),
(11777, 0, 0, 0, 9, 0, 100, 0, 0, 0, 6000, 10000, 0, 10, 11, 5568, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,          'Shadowshard Rumbler - Within 0-10 Range - Cast Trample'),
(11785, 0, 0, 0, 0, 0, 100, 0, 1000, 6000, 15000, 25400, 0, 0, 11, 11020, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,   'Ambereye Basilisk - In Combat - Cast Petrify'),
(11786, 0, 0, 0, 0, 0, 100, 0, 1000, 6000, 15000, 25400, 0, 0, 11, 11020, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,   'Ambereye Reaver - In Combat - Cast Petrify'),
(11787, 0, 0, 0, 9, 0, 100, 0, 0, 0, 7000, 12000, 0, 5, 11, 14120, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Rock Borer - Within 0-5 Range - Cast Tunneler Acid'),
(11790, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 21061, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Putridus Satyr - On Reset - Cast Putrid Breath'),
(11790, 0, 1, 0, 0, 0, 100, 0, 8000, 15000, 12000, 15000, 0, 5, 11, 14873, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0, 'Putridus Satyr - Within 0-5 Range - Cast Sinister Strike'),
(11790, 0, 2, 0, 0, 0, 100, 0, 7000, 11000, 7000, 11000, 0, 0, 11, 12540, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,  'Putridus Satyr - Within 0-5 Range - Cast Gouge'),
(11791, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 21061, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Putridus Trickster - On Reset - Cast Putrid Breath'),
(11791, 0, 1, 0, 25, 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,                 'Putridus Trickster - On Reset - Cast Thrash'),
(11791, 0, 2, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 13299, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Putridus Trickster - On Reset - Cast Poison Proc'),
(11791, 0, 3, 0, 67, 0, 100, 0, 5000, 8000, 5000, 8000, 0, 5, 11, 15657, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,    'Putridus Trickster - Behind Target - Cast Backstab'),
(11792, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 21061, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Putridus Shadowstalker - On Reset - Cast Putrid Breath'),
(11792, 0, 1, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 22766, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Putridus Shadowstalker - On Reset - Cast Sneak'),
(11792, 0, 2, 0, 9, 0, 100, 0, 0, 5000, 12000, 15000, 0, 5, 11, 9080, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,      'Putridus Shadowstalker - In Combat - Cast Hamstring'),
(11792, 0, 3, 0, 0, 0, 100, 0, 8000, 16000, 21000, 30000, 0, 0, 11, 15087, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,  'Putridus Shadowstalker - In Combat - Cast Evasion'),
(11793, 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,             'Celebrian Dryad - Outside 30 Range - Start Combat Movement'),
(11793, 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,              'Celebrian Dryad - Within 5-30 Range - Stop Combat Movement'),
(11793, 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,               'Celebrian Dryad - Within 0-5 Range - Start Combat Movement'),
(11793, 0, 3, 0, 9, 0, 100, 0, 0, 0, 2000, 4000, 5, 30, 11, 16000, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,         'Celebrian Dryad - Within 5-30 Range - Cast Throw'),
(11793, 0, 4, 0, 0, 0, 100, 0, 8000, 16000, 12000, 16000, 0, 0, 11, 17201, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,  'Celebrian Dryad - Within 0-30 Range - Cast Dispel Magic'),
(11793, 0, 5, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 8601, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                 'Celebrian Dryad - On Reset - Cast Slowing Poison Proc'),   
(11793, 0, 6, 0, 4, 0, 50, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                       'Celebrian Dryad - On Aggro - Say Line 0'),
(11794, 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,             'Sister of Celebrian - Outside 30 Range - Start Combat Movement'),
(11794, 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,              'Sister of Celebrian - Within 5-30 Range - Stop Combat Movement'),
(11794, 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,               'Sister of Celebrian - Within 0-5 Range - Start Combat Movement'),
(11794, 0, 3, 0, 9, 0, 100, 0, 0, 0, 2000, 4000, 5, 30, 11, 15795, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Sister of Celebrian - Within 5-30 Range - Cast Throw'),
(11794, 0, 4, 0, 9, 0, 100, 0, 0, 0, 5000, 9000, 0, 5, 11, 14516, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Sister of Celebrian - Within 0-5 Range - Cast Strike'),
(11794, 0, 5, 0, 4, 0, 50, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                       'Sister of Celebrian - On Aggro - Say Line 0'),
(12203, 0, 0, 0, 2, 0, 100, 0, 0, 50, 60000, 60000, 0, 0, 11, 21808, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,        'Landslide - Between 0-50% Health - Cast Landslide'),
(12203, 0, 1, 0, 0, 0, 100, 0, 8000, 12000, 15000, 15000, 0, 0, 11, 10101, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,  'Landslide - In Combat - Cast Knock Away'),
(12203, 0, 2, 0, 0, 0, 100, 0, 2000, 7000, 8000, 8000, 0, 0, 11, 5568, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,      'Landslide - In Combat - Cast Trample'),
(12203, 0, 3, 0, 6, 0, 100, 512, 0, 0, 0, 0, 0, 0, 41, 500, 0, 0, 0, 0, 0, 11, 11783, 100, 0, 0, 0, 0, 0, 0,          'Landslide - On death - Despawn minions'),
(12206, 0, 0, 0, 9, 0, 100, 0, 0, 0, 4000, 4000, 25, 60, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,             'Primordial Behemoth - Outside 25 Range - Start Combat Movement'),
(12206, 0, 1, 0, 9, 0, 100, 0, 0, 0, 4000, 4000, 5, 25, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,              'Primordial Behemoth - Within 5-25 Range - Stop Combat Movement'),
(12206, 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,               'Primordial Behemoth - Within 0-5 Range - Start Combat Movement'),
(12206, 0, 3, 0, 9, 0, 100, 0, 0, 0, 2300, 3900, 5, 25, 11, 21071, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,         'Primordial Behemoth - Within 5-25 Range - Cast Boulder'),
(12206, 0, 4, 0, 9, 0, 100, 0, 0, 0, 8000, 13000, 0, 8, 11, 5568, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,           'Primordial Behemoth - Within 0-8 Range - Cast Trample'),
(12207, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 21788, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                'Thessala Hydra - On Reset - Cast Deadly Poison'),
(12207, 0, 1, 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,   'Thessala Hydra - In Combat - Cast Thrash'),
(12207, 0, 2, 0, 9, 0, 100, 0, 1000, 9000, 12000, 18000, 0, 5, 11, 21790, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,   'Thessala Hydra - Within 0-5 Range - Cast Aqua Jet'),
(12216, 0, 0, 0, 9, 0, 100, 0, 0, 0, 2000, 4000, 0, 30, 11, 21067, 96, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,         'Poison Sprite - Within 0-30 Range - Cast Poison Bolt'),
(12216, 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,                    'Poison Sprite - Between 0-15% Health - Flee For Assist (No Repeat)'),
(12219, 0, 0, 0, 9, 0, 100, 0, 0, 0, 6000, 11000, 0, 10, 11, 21749, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,         'Barbed Lasher - Within 0-10 Range - Cast Thorn Volley'),
(12220, 0, 0, 0, 0, 0, 100, 0, 0, 0, 9000, 17000, 0, 0, 11, 11922, 32, 1, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 0,       'Constrictor Vine - Within 0-30 Range - Cast Entangling Roots'),
(12221, 0, 0, 0, 9, 0, 100, 0, 0, 7000, 10000, 15000, 0, 5, 11, 21070, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,      'Noxious Slime - Within 0-5 Range - Cast Noxious Cloud'),
(12221, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 21070, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                 'Noxious Slime - On Just Died - Cast Noxious Cloud'),
(12222, 0, 0, 0, 9, 0, 100, 0, 0, 7000, 22000, 26000, 0, 5, 11, 21070, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,      'Creeping Sludge - Within 0-5 Range - Cast Noxious Cloud'),
(12222, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 21070, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                 'Creeping Sludge - On Just Died - Cast Noxious Cloud'),
(12223, 0, 0, 0, 0, 0, 100, 0, 4000, 7000, 6000, 11000, 0, 0, 11, 11428, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,    'Cavern Lurker - Within 0-5 Range - Cast Knockdown'),
(12224, 0, 0, 0, 2, 0, 100, 0, 0, 75, 21000, 26000, 0, 0, 11, 7948, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,         'Cavern Shambler - Between 0-75% Health - Cast Wild Regeneration'),
(12224, 0, 1, 0, 0, 0, 100, 0, 6000, 11000, 6000, 11000, 0, 0, 11, 16790, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,   'Cavern Shambler - In Combat - Cast Knockdown'),
--
(12236, 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,             'Lord Vyletongue - Outside 30 Range - Start Combat Movement'),
(12236, 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,              'Lord Vyletongue - Within 5-30 Range - Stop Combat Movement'),
(12236, 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,               'Lord Vyletongue - Within 0-5 Range - Start Combat Movement'),
(12236, 0, 3, 0, 9, 0, 100, 0, 0, 0, 2000, 2000, 5, 30, 11, 16100, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Lord Vyletongue - Within 5-30 Range - Cast Shoot'),
(12236, 0, 4, 0, 0, 0, 100, 0, 3000, 7000, 7000, 11000, 0, 0, 11, 21390, 0, 0, 0, 0, 0, 28, 30, 1, 1, 5, 0, 0, 0, 0,  'Lord Vyletongue - Within 5-30 Range - Cast Multi-Shot'),
(12236, 0, 5, 0, 0, 0, 100, 0, 15000, 15000, 15000, 15000, 0, 0, 11, 21655, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Vyletongue - In Combat - Cast Blink'),
(12236, 0, 6, 0, 0, 0, 100, 0, 13000, 13000, 15000, 15000, 0, 0, 11, 7964, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,  'Lord Vyletongue - In Combat - Cast Smoke Bomb'),  
(12258, 0, 0, 0, 0, 0, 100, 0, 3000, 7000, 7000, 11000, 0, 0, 11, 40504, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,   'Razorlash - Within 0-5 Range - Cast Cleave'),
(12258, 0, 1, 0, 0, 0, 85, 0, 8000, 12000, 12000, 16000, 0, 0, 11, 15976, 0, 0, 0, 0, 0, 21, 5, 0, 0, 0, 0, 0, 0, 0,  'Razorlash - Within 0-5 Range - Cast Puncture'),
(12258, 0, 2, 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,   'Razorlash - In Combat - Cast Thrash'),
(13141, 0, 0, 0, 9, 0, 100, 0, 0, 5000, 7000, 10000, 0, 5, 11, 13446, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,       'Deeprot Stomper - In Combat - Cast Strike'),
(13141, 0, 1, 0, 0, 0, 100, 0, 11000, 16000, 15000, 21000, 0, 0, 11, 11876, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Deeprot Stomper - In Combat - Cast War Stomp'),
(13142, 0, 0, 0, 1, 0, 100, 0, 1000, 5000, 90000, 90000, 0, 0, 11, 21337, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,  'Deeprot Tangler - Out of Combat - Cast Thorns'),
(13142, 0, 1, 0, 0, 0, 100, 0, 4000, 11000, 17000, 21000, 0, 0, 11, 21331, 0, 0, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 0, 'Deeprot Tangler - In Combat - Cast Entangling Roots'),
(13323, 0, 0, 0, 9, 0, 100, 0, 1000, 10000, 10000, 14000, 0, 8, 11, 8281, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,   'Subterranean Diemetradon - Within 0-8 Range - Cast Sonic Burst'),
(13533, 0, 0, 0, 9, 0, 100, 0, 0, 0, 30000, 45000, 0, 5, 11, 5413, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Spewed Larva - Within 0-5 Range - Cast Noxious Catalyst'),
(13533, 0, 1, 2, 54, 0, 100, 512, 0, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 929.95, -353.66, -50.47, 0,  'Spewed Larva - Is Summoned By - Move To Pos'),
(13533, 0, 2, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 0, 89, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,                 'Spewed Larva - Is Summoned By - Random Move'),
(13596, 0, 0, 0, 9, 0, 100, 0, 0, 0, 7000, 9000, 0, 5, 11, 15976, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,           'Rotgrip - Within 0-5 Range - Cast Puncture'),
(13596, 0, 1, 0, 9, 0, 100, 0, 0, 0, 11000, 15000, 0, 5, 11, 16495, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,         'Rotgrip - Within 0-5 Range - Cast Fatal Bite'),
(13601, 0, 0, 0, 4, 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,                      'Tinkerer Gizlock - On Aggro - Say Line 0'),
(13601, 0, 1, 0, 0, 0, 100, 0, 0, 0, 2000, 4000, 0, 0, 11, 16100, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,          'Tinkerer Gizlock - In Combat - Cast Shoot'),
(13601, 0, 2, 0, 0, 0, 100, 0, 2000, 3000, 7000, 8000, 0, 0, 11, 9143, 0, 0, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 0,     'Tinkerer Gizlock - In Combat - Cast Bomb'),
(13601, 0, 3, 0, 0, 0, 100, 0, 5000, 5000, 7000, 8000, 0, 0, 11, 29419, 0, 0, 0, 0, 0, 5, 20, 0, 0, 0, 0, 0, 0, 0,    'Tinkerer Gizlock - In Combat - Cast Flash Bomb'),
(13601, 0, 4, 0, 0, 0, 100, 0, 7000, 8000, 16000, 20000, 0, 0, 11, 21833, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,   'Tinkerer Gizlock - In Combat - Cast Goblin Dragon Gun'),
(13696, 0, 0, 0, 0, 0, 100, 0, 4000, 11000, 30000, 45000, 0, 5, 11, 5413, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0,   'Noxxious Scion - Within 0-5 Range - Cast Noxious Catalyst'),
(13696, 0, 1, 0, 0, 0, 100, 0, 1000, 2000, 14000, 21000, 0, 0, 11, 21068, 96, 1, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 0, 'Noxxious Scion - In Combat - Cast Corruption'),
(13718, 0, 0, 0, 0, 0, 100, 0, 5400, 6200, 25900, 34600, 0, 0, 11, 15848, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,   'The Nameless Prophet - In Combat - Cast Festering Rash'),
(13718, 0, 1, 0, 0, 0, 100, 0, 3000, 11000, 30000, 30000, 0, 0, 11, 16098, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'The Nameless Prophet - In Combat - Cast Curse of Blood');


/* fix patrols */

-- remove old patrols
DELETE FROM `creature` WHERE `guid` IN 
(55465, 55471, 56485, 56501, 56515, 88989);

DELETE FROM `waypoint_data` WHERE `id` IN 
(554650, 554710, 564850, 565010, 565150, 889890);

DELETE FROM `creature_addon` WHERE `guid` IN
(55465, 55471, 56485, 56501, 56515, 88989);


-- create new patrols
SET @CGUID  := 652000;
SET @WPID   := 6520000;

DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+1 AND @CGUID+32;
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
--
(@CGUID+1, 11784, 0, 0, 349, 0, 0, 1, 1, 0, 227.498, -193.664, -109.02, 6.21728, 7200, 0, 1, 6168, 0, 2, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+2, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 225.37, -191.81, -108.987, 6.2428, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+3, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 225.182, -195.162, -108.903, 6.22709, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+4, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 222.56, -191.69, -108.879, 6.22709, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+5, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 222.374, -195.005, -108.807, 6.22709, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
--
(@CGUID+6, 11784, 0, 0, 349, 0, 0, 1, 1, 0, 67.7583, -186.77, -169.95, 3.78471, 7200, 0, 1, 6168, 0, 2, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+7, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 68.9004, -184.058, -169.95, 3.78471, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+8, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 72.4579, -185.154, -169.95, 3.78471, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+9, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 70.6064, -182.683, -169.95, 3.78471, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+10, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 70.7054, -186.467, -169.95, 3.78471, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
--
(@CGUID+11, 11784, 0, 0, 349, 0, 0, 1, 1, 0, 176.57, -286.029, -171.042, 2.75191, 7200, 0, 1, 6168, 0, 2, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+12, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 178.502, -288.214, -171.021, 2.75191, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+13, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 181.745, -286.589, -171.019, 2.75191, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+14, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 179.51, -285.758, -171.019, 2.75191, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+15, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 180.706, -289.119, -171.019, 2.75191, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
--
(@CGUID+16, 11784, 0, 0, 349, 0, 0, 1, 1, 0, 315.647, -333.172, -116.844, 1.28904, 7200, 0, 1, 6168, 0, 2, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+17, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 312.955, -337.557, -117.047, 1.28904, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+18, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 313.573, -335.419, -116.951, 1.28904, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+19, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 316.162, -336.169, -116.976, 1.28904, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+20, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 315.659, -338.339, -117.074, 1.28904, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
--
(@CGUID+21, 11784, 0, 0, 349, 0, 0, 1, 1, 0, 259.178, -103.167, -129.604, 4.46583, 7200, 0, 1, 6168, 0, 2, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+22, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 262.973, -97.5651, -129.62, 4.44816, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+23, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 258.11, -99.3433, -129.613, 4.44031, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+24, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 258.991, -96.2858, -129.62, 4.44816, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+25, 11783, 0, 0, 349, 0, 0, 1, 1, 0, 262.211, -100.487, -129.621, 4.44031, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
--
(@CGUID+26, 11784, 0, 0, 349, 0, 0, 1, 1, 0, -115.499, -355.091, -170.418, 6.26452, 7200, 0, 1, 6168, 0, 2, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+27, 11783, 0, 0, 349, 0, 0, 1, 1, 0, -117.857, -353.642, -170.418, 6.26452, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+28, 11783, 0, 0, 349, 0, 0, 1, 1, 0, -117.908, -356.377, -170.418, 6.26452, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+29, 11783, 0, 0, 349, 0, 0, 1, 1, 0, -120.474, -353.593, -170.418, 6.26452, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+30, 11783, 0, 0, 349, 0, 0, 1, 1, 0, -120.526, -356.365, -170.418, 6.26452, 7200, 0, 0, 1919, 0, 0, 0, 0, 0, '', 0, 0, NULL),
--
(@CGUID+31, 11784, 0, 0, 349, 0, 0, 1, 1, 0, 121.858, -271.988, -108.677, 2.842, 7200, 0, 1, 6168, 0, 2, 0, 0, 0, '', 0, 0, NULL),
(@CGUID+32, 11784, 0, 0, 349, 0, 0, 1, 1, 0, 125.256, -273.096, -108.677, 2.81844, 7200, 0, 0, 6168, 0, 0, 0, 0, 0, '', 0, 0, NULL);


DELETE FROM `creature_formations` WHERE `leaderGUID` IN (@CGUID+1, @CGUID+6, @CGUID+11, @CGUID+16, @CGUID+21, @CGUID+26, @CGUID+31);
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
--
(@CGUID+1, @CGUID+1, 0, 0, 515, 0, 0),
(@CGUID+1, @CGUID+2, 4, 90, 515, 0, 0),
(@CGUID+1, @CGUID+3, 4, 180, 515, 0, 0),
(@CGUID+1, @CGUID+4, 4, 270, 515, 0, 0),
(@CGUID+1, @CGUID+5, 4, 360, 515, 0, 0),
--
(@CGUID+6, @CGUID+6,  0, 0, 515, 0, 0),
(@CGUID+6, @CGUID+7,  4, 90, 515, 0, 0),
(@CGUID+6, @CGUID+8,  4, 180, 515, 0, 0),
(@CGUID+6, @CGUID+9,  4, 270, 515, 0, 0),
(@CGUID+6, @CGUID+10, 4, 360, 515, 0, 0),
--
(@CGUID+11, @CGUID+11, 0, 0, 515, 0, 0),
(@CGUID+11, @CGUID+12, 4, 90, 515, 0, 0),
(@CGUID+11, @CGUID+13, 4, 180, 515, 0, 0),
(@CGUID+11, @CGUID+14, 4, 270, 515, 0, 0),
(@CGUID+11, @CGUID+15, 4, 360, 515, 0, 0),
--
(@CGUID+16, @CGUID+16, 0, 0, 515, 0, 0),
(@CGUID+16, @CGUID+17, 4, 90, 515, 0, 0),
(@CGUID+16, @CGUID+18, 4, 180, 515, 0, 0),
(@CGUID+16, @CGUID+19, 4, 270, 515, 0, 0),
(@CGUID+16, @CGUID+20, 4, 360, 515, 0, 0),
--
(@CGUID+21, @CGUID+21, 0, 0, 515, 0, 0),
(@CGUID+21, @CGUID+22, 4, 90, 515, 0, 0),
(@CGUID+21, @CGUID+23, 4, 180, 515, 0, 0),
(@CGUID+21, @CGUID+24, 4, 270, 515, 0, 0),
(@CGUID+21, @CGUID+25, 4, 360, 515, 0, 0),
--
(@CGUID+26, @CGUID+26, 0, 0, 515, 0, 0),
(@CGUID+26, @CGUID+27, 4, 90, 515, 0, 0),
(@CGUID+26, @CGUID+28, 4, 180, 515, 0, 0),
(@CGUID+26, @CGUID+29, 4, 270, 515, 0, 0),
(@CGUID+26, @CGUID+30, 4, 360, 515, 0, 0),
--
(@CGUID+31, @CGUID+31, 0, 0, 515, 0, 0),
(@CGUID+31, @CGUID+32, 4, 180, 515, 0, 0);


DELETE FROM `creature_addon` WHERE `guid` IN (@CGUID+1, @CGUID+6, @CGUID+11, @CGUID+16, @CGUID+21, @CGUID+26, @CGUID+31);
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES 
(@CGUID+1,  @WPID+10,  0, 0, 0, 0, 0, NULL),
(@CGUID+6,  @WPID+60,  0, 0, 0, 0, 0, NULL),
(@CGUID+11, @WPID+110, 0, 0, 0, 0, 0, NULL),
(@CGUID+16, @WPID+160, 0, 0, 0, 0, 0, NULL),
(@CGUID+21, @WPID+210, 0, 0, 0, 0, 0, NULL),
(@CGUID+26, @WPID+260, 0, 0, 0, 0, 0, NULL),
(@CGUID+31, @WPID+310, 0, 0, 0, 0, 0, NULL);


DELETE FROM `waypoint_data` WHERE `id` IN (@WPID+10, @WPID+60, @WPID+110, @WPID+160, @WPID+210, @WPID+260, @WPID+310);
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES 
--
(@WPID+10, 1, 243.678, -193.979, -111.031, 6.27619, 0, 0, 0, 100, 0),
(@WPID+10, 2, 253.38, -189.594, -111.031, 0.843198, 0, 0, 0, 100, 0),
(@WPID+10, 3, 268.149, -163.982, -110.944, 1.08471, 0, 0, 0, 100, 0),
(@WPID+10, 4, 253.877, -189.793, -111.031, 0.933519, 0, 0, 0, 100, 0),
(@WPID+10, 5, 243.316, -194.941, -111.031, 3.07569, 0, 0, 0, 100, 0),
(@WPID+10, 6, 223.18, -193.094, -108.875, 3.07764, 0, 0, 0, 100, 0),
(@WPID+10, 7, 196.501, -189.217, -110.601, 2.95393, 0, 0, 0, 100, 0),
(@WPID+10, 8, 185.313, -178.479, -111.556, 1.91329, 0, 0, 0, 100, 0),
(@WPID+10, 9, 193.658, -155.764, -108.482, 1.122, 0, 0, 0, 100, 0),
(@WPID+10, 10, 203.756, -135.622, -100.755, 0.89618, 0, 0, 0, 100, 0),
(@WPID+10, 11, 221.955, -124.259, -92.336, 0.358189, 0, 0, 0, 100, 0),
(@WPID+10, 12, 242.38, -116.398, -87.8555, 0.126502, 0, 0, 0, 100, 0),
(@WPID+10, 13, 263.07, -116.2, -85.2756, 6.05429, 0, 0, 0, 100, 0),
(@WPID+10, 14, 277.569, -120.695, -83.5602, 2.74188, 0, 0, 0, 100, 0),
(@WPID+10, 15, 262.794, -116.152, -85.3045, 2.8538, 0, 0, 0, 100, 0),
(@WPID+10, 16, 250.694, -113.275, -86.9108, 3.17973, 0, 0, 0, 100, 0),
(@WPID+10, 17, 222.224, -123.708, -92.2021, 3.62151, 0, 0, 0, 100, 0),
(@WPID+10, 18, 203.299, -134.932, -100.688, 3.79626, 0, 0, 0, 100, 0),
(@WPID+10, 19, 193.242, -155.709, -108.516, 4.33033, 0, 0, 0, 100, 0),
(@WPID+10, 20, 185.109, -177.706, -111.554, 5.17069, 0, 0, 0, 100, 0),
(@WPID+10, 21, 195.292, -190.594, -110.763, 5.73618, 0, 0, 0, 100, 0),
(@WPID+10, 22, 216.335, -192.499, -108.772, 6.19171, 0, 0, 0, 100, 0),
--
(@WPID+60, 1, 56.9801, -192, -169.516, 0.411432, 0, 0, 0, 100, 0),
(@WPID+60, 2, 40.7979, -210.446, -169.157, 0.535136, 0, 0, 0, 100, 0),
(@WPID+60, 3, 35.6136, -240.482, -169.923, 4.5073, 0, 0, 0, 100, 0),
(@WPID+60, 4, 27.9846, -247.169, -169.868, 3.06611, 0, 0, 0, 100, 0),
(@WPID+60, 5, 1.92475, -244.457, -167.882, 3.13286, 0, 0, 0, 100, 0),
(@WPID+60, 6, -12.6583, -246.642, -168.379, 3.45683, 0, 0, 0, 100, 0),
(@WPID+60, 7, -28.6978, -253.577, -170.044, 3.5334, 0, 0, 0, 100, 0),
(@WPID+60, 8, -71.0858, -254.034, -170.42, 3.18194, 0, 0, 0, 100, 0),
(@WPID+60, 9, -30.0569, -254.596, -170.066, 6.26463, 0, 0, 0, 100, 0),
(@WPID+60, 10, -12.5464, -246.992, -168.38, 0.356469, 0, 0, 0, 100, 0),
(@WPID+60, 11, 2.27091, -244.83, -167.887, 0.162081, 0, 0, 0, 100, 0),
(@WPID+60, 12, 27.4851, -247.645, -169.889, 0.974963, 0, 0, 0, 100, 0),
(@WPID+60, 13, 35.8652, -240.591, -169.932, 0.709883, 0, 0, 0, 100, 0),
(@WPID+60, 14, 41.2133, -210.178, -169.221, 1.02797, 0, 0, 0, 100, 0),
(@WPID+60, 15, 57.4313, -191.886, -169.558, 0.617599, 0, 0, 0, 100, 0),
(@WPID+60, 16, 83.6652, -179.652, -169.616, 0.368236, 0, 0, 0, 100, 0),
(@WPID+60, 17, 94.4964, -181.337, -167.862, 6.15858, 0, 0, 0, 100, 0),
(@WPID+60, 18, 112.951, -189.233, -167.457, 2.69102, 0, 0, 0, 100, 0),
(@WPID+60, 19, 138.142, -197.966, -170.3, 6.06234, 0, 0, 0, 100, 0),
--
(@WPID+110, 1, 159.59, -283.916, -169.283, 2.93057, 0, 0, 0, 100, 0),
(@WPID+110, 2, 151.023, -281.649, -168.623, 2.81669, 0, 0, 0, 100, 0),
(@WPID+110, 3, 136.36, -263.728, -168.18, 2.23746, 0, 0, 0, 100, 0),
(@WPID+110, 4, 147.606, -241.705, -169.303, 1.13986, 0, 0, 0, 100, 0),
(@WPID+110, 5, 153.062, -216.033, -171.873, 1.48544, 0, 0, 0, 100, 0),
(@WPID+110, 6, 147.957, -241.377, -169.346, 1.21641, 0, 0, 0, 100, 0),
(@WPID+110, 7, 136.374, -264.028, -168.203, 5.91112, 0, 0, 0, 100, 0),
(@WPID+110, 8, 151.194, -281.606, -168.636, 5.7344, 0, 0, 0, 100, 0),
(@WPID+110, 9, 175.98, -286.547, -171.056, 6.06034, 0, 0, 0, 100, 0),
(@WPID+110, 10, 181.877, -304.81, -172.521, 3.42335, 0, 0, 0, 100, 0),
(@WPID+110, 11, 159.451, -311.633, -173.719, 3.46458, 0, 0, 0, 100, 0),
(@WPID+110, 12, 181.946, -305.139, -172.565, 3.49403, 0, 0, 0, 100, 0),
(@WPID+110, 13, 175.703, -286.646, -171.062, 3.31537, 0, 0, 0, 100, 0),
--
(@WPID+160, 1, 326.464, -296.43, -117.783, 1.30473, 0, 0, 0, 100, 0),
(@WPID+160, 2, 313.353, -334.909, -116.927, 4.39919, 0, 0, 0, 100, 0),
(@WPID+160, 3, 311.895, -379.274, -124.867, 4.68586, 0, 0, 0, 100, 0),
(@WPID+160, 4, 311.726, -403.035, -124.867, 2.97566, 0, 0, 0, 100, 0),
(@WPID+160, 5, 262.441, -399.177, -139.469, 3.05224, 0, 0, 0, 100, 0),
(@WPID+160, 6, 249.971, -392.379, -139.555, 0.515419, 0, 0, 0, 100, 0),
(@WPID+160, 7, 248.044, -380.112, -139.555, 1.15355, 0, 0, 0, 100, 0),
(@WPID+160, 8, 256.152, -359.017, -139.555, 1.62676, 0, 0, 0, 100, 0),
(@WPID+160, 9, 251.908, -335.014, -140.396, 1.8663, 0, 0, 0, 100, 0),
(@WPID+160, 10, 240.885, -324.87, -144.038, 2.32379, 0, 0, 0, 100, 0),
(@WPID+160, 11, 217.143, -320.844, -150.944, 2.94421, 0, 0, 0, 100, 0),
(@WPID+160, 12, 200.481, -333.593, -154.568, 4.05161, 0, 0, 0, 100, 0),
(@WPID+160, 13, 199.201, -357.017, -160.313, 2.48673, 0, 0, 0, 100, 0),
(@WPID+160, 14, 210.298, -375.491, -160.419, 4.95288, 0, 0, 0, 100, 0),
(@WPID+160, 15, 206.243, -388.476, -161.031, 2.92855, 0, 0, 0, 100, 0),
(@WPID+160, 16, 210.312, -375.602, -160.427, 1.8801, 0, 0, 0, 100, 0),
(@WPID+160, 17, 199.143, -357.163, -160.313, 3.30365, 0, 0, 0, 100, 0),
(@WPID+160, 18, 200.708, -333.995, -154.682, 0.046222, 0, 0, 0, 100, 0),
(@WPID+160, 19, 217.445, -321.173, -150.951, 6.03881, 0, 0, 0, 100, 0),
(@WPID+160, 20, 240.994, -325.132, -143.976, 5.97205, 0, 0, 0, 100, 0),
(@WPID+160, 21, 251.756, -335.184, -140.395, 4.80967, 0, 0, 0, 100, 0),
(@WPID+160, 22, 256.022, -359.356, -139.555, 4.84305, 0, 0, 0, 100, 0),
(@WPID+160, 23, 247.988, -380.451, -139.555, 6.12519, 0, 0, 0, 100, 0),
(@WPID+160, 24, 262.287, -399.738, -139.454, 6.0486, 0, 0, 0, 100, 0),
(@WPID+160, 25, 311.45, -403.473, -124.867, 2.75974, 0, 0, 0, 100, 0),
(@WPID+160, 26, 311.779, -378.331, -124.867, 1.34014, 0, 0, 0, 100, 0),
(@WPID+160, 27, 313.239, -335.107, -116.936, 1.55024, 0, 0, 0, 100, 0),
--
(@WPID+210, 1, 254.714, -123.744, -129.585, 4.45209, 0, 0, 0, 100, 0),
(@WPID+210, 2, 249.717, -143.084, -130.977, 1.22804, 0, 0, 0, 100, 0),
(@WPID+210, 3, 241.705, -152.859, -130.828, 3.90231, 0, 0, 0, 100, 0),
(@WPID+210, 4, 225.19, -174.88, -131.196, 4.295, 0, 0, 0, 100, 0),
(@WPID+210, 5, 216.367, -192.505, -131.121, 4.48153, 0, 0, 0, 100, 0),
(@WPID+210, 6, 210.892, -206.053, -131.159, 0.83926, 0, 0, 0, 100, 0),
(@WPID+210, 7, 222.222, -227.733, -131.151, 5.03329, 0, 0, 0, 100, 0),
(@WPID+210, 8, 230.399, -257.768, -131.1, 4.98617, 0, 0, 0, 100, 0),
(@WPID+210, 9, 244.347, -271.005, -131.595, 0.752865, 0, 0, 0, 100, 0),
(@WPID+210, 10, 272.18, -270.499, -122.481, 0.114717, 0, 0, 0, 100, 0),
(@WPID+210, 11, 244.072, -270.169, -131.595, 2.99715, 0, 0, 0, 100, 0),
(@WPID+210, 12, 230.555, -258.168, -131.104, 5.43975, 0, 0, 0, 100, 0),
(@WPID+210, 13, 222.295, -227.523, -131.156, 5.26108, 0, 0, 0, 100, 0),
(@WPID+210, 14, 211.285, -205.983, -131.159, 1.28697, 0, 0, 0, 100, 0),
(@WPID+210, 15, 215.055, -191.155, -131.497, 1.11418, 0, 0, 0, 100, 0),
(@WPID+210, 16, 225.565, -175.262, -131.202, 0.949247, 0, 0, 0, 100, 0),
(@WPID+210, 17, 242.331, -152.888, -130.797, 0.890342, 0, 0, 0, 100, 0),
(@WPID+210, 18, 249.717, -142.038, -130.998, 1.16719, 0, 0, 0, 100, 0),
(@WPID+210, 19, 254.585, -124.072, -129.583, 1.38514, 0, 0, 0, 100, 0),
(@WPID+210, 20, 259.231, -98.2625, -129.617, 1.46368, 0, 0, 0, 100, 0),
(@WPID+210, 21, 247.24, -90.8912, -129.621, 2.8617, 0, 0, 0, 100, 0),
(@WPID+210, 22, 259.057, -98.4539, -129.616, 4.63474, 0, 0, 0, 100, 0),
--
(@WPID+260, 1, -96.1339, -354.572, -171.045, 0.063807, 0, 0, 0, 100, 0),
(@WPID+260, 2, -63.9881, -351.826, -178.288, 4.12041, 0, 0, 0, 100, 0),
(@WPID+260, 3, -54.1475, -362.745, -178.832, 4.76443, 0, 0, 0, 100, 0),
(@WPID+260, 4, -52.3602, -396.815, -189.262, 4.59164, 0, 0, 0, 100, 0),
(@WPID+260, 5, -58.3847, -415.386, -189.257, 1.31067, 0, 0, 0, 100, 0),
(@WPID+260, 6, -76.9094, -424.699, -189.258, 3.12102, 0, 0, 0, 100, 0),
(@WPID+260, 7, -109.088, -413.472, -189.262, 2.76763, 0, 0, 0, 100, 0),
(@WPID+260, 8, -77.3114, -424.763, -189.258, 3.09749, 0, 0, 0, 100, 0),
(@WPID+260, 9, -58.4287, -415.558, -189.258, 1.88798, 0, 0, 0, 100, 0),
(@WPID+260, 10, -52.6891, -396.642, -189.261, 2.02935, 0, 0, 0, 100, 0),
(@WPID+260, 11, -54.5636, -362.479, -178.835, 2.63411, 0, 0, 0, 100, 0),
(@WPID+260, 12, -65.4308, -352.772, -178.288, 3.12694, 0, 0, 0, 100, 0),
(@WPID+260, 13, -97.4515, -354.599, -170.972, 3.17406, 0, 0, 0, 100, 0),
(@WPID+260, 14, -128.123, -359.106, -170.419, 3.70027, 0, 0, 0, 100, 0),
--
(@WPID+310, 1, 97.5771, -265.692, -108.677, 2.86754, 0, 0, 0, 100, 0),
(@WPID+310, 2, 74.6794, -269.604, -108.677, 6.20351, 0, 0, 0, 100, 0),
(@WPID+310, 3, 63.6577, -274.094, -108.677, 2.85381, 0, 0, 0, 100, 0),
(@WPID+310, 4, 58.4969, -263.599, -108.677, 1.68751, 0, 0, 0, 100, 0),
(@WPID+310, 5, 67.9595, -250.269, -108.677, 1.57951, 0, 0, 0, 100, 0),
(@WPID+310, 6, 69.2626, -224.288, -108.677, 1.50294, 0, 0, 0, 100, 0),
(@WPID+310, 7, 69.137, -208.946, -109.179, 1.98792, 0, 0, 0, 100, 0),
(@WPID+310, 8, 59.6552, -196.309, -111.317, 5.38278, 0, 0, 0, 100, 0),
(@WPID+310, 9, 39.3634, -179.051, -116.691, 2.27063, 0, 0, 0, 100, 0),
(@WPID+310, 10, 24.5369, -159.175, -120.637, 2.11553, 0, 0, 0, 100, 0),
(@WPID+310, 11, 10.9382, -130.643, -123.862, 1.62858, 0, 0, 0, 100, 0),
(@WPID+310, 12, 6.63348, -106.12, -124.069, 4.87817, 0, 0, 0, 100, 0),
(@WPID+310, 13, 16.3432, -80.3568, -127.227, 1.19073, 0, 0, 0, 100, 0),
(@WPID+310, 14, 29.0805, -41.1455, -129.173, 1.41455, 0, 0, 0, 100, 0),
(@WPID+310, 15, 31.2131, -23.8665, -127.626, 4.5208, 0, 0, 0, 100, 0),
(@WPID+310, 16, 28.812, -40.9273, -129.167, 1.51468, 0, 0, 0, 100, 0),
(@WPID+310, 17, 16.2339, -80.2509, -127.248, 4.63074, 0, 0, 0, 100, 0),
(@WPID+310, 18, 6.67015, -106.117, -124.068, 4.8585, 0, 0, 0, 100, 0),
(@WPID+310, 19, 11.1211, -130.423, -123.867, 4.96256, 0, 0, 0, 100, 0),
(@WPID+310, 20, 24.8766, -158.901, -120.661, 5.10393, 0, 0, 0, 100, 0),
(@WPID+310, 21, 39.7785, -178.82, -116.663, 5.37097, 0, 0, 0, 100, 0),
(@WPID+310, 22, 59.973, -196.269, -111.292, 5.54768, 0, 0, 0, 100, 0),
(@WPID+310, 23, 69.357, -208.824, -109.183, 5.32385, 0, 0, 0, 100, 0),
(@WPID+310, 24, 69.16, -224.245, -108.678, 4.59539, 0, 0, 0, 100, 0),
(@WPID+310, 25, 67.9084, -250.483, -108.678, 4.68376, 0, 0, 0, 100, 0),
(@WPID+310, 26, 58.4453, -263.11, -108.678, 4.21645, 0, 0, 0, 100, 0),
(@WPID+310, 27, 63.8216, -273.488, -108.678, 5.86185, 0, 0, 0, 100, 0),
(@WPID+310, 28, 74.8763, -269.7, -108.678, 0.293375, 0, 0, 0, 100, 0),
(@WPID+310, 29, 98.1819, -265.481, -108.678, 6.16815, 0, 0, 0, 100, 0),
(@WPID+310, 30, 128.322, -274.962, -108.678, 5.98555, 0, 0, 0, 100, 0);


-- The Nameless Prophet, should have multiple spawn locations and almost instant respawn - https://www.youtube.com/watch?v=NzIngiFj1lQ
DELETE FROM `creature` WHERE `id1` = 13718;
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
(@CGUID+41, 13718, 0, 0, 1, 0, 0, 1, 1, 0, -1417.84, 2969.18, 124.195, 1.51197, 5, 0, 0, 3804, 1332, 0, 0, 0, 0, '', NULL, 0, NULL),
(@CGUID+42, 13718, 0, 0, 1, 0, 0, 1, 1, 0, -1472.66, 2964.98, 122.436, 4.91161, 5, 0, 0, 3804, 1332, 0, 0, 0, 0, '', NULL, 0, NULL),
(@CGUID+43, 13718, 0, 0, 1, 0, 0, 1, 1, 0, -1440.87, 3008.59, 115.386, 2.80674, 5, 0, 0, 3804, 1332, 0, 0, 0, 0, '', NULL, 0, NULL),
(@CGUID+44, 13718, 0, 0, 1, 0, 0, 1, 1, 0, -1419.18, 2940.57, 95.2565, 3.62354, 5, 0, 0, 3804, 1332, 0, 0, 0, 0, '', NULL, 0, NULL);

DELETE FROM `creature_addon` WHERE `guid` IN (29070, @CGUID+41, @CGUID+42, @CGUID+43, @CGUID+44);
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES 
(@CGUID+41, 0, 0, 0, 1, 0, 0, NULL),
(@CGUID+42, 0, 0, 0, 1, 0, 0, NULL),
(@CGUID+43, 0, 0, 0, 1, 0, 0, NULL),
(@CGUID+44, 0, 0, 0, 1, 0, 0, NULL);

DELETE FROM `pool_creature` WHERE `pool_entry` = 601012;
INSERT INTO `pool_creature` (`guid`, `pool_entry`, `chance`, `description`) VALUES 
(@CGUID+41, 601012, 0, 'The Nameless Prophet'),
(@CGUID+42, 601012, 0, 'The Nameless Prophet'),
(@CGUID+43, 601012, 0, 'The Nameless Prophet'),
(@CGUID+44, 601012, 0, 'The Nameless Prophet');

DELETE FROM `pool_template` WHERE `entry` = 601012;
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`) VALUES 
(601012, 1, '');

-- Primordial Behemoth (12206), link giants together - https://www.youtube.com/watch?v=ookD9bng7kU&t=16m
DELETE FROM `creature_formations` WHERE `leaderGUID` IN (54658, 55338, 55344, 55345);
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES 
(54658, 54658, 0, 0, 3, 0, 0),
(54658, 54664, 0, 0, 3, 0, 0),
(55338, 55338, 0, 0, 3, 0, 0),
(55338, 55341, 0, 0, 3, 0, 0),
(55344, 55344, 0, 0, 3, 0, 0),
(55344, 55347, 0, 0, 3, 0, 0),
(55345, 55345, 0, 0, 3, 0, 0),
(55345, 55348, 0, 0, 3, 0, 0);

-- Spewed Larva shouldn't be skinnable
UPDATE `creature_template` SET `skinloot` = 0 WHERE `entry` = 13533;

-- Deep Borer (11789), wrong skinning loot
UPDATE `creature_template` SET `skinloot` = 100013 WHERE `entry` = 11789;

-- Legends of Maraudon
UPDATE `quest_template` SET `QuestCompletionLog` = 'Return to Celebras the Redeemed.' WHERE `ID` = 7044;

-- The Pariah's Instructions
UPDATE `quest_template` SET `QuestCompletionLog` = 'Return to Centaur Pariah in Desolace.' WHERE `ID` = 7067;
