1. REPLACE INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
  2. ('74875','0','0','Амненнар восстанет из мёртвых!','14','0','0','0','0','46219','Death Speaker Blackthorn - Yell Agrro'),
  3. ('74875','1','0','Мои друзья займутся вами.','14','0','0','0','0','46224','Death Speaker Blackthorn - Yell on Summon Skeleton 1'),
  4. ('74875','2','0','Еще немного... Развлеките пока моих гостей.','14','0','0','0','0','46225','Death Speaker Blackthorn - Yell on Summon Skeleton 2'),
  5. ('74875','3','0','Слишком... поздно. С моей смертью Амненнар переродился…','14','0','0','0','0','46220','Death Speaker Blackthorn - Yell on Death'),
  6. ('74875','4','4','Ахаха, твоя душа теперь моя!','14','0','0','0','0','46221','Death Speaker Blackthorn - Yell on Kill 1'),
  7. ('74875','5','4','Ты больше не будешь мне мешать!','14','0','0','0','0','46222','Death Speaker Blackthorn - Yell on Kill 2'),
  8. ('74875','6','4','Вы боретесь с неизбежным','14','0','0','0','0','46223','Death Speaker Blackthorn - Yell on Kill 3');
  9. -- Death Speaker Blackthorn SAI
  10. SET @ENTRY := 74875;
  11. UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName`='' WHERE `entry` = 74875;
  12. DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
  13. 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
  14. (@ENTRY,0,0,0,4,0,100,2,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - Yell on Aggro."),
  15. (@ENTRY,0,1,0,0,0,100,2,1000,1000,1000,1000,45,1,1,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - Set Data 1 1 for health check."),
  16. (@ENTRY,0,2,0,0,0,100,2,1000,1000,1000,1000,45,1,2,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - Set Data 1 2 for health check."),
  17. (@ENTRY,0,3,0,0,0,100,2,6000,6000,12000,14000,11,151962,0,0,0,0,0,2,0,0,0,0,0,0,0,"Death Speaker Blackthorn - Cast Shockwave."),
  18. (@ENTRY,0,4,0,0,0,100,2,10000,10000,10000,10000,11,150615,66,0,0,0,0,5,0,0,0,0,0,0,0,"Death Speaker Blackthorn - Cast Searing Shadows."),
  19. (@ENTRY,0,5,0,38,0,100,3,1,1,0,0,11,150601,1,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - On Data Set 1 1 - Cast Summon Skeletons"),
  20. (@ENTRY,0,6,0,38,0,100,1,1,1,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - On Data Set 1 1 - Yell Summon Skeleton."),
  21. (@ENTRY,0,7,0,38,0,100,1,1,1,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - On Data Set 1 2 - Yell Summon Skeleton."),
  22. (@ENTRY,0,8,0,38,0,100,3,1,2,0,0,11,150601,1,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - On Data Set 1 1 - Cast Summon Skeletons"),
  23. (@ENTRY,0,9,0,38,0,100,2,1,3,5000,5000,11,150550,0,0,0,0,0,7,0,0,0,0,0,0,0,"Death Speaker Blackthorn - On Data Set 1 3 - Cast Shadowmend"),
  24. (@ENTRY,0,10,0,6,0,100,2,0,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - On Death - Yell Death."),
  25. (@ENTRY,0,11,0,5,0,100,2,0,0,1,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"Death Speaker Blackthorn - On Kill - Yell Kill.");
  26. -- Conditions generated by SAI-Editor
  27. DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceGroup`=7 AND `SourceEntry`=74875;
  28. INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
  29. (22,7,74875,0,0,38,1,66,4,0,0,"","Allow SAI only if health percent low or equal 66 %."),
  30. (22,8,74875,0,0,38,1,33,4,0,0,"","Allow SAI only if health percent low or equal 33 %."),
  31. (22,10,74875,0,0,38,0,50,4,0,0,"","Allow SAI only invoker health percent low or equal 50 %.");
  32. -- Splinterbone Warrior SAI
  33. SET @ENTRY := 74902;
  34. UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName`='' WHERE `entry` = 74875;
  35. DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
  36. 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
  37. (@ENTRY,0,0,0,0,0,100,2,8000,8000,8000,8000,11,150332,2,0,0,0,0,2,0,0,0,0,0,0,0,"Splinterbone Warrior - Cast Disrupting Dash"),
  38. (@ENTRY,0,1,0,0,0,100,2,10000,10000,6000,7000,11,151010,2,0,0,0,0,2,0,0,0,0,0,0,0,"Splinterbone Warrior - Cast Shield Smash"),
  39. (@ENTRY,0,2,0,0,0,100,2,2500,2500,5000,5000,45,1,3,0,0,0,0,23,0,0,0,0,0,0,0,"Splinterbone Warrior - Set Data 1 3 Death Speaker Blackthorn for Shadowmend spell.");
  40. -- Conditions generated by SAI-Editor
  41. DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceGroup`=7 AND `SourceEntry`=74902;
  42. INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
  43. (22,3,74902,0,0,38,1,50,4,0,0,"","Allow SAI only if health percent low or equal 50 %.");

Death Speaker Blackthorn.