Advertisement
MrTrala

MonkCombo (Working 100%)

Feb 5th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.80 KB | None | 0 0
  1. --[[
  2.     All Monk for ArchLight
  3.     Version 1.0
  4.     by Mr Trala
  5. ]]
  6.  
  7. -- Configs
  8. local dist = 1 -- Distance from the target to use the spell (recommended 2 sqm for exevo en vis)
  9. local mana = 200 -- Minimum mana to try to use an spell (stop spam)
  10. local health = 95 -- Health x% to use manarune/exura san
  11. local mana = 80 -- Mana x% to use manarune
  12. local runemonk = 11632 -- ManaruneID
  13.  
  14. -- Exaus Configuration (for otservers) -- Don't touch this if you don't know what are you doing.
  15. local spell1 = "exura gran ico"
  16. local spell2 = "exori ico"
  17. local spell3 = "exori gran ico"
  18. local spell4 = "exura gran san"
  19.  
  20. -- Spells to use
  21. local words1 = "kura gran flur"
  22. local words2 = "kura flur"
  23. local words3 = "kura min flur"
  24. local words4 = "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.            
  52.     end
  53.     -- Mana rune and Exura San
  54.         if Self.GetSpellCooldown(spell4) == 0 and Self.HealthPercent() <= health then
  55.             Self.Cast(words4, mana)
  56.         end
  57.        
  58.         if Self.HealthPercent() <= health or Self.ManaPercent() <= mana then
  59.             Self.UseItem(runemonk)
  60.         end
  61.        
  62.     -- Utani Kura
  63.        
  64.         if not Self.isHasted() then
  65.             Self.Cast('Utani Kura', 60)
  66.         end
  67. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement