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
Rquest tutorial for run scripts
#1
Exclamation 
good afternoon, I am new using this program, someone can leave a tutorial on how to use this script, I have searched for tutorials but I can't find anything, thank you very much for your attention

HTML clipboard
.fctbNone{ color:#000000; }
.fctbStyle4Style6{ color:#39659c;font-weight:bold;color:#840084;font-weight:bold; }
.fctbStyle6{ color:#840084;font-weight:bold; }
.fctbStyle7{ color:#008200; }
.fctbStyle2Style6{ color:#0000ff;font-weight:bold;color:#840084;font-weight:bold; }
.fctbStyle1Style7{ color:#008200;font-style:oblique;color:#008200; }
.fctbStyle1{ color:#008200;font-style:oblique; }
.fctbStyle1Style6{ color:#008200;font-style:oblique;color:#840084;font-weight:bold; }
.fctbStyle0{ color:#ff0000; }
.fctbStyle0Style6{ color:#ff0000;color:#840084;font-weight:bold; }
.fctbStyle1Style7Style8{ color:#008200;font-style:oblique;color:#008200;color:#737173;font-weight:bold; }
.fctbStyle3Style6{ color:#000000;font-weight:bold;color:#840084;font-weight:bold; }
.fctbStyle8{ color:#737173;font-weight:bold; }
.fctbStyle0Style7Style8{ color:#ff0000;color:#008200;color:#737173;font-weight:bold; }

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
Hello.

That depends...

1. If you wanna run a script from a time to time (e.g.: every 1s) then you should use Persistents.
2. You can use Cavebot->Action that will run LUA script when it runs that specific waypoint.
3. Hotkeys->LUA Script will run the lua script when you press that hotkey.

That script that you posted here should be used on Persistents, because it will pickup spears, so you certainly want to let it running indefinitely.
Reply

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

#4
Hello.

No, there's not. Especially because LUA Scripts are really used by our users.

I understand that you have experience in Bots, which is great, but you are copying and pasting a script... You should check on the console if there are any errors.
Reply

#5
Wink 
|Only Registered members can see download links. | Click here to buy subscription or here to register.
I already tried to try different scripts but when I press a hotkey that is destined to the script, nothing happens I would like to send you a video, would you pass me your WhatsApp please?
Reply

#6
Hello.

Feel free to make a GIF movie and host on imgur.com then send to me by private message.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016