Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local toBackpack = "orange backpack" -- name of backpack
- local contfrom = Container.New('Your Inbox')
- Self.OpenMainBackpack(true)
- while not contfrom:isOpen() do
- locker = Container.New("Locker")
- if not locker:isOpen() then -- opens locker
- Self.OpenLocker()
- wait(800, 1000)
- end
- local dp = Container.New('Locker')
- for mailspot, touse in dp:iItems() do
- if touse.id == 12902 then
- dp:UseItem(mailspot, true)
- wait(500, 1700)
- contfrom = Container.New('Your Inbox')
- end
- end
- end
- while contfrom:isOpen() do
- local DestinationBp = Container.GetByName(toBackpack)
- local item = contfrom:GetItemData(0)
- if not (Self.Cap() - Item.GetWeight(item.id)*item.count < 1) and contfrom:ItemCount() > 0 then
- if DestinationBp:ItemCount() == DestinationBp:ItemCapacity() then
- DestinationBp:UseItem(DestinationBp:ItemCount()-1,true)
- else
- contfrom:MoveItemToContainer(0,DestinationBp:Index(),DestinationBp:ItemCount())
- wait(500,550)
- end
- else
- Empty = true
- end
- if Empty then break end
- end
Advertisement
Add Comment
Please, Sign In to add comment