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
Changing target
#1
Looking for such a script for skilling:



If 2 creatures, then

attak second orc when hp of first orc <10%

if both orcs has <10% hp then 
do nothing.

Thanks a lot.

#2
Hello.

If you are hunting then setup on Targeting to attack Orc when it has 10 to 100%. Because if you are using Targeting and use this script, Targeting will just stop attack the creature and attacks what you configured on Targeting.

This script will attack an orc with 10%+ hp if you are attacking nothing or attacking another orc with less than 10%.
local attacking_creature = attacked()

if attacking_creature.id == 0 or (attacking_creature.name == 'Orc' and attacking_creature.hppc < 10) then
    if attacking_creature.id > 0 then
        stopattack()
    end
    local creatures = getcreatures('mfs')
    for _, creature in ipairs(creatures) do
        if creature.name == 'Orc' and creature.hppc >= 10 then
            attack(creature.id)
            break
        end
    end
end

#3
Not works correctly, because i expect that when both orcs has <10%, bot kill them all and will go to lure next creatures.

maybe sth like: when both orcs has <10% then change Hp(%): (in targeting) from 10-100% to 0-100%.
In this way it would be more effective.

#4
Hello.

I did EXACTLY what you asked for. Be very clear in your request so that we don't waste time here.

You said to ignore orcs when they have <10%, not to kill them.
|Only Registered members can see download links. | Click here to buy subscription or here to register.

#5
i meant do nothing = stop changing target
Your right, my bad.



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016