Advertisement
Guest User

Arthas

a guest
Apr 12th, 2011
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.05 KB | None | 0 0
  1. function zzOnLeaveCombat(unit, event)
  2.     unit:SetScale(2)
  3. end
  4.  
  5. function zzOnCombat(unit, event)
  6.     unit:SendChatMessage(14, 0, "Ahahaha... The end is upon you! Enter oblivion!")
  7.     unit:RegisterEvent("zzphase1", 3000, 0)
  8.     unit:RegisterEvent("zzsound", 14000, 1)
  9.     unit:RegisterEvent("zzcasting", 10000, 0)
  10.     unit:SetScale(2.5)
  11.     unit:PlaySoundToSet(17224)
  12. end
  13.  
  14. function zzOnKillTarget(unit, event)
  15.     unit:SendChatMessage(14, 0, "Die well.... fool!")
  16.     unit:PlaySoundToSet(17256)
  17. end
  18.  
  19. function zzOnDeath(unit, event)
  20.     unit:CastSpell(63660)
  21.     unit:CastSpell(63660)
  22.     unit:SendChatMessage(42, 0, "The Lich King has been defeated!")
  23. end
  24.  
  25. RegisterUnitEvent(90050, 4, "zzOnDeath")
  26. RegisterUnitEvent(90050, 3, "zzOnKillTarget")
  27. RegisterUnitEvent(90050, 2, "zzOnLeaveCombat")
  28. RegisterUnitEvent(90050, 1, "zzOnCombat")
  29.  
  30. function zzsound(unit, event)
  31.     unit:PlaySoundToSet(17230)
  32.     unit:SendChatMessage(14, 0, "You now stand upon the hallowed ground of the scourge... The light won't protect you here Paladin... Nothing will protect you...")
  33. end
  34.  
  35. function zzcasting(unit, event)
  36.     local JaggedCheck = Unit:GetRandomPlayer(0)
  37.     if (JaggedCheck ~= nil) then
  38.     unit:FullCastSpellOnTarget(22357, JaggedCheck)
  39.     end
  40. end
  41.  
  42. function zzphase1(unit, event)
  43. if unit:GetHealthPct() <90 then
  44.         unit:RemoveEvents()
  45.         unit:RegisterEvent("zzcasting", 10000, 0)
  46.         x = unit:GetX();
  47.         y = unit:GetY();
  48.         z = unit:GetZ();
  49.         unit:CastSpellAoF(x, y, z, 34017)
  50.         unit:SendChatMessage(14, 0, "So... You wish to commune with the dead? You shall have your wish!")
  51.         unit:PlaySoundToSet(17226)
  52.         unit:RegisterEvent("zzphase2", 8000, 0)
  53.     end
  54. end
  55.    
  56.  
  57. function zzphase2(unit, event)
  58.     if unit:GetHealthPct() <70 then
  59.         unit:RemoveEvents()
  60.         unit:RegisterEvent("zzcasting", 10000, 0)
  61.         unit:SendChatMessage(14, 0, "In the end... you will all serve me!")
  62.         unit:PlaySoundToSet(17234)
  63.         unit:RegisterEvent("zzphase3", 2000, 0)
  64.     end
  65. end
  66.  
  67. function zzphase3(unit, event)
  68.     if unit:GetHealthPct() <50 then
  69.         unit:RemoveEvents()
  70.         unit:RegisterEvent("zzcasting", 10000, 0)
  71.         unit:CastSpell(48582)
  72.         unit:SendChatMessage(42, 0, "The Lich King summons his undead minions!")
  73.         unit:SendChatMessage(14, 0, "The moment is soon at hand mortal, you shall toil for eternity...in a new azeroth!")
  74.         unit:PlaySoundToSet(17245)
  75.         x = unit:GetX();
  76.         y = unit:GetY();
  77.         z = unit:GetZ();
  78.         o = unit:GetO();
  79.         x = x - 2
  80.         y = y - 2
  81.         unit:SpawnCreature(90051, x, y, z, o, 17, 450000);
  82.         x = x + 4
  83.         y = y + 4
  84.         unit:SpawnCreature(90051, x, y, z, o, 17, 450000);
  85.         unit:SpawnCreature(90051, x, y, z, o, 17, 450000);
  86.         unit:SpawnCreature(90051, x, y, z, o, 17, 450000);
  87.         unit:RegisterEvent("zzphase4", 3000, 0)
  88.     end
  89. end
  90.  
  91. function zzphase4(unit, event)
  92.     if unit:GetHealthPct() <35 then
  93.         unit:RemoveEvents()
  94.         unit:RegisterEvent("zzcasting", 10000, 0)
  95.         unit:SendChatMessage(14, 0, "Your heart... its Incessant drumming digusts me... I shall silence it, like I did my own!")
  96.         unit:PlaySoundToSet(17249)
  97.         unit:CastSpell(15716)
  98.         unit:SendChatMessage(42, 0, "The Lich King Berserks!")
  99.         x = unit:GetX();
  100.         y = unit:GetY();
  101.         z = unit:GetZ();
  102.         o = unit:GetO();
  103.         x = x - 2
  104.         y = y - 2
  105.         unit:SpawnCreature(90051, x, y, z, o, 17, 450000);
  106.         x = x + 4
  107.         y = y + 4
  108.         unit:SpawnCreature(90051, x, y, z, o, 17, 450000);
  109.         unit:SpawnCreature(90051, x, y, z, o, 17, 450000);
  110.         unit:SpawnCreature(90051, x, y, z, o, 17, 450000);
  111.         unit:RegisterEvent("zzphase5", 4000, 0)
  112.     end
  113. end
  114.  
  115. function zzphase5(unit, event)
  116.     if unit:GetHealthPct() <25 then
  117.         unit:RemoveEvents()
  118.         unit:RegisterEvent("zzcasting", 10000, 0)
  119.         unit:SendChatMessage(14, 0, "The light will abandon you hero... just as it did me.")
  120.         unit:PlaySoundToSet(17250)
  121.         unit:RegisterEvent("zzphase6", 5000, 0)
  122.     end
  123. end
  124.  
  125. function zzphase6(unit, event)
  126.     if unit:GetHealthPct() <10 then
  127.         unit:RegisterEvent("zzcasting", 10000, 0)
  128.         unit:RemoveEvents()
  129.         unit:SendChatMessage(42, 0, "The Lich King suffered a critical blow!")
  130.     end
  131. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement