As far as I can see there is no option where you can put tons of food in a backpack on ground and withdraw it to your main backpack.
Runemaker Tab just let you to take the food from X SQM as I can understand.
And I modify a script of yours.
It withdraws from a specific backpack on group certain amount of selected food.
Runemaker Tab just let you to take the food from X SQM as I can understand.
And I modify a script of yours.
It withdraws from a specific backpack on group certain amount of selected food.
local FOOD_BP_ID = 2869 -- BP id
local FOOD_BP_NAME = 'Blue Backpack' -- BP Name
local FOOD_ID = 3578 -- Food id
local MIN_FOOD = 2 -- Min food in backpack
local MAX_FOOD = 15 -- Max food in backpack
if connected() and itemcount(FOOD_ID) <= MIN_FOOD then
if reachgrounditem(FOOD_BP_ID, FALSE) then
local tiles = gettiles()
local player_x = posx()
local player_y = posy()
local player_z = posz()
local food_location = { x = 0, y = 0 }
for _, tile in ipairs(tiles) do
if math.abs(tile.posx - player_x) <= 1 and math.abs(tile.posy - player_y) and tile.posz == player_z and tile.itemcount > 1 then
for __, item in ipairs(tile.items) do
if item.id == FOOD_BP_ID then
food_location.x = tile.posx
food_location.y = tile.posy
break
end
end
end
if food_location.x > 0 then
break
end
end
openitem(FOOD_BP_ID, ground(food_location.x, food_location.y, player_z))
wait(500, 800)
moveitems(FOOD_ID, '0', FOOD_BP_NAME, MAX_FOOD)
end
end