Results 1 to 3 of 3

Thread: Pickup items for lootselling script

  1. #1
    Normal User
    Join Date
    Mar 2013
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    4

    Pickup items for lootselling script

    Im making a script that pick up items from the ground in my house and the go to the shop to sell it. When i use the code :

    for i=-1,1 do
    for j=-1,1 do
    if toptileitem(posx+i, posy+j, posz) == 10406 then
    pausewalking(10000)
    moveitems(toptileitem(posx+i, posy+j, posz), ground(posx+i, posy+j, posz), 'brocade backpack', 100)
    pausewalking(0)
    end
    end
    end

    my char just pickup one item then walks on
    Anyone know what to write?

  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
    Lua Code:
    local pickDirection = "n"
    local pickItems = {"Item1", "item2", "ect"}
     
    pickupitems(pikcDirection, unpack(pickItems))


    Heres my tip:

    Dont use a loot sorter that sorts items to the ground.
    Last edited by pink_panther; 03-12-2014 at 08:48 PM.

  3. #3
    iBot User
    Join Date
    Jul 2012
    Posts
    72
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    21 Post(s)
    Reputation
    20
    Rep Power
    5
    Quote Originally Posted by pink_panther View Post
    Lua Code:
    local pickDirection = "n"
    local pickItems = {"Item1", "item2", "ect"}
     
    pickupitems(pikcDirection, unpack(pickItems))


    Heres my tip:

    Dont use a loot sorter that sorts items to the ground.


    TYPO:
    pickupitems(pikcDirection, unpack(pickItems))


    its pickDirection not pikcDirection

Posting Permissions

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