Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ManaRune for Archlight
- Version 2.5.1
- By Mr Trala
- Instructions;
- Just put a "true" to your vocation
- Necromancer, Bard, Druid and Sorcerer use "MageR"
- Berserker and Guardian use "GuardianR"
- Archer and Monk use "ArcherR"
- That's it!
- Have Fun!
- ]]
- config = {
- Mana = 90, -- %X of mana to use mana rune
- Health = 95, -- %X of health to use mana rune
- MageR = true, -- Necromancer, Bard, Druid and Sorcerer
- GuardianR = false, -- Berserker and Guardian
- ArcherR = false, -- Archer and Monk
- --Don't touch this.
- Mage = 11614,
- Guardian = 11604,
- Archer = 11632,
- }
- 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 ManaRune()
- if config.MageR then
- if Self.HP() <= config.Health or Self.MP() <= config.Mana then
- Self.UseItem(config.Mage)
- wait(1000, 1100)
- end
- elseif config.GuardianR then
- if Self.HP() <= config.Health or Self.MP() <= config.Mana then
- Self.UseItem(config.Guardian)
- wait(1000, 1100)
- end
- elseif config.ArcherR then
- if Self.HP() <= config.Health or Self.MP() <= config.Mana then
- Self.UseItem(config.Archer)
- wait(1000, 1100)
- end
- end
- end
- registerEventListener(TIMER_TICK, "ManaRune")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement