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
shoot rune on target
#1
local Monsters = { 'Dragon' }
local Rune_Monsters = 3198 -- Rune to shoot on listed monsters above.
local MinMonsters = 1 -- Min. count to shoot rune.
local SafeHealth = 60 -- Shoot runes only if your HP % is higher or equal to this valaue.

if connected() and maround(0, unpack(Monsters)) >= MinMonsters and hppc() >= SafeHealth and cancast() then
    table.lower(Monsters)

    local creatures = getcreatures('mpfs')

    for _, creature in ipairs(creatures) do
        if  table.find(Monsters, creature.name:lower()) ~= nil then
            useitemoncreature(Rune_Monsters, creature.id)
            wait(1950, 2100)
            break
        end
    end
end





i use this to shoot hmm, but i want two changes:

first, to only shoot if my target hp is between "20 and 100%"
second, to add a new function "SafeSummonHealth", it would check if my demon skeleton have >30% hppc, and only if it does, shoot the hmm.

can you do this for me pls?

#2
Bot can't guess what's your summon, so you should setup the summon id.
local Monsters = { 'Dragon' }
local Rune_Monsters = 3198 -- Rune to shoot on listed monsters above.
local MinMonsters = 1 -- Min. count to shoot rune.
local MonsterHp = { Min = 20, Max = 100 } -- Monster hp range to shoot rune.
local SafeHealth = 60 -- Shoot runes only if your HP % is higher or equal to this valaue.
local SafeSummonHealth = 30 -- Shoot runes only if your Summon HP % is higher or equal to this valaue.
local SummonId = 0 -- Your summons id.

if connected() and maround(0, unpack(Monsters)) >= MinMonsters and hppc() >= SafeHealth and cancast() then
    table.lower(Monsters)

    local creatures = getcreatures('mpfs')
    local SummonCheck = false
    if SafeSummonHealth == 0 or SummonId == 0 then
        SummonCheck = true
    else
        for _, creature in ipairs(creatures) do
            if  creature.id == SummonId then
                if creature.hppc >= SafeSummonHealth then
                    SummonCheck = true
                end
                break
            end
        end
    end

    if SummonCheck then
        for _, creature in ipairs(creatures) do
            if  table.find(Monsters, creature.name:lower()) ~= nil and creature.hppc >= MonsterHp.Min and creature.hppc <= MonsterHp.Max then
                useitemoncreature(Rune_Monsters, creature.id)
                wait(1950, 2100)
                break
            end
        end
    end
end

Alternatively, you can use this based on summon name, but if another monster with same name shows up then it mess up.
local Monsters = { 'Dragon' }
local Rune_Monsters = 3198 -- Rune to shoot on listed monsters above.
local MinMonsters = 1 -- Min. count to shoot rune.
local MonsterHp = { Min = 20, Max = 100 } -- Monster hp range to shoot rune.
local SafeHealth = 60 -- Shoot runes only if your HP % is higher or equal to this valaue.
local SafeSummonHealth = 30 -- Shoot runes only if your Summon HP % is higher or equal to this valaue.
local SummonName = 'Demon Skeleton' -- Your summons name.

if connected() and maround(0, unpack(Monsters)) >= MinMonsters and hppc() >= SafeHealth and cancast() then
    table.lower(Monsters)

    local creatures = getcreatures('mpfs')
    local SummonCheck = false
    if SafeSummonHealth == 0 or SummonName == '' then
        SummonCheck = true
    else
        for _, creature in ipairs(creatures) do
            if  creature.name:lower() == SummonName:lower() then
                if creature.hppc >= SafeSummonHealth then
                    SummonCheck = true
                end
                break
            end
        end
    end

    if SummonCheck then
        for _, creature in ipairs(creatures) do
            if  table.find(Monsters, creature.name:lower()) ~= nil and creature.hppc >= MonsterHp.Min and creature.hppc <= MonsterHp.Max then
                useitemoncreature(Rune_Monsters, creature.id)
                wait(1950, 2100)
                break
            end
        end
    end
end

#3
bro you're the best! thanks



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016