Hello there,

I am trying to move diamond arrows from depot backpack to supplies backpack.

Everything works, except not moving the damn arrows.

I added the new ammunition ids to items.xml and spells.xml, and the itemcount(ammoId) recognizes the the item id.

But moveitems() does not.

Any ideas?

Here is my code:

Code:
local item = 25757
local itemamount = tonumber(getuseroption('MaxAmmo'))
local bp = {
		to = getuseroption('SuppliesBP'),
		from = 'blue backpack'
	}

while windowcount("Depot Chest") == 0 do
	opendepot()
end

openitem(bp.from, 'Depot Chest', false)
wait(800,1000)

amounttowithdraw = itemamount-itemcount(item, bp.to)

while itemcount(item, bp.to) < itemamount and (itemcount(item, bp.from) >= 1 or itemcount(bp.from, bp.from) == 1) do

	moveitems(item, bp.to, bp.from, 100)
	wait(500,1000)

	if itemcount(item, bp.from) == 0 and itemcount(bp.from, bp.from) == 1 then
		openitem(bp.from, bp.from, false)
	end

	amounttowithdraw = itemamount-itemcount(item, bp.to)
end

Yours,
Zed.