Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. --[[
  2. Archlight Archer Skill rotation -- Darkk0n
  3. ]]
  4.  
  5. -- Configs
  6. local dist = 5 -- Distance from the target to use the spell (recommended 2 sqm for exevo en vis)
  7. local mana = 200 -- Minimum mana to try to use an spell (stop spam)
  8. local health = 95 -- Health x% to use manarune/exura san
  9. local mana = 80 -- Mana x% to use manarune
  10. local runemonk = 11632 -- ManaruneID
  11.  
  12. -- Exaus Configuration (for otservers) -- Don't touch this if you don't know what are you doing.
  13. local spell1 = "exori gran con"
  14. local spell2 = "exevo tera hur"
  15. local spell3 = "exevo gran mas flam"
  16. local spell4 = "exevo vis hur"
  17. local spell5 = "exura gran san"
  18.  
  19. -- Spells to use
  20. local words1 = "exori gran con"
  21. local words2 = "snaring shot"
  22. local words3 = "focused shot"
  23. local words4 = "energy cannon"
  24. local words5 = "exura san"
  25.  
  26. -- Don't touch this if you don't know what are you doing.
  27. Module.New('MonkAll', function(mod)
  28. local creature = Creature.GetByID(Self.TargetID())
  29.  
  30. Self.HealthPercent = function()
  31. return math.abs(Self.Health()/(Self.MaxHealth()*0.01))
  32. end
  33.  
  34. Self.ManaPercent = function()
  35. return math.abs(Self.Mana()/(Self.MaxMana()*0.01))
  36. end
  37.  
  38. if creature:isValid() and creature:isAlive() and creature:isTarget() and creature:DistanceFromSelf() <= dist then
  39. if Self.GetSpellCooldown(spell1) == 0 then
  40. Self.Cast(words1, mana)
  41. end
  42.  
  43. if Self.GetSpellCooldown(spell2) == 0 then
  44. Self.Cast(words2, mana)
  45. end
  46.  
  47. if Self.GetSpellCooldown(spell3) == 0 then
  48. Self.Cast(words3, mana)
  49. end
  50.  
  51. if Self.GetSpellCooldown(spell3) == 0 then
  52. Self.Cast(words4, mana)
  53. end
  54.  
  55.  
  56. end
  57. -- Mana rune and Exura San
  58. if Self.GetSpellCooldown(spell4) == 0 and Self.HealthPercent() <= health then
  59. Self.Cast(words5, mana)
  60. end
  61.  
  62. if Self.HealthPercent() <= health or Self.ManaPercent() <= mana then
  63. Self.UseItem(runemonk)
  64. end
  65.  
  66. -- Utani Kura
  67.  
  68. if not Self.isHasted() then
  69. Self.Cast('Aiming Haste', 60)
  70. end
  71. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement