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 Pickup Spears
#1
Hello.

This is a basic script to pickup spears/small stones to a BACKPACK, it's able to move dead bodies away and pickup.
It will disable TARGETING, CAVEBOT and LOOTER to pickup the spears and enable it again.

I will NOT give any support on this script, not even to fix bugs. So please, don't ask to because you will be ignored.

local SPEAR_ID = 2389 -- Spear ID
local SPEAR_BACKPACK = 'red backpack' -- The backpack that spears/stones will be moved to.
local SPEAR_MIN_AMOUNT = 3 -- Amount start to pickup spears
local SPEAR_MAX_AMOUNT = 5 -- Max. Amount to pickup
local MOVE_BODIES = true -- Move dead bodies to pickup spears


local SPEAR_COUNT = itemcount(SPEAR_ID, SPEAR_BACKPACK, true)
if SPEAR_COUNT < SPEAR_MIN_AMOUNT then
    if not MOVE_BODIES then
        local player_x = posx()
        local player_y = posy()
        local player_z = posz()

        local disabled_stuff = false

        for x = -7, 7, 1 do
            for y = -5, 5, 1 do
                local top_item = topitem(player_x + x, player_y + y, player_z, false)
                if top_item.id == SPEAR_ID then
                    setsettings('Looter/Enabled', false)
                    setsettings('Cavebot/Enabled', false)
                    setsettings('Targeting/Enabled', false)
                    disabled_stuff = true

                    if reachlocation(player_x + x, player_y + y, player_z) then
                        wait(800)

                        local AMOUNT_PICKUP = (SPEAR_MAX_AMOUNT - SPEAR_COUNT)
                        if AMOUNT_PICKUP > top_item.count then
                            AMOUNT_PICKUP = 100
                        end

                        moveitems(SPEAR_ID, SPEAR_BACKPACK, ground(player_x+ x, player_y + y, player_z), AMOUNT_PICKUP)
                        wait(800)

                        return
                    end
                end
            end
        end

        if disabled_stuff then
            setsettings('Targeting/Enabled', true)
            setsettings('Looter/Enabled', true)
            setsettings('Cavebot/Enabled', true)
        end
    else
        if SPEAR_COUNT == 0 or maround(7) == 0 then
            local player_z = posz()
            local tiles = gettiles()
            for _, tile in ipairs(tiles) do
                if tile.itemcount > 1 and tile.posz == player_z then
                    for __, item in ipairs(tile.items) do
                        if item.id == SPEAR_ID then
                            setsettings('Looter/Enabled', false)
                            setsettings('Cavebot/Enabled', false)
                            setsettings('Targeting/Enabled', false)
                            disabled_stuff = true

                            if reachlocation(tile.posx, tile.posy, tile.posz) then
                                wait(800)
                                while true do
                                    local top_item = topitem(tile.posx, tile.posy, tile.posz, false)
                                    if top_item.id == 0 or top_item.id == SPEAR_ID or (posx() == tile.posx and posy() == tile.posy) then
                                        break
                                    end
                                    moveitems(top_item.id, ground(posx(), posy(), posz()), ground(tile.posx, tile.posy, tile.posz), 100)
                                    wait(800)
                                end

                                local AMOUNT_PICKUP = (SPEAR_MAX_AMOUNT - SPEAR_COUNT)
                                if AMOUNT_PICKUP > item.count then
                                    AMOUNT_PICKUP = 100
                                end

                                moveitems(SPEAR_ID, SPEAR_BACKPACK, ground(tile.posx, tile.posy, tile.posz), AMOUNT_PICKUP)
                                wait(800)

                                SPEAR_COUNT = itemcount(SPEAR_ID, SPEAR_BACKPACK, true)
                                if SPEAR_COUNT >= SPEAR_MAX_AMOUNT then
                                    return
                                end

                            end
                            break
                        end
                    end
                end
            end

            if disabled_stuff then
                setsettings('Targeting/Enabled', true)
                setsettings('Looter/Enabled', true)
                setsettings('Cavebot/Enabled', true)
            end
        end
    end
end
Reply

#2
Olá! Como ativo e faço funcionar essa função, porque eu copiei e colei em “console” apareceu “lua commande sent” porém não funcionou e não pegou as spears
Reply

#3
Always use English on our Forums.

That depends on you and how you wanna use it. In most cases, people use it on Persistents.
You can read more about Bot here:
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply

#4
Hi! As active and I make this function work, because I copied and pasted in "console" it appeared "moon commande sent" but it did not work and did not catch the spears
Reply

#5
That depends on you and how you wanna use it. In most cases, people use it on Persistents.
You can read more about Bot here:
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016