Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- The Restless Dead (13110)
- SET @NPC_REANIMATED := 30202; -- Reanimated Crusader
- SET @SPELL_HOLY_WATER := 57806; -- Sprinkle Holy Water
- SET @SPELL_CREDIT := 57808; -- Freed Crusader Soul
- SET @NPC_SOUL := 30736; -- Released Soul
- UPDATE `quest_template` SET `RequiredSpellCast1`=0 WHERE `Id`=13110;
- UPDATE `creature_template` SET `unit_flags`=0x2000300 WHERE `entry`=@NPC_SOUL;
- DELETE FROM `creature_template_addon` WHERE `entry`=@NPC_SOUL;
- INSERT INTO `creature_template_addon` (`entry`,`mount`,`bytes1`,`bytes2`,`auras`) VALUES
- (@NPC_SOUL,0,0x3000000,0x1,'');
- UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@NPC_REANIMATED;
- DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid` IN (@NPC_REANIMATED);
- 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
- (@NPC_REANIMATED,0,0,0,8,0,100,1,@SPELL_HOLY_WATER,0,0,0,11,@SPELL_CREDIT,0,0,0,0,0,7,0,0,0,0,0,0,0,'Reanimated Crusader - On hit by spell Holy Water - cast Freed Crusader Soul'),
- (@NPC_REANIMATED,0,1,0,4,0,100,1,0,0,0,0,11,32674,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Avenger\'s Shield on Aggro'),
- (@NPC_REANIMATED,0,2,0,0,0,100,0,5000,5000,17800,19800,11,58154,0,0,0,0,0,2,0,0,0,0,0,0,0,'Cast Hammer of Injustice'),
- (@NPC_REANIMATED,0,3,0,2,0,100,1,0,45,0,0,11,58153,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Unholy Light at 45% HP'),
- (@NPC_REANIMATED,0,4,0,14,0,100,0,4000,10,20000,30000,11,58153,0,0,0,0,0,7,0,0,0,0,0,0,0,'Cast Unholy Light on Friendlies');
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=@SPELL_HOLY_WATER;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
- (13,1,@SPELL_HOLY_WATER,0,0,31,0,3,@NPC_REANIMATED,0,0,0,'','Sprinkle Holy Water target Reanimated Crusader'),
- (13,1,@SPELL_HOLY_WATER,0,0,36,0,0,0,0,1,0,'','Sprinkle Holy Water requires dead Reanimated Crusader');
Add Comment
Please, Sign In to add comment