Advertisement
Guest User

Lady Deathwhisper

a guest
Mar 1st, 2010
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. -- Made by Cosmic --
  2. function Ladydeathwhisper_OnCombat (pUnit, Event)
  3. pUnit:SendChatMessage(14, 0, "What is this Disturbance!You dare trespass on this hallow ground!This shall be your final resting place!")
  4. pUnit:Root()
  5. pUnit:FullCastSpell(70842)
  6. pUnit:RegisterEvent("Ladydeathwhisper_Shadowbolt", 3000, 0)
  7. pUnit:RegisterEvent("Ladydeathwhisper_Deathdecay", 15000, 0)
  8. pUnit:RegisterEvent("Ladydeathwhisper_Adds", 60000, 0)
  9. pUnit:RegisterEvent("Ladydeathwhisper_Changeover", 1000, 0)
  10. end
  11.  
  12. function Ladydeathwhisper_Shadowbolt (pUnit, Event)
  13. pUnit:FullCastSpellOnTarget(71254,pUnit:GetRandomPlayer(0))
  14. end
  15.  
  16.  
  17.  
  18. function Ladydeathwhisper_Deathdecay(pUnit, Event)
  19. local plr = pUnit:GetRandomPlayer(0)
  20. local x = plr:GetX()
  21. local y = plr:GetY()
  22. local z = plr:GetZ()
  23. pUnit:CastSpellAoF(x, y, z,71001)
  24. end
  25.  
  26.  
  27.  
  28.  
  29.  
  30. function Ladydeathwhisper_Adds (pUnit, Event)
  31. local Addsspawn = math.random (1, 2)
  32. if (Addsspawn== 1) then
  33. pUnit:SpawnCreature(37890,-578.671448,2159.502441,50.848782,o,14,80000)
  34. pUnit:SpawnCreature(37890,-619.650757,2156.278076,50.847198,o,14,80000)
  35. pUnit:SpawnCreature(37949,-598.325012,2157.934570,50.848740,o,14,80000)
  36. pUnit:SendChatMessage(42, 0, "Two Cult Fanatics and a Cult Adherent join the fight!")
  37. elseif (Addsspawn== 2) then
  38. pUnit:SpawnCreature(37949,-578.049744,2264.405518,50.848717,o,14,80000)
  39. pUnit:SpawnCreature(37890,-598.825073,2264.582764,50.848755,o,14,80000)
  40. pUnit:SpawnCreature(37949,-619.350220,2263.978516,50.848755,o,14,80000)
  41. pUnit:SendChatMessage(42, 0, "Two Cult Adherents and a Cult Fanatic join the fight!")
  42. end
  43. end
  44.  
  45. function Ladydeathwhisper_Changeover(pUnit, Event)
  46. if pUnit:GetHealthPct() < 5 then
  47. pUnit:SendChatMessage(42, 0, "The Mana Barrier fades!")
  48. pUnit:SendChatMessage(14, 0, "This charade has gone on long enough! I see I must take matters into my own hands!")
  49. pUnit:RemoveEvents()
  50. pUnit:RemoveAllAuras()
  51. pUnit:SetHealthPct(100)
  52. pUnit:SetMana(0)
  53. pUnit:Unroot()
  54. pUnit:RegisterEvent("Ladydeathwhisper_Deathdecay2", 10000, 0)
  55. pUnit:RegisterEvent("Ladydeathwhisper_Frostbolt", 15000, 0)
  56. pUnit:RegisterEvent("Ladydeathwhisper_Agrocurse", 25000, 0)
  57. end
  58. end
  59.  
  60.  
  61.  
  62. function Ladydeathwhisper_Deathdecay2(pUnit, Event)
  63. local plr = pUnit:GetRandomPlayer(0)
  64. local x = plr:GetX()
  65. local y = plr:GetY()
  66. local z = plr:GetZ()
  67. pUnit:CastSpellAoF(x, y, z,71001)
  68. end
  69.  
  70.  
  71. function Ladydeathwhisper_Frostbolt (pUnit, Event)
  72. pUnit:FullCastSpellOnTarget(71420,pUnit:GetMainTank())
  73. end
  74.  
  75. function Ladydeathwhisper_Agrocurse(pUnit, Event)
  76. pUnit:FullCastSpellOnTarget(71204,pUnit:GetMainTank())
  77. end
  78.  
  79.  
  80.  
  81. function Ladydeathwhisper_OnKillPlr (pUnit, Event)
  82. local chance = math.random(1, 2)
  83. if (chance == 1) then
  84. pUnit:SendChatMessage(14, 0, "Embrace the darkness! Darkness eternal !")
  85. pUnit:PlaySoundToSet(16942)
  86. else
  87. pUnit:SendChatMessage(14, 0, "Do you yet grasp the futility of your actions!")
  88. end
  89. end
  90.  
  91.  
  92.  
  93. function Ladydeathwhisper_OnDeath (pUnit, Event)
  94. pUnit:RemoveEvents()
  95. pUnit:RemoveAllAuras()
  96. pUnit:SendChatMessage(14, 0, "All part of the masters plan...your end will come soon...")
  97. end
  98.  
  99. function Ladydeathwhisper_OnLeaveCombat (pUnit, Event)
  100. pUnit:RemoveEvents()
  101. pUnit:RemoveAllAuras()
  102. pUnit:SetMana(3346800)
  103. end
  104.  
  105. RegisterUnitEvent(36855, 1, "Ladydeathwhisper_OnCombat")
  106. RegisterUnitEvent(36855, 2, "Ladydeathwhisper_OnLeaveCombat")
  107. RegisterUnitEvent(36855, 3, "Ladydeathwhisper_OnKillPlr")
  108. RegisterUnitEvent(36855, 4, "Ladydeathwhisper_OnDeath")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement