Advertisement
MrTrala

Knight MLER - Cyntara

Jul 19th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. --[[
  2.     Train ML (in trainers) for Cyntara
  3.     Version 1.1
  4.     By Mr Trala
  5.    
  6.  
  7. ]]
  8.  
  9. config = {
  10.     words = 'utani tempo hur', -- The words you want to use to "train" ML
  11.     manaper = 70 -- Percent of mana to use it, in this example 70%
  12. }
  13.  
  14. Self.HP = function()
  15. return math.abs(Self.Health()/(Self.MaxHealth()*0.01))
  16. end
  17.  
  18. Self.MP = function()
  19. return math.abs(Self.Mana()/(Self.MaxMana()*0.01))
  20. end
  21.  
  22. function Train()
  23.     if Self.MP() >= config.manaper then
  24.         Self.Cast(config.words, 1000)
  25.     end
  26. end
  27.  
  28. registerEventListener(TIMER_TICK, "Train")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement