Code:
local RingID = 3052

Module('life shit', function(mod)
if Self.Ring().id ~= 3089 and Self.ItemCount(RingID) >= 1 and (not Self.isInPz()) and (Self.Mana() < Self.MaxMana()*(85/100)) then
Self.Equip(RingID, "ring")
elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
Self.Dequip("ring")
end
mod:Delay(2000)
end)
This should work