auto(800, 1000)
if $lootbodies == 0 and $battlesigned then
local mpId, hpId = tonumber(getuseroption('mpId')), tonumber(getuseroption('hpId'))
local mpCheck, hpCheck, capCheck = tonumber(getuseroption('mpCheck')), tonumber(getuseroption('hpCheck')), tonumber(getuseroption('capCheck'))
if itemcount(mpId) < mpCheck or itemcount(hpId) < hpCheck or $cap < capCheck or $pattacker.id ~= 0 then
if $posz == 10 then
gotolabel("leave lower")
else
gotolabel("leave normal")
end
setsetting("Persistent/Scripts/ForceRefill/Enabled", "no")
settargeting("off")
end
end
There's no need for two hotkeys, use a single one.