Created: 26 days ago on 05/24/2025, 02:14:43 PM
Description: This is a self healing script uploaded by Nuthru to UO Sagas Discord
Messages.Overhead('Healing Started', 34)
Cooldown = {}; do
local data = {}
setmetatable(Cooldown, {
__call = function(t, k, v)
if not v then
return t[k]
end
t[k] = v
end,
__index = function(_, k)
local cd = data[k]
if not cd then
return
end
local v = cd.delay - (os.clock() - cd.clock) * 1000
if v < 0 then
data[k] = nil
v = nil
end
return v
end,
__newindex = function(_, k, v)
if not v then
data[k] = nil
return
end
local cd = data[k] or { clock = os.clock() }
cd.delay = type(v) == "number" and v > 0 and v or 0 or 0
data[k] = cd
end
})
end
while not Player.IsDead do
if Player.Hits < Player.HitsMax or Player.IsPoisoned then
local bandage = Items.FindByType(0x0E21)
if bandage and not Cooldown("BandageSelf") then
if Player.UseObject(bandage.Serial) then
if Targeting.WaitForTarget(500) then
Targeting.TargetSelf()
Cooldown("BandageSelf", (8.0 + 0.85 * ((130 - Player.Dex) / 20)) * 1000)
end
end
end
end
Pause(500)
end