Results 1 to 8 of 8

Thread: Taking items from ground

  1. #1
    Normal User
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    12
    Rep Power
    4

    Taking items from ground

    I'm looking for script taking items from ground.

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    pickupitems(string direction, array items)

  3. #3
    Normal User
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    12
    Rep Power
    4
    Bot taking items for main bp ;/ I need taking for loot bp.

    I tried:

    pickupitems("Golden Backpack", "Bola", "Ratana", "Life Preserver", "Leather Harness", "Gold Coin")

    pickupitems(1, "Bola", "Ratana", "Life Preserver", "Leather Harness", "Gold Coin")

    pickupitems('1', "Bola", "Ratana", "Life Preserver", "Leather Harness", "Gold Coin")

    pickupitems(LootBP, "Bola", "Ratana", "Life Preserver", "Leather Harness", "Gold Coin")

    Does not work ;/
    Last edited by Miklonos; 01-08-2013 at 12:17 PM.

  4. #4
    Normal User
    Join Date
    Jul 2012
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0
    pickupitems()-pick up items to the first? container open.

  5. #5
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    I belive it's not possible to chose backpack with pickupitems() function.
    PHP Code:
    pickupitems("n""Bola""Ratana""Life Preserver""Leather Harness""Gold Coin") -- n/s/e/w etc 

  6. #6
    Normal User
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    12
    Rep Power
    4
    n/s/e/w its north/south/east/west yes?

  7. #7
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Yes. short

  8. #8
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Miklonos View Post
    Bot taking items for main bp ;/ I need taking for loot bp.

    I tried:

    pickupitems("Golden Backpack", "Bola", "Ratana", "Life Preserver", "Leather Harness", "Gold Coin")

    pickupitems(1, "Bola", "Ratana", "Life Preserver", "Leather Harness", "Gold Coin")

    pickupitems('1', "Bola", "Ratana", "Life Preserver", "Leather Harness", "Gold Coin")

    pickupitems(LootBP, "Bola", "Ratana", "Life Preserver", "Leather Harness", "Gold Coin")

    Does not work ;/

    thats because golden backpack, 1, "1" and LootBp are not directions. The function only moves them to the first open container unfortunately




    If you do a quick search, few ppl have posted item pickers already.

    And then If you want them to go to loot bp, just add the item picker action, then another action to move those same items from all bps to your loot bp.


    Edit:

    You can use this..

    PHP Code:
    local itemArray = {"Bola""Ratana""Life Preserver""Leather Harness""Gold Coin"}

    pickupitems("n"unpack(itemArray))
    pickupitems("e"unpack(itemArray))
    pickupitems("s"unpack(itemArray))
    pickupitems("w"unpack(itemArray))

    for 
    i,j in pairs(itemArray) do
        while 
    itemcount(itemArray[i], MainBP) > do
            
    moveitems(itemArray[i], MainBPLootBP100)
            
    wait(400,500)
        
    end
        
    while itemcount(itemArray[i], GoldBP) > do
            
    moveitems(itemArray[i], GoldBPLootBP100)
            
    wait(400,500)
        
    end
    end 
    You might need to add another:

    [I] while itemcount(itemArray[i], MainBP) > 0 do
    moveitems(itemArray, MainBP, LootBP, 100)
    wait(400,500)
    end

    Part if you have a supply Bp and/or change MainBP and GoldBP to match your backpack variables in your setup.
    Last edited by pink_panther; 01-10-2013 at 02:54 AM.

Posting Permissions

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