Guest User

Untitled

a guest
Feb 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Module.New('openNextBackpack', function(m)
  2. for c = 0, #Container.GetAll()-1 do
  3. cont = Container.New(c)
  4. if (cont:EmptySlots() == 0 and Item.isContainer(cont:GetItemData(cont:ItemCapacity()-1).id)) then
  5. cont:UseItem(cont:ItemCapacity()-1, true)
  6. print("Opening Next Backpack in Container #" .. c .. ".")
  7. end
  8. end
  9. m:Delay(1000)
  10. end)
Add Comment
Please, Sign In to add comment