Log in

View Full Version : move all items from inbox to bp



Wendall
07-19-2017, 05:31 AM
Im wondering if anybody can help me with a script that will move items from my inbox into my open backpack, and then open the next backpack in the sequence. i've found other scripts like this, but none actually seam to function properly.

felipesrp
07-30-2017, 03:03 AM
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


Close all your open backpacks and move to the depot.
Alter the "ToBackpack" to your desired backpack
And there you go :)

zagecin
10-18-2017, 11:37 PM
love u