Hello.
MONSTERS table is the list of monsters that script should check.
MONSTERS_DIST is the minimum distance to check for listed monsters to equip ring.
RING_IDS contains the ring ids while in use (equipped in your finger) and not in use (in your backpack for example).
local MONSTERS = { 'Dragon' }
local MONSTERS_DIST = 2
local RING_IDS = { InUse = 3095, NotInUse = 3092 }
table.lower(MONSTERS)
local attacked_creature = attacked()
if maround(MONSTERS_DIST, table.unpack(MONSTERS)) > 0 then
local finger_item = finger()
if finger_item.id ~= RING_IDS.InUse then
moveitems(RING_IDS.NotInUse, 'finger', '', 100)
wait(500, 800)
end
else
local finger_item = finger()
if finger_item.id == RING_IDS.InUse then
moveitems(RING_IDS.InUse, '', 'finger', 100)
wait(500, 800)
end
end