Advertisement
Guest User

Arcemu lua test kiljaeden

a guest
Aug 17th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.60 KB | None | 0 0
  1. -- Hand of The Deceiver
  2. function Deceiver_OnEnterCombat(pUnit, Event)
  3.    pUnit:RegisterEvent("Deceiver_Bolt", 4000, 0)
  4.    pUnit:RegisterEvent("Deceiver_channel", 1000, 0)
  5. end
  6.  
  7. function Deceiver_Bolt(pUnit, Event)
  8.    pUnit:FullCastSpellOnTarget(45770,pUnit:GetClosestPlayer())
  9. end
  10.  
  11. -- This is the where the "Hand of The Deceiver" Channels his spell.
  12. function Deceiver_channel(pUnit, Event)
  13.    if pUnit:GetHealthPct() == 01 then
  14.     pUnit:CastSpelll(30742)
  15. end
  16. end
  17.  
  18.  
  19. function Deceiver_OnDeath(pUnit, Event)
  20.   pUnit:SpawnCreature(25315, 1699.313965, 629.622986, 27.572056, 3.964567, 14, 0)
  21. end
  22.  
  23. -- END
  24.  
  25. function phase_1(pUnit, Event)
  26.  if pUnit:GetHealthPct() < 95 then
  27.   pUnit:RemoveEvents();
  28.   pUnit:SendChatMessage(14, 0, "Chaos!")
  29.   pUnit:CastSpellOnTarget(47248)
  30.   pUnit:PlaySoundToSet(12505)
  31.   pUnit:RegisterEvent("phase_2",1000, 0)
  32.  end
  33. end
  34.  
  35. function phase_2(pUnit, Event)
  36.  if pUnit:GetHealthPct() < 94 then
  37.   pUnit:RemoveEvents();
  38.   pUnit:SendChatMessage(14, 0, "Destruction!")
  39.   pUnit:CastSpell(39023)
  40.   pUnit:PlaySoundToSet(12506)
  41.   pUnit:RegisterEvent("phase_3",1000, 0)
  42.  end
  43. end
  44.  
  45. function phase_3(pUnit, Event)
  46.  if pUnit:GetHealthPct() < 93 then
  47.   pUnit:RemoveEvents();
  48.   pUnit:SendChatMessage(14, 0, "Oblivion!")
  49.   pUnit:PlaySoundToSet(12507)
  50.   pUnit:CastSpell(38627)
  51.   pUnit:CastSpell(38533)
  52.   pUnit:CastSpell(38533)
  53.   pUnit:CastSpell(38533)
  54.   pUnit:RegisterEvent("phase_4",1000, 0)
  55.  end
  56. end
  57.  
  58. function phase_4(pUnit, Event)
  59.  if pUnit:GetHealthPct() < 50 then
  60.   pUnit:RemoveEvents();
  61.   pUnit:SendChatMessage(14, 0, "I will not be denied! This world shall fall!")
  62.   pUnit:PlaySoundToSet(12508)
  63.   pUnit:CastSpell(45664)
  64.   pUnit:RegisterEvent("phase_5",1000, 0)
  65.  end
  66. end
  67.  
  68. function phase_5(pUnit, Event)
  69.  if pUnit:GetHealthPct() < 20 then
  70.   pUnit:RemoveEvents();
  71.   pUnit:SendChatMessage(14, 0, "Do not harbor false hope. You cannot win!")
  72.   pUnit:PlaySoundToSet(12509)
  73.   pUnit:CastSpell(40343)
  74.   pUnit:CastSpell(38441)
  75.   pUnit:CastSpell(512)
  76.   pUnit:CastSpell(25442)
  77.   pUnit:CastSpell(17668)
  78.   pUnit:CastSpell(40876)
  79.   pUnit:RegisterEvent("phase_6",1000, 0)
  80.  end
  81. end
  82.  
  83.  
  84. function phase_6(pUnit, Event)
  85.  if pUnit:GetHealthPct() < 01 then
  86.   pUnit:RemoveEvents();
  87.   pUnit:SendChatMessage(14, 0, "Ragh! The powers of the Sunwell turn against me! What have you done? What have you done?!")
  88.   pUnit:PlaySoundToSet(12510)
  89.   pUnit:CastSpell(44998)
  90.   pUnit:RegisterEvent("phase_7",1000, 0)
  91.  end
  92. end
  93.  
  94. function phase_7(pUnit, Event)
  95.  if pUnit:GetHealthPct() < 100 then
  96.   pUnit:RemoveEvents();        
  97.   pUnit:CastSpell(46474)
  98.  end
  99. end
  100.  
  101. function boss_spawn(pUnit, Event)
  102.     pUnit:RemoveEvents();
  103.     pUnit:SendChatMessage(14, 0, "The expendible have perished... So be it! Now I shall succeed where Sargeras could not! I will bleed this wretched world and secure my place as the true master of the Burning Legion. The end has come! Let the unraveling of this world commence!")
  104.     pUnit:PlaySoundToSet(12500)
  105.     pUnit:RemoveEvents();
  106.     pUnit:CastSpell(35177)
  107.     pUnit:RegisterEvent("boss_start",1000, 0)
  108. end
  109.  
  110.  
  111.  
  112.  
  113. function boss_start(pUnit, Event)  
  114.     pUnit:RegisterEvent("phase_1",1000, 0)
  115.  end
  116.  
  117. function boss_OnKill(pUnit, Event)
  118.   pUnit:SendChatMessage(14, 0, "Another step towards destruction!")
  119.   pUnit:PlaySoundToSet(12501)
  120.   pUnit:CastSpell(31972)
  121.  end
  122.  
  123. RegisterUnitEvent(25588, 1, "Deceiver_OnEnterCombat")
  124. RegisterUnitEvent(25588, 1, "Deceiver_channel")
  125. RegisterUnitEvent(25588, 1, "Deceiver_Bolt")
  126. RegisterUnitEvent(25588, 4, "Deceiver_OnDeath")
  127. RegisterUnitEvent(25315, 18, "boss_spawn")
  128. RegisterUnitEvent(25315, 1, "boss_start")
  129. RegisterUnitEvent(25315, 3, "boss_OnKill")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement