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
Skinning using obsidian knife, checking condition of obsidian knife
Is it possible to also skin each looted monster? and check when the obsidian knife kneeds regenerated in order to refill and go talk to npc(I think I can handle this part)


I didn't tested this code, but i think this will work.
This script will skin bodies after looting is done and there are no more bodies to loot.

Notice that you MUST change the "SETTINGS.KNIFE_ID" to the obsidian knife id and SETTINGS.BODIES with the id of each body that you wanna use obsidian knife on.

The easiest way to find out bodies ids is by killing monster and using HUD->Show cursor info. Once you enable this option, you just need to move your mouse over the body and a simple hud will be displayed telling the item id, which will be the body id.

local SETTINGS = {
    KNIFE_ID = 1234, -- Obsidian knife id
    MAX_RANGE = 5, -- Max range/distance away to skin bodies
    BODIES = { 1234, 4321, 5432 } -- Bodies IDs that you wanna skin.

if maround() == 0 and islooting() == false and lootbodies() == 0 then
    local tiles = gettiles()
    local player_x, player_y, player_z = posx(), posy(), posz()
    for _, tile in ipairs(tiles) do
        if tile.posz == player_z and math.abs(player_x - tile.posx) <= SETTINGS.MAX_RANGE and math.abs(player_y - tile.posy) <= SETTINGS.MAX_RANGE and tile.itemcount > 1 and table.find(SETTINGS.BODIES, tile.topitem.id) ~= nil then
            if reachlocation(tile.posx, tile.posy, tile.posz, false) then
                wait(500, 1000)
                useitemon(SETTINGS.KNIFE_ID, tile.posx, tile.posy, tile.posz)
                wait(500, 1000)

About checking when obsidian knife needs to be regenerated then you need to check if obsidian knife changes when it's "out" then you can use itemcount() to know when it's out.
local OBS_KNIFE_ID_OUT = 1234

if itemcount(OBS_KNIFE_ID_OUT) then

Ty. Is there any way to make cavebot not turn around on each node? like ctrl + direction each node?

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


Yes, disable WASD. Bot is pressing CTRL+W to clean status message, but as you are using WASD then it turns north.

Im having trouble getting this to work, after it finishes looting it just continues to the next waypoint. I tried to put a print statement and it looks like it's not getting past the first statement


So I believe Looter has still bodies to loot...

Try change this line:
if maround() == 0 and islooting() == false and lootbodies() == 0 then
if maround() == 0 and islooting() == false then

Hiya im trying to make it not stand on corpses so it can skin them, as it's getting stuck.

so if I do

if tile.posx == player_x and tile.pozy == player_y then

Is there any command which moves into any available space? If not how would I check if it's possible to move for each direction>


Maybe it's easier to move your character instead item?

Anyway, you can use both functions below.
moveitems(string item, string to, string from, optional in count) [boolean]Moves items based on its name or id.
wheretomoveitem(number fromX, number fromY, number fromZ) [table]: Return a table with information about the tile you can move an item to from the specified location. That's useful when you want to untrash
local where = wheretomoveitem(tile.posx, tile.posy, tile.posz)
if where ~= nil and where.posx > 0 then
    moveitems(0, ground(where.posx, where.posy, where.posz), ground(tile.posx, tile.posy, tile.posz), 100)
|Only Registered members can see download links. | Click here to buy subscription or here to register.

Forum Jump:

Forum software by © MyBB Theme © iAndrew 2016