Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Potting for Archlight
- Version 1.0
- By Mr Trala
- ]]
- config = {
- Mana = 90, -- Mana % to use your "MANAID"
- Health = 90, -- Health % to use your "HPID"
- HPID = 266, -- Id of your health potion
- MPID = 238, -- Id of your mana potion
- SpellN = "utamo vita", -- Words for your spell
- SpellM = 80, -- How many mana to use spell (so you don't keep spaming if 0 mana)
- SpellE = 10 -- Spell Exhausted (in secs)
- }
- Self.HealthPercent = function()
- return math.abs(Self.Health()/(Self.MaxHealth()*0.01))
- end
- Self.ManaPercent = function()
- return math.abs(Self.Mana()/(Self.MaxMana()*0.01))
- end
- Module.New('Potting', function(mod)
- if Self.HealthPercent() <= config.Health then
- Self.UseItemWithMe(config.HPID)
- wait(400, 500)
- end
- if Self.ManaPercent() <= config.Mana then
- Self.UseItemWithMe(config.MPID)
- wait(400, 500)
- end
- end)
- Module.New('Spell', function(Mod)
- if(Self.Mana() >= config.Mana) then
- Self.Cast(config.SpellN)
- end
- Mod:Delay((config.SpellE * 1000), (config.SpellE * 1000) + 500)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement