text:  
     /* Dungeon Normal-Heroic for 5 people */
      /* Trash Mobs */
  	
  -- Fel Orc Neophyte
  SET @ENTRY := 17429;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,4,0,100,7,0,0,0,0,11,22120,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Charge on Aggro'),
  (@ENTRY,0,1,0,0,0,100,6,3000,4000,120000,130000,11,8269,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Frenzy');
  
  -- Felguard Annihilator
  SET @ENTRY := 17400;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,4,0,100,3,0,0,0,0,11,58747,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Intercept on Aggro'),
  (@ENTRY,0,1,0,0,0,100,6,2000,5000,8000,22000,11,18072,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Uppercut'),
  (@ENTRY,0,2,0,0,0,100,6,6000,10000,7000,14000,11,15615,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Pummel');
  
  -- Felguard Brute
  SET @ENTRY := 18894;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,4,0,100,3,0,0,0,0,11,58747,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Intercept on Aggro'),
  (@ENTRY,0,1,0,0,0,100,6,2000,5000,8000,22000,11,18072,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Uppercut'),
  (@ENTRY,0,2,0,0,0,100,6,6000,10000,7000,14000,11,15615,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Pummel');
  	
  -- Felhound Manastalker
  SET @ENTRY := 17401;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,0,0,100,6,2000,2000,11000,12000,11,13321,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Mana Burn'),
  (@ENTRY,0,1,0,0,0,100,6,4000,8000,12000,13000,11,30849,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Spell Lock');
  
  -- Hellfire Familiar
  SET @ENTRY := 19016;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 on Aggro'),
  (@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving on Aggro'),
  (@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,11921,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt on Aggro'),
  (@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,11921,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt'),
  (@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving when not in bolt Range'),
  (@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving at 15 Yards'),
  (@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving when in bolt Range'),
  (@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 2 at 15% Mana'),
  (@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving at 15% Mana'),
  (@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 When Mana is above 30%'),
  (@ENTRY,0,10,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 on Aggro'),
  (@ENTRY,0,11,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving on Aggro'),
  (@ENTRY,0,12,0,4,1,100,5,0,0,0,0,11,14034,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt on Aggro'),
  (@ENTRY,0,13,0,9,1,100,4,0,40,3400,4700,11,14034,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt'),
  (@ENTRY,0,14,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving when not in bolt Range'),
  (@ENTRY,0,15,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving at 15 Yards'),
  (@ENTRY,0,16,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving when in bolt Range'),
  (@ENTRY,0,17,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 2 at 15% Mana'),
  (@ENTRY,0,18,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving at 15% Mana'),
  (@ENTRY,0,19,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 When Mana is above 30%'),
  (@ENTRY,0,20,0,0,1,100,4,6000,9000,6000,9000,11,13341,1,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Fire Blast');
  	
  -- Hellfire Imp
  SET @ENTRY := 17477;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 on Aggro'),
  (@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving on Aggro'),
  (@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,15242,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt on Aggro'),
  (@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,15242,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt'),
  (@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving when not in bolt Range'),
  (@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving at 15 Yards'),
  (@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving when in bolt Range'),
  (@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 2 at 15% Mana'),
  (@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving at 15% Mana'),
  (@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 When Mana is above 30%'),
  (@ENTRY,0,10,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 on Aggro'),
  (@ENTRY,0,11,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving on Aggro'),
  (@ENTRY,0,12,0,4,1,100,5,0,0,0,0,11,17290,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt on Aggro'),
  (@ENTRY,0,13,0,9,1,100,4,0,40,3400,4700,11,17290,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt'),
  (@ENTRY,0,14,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving when not in bolt Range'),
  (@ENTRY,0,15,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving at 15 Yards'),
  (@ENTRY,0,16,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving when in bolt Range'),
  (@ENTRY,0,17,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 2 at 15% Mana'),
  (@ENTRY,0,18,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving at 15% Mana'),
  (@ENTRY,0,19,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 When Mana is above 30%'),
  (@ENTRY,0,20,0,0,1,100,4,6000,9000,6000,9000,11,16144,1,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Fire Blast'),
  (@ENTRY,0,21,0,1,0,100,7,1000,1000,1000,1000,11,74919,2,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Dark Aura on Spawn');
  
  -- Laughing Skull Enforcer
  SET @ENTRY := 17370;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,4,0,10,7,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Say Text on Aggro'),
  (@ENTRY,0,1,0,9,0,100,6,0,5,9000,14000,11,14516,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Strike on Close'),
  (@ENTRY,0,2,0,0,0,100,6,4000,9000,9000,15000,11,15655,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Shield Slam');
  -- NPC talk text insert
  SET @ENTRY := 17370;
  DELETE FROM `creature_text` WHERE `entry`=@ENTRY;
  INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
  (@ENTRY,0,0, 'Lok Narash!',0,0,100,0,0,0, 'on Aggro Text');
  
  -- Laughing Skull Legionnaire
  SET @ENTRY := 17626;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,0,0,100,6,6000,7000,11000,12500,11,10966,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Uppercut'),
  (@ENTRY,0,1,0,2,0,100,7,0,30,0,0,11,8599,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Enrage at 30% HP'),
  (@ENTRY,0,2,0,2,0,100,7,0,30,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Say Text at 30% HP');
  -- NPC talk text insert
  SET @ENTRY := 17626;
  DELETE FROM `creature_text` WHERE `entry`=@ENTRY;
  INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
  (@ENTRY,0,0, '%s becomes enraged!',2,0,100,0,0,0, 'combat Enrage');
  	
  -- Laughing Skull Rogue
  SET @ENTRY := 17491;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,11,0,100,7,0,0,0,0,11,30991,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Stealth on Spawn'),
  (@ENTRY,0,1,0,7,0,100,7,0,0,0,0,11,30991,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Stealth on Evade'),
  (@ENTRY,0,2,0,4,0,100,7,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Say Text on Aggro'),
  (@ENTRY,0,3,0,9,0,100,6,0,5,4000,9000,11,34969,32,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Poison on Close'),
  (@ENTRY,0,4,0,0,0,100,6,1000,6000,15000,20000,11,6434,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Slice and Dice'),
  (@ENTRY,0,5,0,0,0,100,6,4000,8000,12000,15000,11,30832,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Kidney Shot');
  -- NPC talk text insert
  SET @ENTRY := 17491;
  DELETE FROM `creature_text` WHERE `entry`=@ENTRY;
  INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
  (@ENTRY,0,0, 'What a pathetic victim!',1,0,100,0,0,0, 'on Aggro Text');
  
  -- Laughing Skull Warden
  SET @ENTRY := 17624;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,1,0,100,6,1000,1000,120000,130000,11,38551,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Stealth Detection on Spawn'),
  (@ENTRY,0,1,0,0,0,100,6,500,1000,15000,15500,11,81219,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Battle Shout');
  
  -- Nascent Fel Orc
  SET @ENTRY := 17398;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,0,0,100,6,5000,11000,12000,16000,11,22427,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Concussion Blow'),
  (@ENTRY,0,1,0,0,0,100,6,4000,14000,13000,20000,11,31900,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Stomp');
  
  -- Seductress
  SET @ENTRY := 17399;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,0,0,100,6,1000,3000,13000,13000,11,32202,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Lash of Pain'),
  (@ENTRY,0,1,0,0,0,100,6,3000,6000,12000,17000,11,31865,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Seduction');
  	
  -- Shadowmoon Adept
  SET @ENTRY := 17397;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,0,0,100,6,1000,3000,12000,13000,11,3391,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Thrash'),
  (@ENTRY,0,1,0,13,0,100,6,2000,4500,20000,30000,11,11978,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Kick on Player Spell Cast'),
  (@ENTRY,0,2,0,1,0,100,7,1000,1000,1000,1000,11,51733,2,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Death Aura on Spawn');
  
  -- Shadowmoon Summoner
  SET @ENTRY := 17395;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 on Aggro'),
  (@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving on Aggro'),
  (@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,15242,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt on Aggro'),
  (@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,15242,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt'),
  (@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving when not in bolt Range'),
  (@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving at 15 Yards'),
  (@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving when in bolt Range'),
  (@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 2 at 15% Mana'),
  (@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving at 15% Mana'),
  (@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 When Mana is above 30%'),
  (@ENTRY,0,10,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 on Aggro'),
  (@ENTRY,0,11,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving on Aggro'),
  (@ENTRY,0,12,0,4,1,100,5,0,0,0,0,11,17290,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt on Aggro'),
  (@ENTRY,0,13,0,9,1,100,4,0,40,3400,4700,11,17290,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt'),
  (@ENTRY,0,14,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving when not in bolt Range'),
  (@ENTRY,0,15,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving at 15 Yards'),
  (@ENTRY,0,16,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving when in bolt Range'),
  (@ENTRY,0,17,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 2 at 15% Mana'),
  (@ENTRY,0,18,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving at 15% Mana'),
  (@ENTRY,0,19,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 When Mana is above 30%'),
  (@ENTRY,0,20,0,0,1,100,2,12000,14000,12000,14000,11,18399,1,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Flamestrike'),
  (@ENTRY,0,21,0,0,1,100,4,12000,14000,12000,14000,11,16102,1,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Flamestrike'),
  (@ENTRY,0,22,0,0,1,100,7,3000,5000,0,0,11,30853,1,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Summon Seductress'),
  (@ENTRY,0,23,0,1,1,100,7,2000,3000,0,0,11,30851,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Summon Felhound Manastalker');
  
  -- Shadowmoon Technician
  SET @ENTRY := 17414;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,0,0,100,2,3000,5000,14000,23000,11,30846,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Throw Proximity Bomb'),
  (@ENTRY,0,1,0,0,0,100,4,3000,5000,14000,23000,11,32784,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Throw Proximity Bomb'),
  (@ENTRY,0,2,0,0,0,100,2,4000,10000,4000,6000,11,40062,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Throw Dynamite'),
  (@ENTRY,0,3,0,0,0,100,4,4000,10000,4000,6000,11,40064,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Throw Dynamite'),
  (@ENTRY,0,4,0,0,0,100,6,5500,11500,24500,25000,11,6726,0,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Silence');
  
  -- Shadowmoon Warlock
  SET @ENTRY := 17371;
  UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
  DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
  INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
  (@ENTRY,0,0,0,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 on Aggro'),
  (@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving on Aggro'),
  (@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,12739,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt on Aggro'),
  (@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,12739,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt'),
  (@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving when not in bolt Range'),
  (@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving at 15 Yards'),
  (@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving when in bolt Range'),
  (@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 2 at 15% Mana'),
  (@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving at 15% Mana'),
  (@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 When Mana is above 30%'),
  (@ENTRY,0,10,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 on Aggro'),
  (@ENTRY,0,11,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving on Aggro'),
  (@ENTRY,0,12,0,4,1,100,5,0,0,0,0,11,15472,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt on Aggro'),
  (@ENTRY,0,13,0,9,1,100,4,0,40,3400,4700,11,15472,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast bolt'),
  (@ENTRY,0,14,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving when not in bolt Range'),
  (@ENTRY,0,15,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving at 15 Yards'),
  (@ENTRY,0,16,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stop Moving when in bolt Range'),
  (@ENTRY,0,17,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 2 at 15% Mana'),
  (@ENTRY,0,18,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Start Moving at 15% Mana'),
  (@ENTRY,0,19,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Set Phase 1 When Mana is above 30%'),
  (@ENTRY,0,20,0,0,1,100,2,2000,8000,14000,30000,11,32197,1,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Corruption'),
  (@ENTRY,0,21,0,0,1,100,4,2000,8000,14000,30000,11,37113,1,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Corruption'),
  (@ENTRY,0,22,0,0,1,100,6,6000,10000,14000,15000,11,13338,1,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Curse of Tongues'),
  (@ENTRY,0,23,0,0,1,100,4,5000,12000,25000,26000,11,32863,1,0,0,0,0,4,0,0,0,0,0,0,0,'Cast Seed of Corruption'),
  (@ENTRY,0,24,25,0,1,100,6,8000,11000,33000,35000,11,33111,1,0,0,0,0,11,18894,8,0,0,0,0,0,'Cast Fel Power'),
  (@ENTRY,0,25,0,61,1,100,6,0,0,0,0,11,33111,1,0,0,0,0,11,17400,8,0,0,0,0,0,'Cast Fel Power');
  
  