Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Utamo Ring For Archlight
- Version 2.1.2 (Priv Version)
- Created by Mr Trala
- Instructions;
- Just remember to config everything in the "config" section.
- Change Log;
- 2.1 -- Public released, fully working.
- 2.1.1 -- ReWorked everything.
- 2.1.2 -- Fixed a minor problem with EquipRing.
- Credits;
- Idea for the update; Ketoz.
- Shared with:
- Ketoz.
- Skip.
- ]]
- config = {
- RingID = 3051, -- The ring you want to use in x% mana and x% heal.
- RingOLD = 9585, -- The ID of the normal ring you wear.
- EquipHP = 60, -- Equip Ring at x% Health.
- EquipMP = 10, -- You should have this x% mana to equip e-ring.
- UnEquipHP = 65, -- Health % When you UnEquip The ring and put your other one back.
- UnEquipMP = 5 -- Mana % When you UnEquip The ring and put your other one back (So you don't run out off mana and dies anyways).
- }
- x = config
- function EquipRING()
- if Self.Health() <= x.EquipHP and Self.Mana() >= x.EquipMP and Self.Ring().id == x.RingOLD then
- Self.Equip(x.RingID, "ring")
- elseif Self.Health() >= x.UnEquipHP or Self.Mana() <= x.UnEquipMP then
- Self.Equip(x.RingOLD, "ring")
- end
- end
- registerEventListener(TIMER_TICK, "EquipRING")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement