
Originally Posted by
Syntax
Probably, the current depositor is very old, one of the first things I made, and even though I was pr0 back then

it's pretty dated.
After I get done moving into my new place, I'll give you guys some new depositor/withdrawing functions.
I have a few improvements I need to make to them, and make them backwards compatible with the current input.
yeah, those two functions in the xenolualib could be cleaner imo, but the only thing i would add to self.deposit (i also added to mine) is keep opening equiped bps that are full, so it doesn't miss loot (probably shoud ignore this if Container(i):ID() == Self.Backpack().id).
this is why i separate by index in mine :
lua code:
Self.OpenDepot()
local dp = Container('Depot Chest')
for i = 0, #arg do
dp:UseItem(arg[i].Index, true) -- opening in new window
-- loop trough bps and move found items
for j = dp:Index()+1, #Container.GetAll() do -- closing what was opened
Container(j):Close()
end
end
i know yu pro but i tought my function was clever