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
Pickup Random Items from ground.
#1
Hello, I would like to know if you guys can help me with this:

When a items from a list (mace, sword, legion helmet, etc) shows on the ground, the script finish to kill all the monsters in the screen pause targeting, pause cavebot, and pickup the item list from the ground to X container, after that resume cavebot and targeting.

Hope you can help thanks.
Reply

#2
Hello.

Try something like this:
local ITEMS = { 'mace', 'sword' }
local CONTAINER = 'blue backpack'


if connected() and maround() == 0 and attacked().id == 0 and islooting() == false then
    table.id(ITEMS)
    
    local flag = false
    
    local playerX, playerY, playerZ = posx(), posy(), posz()
    local tiles = gettiles()
    for _, tile in ipairs(tiles) do
        if math.abs(playerX - tile.posx) <= 7 and math.abs(playerY - tile.posy) <= 5 and tile.posz == playerZ and table.find(ITEMS, tile.topitem.id) ~= nil and tilereachable(tile.posx, tile.posy, tile.posz) then
            setsettings('Cavebot/Enabled', false)
            setsettings('Targeting/Enabled', false)
            flag = true
            if reachlocation(tile.posx, tile.posy, tile.posz, false) then
                wait(200, 400)
                moveitems(tile.topitem.id, CONTAINER, ground(tile.posx, tile.posy, tile.posz), 100)
                wait(200, 400)
            end
        end
    end
    
    if flag then
        setsettings('Cavebot/Enabled', true)
        setsettings('Targeting/Enabled', true)
    end
end
Reply

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

Works like a charm.
Thanks.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016