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
Persistents Stop and Script
#1
Question 
I would like some help, I'm making a cavebot, and in a certain action with location, it will pause a persistents action, can we do it?
And after a certain time in another cavebot action it will reactivate it again.


I would also like to add an action to the script below, I want it so that when it locates this particular item on the screen, it uses item id 3429 in these list items.

local ITEMS = { 1234, 4321 }


if dist == nil then
    function dist(x, y)
        local xDist = math.abs(posx() - x);
        local yDist = math.abs(posy() - y);

        if xDist >= yDist then
            return xDist
        end

        return yDist
    end
end

if connected() then
    local player_x = posx()
    local player_y = posy()
    local player_z = posz()
    for x = -7, 7, 1 do
        for y = -5, 5, 1 do
            local flag = false
            local item = topitem(player_x + x, player_y + y, player_z, false)
            while table.find(ITEMS, item.id) ~= nil and tilereachable(player_x + x, player_y + y, player_z) do
                if dist(player_x + x, player_y + y) > 1 and not reachlocation(player_x + x, player_y + y, player_z, false, true) then
                    break
                end

                useitem(item.id, ground(player_x + x, player_y + y, player_z))
                wait(300, 500)
                item = topitem(player_x + x, player_y + y, player_z, false)
                flag = true
            end

            if flag then
                return
            end
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016