Results 1 to 2 of 2

Thread: loot seller, backpack action

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

    loot seller, backpack action

    setsettings("Settings\\Cavebot\\Settings\\OpenNext Bp", "no")
    closewindows()
    openitem("orange backpack", "back")
    reachgrounditem("depot")
    openitem("depot")
    openitem("depot chest")
    if itemcount("red backpack", "green backpack") > 0 then
    moveitems("red Backpack", "green backpack", "orange Backpack", 3)
    else openitem("green backpack")
    end
    wait(400, 800)
    I want to take 3 red backpack from some green backpack, if greenbackpack is empty i want to open next greenbackpack(inside first green backpack) and take red backpacks again...
    help

  2. #2
    Normal User
    Join Date
    Feb 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Lua Code:
    local mainbp = 'jewelled backpack'
    local mainbpc = 'red bag'
    local depotbp = 'backpack'
    local bptotake = 'camouflage backpack'
    local moveditems = 0
     
    setsettings("Settings\\Cavebot\\Settings\\OpenNext Bp", "no")
    closewindows()
     
    openitem(mainbp, "back")
    wait(400, 800)
    reachgrounditem("depot")
    openitem("depot")
    wait(400, 800)
    openitem("depot chest", "locker")
    wait(400, 800)
    openitem("backpack", "depot chest")
    wait(400, 800)
    while (moveditems < 3) do
        if (itemcount(depotbp,depotbp) <= 0 and itemcount(bptotake, depotbp) <= 0) then break end
        if (itemcount(bptotake, depotbp) > 0) then
            moveitemsonto(bptotake, depotbp, mainbpc, 1, 0)
            moveditems = moveditems + 1
        else
            openitem(depotbp, depotbp)
        end
        wait(200,400)
    end


    You need to have container in first slot of your main backpack, like I used red bag - and then it works
    Last edited by Verus; 12-20-2013 at 03:29 PM.

Posting Permissions

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