Advertisement
Guest User

ElunaLuaEngineBTScript

a guest
Jul 5th, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. local function highwarlord_needlespine1(Unit, Event)
  2. Unit:CastSpell(39835)
  3. end
  4.  
  5. local function highwarlord_needlespine(Unit, Event)
  6. Unit:CastSpell(39992)
  7. Unit:RegisterEvent("highwarlord_needlespine1",0, 0)
  8. end
  9.  
  10. local function highwarlord_impalingspine(unit)
  11. local plr = unit:GetClosestPlayer()
  12. if (plr ~= nil) then
  13. unit:CastSpellOnTarget(39837, plr)
  14. local spruch = math.random(1,2)
  15. end
  16. if (spruch == 1) then
  17. Unit:SendChatMessage(12,0, "Stick around!")
  18. elseif (spruch == 2) then
  19. Unit:sendChatMessage(12,0, "I'll deal with you later!")
  20. end
  21. end
  22.  
  23. local function highwarlord_tidalshield(unit)
  24. unit:CastSpell(39872)
  25. unit:SendChatMessage(12,0, "Blood will flow! ")
  26. end
  27.  
  28. local function highwarlord_enrage(unit)
  29. unit:CastSpell(46587)
  30. Unit:SendChatMessage(12,0, "My patience has run out! Die, die!")
  31. end
  32.  
  33. local function highwarlord_OnKilledTarget(unit, Event)
  34. local spruch = math.random(1,2)
  35. if (spruch == 1) then
  36. Unit:SendChatMessage(12,0, "Your success was short lived!")
  37. elseif (spruch == 2) then
  38. Unit:sendChatMessage(12,0, "Time for you... to go!")
  39. end
  40. end
  41.  
  42. local function highwarlord_OnCombat(Unit, Event)
  43. Unit:SendChatMessage(12,0, "You will die, in the name of Lady Vashj!")
  44. Unit:RegisterEvent("highwarlord_needlespine",7500, 0)
  45. Unit:RegisterEvent("highwarlord_enrage",480000, 0)
  46. Unit:RegisterEvent("highwarlord_tidalshield",60000, 0)
  47. Unit:RegisterEvent("highwarlord_impalingspine",20000, 0)
  48. end
  49.  
  50. local function highwarlord_OnDied(Unit, Event)
  51. Unit:SendChatMessage(12,0, "Lord Illidan will... crush you.")
  52. unit:RemoveEvents()
  53. end
  54.  
  55. RegisterCreatureEvent(22887, 1, "highwarlord_OnCombat")
  56. RegisterCreatureEvent(22887, 3, "highwarlord_OnKilledTarget")
  57. RegisterCreatureEvent(22887, 4, "highwarlord_OnDied")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement