Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Train ML (in trainers) for Cyntara
- Version 1.1
- By Mr Trala
- ]]
- config = {
- words = 'utani tempo hur', -- The words you want to use to "train" ML
- manaper = 70 -- Percent of mana to use it, in this example 70%
- }
- Self.HP = function()
- return math.abs(Self.Health()/(Self.MaxHealth()*0.01))
- end
- Self.MP = function()
- return math.abs(Self.Mana()/(Self.MaxMana()*0.01))
- end
- function Train()
- if Self.MP() >= config.manaper then
- Self.Cast(config.words, 1000)
- end
- end
- registerEventListener(TIMER_TICK, "Train")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement