XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: Move Item Main BP to LootBP

  1. #1

    Join Date
    May 2020
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Move Item Main BP to LootBP

    PHP Code:
    local itensLoot = {7386,7407,10389,811,7421,7412,8074,812,7407,3428,7451,7404,3079,20062}
    local MainBP "deepling backpack"
    local OtherBP "orange Backpack"

    Module.New("Sort Supplies", function()
            
    local bp1 Container(MainBP)
                for 
    spotitem in bp1:iItems() do
                    if (
    table.contains(itensLootitem.id)) then
                    
                        bp1
    :MoveItemToContainer(spotContainer.New(OtherBP):Index())
                    break
                
    end
            end
        end


    He is transferring the item to Slot 1, but there are other BPs, he throws the item into the Bp (which is in slot 1) until it is full and does not transfer anymore

  2. #2

    Join Date
    May 2020
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice thanks

  3. #3

    Join Date
    Mar 2020
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What if you would want it to move items from Depot slot 1 to a backpack?

Tags for this Thread

Posting Permissions

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