Advertisement
Guest User

Neglected - Cronic, for christ sake, get Notepad++ and indent..

a guest
Feb 27th, 2010
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. -- Made by cronic of ac-web
  2.  
  3. function LordMarrowgar_OnCombat (pUnit, Event)
  4. pUnit:SendChatMessage(14, 0, "The Scourge will wash over this world as a swarm of death and destruction!")
  5. pUnit:PlaySoundToSet(16941)
  6. pUnit:RegisterEvent("LordMarrowgar_BoneStorm", 30000, 0)
  7. pUnit:RegisterEvent("LordMarrowgar_BoneSpike", 14000, 0)
  8. pUnit:RegisterEvent("LordMarrowgar_Coldflame", 3000, 0)
  9. end
  10.  
  11. function LordMarrowgar_BoneSpike (pUnit, Event)
  12. local plr = pUnit:GetRandomPlayer(0)
  13. local chancesay = math.random (1, 3)
  14. if (chancesay == 1) then
  15. pUnit:SendChatMessage(14, 0, "Bound by bone!")
  16. pUnit:PlaySoundToSet(16947)
  17. pUnit:FullCastSpellOnTarget(69057, plr)
  18. elseif (chancesay == 2) then
  19. pUnit:SendChatMessage(14, 0, "Stick Around!")
  20. pUnit:PlaySoundToSet(16948)
  21. pUnit:FullCastSpellOnTarget(69057, plr)
  22. elseif (chancesay == 3) then
  23. pUnit:SendChatMessage(14, 0, "The only escape is death!")
  24. pUnit:PlaySoundToSet(16949)
  25. pUnit:FullCastSpellOnTarget(69057, plr)
  26. end
  27. end
  28.  
  29. function LordMarrowgar_Coldflame (pUnit, Event)
  30. pUnit:CastSpellOnTarget (69147, pUnit:GetRandomPlayer(0))
  31. end
  32.  
  33. function LordMarrowgar_BoneStorm (pUnit, Event)
  34. pUnit:RemoveEvents()
  35. pUnit:Root()
  36. pUnit:FullCastSpell(69076)
  37. pUnit:SendChatMessage(14, 0, "BONE STORM!")
  38. pUnit:SendChatMessage(42, 0, "BONE STORM!")
  39. pUnit:PlaySoundToSet(16946)
  40. pUnit:RegisterEvent("BoneStorm_Move", 15000, 0)
  41. pUnit:RegisterEvent("BoneStorm_Stop", 60000, 1)
  42. end
  43.  
  44. function BoneStorm_Move (pUnit, Event)
  45. local plr = pUnit:GetRandomPlayer(0)
  46. pUnit:Unroot()
  47. if (plr ~= nil) then
  48. local x = plr:GetX()
  49. local y = plr:GetY()
  50. local z = plr:GetZ()
  51. pUnit:ModifyRunSpeed(18)
  52. pUnit:MoveTo(x, y, z)
  53. pUnit:RegisterEvent("BoneStorm_Root", 4000, 0)
  54. end
  55. end
  56.  
  57. function BoneStorm_Root (pUnit, Event)
  58. pUnit:Root()
  59. end
  60.  
  61. function BoneStorm_Stop (pUnit, Event)
  62. pUnit:RemoveEvents()
  63. pUnit:Unroot()
  64. pUnit:RemoveAura(69076)
  65. pUnit:ClearThreatList()
  66. pUnit:RegisterEvent("LordMarrowgar_OnCombat", 1, 1)
  67. end
  68.  
  69. function LordMarrowgar_OnKillPlr (pUnit, Event)
  70. local chance = math.random(1, 2)
  71. if (chance == 1) then
  72. pUnit:SendChatMessage(14, 0, "More bones for the offering!")
  73. pUnit:PlaySoundToSet(16942)
  74. else
  75. pUnit:PlaySoundToSet(16943)
  76. pUnit:SendChatMessage(14, 0, "Languish in damnation!")
  77. end
  78. end
  79.  
  80. function LordMarrowgar_OnDeath (pUnit, Event)
  81. pUnit:RemoveEvents()
  82. pUnit:PlaySoundToSet(16944)
  83. pUnit:SendChatMessage(12, 0, "I see... only darkness...")
  84. end
  85.  
  86. function LordMarrowgar_OnLeaveCombat (pUnit, Event)
  87. pUnit:RemoveEvents()
  88. end
  89.  
  90. RegisterUnitEvent(36612, 1, "LordMarrowgar_OnCombat")
  91. RegisterUnitEvent(36612, 2, "LordMarrowgar_OnLeaveCombat")
  92. RegisterUnitEvent(36612, 3, "LordMarrowgar_OnKillPlr")
  93. RegisterUnitEvent(36612, 4, "LordMarrowgar_OnDeath")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement