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
FREE Attack closest monster
#1
Attack closest monster
This script was developed to be used in Hotkeys. If you want to attack monsters to hunt, together with Cavebot, then use Targeting. Targeting also has options (Targeting -> Targeting Priority) to select the best creature according to your need.
if connected() then
    local best_creature = nil
    local creatures = getcreatures('mfs')
    for _, creature in ipairs(creatures) do
        if best_creature == nil or best_creature.dist > creature.dist then
            best_creature = creature
        end
    end

    if best_creature ~= nil then
        attack(best_creature.id)
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016