Advertisement
MrTrala

ManaRune WO Mana -outdated- Need a minor fix

Dec 1st, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. --[[
  2.     Manarune for Archlight (Version without mana healer - guardian, monk or zerker)
  3.     Version 2.0
  4.     By Mr Trala
  5. ]]
  6.  
  7. local config = {
  8.     health = 95, -- %X of health to use mana rune
  9.     runemage = 11614,
  10.     runezerk = 11604,
  11.     runemonk = 11632
  12. }
  13.  
  14.  
  15. Self.HealthPercent = function()
  16. return math.abs(Self.Health()/(Self.MaxHealth()*0.01))
  17. end
  18.  
  19.  
  20. Module.New('ManaRune', function(mod)
  21.     if Self.ItemCount(config.runemage) then
  22.         if Self.HealthPercent() <= config.health then
  23.             Self.UseItem(config.runemage)
  24.             wait(400, 600)
  25.         end
  26.     end
  27.        
  28.     if Self.ItemCount(config.runezerk) then
  29.         if Self.HealthPercent() <= config.health then
  30.             Self.UseItem(config.runezerk)
  31.             wait(400, 600)
  32.         end
  33.     end
  34.        
  35.     if Self.ItemCount(config.runemonk) then
  36.         if Self.HealthPercent() <= config.health then
  37.             Self.UseItem(config.runemonk)
  38.             wait(400, 600)
  39.         end
  40.     end
  41. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement