Guest User

Untitled

a guest
Nov 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. -- Withered Corpse SAI
  2. SET @ENTRY := 20561; -- Talbuk Doe
  3. SET @ENTRY_FLESH := 40368; -- Flesh
  4. SET @SPELL_PROTECTORATE_IGNITER := 35372; -- Protector Igniter
  5. UPDATE `creature_template` SET `AIName`='SmartAI',`unit_flags`=`unit_flags`|388 WHERE `entry`=@ENTRY;
  6. DELETE FROM `creature_template_addon` WHERE `entry`=@ENTRY;
  7. INSERT INTO `creature_template_addon` (`entry`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@ENTRY,0,0,1,0,"29266"); -- Emote death spell (Permanent Feign Death)
  8. DELETE FROM `creature_ai_scripts` WHERE `creature_id`=@ENTRY;
  9. DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY,@ENTRY*100);
  10. 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
  11. (@ENTRY,0,0,0,11,0,100,0,0,0,0,0,22,1,0,0,0,0,0,0,0,0,0,0,0,0,0,"Withered Corpse - On Spawn - Set Phase 1"),
  12. (@ENTRY,0,1,0,8,1,100,0,@SPELL_PROTECTORATE_IGNITER,0,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0,"Withered Corpse - On Spellhit - Run Script"),
  13. (@ENTRY,0,2,0,9,0,100,1,15,20,0,0,36,@ENTRY_FLESH,0,0,0,0,0,1,0,0,0,0,0,0,0,"Withered Corpse - On Player Range - Change Into Flesh Meat"),
  14. (@ENTRY*100,9,0,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Withered Corpse - Script - Set Phase 0"),
  15. (@ENTRY*100,9,1,0,0,0,100,0,1000,1000,0,0,33,20561,0,0,0,0,0,7,0,0,0,0,0,0,0,"Withered Corpse - Script - Give Quest Credit"),
  16. (@ENTRY*100,9,2,0,0,0,100,0,1000,1000,0,0,36,@ENTRY_FLESH,0,0,0,0,0,1,0,0,0,0,0,0,0,"Withered Corpse - Script - Change Into Flesh Meat");
  17.  
  18. -- Protector Igniter can only be used inside Access Shaft Zeon
  19. -- We are not removing the previous one,just adding an extra check
  20. DELETE FROM `conditions` WHERE `SourceEntry`=35372 AND `ConditionValue1`=3880;
  21. INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
  22. (17,0,35372,0,23,3880,0,0,0,'',"Protector Igniter can only be used inside Access Shaft Zeon");
Add Comment
Please, Sign In to add comment