Advertisement
MrTrala

MonkCombo (500+ with knockout)

Feb 5th, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.15 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
  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 = "exevo vis hur"
  18. local spell4 = "exori gran ico"
  19. local spell5 = "exura gran san"
  20.  
  21. -- Spells to use
  22. local words1 = "kura gran flur"
  23. local words2 = "kura flur"
  24. local words3 = "kura knockout"
  25. local words4 = "kura min flur"
  26. local words5 = "exura san"
  27.  
  28. --  Don't touch this if you don't know what are you doing.
  29. Module.New('MonkAll', function(mod)
  30. local creature = Creature.GetByID(Self.TargetID())
  31.  
  32.     Self.HealthPercent = function()
  33.         return math.abs(Self.Health()/(Self.MaxHealth()*0.01))
  34.     end
  35.    
  36.     Self.ManaPercent = function()
  37.         return math.abs(Self.Mana()/(Self.MaxMana()*0.01))
  38.     end
  39.    
  40.     if creature:isValid() and creature:isAlive()  and creature:isTarget() and creature:DistanceFromSelf() <= dist then
  41.         if Self.GetSpellCooldown(spell1) == 0 then
  42.             Self.Cast(words1, mana)
  43.         end
  44.        
  45.         if Self.GetSpellCooldown(spell2) == 0 then
  46.             Self.Cast(words2, mana)
  47.         end
  48.        
  49.         if Self.GetSpellCooldown(spell3) == 0 then
  50.             Self.Cast(words3, mana)
  51.         end
  52.        
  53.         if Self.GetSpellCooldown(spell4) == 0 then
  54.             Self.Cast(words4, mana)
  55.         end
  56.            
  57.            
  58.     end
  59.     -- Mana rune and Exura San
  60.         if Self.GetSpellCooldown(spell5) == 0 and Self.HealthPercent() <= health then
  61.             Self.Cast(words5, mana)
  62.         end
  63.        
  64.         if Self.HealthPercent() <= health or Self.ManaPercent() <= mana then
  65.             Self.UseItem(runemonk)
  66.         end
  67.        
  68.     -- Utani Kura
  69.        
  70.         if not Self.isHasted() then
  71.             Self.Cast('Utani Kura', 60)
  72.         end
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement