Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Module.New('openNextBackpack', function(m)
- for c = 0, #Container.GetAll()-1 do
- cont = Container.New(c)
- if (cont:EmptySlots() == 0 and Item.isContainer(cont:GetItemData(cont:ItemCapacity()-1).id)) then
- cont:UseItem(cont:ItemCapacity()-1, true)
- print("Opening Next Backpack in Container #" .. c .. ".")
- end
- end
- m:Delay(1000)
- end)
Add Comment
Please, Sign In to add comment