Guest User

Untitled

a guest
Jun 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.17 KB | None | 0 0
  1. --//////////////////////////////////
  2. --////   Holystone Productions  ////
  3. --////       Copy Right         ////
  4. --////  Blizzlike Repack v 1.0  ////
  5. --//////////////////////////////////
  6.  
  7. local Lady = 36855
  8. local Addone = 37890
  9. local AddTwo = 37949
  10.  
  11. function LadyDeathWhisper_OnSpawn(punit, event)
  12. end
  13.  
  14. function LadyDeathWhisper_OnCombat(punit, event)
  15.    punit:SendChatMessage(14, 0, "What is this disturbance?! You dare trespass upon this hallowed ground? This shall be your final resting place.")
  16.    punit:PlaySoundToSet(16868)
  17.    punit:Root()
  18.    punit:RegisterEvent("Lady_PhaseOne", 1000, 1)
  19. end
  20.  
  21. function Lady_PhaseOne(punit, event)
  22.    punit:RemoveEvents()
  23.    punit:SetCombatCapable(1)
  24.    punit:CastSpell(70842)
  25.    punit:RegisterEvent("Lady_ShadowBolt", 3000, 0)
  26.    punit:RegisterEvent("Lady_Add_Waves", 60000, 0)
  27.    punit:RegisterEvent("Lady_DeathAndDecay", 15000, 0)
  28.    punit:RegisterEvent("Lady_PhaseTwo", 1000, 0)
  29. end
  30.  
  31. function Lady_ShadowBolt(punit, event)
  32.    punit:FullCastSpellOnTarget(71254)
  33. end
  34.  
  35. function Lady_Add_Waves(punit, event)
  36.    local Addsspawn = math.random (1, 2)
  37.     if (Addsspawn== 1) then
  38.    punit:SpawnCreature(Addone, -620.625916, 2182.600098, 49.476868, 1.003537, 14, 80000)
  39.    punit:SpawnCreature(Addone, -610.811829, 2212.762451, 49.465561, 3.175164, 14, 80000)
  40.    punit:SpawnCreature(AddTwo, -621.614380, 2238.325928, 49.477795, 4.031246, 14, 80000)
  41.    punit:SendChatMessage(42, 0, "Two Cult Fanatics and a Cult Adherent join the fight!")
  42.     elseif (Addsspawn== 2) then
  43.    punit:SpawnCreature(AddTwo, -620.625916, 2182.600098, 49.476868, 1.003537, 14, 80000)
  44.    punit:SpawnCreature(Addone, -610.811829, 2212.762451, 49.465561, 3.175164, 14, 80000)
  45.    punit:SpawnCreature(AddTwo, -621.614380, 2238.325928, 49.477795, 4.031246, 14, 80000)
  46.    punit:SendChatMessage(42, 0, "Two Cult Adherents and a Cult Fanatic join the fight!")
  47.   end
  48. end
  49.  
  50. function Lady_DeathAndDecay(punit, event)
  51.    punit:PlaySoundToSet(16880)
  52.    punit:SendChatMessage(14, 0, "Arise and exult in your pure form!")
  53.     local plr = punit:GetRandomPlayer(0)
  54.     local x = plr:GetX()
  55.     local y = plr:GetY()
  56.     local z = plr:GetZ()
  57.     punit:CastSpellAoF(x, y, z,71001)
  58. end
  59.  
  60. function Lady_PhaseTwo(punit, event)
  61.    if pUnit:GetHealthPct() <= 70 then
  62.   punit:SendChatMessage(42, 0, "The Mana Barrier fades!")
  63.   punit:SendChatMessage(14, 0, "This charade has gone on long enough! I see I must take matters into my own hands!")
  64.   punit:RemoveEvents()
  65.   punit:RemoveAllAuras()
  66.   punit:SetHealthPct(100)
  67.   punit:SetMana(0)
  68.   punit:Unroot()
  69.   punit:RegisterEvent("Lady_Frostbolt", 3000, 0)
  70.   punit:RegisterEvent("Lady_DeathandDecayTwo", 15000, 0)
  71.   punit:RegisterEvent("Lady_TouchofInsignificance", 5000, 0)
  72.   end
  73. end
  74.  
  75. function Lady_Frostbolt(punit, event)
  76.   punit:FullCastSpellOnTarget(71420, punit:GetRandomPlayer(0))
  77. end
  78.  
  79. function Lady_DeathandDecayTwo(punit, event)
  80.    punit:PlaySoundToSet(16880)
  81.    punit:SendChatMessage(14, 0, "Arise and exult in your pure form!")
  82.     local plr = punit:GetRandomPlayer(0)
  83.     local x = plr:GetX()
  84.     local y = plr:GetY()
  85.     local z = plr:GetZ()
  86.     punit:CastSpellAoF(x, y, z,71001)
  87. end
  88.  
  89. function Lady_TouchofInsignificance(punit, event)
  90.     local plr = punit:GetClosestTarget()
  91.     plr:AddAura(71204, 30000)
  92. end
  93.  
  94. function LadyDeathWhisper_OnLeaveCombat(punit, event)
  95.     punit:RemoveEvents()
  96. end
  97.  
  98. function LadyDeathWhisper_OnKillPlayer(punit, event)
  99.   local chance = math.random(1, 2)
  100.    if(chance == 1) then
  101.   punit:PlaySoundToSet(16869)
  102.   punit:SendChatMessage(14, 0, "Do you yet grasp of the futility of your actions?")
  103.    end
  104.    if(chance == 2) then
  105.   punit:PlaySoundToSet(16870)
  106.   punit:SendChatMessage(14, 0, "Embrace the darkness... Darkness eternal!")
  107. end
  108.  
  109. function LadyDeathWhisper_OnDead(punit, event)
  110.   punit:SendChatMessage(14, 0, "All part of the masters plan! Your end is... inevitable!")
  111.   punit:PlaySoundToSet(16871)
  112.   punit:RemoveEvents()
  113. end
  114.  
  115. RegisterUnitEvent(Lady, 18, "LadyDeathWhisper_OnSpawn")
  116. RegisterUnitEvent(Lady, 1, "LadyDeathWhisper_OnCombat")
  117. RegisterUnitEvent(Lady, 2, "LadyDeathWhisper_OnLeaveCombat")
  118. RegisterUnitEvent(Lady, 3, "LadyDeathWhisper_OnKillPlayer")
  119. RegisterUnitEvent(Lady, 4, "LadyDeathWhisper_OnDied")
Add Comment
Please, Sign In to add comment