XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: move all items from inbox to bp

  1. #1

    Join Date
    Dec 2015
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    move all items from inbox to bp

    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.

  2. #2

    Join Date
    Jun 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    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

  3. #3

    Join Date
    Sep 2017
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    love u

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •