Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable targeting when hppc drops below
#1
if hppc<60
then disable targeting

and stop attacking monster
if hppc>61
then enable targeting


i'm using hmms and find that it can get dangerous when my hp drops and i have exhaust
Reply

#2
Hello.

It's easier to change spell to "no spell" or use a persistent to shoot runes instead of disable Targeting, but here it goes:
if hppc() < 60 then
    setsettings('Targeting/Enabled', false)
else
    setsettings('Targeting/Enabled', true)
end
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.

I'm trying these persistents I found in search, thank you.
local Backpack = 'green backpack' -- specific container to check for runes.
local Rune = 'ultimate healing rune' -- rune to check.

local OPEN_BACKPACK = true -- open next backpack for more runes?

local PLAY_ALERT = true -- Play alert on MinCount?
local ALERT_COUNT = 2 -- Min. count to play alert.

--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]

if connected() then
    Rune = itemid(Rune)

    local Containers = getcontainers()

    for i = 1, #Containers do
        local cont = Containers[i]
        local ContainerSlot = -1
        local RunesCount = 0

        if (cont.name:lower() == Backpack:lower() or tostring(Backpack) == tostring(cont.index)) then
            for j = 1, #cont.items do
                local item = cont.items[j]
                if itemhasflags(item.id, 4) then
                    ContainerSlot = item.index
                elseif item.id == Rune then
                    RunesCount = RunesCount + item.count
                end
            end

            if OPEN_BACKPACK and RunesCount == 0 and ContainerSlot >= 0 then
                openitemslot(ContainerSlot, cont.index, false)
                wait(1000)
            elseif PLAY_ALERT and RunesCount <= ALERT_COUNT and ContainerSlot == -1 then
                playsound('default')
                flashclient()
                wait(800)            
            end
        end
    end
end
local MIN_HEALTH = 80 -- Min. health pc to shoot runes. Only shoot runes if your characters hp% is higher than this value.
local Monsters = {
    { Name = 'Demon', HpMin = 0, HpMax = 100, Rune = 'heavy magic missile rune' }, -- Monster name, Hp min and max to shoot runes and which rune.
    { Name = 'Orc', HpMin = 20, HpMax = 100, Rune = 'heavy magic missile rune' }, -- On this case, it will only shoot runes when orc has hp% between 20 and 100%.
}

local attacked_creature = attacked()
if attacked_creature.id > 0 and hppc() >= MIN_HEALTH and cancast() then
    for _, monster in ipairs(Monsters) do
        if monster.Name:lower() == attacked_creature.name:lower() and attacked_creature.hppc >= monster.HpMin and attacked_creature.hppc <= monster.HpMax then
            useitemoncreature(monster.Rune, attacked_creature.id)
            wait(1000, 1300)
            break
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016