Guest User

Untitled

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