Results 1 to 6 of 6

Thread: If X item on ground then loot to main backpack or loot backpack.

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    If X item on ground then loot to main backpack or loot backpack.

    as the tittle says...


    i want an script to pick up those items from floor such as plate armor or halberd dropped from other players. is there anyone with this action?

  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
    local pickupItems = {"Plate armor", "Halberd"}

    pickupitems("n", unpack(pickupItems))
    pickupitems("e", unpack(pickupItems))
    pickupitems("w", unpack(pickupItems))
    pickupitems("s", unpack(pickupItems))
    pickupitems("ne", unpack(pickupItems))
    pickupitems("nw", unpack(pickupItems))
    pickupitems("se", unpack(pickupItems))
    pickupitems("sw", unpack(pickupItems))

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Pink, u can help me to put something to loot all kinds of vials? from floor? only if less then 80 vials on ground?,

    cuz i'm with someone dropping vials on my dead bodies , and i don't loot anything

  4. #4
    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
    waste of time, he will just start tossing something else

    here is an action by soder, Ive added flask id's:

    PHP Code:
    local ITEMS = {"gold coin"283284285}
    local DIRECTIONS = {"c","n","s","e","w","se","sw","ne","nw"

    for 
    1#ITEMS do
        
    for 1#DIRECTIONS do
            
    pickupitems(DIRECTIONS[j],ITEMS[i])
        
    end
    end 

  5. #5
    Normal User
    Join Date
    Oct 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    That helped me today. Thanks pink!

  6. #6
    Normal User
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    221
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    58
    Rep Power
    5
    Or you can use this one change 3031 to the item id and GoldBp to what BP you want
    for i=-1,1 do
    for j=-1,1 do
    if toptileitem(posx+i, posy+j, posz) == 3031 then
    pausewalking(1000)
    moveitems(toptileitem(posx+i, posy+j, posz), ground(posx+i, posy+j, posz), GoldBP, 100)
    pausewalking(0)
    end
    end
    end
    Remember if you use my rep++

Posting Permissions

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