Advertisement
Guest User

Lady DeathWhisper - Holystone Productions

a guest
May 7th, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --//////////////////////////////////
  2. --////   Holystone Productions  ////
  3. --////       Copy Right         ////
  4. --////  Blizzlike Repack v 3.0  ////
  5. --//////////////////////////////////
  6.  
  7. print("Loading Lady Deathwhisper")
  8.  
  9. --[ Npc's ID's ]--
  10.  
  11.   local LadyDeathwhisper                               = 36855
  12.   local NPC_Darnavan                                   = 38472
  13.   local NPC_Cult_Fanatic                               = 37890
  14.   local NPC_Cult_Adherent                              = 37949
  15.  
  16.  
  17. --[ Spells ]--
  18.  
  19.     -- Lady Deathwhisper
  20.    
  21.   local Spell_Mana_Barrier                             = 70842
  22.   local Spell_Shadow_Bolt_10N                          = 71254
  23.   local Spell_Shadow_Bolt_25N                          = 72008
  24.   local Spell_Shadow_Bolt_10HC                         = 72008
  25.   local Spell_Shadow_Bolt_25HC                         = 72504
  26.   local Spell_Death_and_Decay_10N                      = 71001
  27.   local Spell_Death_and_Decay_25N                      = 72109
  28.   local Spell_Death_and_Decay_10HC                     = 71001
  29.   local Spell_Death_and_Decay_25HC                     = 72109
  30.   local Spell_Dominate_Mind                            = 71289
  31.   local Spell_Dark_Empowerment                         = 70901
  32.   local Spell_Frostbolt_10N                            = 71420
  33.   local Spell_Frostbolt_25N                            = 72007
  34.   local Spell_Frostbolt_10HC                           = 72501
  35.   local Spell_Frostbolt_25HC                           = 72502
  36.   local Spell_FrostVolley                              = 72905
  37.   local Spell_Touch_of_Insignificance                  = 71204
  38.   local Spell_Berserk                                  = 61714
  39.  
  40.     -- All Adds
  41.   local SPELL_TELEPORT_VISUAL                          = 41236
  42.  
  43.     -- Fanatics
  44.    
  45.   local SPELL_DARK_TRANSFORMATION                      = 70900        
  46.   local SPELL_NECROTIC_STRIKE                          = 70659
  47.   local SPELL_SHADOW_CLEAVE                            = 70670
  48.   local SPELL_VAMPIRIC_MIGHT                           = 70674
  49.   local SPELL_FANATIC_S_DETERMINATION                  = 71235
  50.   local SPELL_DARK_MARTYRDOM_FANATIC                   = 71236
  51.  
  52.     -- Adherents
  53.    
  54.   local SPELL_DARK_EMPOWERMENT                         = 70901
  55.   local SPELL_FROST_FEVER                              = 67767
  56.   local SPELL_DEATHCHILL_BOLT                          = 70594
  57.   local SPELL_DEATHCHILL_BLAST                         = 70906
  58.   local SPELL_CURSE_OF_TORPOR                          = 71237
  59.   local SPELL_SHORUD_OF_THE_OCCULT                     = 70768
  60.   local SPELL_ADHERENT_S_DETERMINATION                 = 71234
  61.   local SPELL_DARK_MARTYRDOM_ADHERENT                  = 70903
  62.  
  63.     -- Vengeful Shade
  64.    
  65.   local SPELL_VENGEFUL_BLAST                           = 71544
  66.   local SPELL_VENGEFUL_BLAST_PASSIVE                   = 71494
  67.   local SPELL_VENGEFUL_BLAST_25N                       = 72010
  68.   local SPELL_VENGEFUL_BLAST_10H                       = 72011
  69.   local SPELL_VENGEFUL_BLAST_25H                       = 72012
  70.  
  71.     -- Darnavan
  72.    
  73.   local SPELL_BLADESTORM                               = 65947
  74.   local SPELL_CHARGE                                   = 65927
  75.   local SPELL_INTIMIDATING_SHOUT                       = 65930
  76.   local SPELL_MORTAL_STRIKE                            = 65926
  77.   local SPELL_SHATTERING_THROW                         = 65940
  78.   local SPELL_SUNDER_ARMOR                             = 65936
  79.  
  80.     -- Summon Positions
  81.    
  82.   local Lady_Summon_Positions_One       = {-578.7066, 2154.167, 51.01529, 1.692969}
  83.   local Lady_Summon_Positions_Two       = {-598.9028, 2155.005, 51.01530, 1.692969}
  84.   local Lady_Summon_Positions_Tre       = {-619.2864, 2154.460, 51.01530, 1.692969}
  85.   local Lady_Summon_Positions_Fore      = {-578.6996, 2269.856, 51.01529, 4.590216}
  86.   local Lady_Summon_Positions_Five      = {-598.9688, 2269.264, 51.01529, 4.590216}
  87.   local Lady_Summon_Positions_Sixe      = {-619.4323, 2268.523, 51.01530, 4.590216}
  88.   local Lady_Summon_Positions_Seven     = {-524.2480, 2211.920, 62.90960, 3.141592}
  89.  
  90. --[ Speaks ]--
  91.  
  92.   local Say_LadyDeathWhisper_Intro_One                 = 17272
  93.   local Say_LadyDeathWhisper_Intro_Two                 = 17273
  94.   local Say_LadyDeathWhisper_Intro_Tre                 = 16878
  95.   local Say_LadyDeathWhisper_Intro_For                 = 17268
  96.   local Say_LadyDeathWhisper_Intro_Five                = 17269
  97.   local Say_LadyDeathWhisper_Intro_Six                 = 17270
  98.   local Say_LadyDeathWhisper_Intro_Seven               = 17271
  99.   local Say_LadyDeathWhisper_Aggro                     = 16868
  100.   local Say_LadyDeathWhisper_Phase_Two                 = 16877
  101.   local Say_LadyDeathWhisper_Dominate_Mind             = 16876
  102.   local Say_LadyDeathWhisper_Dark_Empowerment          = 16873
  103.   local Say_LadyDeathWhisper_Dark_Transformation       = 16874
  104.   local Say_LadyDeathWhisper_Animate_Dead              = 16875
  105.   local Say_LadyDeathWhisper_Kill_One                  = 16869
  106.   local Say_LadyDeathWhisper_Kill_Two                  = 16870
  107.   local Say_LadyDeathWhisper_Berserk                   = 16872
  108.   local Say_LadyDeathWhisper_Death                     = 16871
  109.  
  110.  
  111.  
  112.   local Say_LadyDeathWhisper_Intro_One_Speak           = "You have found your way here, because you are among the few gifted with true vision in a world cursed with blindness."
  113.   local Say_LadyDeathWhisper_Intro_Two_Speak           = "You can see through the fog that hangs over this world like a shroud, and grasp where true power lies."
  114.   local Say_LadyDeathWhisper_Intro_Tre_Speak           = "Fix your eyes upon your crude hands: the sinew, the soft meat, the dark blood coursing within."
  115.   local Say_LadyDeathWhisper_Intro_For_Speak           = "It is a weakness; a crippling flaw.... A joke played by the Creators upon their own creations."
  116.   local Say_LadyDeathWhisper_Intro_Five_Speak          = "The sooner you come to accept your condition as a defect, the sooner you will find yourselves in a position to transcend it."
  117.   local Say_LadyDeathWhisper_Intro_Six_Speak           = "Through our Master, all things are possible. His power is without limit, and his will unbending."
  118.   local Say_LadyDeathWhisper_Intro_Seven_Speak         = "Those who oppose him will be destroyed utterly, and those who serve -- who serve wholly, unquestioningly, with utter devotion of mind and soul -- elevated to heights beyond your ken."
  119.   local Say_LadyDeathWhisper_Aggro_Speak               = "What is this disturbance?! You dare trespass upon this hallowed ground? This shall be your final resting place."
  120.   local Say_LadyDeathWhisper_Phase_Two_Speak           = "Enough! I see I must take matters into my own hands!"
  121.   local Say_LadyDeathWhisper_Dominate_Mind_Speak       = "You are weak, powerless to resist my will!"
  122.   local Say_LadyDeathWhisper_Dark_Empowerment_Speak    = "Take this blessing and show these intruders a taste of our master's power."
  123.   local Say_LadyDeathWhisper_Dark_Transformation_Speak = "I release you from the curse of flesh!"
  124.   local Say_LadyDeathWhisper_Animate_Dead_Speak        = "Arise and exult in your pure form!"
  125.   local Say_LadyDeathWhisper_Kill_One_Speak            = "Do you yet grasp of the futility of your actions?"
  126.   local Say_LadyDeathWhisper_Kill_Two_Speak            = "Embrace the darkness... Darkness eternal!"
  127.   local Say_LadyDeathWhisper_Berserk_Speak             = "This charade has gone on long enough."
  128.   local Say_LadyDeathWhisper_Death_Speak               = "All part of the masters plan! Your end is... inevitable!"
  129.  
  130.  
  131.   --[ Lady Deathwhisper On Spawn ]--
  132.  
  133. function LadyDeathWhisper_OnSpawn(punit, event)
  134.   local Lady = punit
  135.    Lady:Root()
  136.    Lady:SetFaction(35)
  137.     local Player = punit:GetClosestPlayer()
  138.       if punit:GetDistanceYards(Player) < 110 then
  139.         Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_One_Speak)
  140.         Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_One)
  141.          Lady:RegisterEvent("Lady_Intro_Two", 11000, 1)
  142.          Lady:RegisterEvent("Lady_Intro_Tre", 21000, 1)
  143.          Lady:RegisterEvent("Lady_Intro_For", 31500, 1)
  144.          Lady:RegisterEvent("Lady_Intro_Fiv", 39500, 1)
  145.          Lady:RegisterEvent("Lady_Intro_Six", 48500, 1)
  146.          Lady:RegisterEvent("Lady_Intro_Sev", 58000, 1)
  147.     end
  148.     local Dungeon = punit:GetDungeonDifficulty()
  149.       if Dungeon == 0 then
  150.         Lady:SetCombatCapable(1)
  151.          Lady:Root()
  152.           Lady:SetMaxHealth(3000000)
  153.           Lady:SetMaxMana(3300000)
  154.     end
  155.       if Dungeon == 1 then
  156.         Lady:SetCombatCapable(1)
  157.          Lady:Root()
  158.           Lady:SetMaxHealth(6000000)
  159.           Lady:SetMaxMana(3300000)
  160.     end
  161.       if Dungeon == 2 then
  162.         Lady:SetCombatCapable(1)
  163.          Lady:Root()
  164.           Lady:SetMaxHealth(13400000)
  165.           Lady:SetMaxMana(11000000)
  166.     end
  167.       if Dungeon == 3 then
  168.         Lady:SetCombatCapable(1)
  169.          Lady:Root()
  170.           Lady:SetMaxHealth(26800000)
  171.           Lady:SetMaxMana(13900000)
  172.     end
  173. end
  174.  
  175. function Lady_Intro_Two(punit, event)
  176.    Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Two_Speak)
  177.    Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Two)
  178. end
  179.  
  180. function Lady_Intro_Tre(punit, event)
  181.    Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Tre_Speak)
  182.    Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Tre)
  183. end
  184.  
  185. function Lady_Intro_For(punit, event)
  186.    Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_For_Speak)
  187.    Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_For)
  188. end
  189.  
  190. function Lady_Intro_Fiv(punit, event)
  191.    Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Five_Speak)
  192.    Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Five)
  193. end
  194.  
  195. function Lady_Intro_Six(punit, event)
  196.    Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Six_Speak)
  197.    Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Six)
  198. end
  199.  
  200. function Lady_Intro_Sev(punit, event)
  201.    Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Seven_Speak)
  202.    Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Seven)
  203.    Lady:SetFaction(14)
  204. end
  205.  
  206. RegisterUnitEvent(LadyDeathwhisper, 18, "LadyDeathWhisper_OnSpawn")
  207.  
  208.   --[ Lady DeathWhisper OnCombat ]--
  209.  
  210. function LadyDeathWhisper_OnCombat(punit, event)
  211.   punit:SendChatMessage(14, 0, Say_LadyDeathWhisper_Aggro_Speak)
  212.   punit:PlaySoundToSet(Say_LadyDeathWhisper_Aggro)
  213.    punit:CastSpell(Spell_Mana_Barrier)
  214.    punit:AddAura(Spell_Mana_Barrier, 0)
  215.    punit:RegisterEvent("Event_Mana_Barrage", 1000, 0)
  216.     local Dungeon = punit:GetDungeonDifficulty()
  217.        if Dungeon == 0 then  -- 10 Normal
  218.          punit:RegisterEvent("Event_LadyDeathwhisper_Berserk", 600000, 1)
  219.          punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
  220.          punit:RegisterEvent("Event_P1_Wave", 5000, 0)
  221.          punit:RegisterEvent("Event_P1_Shadow_Bolt", math.random (5500, 6000), 0)
  222.          punit:RegisterEvent("Event_P1_Empower_Cultist", math.random (20000, 30000), 0)
  223.          punit:RegisterEvent("Event_Phase_Two", 1000, 0)
  224.      end
  225.        if Dungeon == 1 then  -- 10 Heroic
  226.          punit:RegisterEvent("Event_LadyDeathwhisper_Berserk", 600000, 1)
  227.          punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
  228.          punit:RegisterEvent("Event_P1_Wave", 5000, 0)
  229.          punit:RegisterEvent("Event_P1_Shadow_Bolt", math.random (5500, 6000), 0)
  230.          punit:RegisterEvent("Event_P1_Empower_Cultist", math.random (20000, 30000), 0)
  231.          punit:RegisterEvent("Event_Dominate_Mind_H", 27000, 0)
  232.          punit:RegisterEvent("Event_Phase_Two", 1000, 0)
  233.      end
  234.        if Dungeon == 2 then  -- 25 Normal
  235.          punit:RegisterEvent("Event_LadyDeathwhisper_Berserk", 600000, 1)
  236.          punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
  237.          punit:RegisterEvent("Event_P1_Wave", 5000, 0)
  238.          punit:RegisterEvent("Event_P1_Shadow_Bolt", math.random (5500, 6000), 0)
  239.          punit:RegisterEvent("Event_P1_Empower_Cultist", math.random (20000, 30000), 0)
  240.          punit:RegisterEvent("Event_Dominate_Mind_H", 27000, 0)
  241.          punit:RegisterEvent("Event_Phase_Two", 1000, 0)
  242.      end
  243.        if Dungeon == 3 then  --25 Heroic
  244.          punit:RegisterEvent("Event_LadyDeathwhisper_Berserk", 600000, 1)
  245.          punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
  246.          punit:RegisterEvent("Event_P1_Wave", 5000, 0)
  247.          punit:RegisterEvent("Event_P1_Shadow_Bolt", math.random (5500, 6000), 0)
  248.          punit:RegisterEvent("Event_P1_Empower_Cultist", math.random (20000, 30000), 0)
  249.          punit:RegisterEvent("Event_Dominate_Mind_H", 27000, 0)
  250.          punit:RegisterEvent("Event_Phase_Two", 1000, 0)
  251.     end
  252. end
  253.  
  254. function Event_Phase_Two(punit, event)
  255.    if punit:GetManaPct() <= 1 then
  256.      punit:PlaySoundToSet(Say_LadyDeathWhisper_Phase_Two)
  257.      punit:SendChatMessage(14, 0, Say_LadyDeathWhisper_Phase_Two_Speak)
  258.        punit:RemoveEvents()
  259.        punit:UnRoot()
  260.          punit:RemoveAura(Spell_Mana_Barrier)
  261.          punit:SetCombatCapable(0)
  262.             local Dungeon = punit:GetDungeonDifficulty()
  263.               if Dungeon == 0 then  -- 10 Normal
  264.                 punit:RegisterEvent("Event_P2_Frostbolt", math.random (10000, 12000), 0)
  265.                 punit:RegisterEvent("Event_P2_Frostvolley", math.random (19000, 21000), 0) 
  266.                 punit:RegisterEvent("Event_Touch_of_Insignificance", math.random (6000, 9000), 0)
  267.                 punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
  268.                 punit:RegisterEvent("Event_P2_Wave", math.random (12000, 15000), 0)
  269.           end
  270.               if Dungeon == 1 then  -- 10 Heroic
  271.                 punit:RegisterEvent("Event_P2_Frostbolt", math.random (10000, 12000), 0)
  272.                 punit:RegisterEvent("Event_P2_Frostvolley", math.random (19000, 21000), 0) 
  273.                 punit:RegisterEvent("Event_Touch_of_Insignificance", math.random (6000, 9000), 0)
  274.                 punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
  275.                 punit:RegisterEvent("Event_P2_Wave", math.random (12000, 15000), 0)
  276.           end
  277.               if Dungeon == 2 then  -- 25 Normal
  278.                 punit:RegisterEvent("Event_P2_Frostbolt", math.random (10000, 12000), 0)
  279.                 punit:RegisterEvent("Event_P2_Frostvolley", math.random (19000, 21000), 0) 
  280.                 punit:RegisterEvent("Event_Touch_of_Insignificance", math.random (6000, 9000), 0)
  281.                 punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
  282.                 punit:RegisterEvent("Event_P2_Wave", math.random (12000, 15000), 0)
  283.           end
  284.               if Dungeon == 3 then  -- 25 Heroic
  285.                 punit:RegisterEvent("Event_P2_Frostbolt", math.random (10000, 12000), 0)
  286.                 punit:RegisterEvent("Event_P2_Frostvolley", math.random (19000, 21000), 0) 
  287.                 punit:RegisterEvent("Event_Touch_of_Insignificance", math.random (6000, 9000), 0)
  288.                 punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
  289.                 punit:RegisterEvent("Event_P2_Wave", math.random (12000, 15000), 0)
  290.           end
  291.      end
  292. end
  293.  
  294. function Event_Mana_Barrage(punit, event)
  295.   if punit:HasAura(Spell_Mana_Barrier) then
  296.     local Heath = punit:GetMaxHealth()
  297.       local Damage = punit:GetHealth()
  298.          local MissingHealth = (Heath - Damage)
  299.        punit:SetHealth(MissingHealth)
  300.     local Mana = punit:GetMana()
  301.        punit:SetMana(Mana - MissingHealth)
  302.     end
  303. end
  304.  
  305. function Event_LadyDeathwhisper_Berserk(punit, event)
  306.     if punit:IsInCombat() then
  307.       punit:PlaySoundToSet(Say_LadyDeathWhisper_Berserk)
  308.       punit:SendChatMessage(14, 0, Say_LadyDeathWhisper_Berserk_Speak)
  309.        punit:CastSpell(Spell_Berserk)
  310.     end
  311. end
  312.  
  313. function Event_Death_and_Decay(punit, event)
  314.   local Dungeon = punit:GetDungeonDifficulty()
  315.       if Dungeon == 0 then
  316.         local target = punit:GetRandomPlayer(0)
  317.        punit:CastSpellAoF(target:GetX(), target:GetY(), target:GetZ(), Spell_Death_and_Decay_10N)
  318.     end
  319.       if Dungeon == 0 then
  320.         local target = punit:GetRandomPlayer(0)
  321.        punit:CastSpellAoF(target:GetX(), target:GetY(), target:GetZ(), Spell_Death_and_Decay_10HC)
  322.     end
  323.       if Dungeon == 0 then
  324.         local target = punit:GetRandomPlayer(0)
  325.        punit:CastSpellAoF(target:GetX(), target:GetY(), target:GetZ(), Spell_Death_and_Decay_25N)
  326.     end
  327.       if Dungeon == 0 then
  328.         local target = punit:GetRandomPlayer(0)
  329.        punit:CastSpellAoF(target:GetX(), target:GetY(), target:GetZ(), Spell_Death_and_Decay_25HC)
  330.     end
  331. end
  332.  
  333. function Event_P1_Wave(punit, event)
  334.   local Dungeon = punit:GetDungeonDifficulty()
  335.       if Dungeon == 0 then
  336.       punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
  337.       punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
  338.     end
  339.       if Dungeon == 1 then
  340.       punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
  341.       punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
  342.       punit:SpawnCreature(math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent), Lady_Summon_Positions_Seven, 14, 360000)
  343.     end
  344.       if Dungeon == 2 then
  345.       punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
  346.       punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
  347.     end
  348.       if Dungeon == 3 then
  349.       punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
  350.       punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
  351.       punit:SpawnCreature(math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent), Lady_Summon_Positions_Seven, 14, 360000)
  352.     end
  353. end
  354.  
  355. function Event_P1_Shadow_Bolt(punit, event)
  356.    local target = punit:GetRandomPlayer(0)
  357.      local Dungeon = punit:GetDungeonDifficulty()
  358.           if Dungeon == 0 then
  359.             punit:FullCastSpellOnTarget(Spell_Shadow_Bolt_10N, target)
  360.       end
  361.           if Dungeon == 0 then
  362.             punit:FullCastSpellOnTarget(Spell_Shadow_Bolt_10HC, target)
  363.       end
  364.           if Dungeon == 0 then
  365.             punit:FullCastSpellOnTarget(Spell_Shadow_Bolt_25N, target)
  366.       end
  367.           if Dungeon == 0 then
  368.             punit:FullCastSpellOnTarget(Spell_Shadow_Bolt_25HC, target)
  369.     end
  370. end
  371.  
  372. function Event_P1_Empower_Cultist(punit, event)
  373.   local NPC = punit:GetCreatureNearestCoords(punit:GetX(), punit:GetY(), punit:GetZ(), math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent))
  374.     if NPC ~= nil then
  375.       punit:FullCastSpellOnTarget(Spell_Dark_Empowerment, NPC)
  376.        NPC:AddAura(Spell_Dark_Empowerment, 0)
  377.     end
  378. end
  379.  
  380. function Event_Dominate_Mind_H(punit, event)
  381.   local target = punit:GetRandomPlayer(0)
  382.     local Dungeon = punit:GetDungeonDifficulty()
  383.        if Dungeon == 1 then
  384.          punit:CastSpellOnTarget(Spell_Dominate_Mind, target)
  385.          target:AddAura(Spell_Dominate_Mind, 12000)
  386.     end
  387.        if Dungeon == 3 then
  388.          punit:CastSpellOnTarget(Spell_Dominate_Mind, target)
  389.          target:AddAura(Spell_Dominate_Mind, 12000)
  390.     end  
  391.        if target:HasAura(Spell_Dominate_Mind) then
  392.          target:SetPlayerLock(1)
  393.           target:SetScale(2)
  394.        else
  395.          target:SetPlayerLock(0)
  396.           target:SetScale(1)
  397.     end
  398. end
  399.  
  400. function Event_P2_Frostbolt(punit, event)
  401.   local target = punit:GetRandomPlayer(0)
  402.     local Dungeon = punit:GetDungeonDifficulty()
  403.        if Dungeon == 0 then
  404.          punit:FullCastSpellOnTarget(Spell_Frostbolt_10N, target)
  405.     end
  406.        if Dungeon == 1 then
  407.          punit:FullCastSpellOnTarget(Spell_Frostbolt_10HC, target)
  408.     end
  409.        if Dungeon == 2 then
  410.          punit:FullCastSpellOnTarget(Spell_Frostbolt_25N, target)
  411.     end
  412.        if Dungeon == 3 then
  413.          punit:FullCastSpellOnTarget(Spell_Frostbolt_25HC, target)
  414.     end
  415. end
  416.  
  417. function Event_P2_Frostvolley(punit, event)
  418.   local PlayersAllAround = punit:GetInRangePlayers()
  419.     for a, players in pairs(PlayersAllAround) do
  420.       punit:CastSpellOnTarget(Spell_FrostVolley, PlayersAllAround)
  421.    end
  422. end
  423.  
  424. function Event_P2_Wave(punit, event)
  425.   local Dungeon = punit:GetDungeonDifficulty()
  426.       if Dungeon == 0 then
  427.       punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
  428.       punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
  429.     end
  430.       if Dungeon == 1 then
  431.       punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
  432.       punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
  433.       punit:SpawnCreature(math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent), Lady_Summon_Positions_Seven, 14, 360000)
  434.     end
  435.       if Dungeon == 2 then
  436.       punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
  437.       punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
  438.     end
  439.       if Dungeon == 3 then
  440.       punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
  441.       punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
  442.       punit:SpawnCreature(math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent), Lady_Summon_Positions_Seven, 14, 360000)
  443.     end
  444. end
  445.  
  446. function LadyDeathWhisper_OnDeath(punit, event)
  447.       punit:RemoveEvents()
  448.       punit:SendChatMessage(14, 0, Say_LadyDeathWhisper_Death_Speak)
  449.       punit:PlaySoundToSet(Say_LadyDeathWhisper_Death)
  450.           local PlayersAllAround = punit:GetInRangePlayers()
  451.                 local Dungeon = punit:GetDungeonDifficulty()
  452.               for a, players in pairs(PlayersAllAround) do
  453.         if Dungeon == 0 then
  454.             players:AddAchievement(4643)
  455.         elseif Dungeon == 1 then
  456.             players:AddAchievement(4654)
  457.         elseif Dungeon == 2 then
  458.             players:AddAchievement(4655)
  459.         elseif Dungeon == 3 then
  460.             players:AddAchievement(4656)
  461.         end
  462.     end
  463.  
  464. function LadyDeathWhisper_OnLeaveCombat(punit, event)
  465.    punit:RemoveEvents()
  466.     punit:Despawn(1, 10000)
  467. end
  468.  
  469. function LadyDeathWHisper_OnKill(punit, event)
  470.    punit:SendChatMessage(14, 0, math.random (Say_LadyDeathWhisper_Kill_One_Speak, Say_LadyDeathWhisper_Kill_Two_Speak))
  471. end
  472.  
  473. RegisterUnitEvent(LadyDeathwhisper, 1, "LadyDeathWhisper_OnCombat")
  474. RegisterUnitEvent(LadyDeathwhisper, 2, "LadyDeathWhisper_OnLeaveCombat")
  475. RegisterUnitEvent(LadyDeathwhisper, 3, "LadyDeathWHisper_OnKill")
  476. RegisterUnitEvent(LadyDeathwhisper, 4, "LadyDeathWhisper_OnDeath")
  477.  
  478.  
  479.  
  480. --[ Lady DeathWhisper End's & Adds Start ]--
  481.  
  482.  
  483.  
  484.    -- CultFanatic Start
  485.  
  486. function CultFanatic_OnSpawn(punit, event)
  487. punit:RegisterEvent("Event_CultFanatic_Move", 1000, 1)
  488.    local Dungeon = punit:GetDungeonDifficulty()
  489.          if Dungeon == 0 then
  490.            punit:SetCombatCapable(0)
  491.             punit:SetMaxHealth(134810)
  492.       end
  493.          if Dungeon == 1 then
  494.            punit:SetCombatCapable(0)
  495.             punit:SetMaxHealth(202215)
  496.       end
  497.          if Dungeon == 2 then
  498.            punit:SetCombatCapable(0)
  499.             punit:SetMaxHealth(202215)
  500.       end
  501.          if Dungeon == 3 then
  502.            punit:SetCombatCapable(0)
  503.             punit:SetMaxHealth(404430)
  504.       end
  505. end
  506.  
  507. function Event_CultFanatic_Move(punit, event)
  508.    local waypoint = punit:GetRandomTarget(0)
  509.       local x = waypoint:GetX()
  510.       local y = waypoint:GetY()
  511.       local z = waypoint:GetZ()
  512.       local o = waypoint:GetO()
  513.     punit:MoveTo(x, y, z, o)
  514. end
  515.  
  516. function CultFanatic_OnCombat(punit, event)
  517.    local Dungeon = punit:GetDungeonDifficulty()
  518.          if Dungeon == 0 then
  519.            punit:RegisterEvent("Event_Fanatic_Necrotic_Strike", math.random (10000, 12000), 0)
  520.            punit:RegisterEvent("Event_Fanatic_Shadow_Cleave", math.random (14000, 16000), 0)
  521.            punit:RegisterEvent("Event_Fanatic_Vampiric_Might", math.random (20000, 27000), 0)
  522.            punit:RegisterEvent("Event_Fanatic_Dark_Martyrdom", math.random (18000, 32000), 0)
  523.       end
  524.          if Dungeon == 1 then
  525.            punit:RegisterEvent("Event_Fanatic_Necrotic_Strike", math.random (10000, 12000), 0)
  526.            punit:RegisterEvent("Event_Fanatic_Shadow_Cleave", math.random (14000, 16000), 0)
  527.            punit:RegisterEvent("Event_Fanatic_Vampiric_Might", math.random (20000, 27000), 0)
  528.            punit:RegisterEvent("Event_Fanatic_Dark_Martyrdom", math.random (18000, 32000), 0)
  529.       end
  530.          if Dungeon == 2 then
  531.            punit:RegisterEvent("Event_Fanatic_Necrotic_Strike", math.random (10000, 12000), 0)
  532.            punit:RegisterEvent("Event_Fanatic_Shadow_Cleave", math.random (14000, 16000), 0)
  533.            punit:RegisterEvent("Event_Fanatic_Vampiric_Might", math.random (20000, 27000), 0)
  534.            punit:RegisterEvent("Event_Fanatic_Dark_Martyrdom", math.random (18000, 32000), 0)
  535.       end
  536.          if Dungeon == 3 then
  537.            punit:RegisterEvent("Event_Fanatic_Necrotic_Strike", math.random (10000, 12000), 0)
  538.            punit:RegisterEvent("Event_Fanatic_Shadow_Cleave", math.random (14000, 16000), 0)
  539.            punit:RegisterEvent("Event_Fanatic_Vampiric_Might", math.random (20000, 27000), 0)
  540.            punit:RegisterEvent("Event_Fanatic_Dark_Martyrdom", math.random (18000, 32000), 0)
  541.       end
  542. end
  543.  
  544. function Event_Fanatic_Necrotic_Strike(punit, event)
  545.   local target = punit:GetClosestPlayer()
  546.     if punit:GetDistanceYards(target) < 5 then
  547.       if target ~= nil then
  548.       punit:CastSpellOnTarget(SPELL_NECROTIC_STRIKE, target)
  549.       target:AddAura(SPELL_NECROTIC_STRIKE, 20000)
  550.       end
  551.    end
  552. end
  553.  
  554. function Event_Fanatic_Shadow_Cleave(punit, event)
  555.   local target = punit:GetClosestPlayer()
  556.     if punit:GetDistanceYards(target) < 5 then
  557.       if target ~= nil then
  558.       punit:CastSpellOnTarget(SPELL_SHADOW_CLEAVE, target)
  559.       end
  560.    end
  561. end
  562.  
  563. function Event_Fanatic_Vampiric_Might(punit, event)
  564.   punit:CastSpell(SPELL_VAMPIRIC_MIGHT)
  565.    punit:AddAura(SPELL_VAMPIRIC_MIGHT, 15000)
  566. end
  567.  
  568. function Event_Fanatic_Dark_Martyrdom(punit, event)
  569.    punit:Root()
  570.      punit:FullCastSpell(SPELL_DARK_MARTYRDOM_FANATIC)
  571.     punit:UnRoot()
  572. end
  573.  
  574. RegisterUnitEvent(NPC_Cult_Fanatic, 1, "CultFanatic_OnCombat")
  575. RegisterUnitEvent(NPC_Cult_Fanatic, 18, "CultFanatic_OnSpawn")
  576.  
  577.     -- CultAdherent Start
  578.    
  579. function CultAdherent_OnSpawn(punit, event)
  580. punit:RegisterEvent("Event_CultAdherent_Move", 1000, 1)
  581.    local Dungeon = punit:GetDungeonDifficulty()
  582.          if Dungeon == 0 then
  583.            punit:SetCombatCapable(1)
  584.             punit:SetMaxHealth(107840)
  585.             punit:SetMaxMana(549600)
  586.       end
  587.          if Dungeon == 1 then
  588.            punit:SetCombatCapable(1)
  589.             punit:SetMaxHealth(150976)
  590.             punit:SetMaxMana(549600)
  591.       end
  592.          if Dungeon == 2 then
  593.            punit:SetCombatCapable(1)
  594.             punit:SetMaxHealth(161760)
  595.             punit:SetMaxMana(549600)
  596.       end
  597.          if Dungeon == 3 then
  598.            punit:SetCombatCapable(1)
  599.             punit:SetMaxHealth(323520)
  600.             punit:SetMaxMana(549600)
  601.       end
  602. end
  603.  
  604. function Event_CultAdherent_Move(punit, event)
  605.    local waypoint = punit:GetRandomTarget(0)
  606.       local x = waypoint:GetX()
  607.       local y = waypoint:GetY()
  608.       local z = waypoint:GetZ()
  609.       local o = waypoint:GetO()
  610.     punit:MoveTo(x, y, z, o)
  611. end
  612.  
  613. function CultAdherent_OnCombat(punit, event)
  614.    local Dungeon = punit:GetDungeonDifficulty()
  615.          if Dungeon == 0 then
  616.            punit:RegisterEvent("Event_Adherent_Frost_Fever", math.random (10000, 12000), 0)
  617.            punit:RegisterEvent("Event_Adherent_DeathChill", math.random (14000, 16000), 0)
  618.            punit:RegisterEvent("Event_Adherent_Curse_Of_Terror", math.random (14000, 16000), 0)
  619.            punit:RegisterEvent("Event_Adherent_Shorud_Of_Occult", math.random (32000, 39000), 0)
  620.            punit:RegisterEvent("Event_Adherent_Dark_Martyrdom", math.random (18000, 32000), 0)
  621.       end
  622.          if Dungeon == 1 then
  623.            punit:RegisterEvent("Event_Adherent_Frost_Fever", math.random (10000, 12000), 0)
  624.            punit:RegisterEvent("Event_Adherent_DeathChill", math.random (14000, 16000), 0)
  625.            punit:RegisterEvent("Event_Adherent_Curse_Of_Terror", math.random (14000, 16000), 0)
  626.            punit:RegisterEvent("Event_Adherent_Shorud_Of_Occult", math.random (32000, 39000), 0)
  627.            punit:RegisterEvent("Event_Adherent_Dark_Martyrdom", math.random (18000, 32000), 0)
  628.       end
  629.          if Dungeon == 2 then
  630.            punit:RegisterEvent("Event_Adherent_Frost_Fever", math.random (10000, 12000), 0)
  631.            punit:RegisterEvent("Event_Adherent_DeathChill", math.random (14000, 16000), 0)
  632.            punit:RegisterEvent("Event_Adherent_Curse_Of_Terror", math.random (14000, 16000), 0)
  633.            punit:RegisterEvent("Event_Adherent_Shorud_Of_Occult", math.random (32000, 39000), 0)
  634.            punit:RegisterEvent("Event_Adherent_Dark_Martyrdom", math.random (18000, 32000), 0)
  635.       end
  636.          if Dungeon == 3 then
  637.            punit:RegisterEvent("Event_Adherent_Frost_Fever", math.random (10000, 12000), 0)
  638.            punit:RegisterEvent("Event_Adherent_DeathChill", math.random (14000, 16000), 0)
  639.            punit:RegisterEvent("Event_Adherent_Curse_Of_Terror", math.random (14000, 16000), 0)
  640.            punit:RegisterEvent("Event_Adherent_Shorud_Of_Occult", math.random (32000, 39000), 0)
  641.            punit:RegisterEvent("Event_Adherent_Dark_Martyrdom", math.random (18000, 32000), 0)
  642.       end
  643. end
  644.  
  645. function Event_Adherent_Frost_Fever(punit, event)
  646.   local target = punit:GetRandomPlayer(0)
  647.     if target ~= nil then
  648.        punit:CastSpellOnTarget(SPELL_FROST_FEVER, target)
  649.       target:AddAura(SPELL_FROST_FEVER, 15000)
  650.     end
  651. end
  652.  
  653. function Event_Adherent_DeathChill(punit, event)
  654.   local target = punit:GetRandomPlayer(0)
  655.     if target ~= nil then
  656.        punit:FullCastSpellOnTarget(math.random (SPELL_DEATHCHILL_BOLT, SPELL_DEATHCHILL_BLAST), target)
  657.      end  
  658. end
  659.  
  660. function Event_Adherent_Curse_Of_Terror(punit, event)
  661.   local target = punit:GetRandomPlayer(0)
  662.     if target ~= nil then
  663.        punit:FullCastSpellOnTarget(SPELL_CURSE_OF_TORPOR, target)
  664.        target:AddAura(SPELL_CURSE_OF_TORPOR, 15000)
  665.     end
  666. end
  667.  
  668. function Event_Adherent_Shorud_Of_Occult(punit, event)
  669.   punit:AddAura(SPELL_SHORUD_OF_THE_OCCULT, 0)
  670. end
  671.  
  672. function Event_Adherent_Dark_Martyrdom(punit, event)
  673.    punit:Root()
  674.      punit:FullCastSpell(SPELL_DARK_MARTYRDOM_ADHERENT)
  675.     punit:UnRoot()
  676. end
  677.  
  678.  
  679. RegisterUnitEvent(NPC_Cult_Adherent, 1, "CultAdherent_OnCombat")
  680. RegisterUnitEvent(NPC_Cult_Adherent, 18, "CultAdherent_OnSpawn")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement