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 mob
#1
Hello!
Didnt find a script that shoots a rune at specific mob.
Lets say I want to shoot at ghoul lmm rune once my hp above some %.
I will do it at melee range.

Normal targeting doesnt work for me, when character heals it stops attacking mobs with a rune and just stands and tries to melee them

Thanks in advance!
Reply

#2
Hello.

The reason is quite obvious, it should not shoot runes while you are healing. Otherwise, you could die.
So it will only shoot runes while not healing.

The correct section to request scripts is Scripts->Requests. So please, keep that in mind for any future requests.
I'm moving your thread to the correct section.

But here it goes, the script that you requested.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />
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

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Oh sorry, didnt see this section, pretty new here. Script works like a charm, attacks as I expected it! Kudos

Ah I noticed one thing that is missing, open next bp once its empty, would help a lot
Reply

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

#5
is there a way to do this but with custom runes?
so item id instead of sudden death rune or heavy magic missile rune?
Reply

#6
Yes, you just need to setup Rune field with the rune id.
Example:
{ Name = 'Orc', HpMin = 20, HpMax = 100, Rune = 1234 }
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016