midoking

sad

Feb 12th, 2017
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.55 KB | None | 0 0
  1. local Boss = 80023
  2.  
  3. local function Ares_EnterCombat(event, creature, target)
  4.     creature:SendUnitYell("You came to me by your leg? awesome you'll regret! haahahaahahahahahahaha",0)
  5.     -- [[ Shadow bolt ]]--
  6.     function ShadowBolt(eventID, delay, pCall)
  7.         creature:CastSpell(creature:GetVictim(), 21141, true)
  8.     end
  9.     -- [[ Arcane explosion ]]--
  10.     function ArcaneExplosion(eventID, delay, pCall)
  11.         creature:CastSpell(creature:GetVictim(), 36607, true)
  12.     end
  13.     -- [[ Air Burst || knock away]]--
  14.     function AirBurst(eventID, delay, pCall)
  15.         creature:CastSpell(creature:GetVictim(), 45, true)
  16.     end
  17.     function SlitherEvents(event, creature, diff)
  18.     if(creature:GetHealthPct() <= 60) then
  19.         creature:SendUnitYell("You came to me by your leg? awesome you'll regret! haahahaahahahahahahaha",0)
  20.         creature:RegisterEvent(AirBurst, 1000, 0) -- 14 seconds
  21.     end
  22.     end
  23.     creature:CastSpell(target, 21141, true)
  24.     creature:RegisterEvent(ShadowBolt, 6000, 0) -- 6 seconds
  25.     creature:RegisterEvent(ArcaneExplosion, 12000, 0) -- 12 seconds
  26.     creature:RegisterEvent(AirBurst, 14000, 0) -- 14 seconds
  27. end
  28.  
  29. local function Ares_Dead(event, creature, killer)
  30.     creature:RemoveEvents()
  31. end
  32.  
  33. local function Ares_LeaveCombat(event, creature)
  34.     creature:RemoveEvents()
  35. end
  36.  
  37. local function Ares_Spawn(event, creature, killer)
  38.     creature:RemoveEvents()
  39. end
  40.  
  41. RegisterCreatureEvent(Boss, 1, Ares_EnterCombat)
  42. RegisterCreatureEvent(Boss, 2, Ares_LeaveCombat)
  43. RegisterCreatureEvent(Boss, 4, Ares_Dead)
  44. RegisterCreatureEvent(Boss, 5, Ares_Spawn)
  45. RegisterCreatureEvent(Boss, 7, SlitherEvents)
Advertisement
Add Comment
Please, Sign In to add comment