Share Pastebin
Guest
Public paste!

Wx2

By: a guest | Mar 20th, 2010 | Syntax: Lua | Size: 4.86 KB | Hits: 69 | Expires: Never
Copy text to clipboard
  1. --[[
  2. Custom Illidan Script
  3.                 By Wx2
  4.         Thanks for trying my script out!
  5.        
  6. It's many locals incase you wish to change the spells to something else :)
  7. ]]--
  8.  
  9. local IllidanID = ID ---> Your Desired Illidan ID
  10. local FlamesofAzerothID = ID ---> Your Desired Flames of Azeroth ID
  11. local Faction = FacID ---> Enter the Minions Faction here
  12. local SpawnTime = Time ---> Enter the Spawntime of FlamesofAzeroth in Milliseconds
  13. local FlameCrash = ID ---> FlameCrash Spell ID
  14. local DrawSoul = ID ---> Draw Soul Spell ID
  15. local ShadowBlast = ID ---> ShadowBlast Spell ID
  16. local FireBall = ID ---> FireBall Spell ID
  17. local EyeBeam = ID ---> EyeBeam Spell ID
  18. local EnRage = ID ---> Enrage Spell ID
  19. local Soaring = ID ---> Soaring Spell ID
  20. local ShadowBolt = ID ---> ShadowBolt Spell ID
  21. local ShadowStep = ID ---> ShadowStep Spell ID
  22. local FlameBreath = ID ---> FlameBreath Spell ID
  23.  
  24.  
  25. function Illidan_OnCombat(pUnit, event, player)
  26.                 pUnit:SendChatMessage(14, 0, "Prepare to meet your end, I will crush you!)
  27.                         pUnit:RegisterEvent(Illidan_FlameCrash, 2500, 0)
  28.                         pUnit:RegisterEvent(Illidan_DrawSoul, 13000, 2)
  29.                         pUnit:RegisterEvent(Illidan_ShadowBlast, 15000, 1)
  30.                         pUnit:RegisterEvent(Illidan_FireBall, 5000, 0)
  31.                         pUnit:RegisterEvent(Illidan_EyeBeam, 32000, 2)
  32.                         pUnit:RegisterEvent(Illidan_Phase2, 1000, 0)
  33. end
  34.  
  35. function Illidan_FlameCrash(pUnit, event)
  36.                 pUnit:FullCastSpellOnTarget(FlameCrash, pUnit:GetMainTank())
  37. end
  38.  
  39. function Illidan_DrawSoul(pUnit, event)
  40.                 pUnit:FullCastSpellOnTarget(DrawSoul, pUnit:GetRandomPlayer(2))
  41. end
  42.  
  43. function Illidan_ShadowBlast(pUnit, event)
  44.                 pUnit:FullCastSpellOnTarget(ShadowBlast, pUnit:GetMainTank())
  45. end
  46.  
  47. function Illidan_FireBall(pUnit, event)
  48.                 pUnit:FullCastSpellOnTarget(FireBall, pUnit:GetRandomPlayer(4))
  49. end
  50.  
  51. function Illidan_EyeBeam(pUnit, event)
  52.                 pUnit:FullCastSpellOnTarget(EyeBeam, pUnit:GetRandomPlayer(0))
  53. end
  54.  
  55. function Illidan_Phase2(pUnit, event)
  56.         if pUnit:GetHealthPct() <= 75 then
  57.                 pUnit:RemoveEvents()
  58.                 pUnit:SendAreaTriggerMessage("Illidan is now entering Second Phase")
  59.                 pUnit:SendChatMessage(14, 0, "So you survived this far? I'll not let you get any further!")
  60.                 pUnit:CastSpell(EnRage)
  61.                         pUnit:RegisterEvent(Illidan_FlameCrash2, 4000, 0)
  62.                         pUnit:RegisterEvent(Illidan_Soaring, 20000, 0)
  63.                         pUnit:RegisterEvent(Illidan_FireBall2, 6000, 4)
  64.                         pUnit:RegisterEvent(Illidan_ShadowBolt, 10000, 1)
  65.                         pUnit:RegisterEvent(Illidan_ShadowStep, 30000, 4)
  66.                         pUnit:RegisterEvent(Illidan_EyeBeam2, 25000, 2)
  67.                         pUnit:RegisterEvent(Illidan_Phase3, 1000, 0)
  68.         end
  69. end
  70.  
  71. function Illidan_FlameCrash2(pUnit, event)
  72.                 pUnit:FullCastSpellOnTarget(FlameCrash, pUnit:GetRandomPlayer(0))
  73. end
  74.  
  75. function Illidan_Soaring(pUnit, event)
  76.                 pUnit:FullCastSpellOnTarget(Soaring, pUnit:GetRandomPlayer(0))
  77. end
  78.  
  79. function Illidan_FireBall2(pUnit, event)
  80.                 pUnit:FullCastSpellOnTarget(FireBall, pUnit:GetRandomPlayer(1))
  81. end
  82.  
  83. function Illidan_ShadowBolt(pUnit, event)
  84.                 pUnit:FullCastSpellOnTarget(ShadowBolt, pUnit:GetRandomPlayer(4))
  85. end
  86.  
  87. function Illidan_ShadowStep(pUnit, event)
  88.                 pUnit:FullCastSpellOnTarget(ShadowStep, pUnit:GetRandomPlayer(3))
  89. end
  90.  
  91. function Illidan_EyeBeam2(pUnit, event)
  92.                 pUnit:FullCastSpellOnTarget(EyeBeam, pUnit:GetMainTank())
  93. end
  94.  
  95. function Illidan_Phase3(pUnit, event)
  96.         if pUnit:GetHealthPct() <= 50 then
  97.                 pUnit:RemoveEvents()
  98.                 pUnit:SendAreaTriggerMessage("Illidan is now entering Third Phase!")
  99.                 pUnit:SendChatMessage(14, 0, "What? So you belive you can defeat me? I will never get defeated!")
  100.                 pUnit:CastSpell(EnRage)
  101.                 pUnit:RegisterEvent(Illidan_Fireball3, 5000, 0)
  102.                 pUnit:RegisterEvent(Illidan_FlameBreath, 7500, 1)
  103.                 pUnit:RegisterEvent(Illidan_EyeBeam3, 13000, 1)
  104.                 pUnit:RegisterEvent(Illidan_Soaring2, 30000, 2)
  105.                 pUnit:RegisterEvent(Illidan_Suffering, 27000, 1)
  106.                 pUnit:RegisterEvent(Illidan_SpawnMinions, 2000, 1)
  107.                 pUnit:RegisterEvent(Illidan_Phase4, 1000, 0)
  108. end
  109.  
  110. function Illidan_Fireball3(pUnit, event)
  111.                 pUnit:FullCastSpellOnTarget(FireBall, pUnit:GetRandomPlayer(3))
  112. end
  113.  
  114. function Illidan_FlameBreath(pUnit, event)
  115.                 pUnit:FullCastSpellOnTarget(FlameBreath, pUnit:GetMainTank())
  116. end
  117.  
  118. function Illidan_EyeBeam3(pUnit, event)
  119.                 pUnit:FullCastSpellOnTarget(EyeBeam, pUnit:GetRandomPlayer(4))
  120. end
  121.  
  122. function Illidan_Soaring2(pUnit, event)
  123.                 pUnit:FullCastSpellOnTarget(Soaring, pUnit:GetRandomPlayer(5))
  124.                 pUnit:SendChatMessage(14, 0, "Be gone!")
  125. end
  126.  
  127. function Illidan_Suffering(pUnit, event)
  128.                 pUnit:FullCastSpellOnTarget(Suffering, pUnit:GetAddTank())
  129. end
  130.  
  131. local x = pUnit:GetX()
  132. local y = pUnit:GetY()
  133. local z = pUnit:GetZ()
  134. local o = pUnit:GetO()
  135.  
  136. function Illidan_SpawnMinions(pUnit, event)
  137.                 pUnit:SendChatMessage(14, 0, "Attack my minions! I cannot accept failure, slay them all! Dont let anyone survive!")
  138.                 pUnit:SpawnCreature(FlamesofAzerothID, x+2, y+2, z, o+2,5, Faction, SpawnTime)
  139.                 pUnit:SpawnCreature(FlamesofAzerothID, x+3, y, z, o+6, Faction, SpawnTime