Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
971 B
4
Indexable
Never
local amulet = 3081
local equip_ammy = null
if getNeck() then equip_ammy = getNeck():getId() end
macro(50, "Auto SSA", "Insert", function()
    if hppercent() <= 100 and (getNeck() == null or getNeck():getId() ~= amulet) then
            g_game.equipItemId(amulet)
            delay(200)
    elseif hppercent() >= 101 and (getNeck() == null or equip_ammy and getNeck():getId() ~= equip_ammy) then
        g_game.equipItemId(equip_ammy)
        delay(200)
    end
end)


-- equip might ring

local ring = 3048
local equip_ammy = null
if getFinger() then equip_ammy = getFinger():getId() end
macro(50, "Auto Might Ring", "Delete", function()
    if hppercent() <= 100 and (getFinger() == null or getFinger():getId() ~= ring) then
            g_game.equipItemId(ring)
            delay(200)
    elseif hppercent() >= 102 and (getFinger() == null or equip_ammy and getFinger():getId() ~= equip_ammy) then
        g_game.equipItemId(equip_ammy)
        delay(200)
    end
end)