Alscara

Untitled

Dec 7th, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local manaPercent = 75 -- Mana
  2.  
  3. Self.ManaPercent = function ()
  4. return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))
  5. end
  6.  
  7. Module.New('res', function()
  8. local c = 0
  9. for _, player in pairs(Self.GetSpectators()) do
  10. if player:Name() == "Dimige" then
  11. c = player
  12. end
  13. end
  14. if c ~= 0 and Self.FollowID() ~= c:ID() then
  15. c:Follow()
  16. end
  17. if (Self.ManaPercent() < manaPercent) then
  18. Self.Say("res")
  19. wait(3000)
  20. end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment