Yo, I'm wondering if someone can make an e-ring script that unequips e-ring while im pressing on a binded key. Why I don't use auto e ring while x hp and unequip on x hp is because the ot I play has exhaust on rings, which makes it more optimal to equip and unequip rings in your own tempo. I've tried to fix an own script, but havent succeed. Can someone somehow merge these scripts together and make it like I want.

Here's an old script where you bind a key:

local keyID = 35 --What key to press

--Home = 36
--PGUP = 33
--PGDOWN = 34
--END = 35
--DELETE = 46

-----------
local toggle = false

if not Hotkeys.Register(keyID) then
print("Could not register key")
end

function pressHandler(key, control, shift)
if (toggle) then
toggle = true
print('Unequip ring')
end

end

And here's the script for unequip ring:

if (toggle) then
Self.Dequip('ring', ringbp)
end
local item = {normal = Item.GetID(ring), active = Item.GetRingActiveID(Item.GetID(ring))}
local item = {normal = Item.GetID(ring), active = Item.GetRingActiveID(Item.GetID(ring))}
end

Thank you in advance and have a nice summer.