Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[RP] Healing
#1
Hi,

Better script for healing.
It will consider mana and prioritize HP potion over Mana potion. From my experience this performs far better than built-in one.


Code:
-- config

    local mpPotion = 237
    local hpPotion = 23374

    local hpToPotion = 45
    local mpToPotion = 50

-- script

local spells = {
    {name = "exura gran san", healthP = 80, manaCost = 210, level = 60},
    {name = "exura gran", healthP = 90, manaCost = 70, level = 35},
    {name = "exura", healthP = 95, manaCost = 20, level = 8}
}

macro(500, "Healing", function()

    if hppercent() <= hpToPotion and findItem(hpPotion) then
        useWith(hpPotion, player)
    elseif ((hppercent() > hpToPotion and findItem(hpPotion)) or not findItem(hpPotion)) and manapercent() <= mpToPotion and findItem(mpPotion) then
        useWith(mpPotion, player)
    end

    for _, spell in pairs(spells) do
        if lvl() >= spell.level and mana() >= spell.manaCost then
            if hppercent() <= spell.healthP then
                say(spell.name)
                return
            end
        end
    end

end)
Reply
#2
thanks for this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)