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 ammo from backpack on ground
#11
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Hello.

This isn't Nostalrius section.
Reply

#12
help me no found you use scrip in action, cave bot?

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







help me no found you use scrip in action, cave bot?


Reply

#13
That depends on you and how you wanna use it. Each tools works differently.
Reply

#14
Could you tell me how I should use it, for example, I put it in action at the end of the cave bot tour, or I make a stand at the beginning of it and paste it in scrip
Reply

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

Hello.

Well, that depends on you, but as you are talking about Cavebot... I recommend you to create a STAND waypoint AROUND the place that you let the AMMO and then create an Action wpt and paste the script. Make sure you did the proper changes on the variables to setup the correct place where the ammo is dropped, etc.
Reply

#16
Ok I understand but I do not want to drop the ammunition I want him to equip himself with a bolt, load them to the bp as I can do it, you pass me what I would have to put in the action and I configure what the bp and sqm would be, Thank you, sorry the inconvenience
Reply

#17
Hello,

I have placed a stand in the same sqm where I have all the bolts on the ground, then I have placed an action I have pasted the action there, I have configured the red backpack which is where I have the bolts on the chart and also the coordinates of the sqm where I have thrown all the bolts and even so it does not work for me when it comes to action, it skips it and continues the journey



local MINIMUM_CAP = 100 -- The minimum amount of capacity that you want to have.
local AMMO = '3446' -- Ammo NAME or ID
local AMMO_OZ = 0.8 -- Ammo unit weight.
local AMMO_MAX_AMOUNT = 10 -- Max. amount that you wanna carry.
local AMMO_GROUND_CONTAINER = 'red backpack' -- Ammo's container on FLOOR.
local AMMO_GROUND_LOCATION = { X = 32817, Y = 31602, Z = 9 } -- Ammo's location on FLOOR.
local AMMO_CONTAINER = 'red backpack' -- Container that AMMO will be moved to.

local pickup_count = math.max(0, (AMMO_MAX_AMOUNT - itemcount(AMMO, AMMO_CONTAINER, true)))
if pickup_count > 0 then

local max_capacity = math.floor((cap() - MINIMUM_CAP) / AMMO_OZ)
if pickup_count > max_capacity then
pickup_count = max_capacity
end
if pickup_count > 100 then
pickup_count = 100
end

if pickup_count > 0 then
local AMMO_ID = itemid(AMMO)

while pickup_count > 0 do
local item_tile = topitem(AMMO_LOCATION_GROUND.X, AMMO_LOCATION_GROUND.Y, AMMO_LOCATION_GROUND.Z, false)
if item_tile.id == AMMO_ID then
if pickup_count >= item_tile.count or pickup_count > 100 then
pickup_count = 100
end

if moveitems(AMMO_ID, AMMO_CONTAINER, AMMO_GROUND_CONTAINER, pickup_count) then
wait(1000)
pickup_count = math.max(0, (AMMO_MAX_AMOUNT - itemcount(AMMO, AMMO_CONTAINER, true)))
max_capacity = math.floor((cap() - MINIMUM_CAP) / AMMO_OZ)
if pickup_count > max_capacity then
pickup_count = max_capacity
end
if pickup_count > 100 then
pickup_count = 100
end
else
break
end
else
break
end
end
end
end
Reply

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

Hello.

The script works fine, you should check what you are doing wrong. I would start saying that local AMMO = '3446' could be the reason. Try: local AMMO = 3446
It will only pickup under two conditions that you setup on variable, if you have less than 100  bolts and if you have more than 10 cap.
Reply

#19
I have made the correction, my question, did he pick up the bolts from the floor and mount them in the red backpack, or did he pick up the bolts that are inside the red backpack located on the floor?

I have made stand and action on top of the sqm where I have the bolts and I have placed the coordinate in the script, I get an error

CONSOLE SAYS
15:46:10 - Core:Lua:ExecuteScript
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />oString:Cavebot/Action:2: 24: attempt to index global 'AMMO_LOCATION_GROUND' (a nil value)




local MINIMUM_CAP = 100 -- The minimum amount of capacity that you want to have.
local AMMOLOCAL = '3446' -- Ammo NAME or ID
local AMMO_OZ = 0.8 -- Ammo unit weight.
local AMMO_MAX_AMOUNT = 10 -- Max. amount that you wanna carry.
local AMMO_GROUND_CONTAINER = 'red backpack' -- Ammo's container on FLOOR.
local AMMO_GROUND_LOCATION = { X = 32817, Y = 31602, Z = 9 } -- Ammo's location on FLOOR.
local AMMO_CONTAINER = 'red backpack' -- Container that AMMO will be moved to.

local pickup_count = math.max(0, (AMMO_MAX_AMOUNT - itemcount(AMMO, AMMO_CONTAINER, true)))
if pickup_count > 0 then

local max_capacity = math.floor((cap() - MINIMUM_CAP) / AMMO_OZ)
if pickup_count > max_capacity then
pickup_count = max_capacity
end
if pickup_count > 100 then
pickup_count = 100
end

if pickup_count > 0 then
local AMMO_ID = itemid(AMMO)

while pickup_count > 0 do
local item_tile = topitem(AMMO_LOCATION_GROUND.X, AMMO_LOCATION_GROUND.Y, AMMO_LOCATION_GROUND.Z, false)
if item_tile.id == AMMO_ID then
if pickup_count >= item_tile.count or pickup_count > 100 then
pickup_count = 100
end

if moveitems(AMMO_ID, AMMO_CONTAINER, AMMO_GROUND_CONTAINER, pickup_count) then
wait(1000)
pickup_count = math.max(0, (AMMO_MAX_AMOUNT - itemcount(AMMO, AMMO_CONTAINER, true)))
max_capacity = math.floor((cap() - MINIMUM_CAP) / AMMO_OZ)
if pickup_count > max_capacity then
pickup_count = max_capacity
end
if pickup_count > 100 then
pickup_count = 100
end
else
break
end
else
break
end
end
end
end
Reply

#20
Hello.

That depends on script that you are using mate, there three scripts on this thread, just READ the posts the contains each script and you will understand what each script does.
This script will pickup from floor to a red backpack.
local MINIMUM_CAP = 100 -- The minimum amount of capacity that you want to have.
local AMMO = 3446 -- Ammo NAME or ID
local AMMO_OZ = 0.8 -- Ammo unit weight.
local AMMO_MAX_AMOUNT = 10 -- Max. amount that you wanna carry.
local AMMO_GROUND_CONTAINER = 'red backpack' -- Ammo's container on FLOOR.
local AMMO_GROUND_LOCATION = { X = 32817, Y = 31602, Z = 9 } -- Ammo's location on FLOOR.
local AMMO_CONTAINER = 'red backpack' -- Container that AMMO will be moved to.

local pickup_count = math.max(0, (AMMO_MAX_AMOUNT - itemcount(AMMO, AMMO_CONTAINER, true)))
if pickup_count > 0 then

    local max_capacity = math.floor((cap() - MINIMUM_CAP) / AMMO_OZ)
    if pickup_count > max_capacity then
        pickup_count = max_capacity
    end
    if pickup_count > 100 then
        pickup_count = 100
    end

    if pickup_count > 0 then
        local AMMO_ID = itemid(AMMO)

        while pickup_count > 0 do
            local item_tile = topitem(AMMO_GROUND_LOCATION.X, AMMO_GROUND_LOCATION.Y, AMMO_GROUND_LOCATION.Z, false)
            if item_tile.id == AMMO_ID  then
                if pickup_count >= item_tile.count or pickup_count > 100 then
                    pickup_count = 100
                end

                if moveitems(AMMO_ID, AMMO_CONTAINER, ground(AMMO_GROUND_LOCATION.X, AMMO_GROUND_LOCATION.Y, AMMO_GROUND_LOCATION.Z), pickup_count) then
                    wait(1000)
                    pickup_count = math.max(0, (AMMO_MAX_AMOUNT - itemcount(AMMO, AMMO_CONTAINER, true)))
                    max_capacity = math.floor((cap() - MINIMUM_CAP) / AMMO_OZ)
                    if pickup_count > max_capacity then
                        pickup_count = max_capacity
                    end
                    if pickup_count > 100 then
                        pickup_count = 100
                    end
                else
                    break
                end
            else
                break
            end
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016