If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Looking for deposit action - one in other bp

Hello, I'm looking for deposit action but not with moveitemsonto. I need one in other bp depositer..its better for me cause it easier to sort.

I made function but not working properly:

PHP Code:

function depositone(bptomove, itembpname1,...)
local items = {...}
while getcontainer(bptomove).usedslots == 20 do
wait(500)
end
for i,j in pairs(items) do
while itemcount(items[i], itembpname1) > 0 do
moveitems(items[i], "all", bptomove, 100)
wait(700,800)
end
end
end

sometimes it makes loop and trying to move item which is still in bp and loop..I tried biggest wait but the same. Any suggestions?