Results 1 to 4 of 4

Thread: depositer

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

    depositer

    Hey guys. I have problem with depositer. I have 3 backpacks for loot but bot deposit only items from first backpack. How I can make it good?

  2. #2

    Join Date
    Jul 2012
    Posts
    362
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    45
    Rep Power
    5
    reachgrounditem("depot")
    wait(3000)
    openitem("depot")
    wait(1500)
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "no")
    wait(1500)
    openitem(MainDPBP, "Depot Chest")
    wait(1500)
    if windowcount(MainDPBP) < 1 then gotolabel(wpt.id-1) else
    depotdeposit(StackDPBP, unpack(Stacks))
    wait(1000)
    depotdeposit(LootDPBP, unpack(Items))
    end
    if itemcount(LootBP,LootBP) >= 1 then openitem(LootBP,LootBP,false) wait(1000) gotolabel(wpt.id-1) end
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "yes")

    Napisalem to z glowy wiec moze byc jakis blad ale ogolem idea jest dobra.
    Forum robi odstep miedzy OpenNext a Bp więc połącz.
    Last edited by tubcio; 02-02-2013 at 10:20 AM.

  3. #3
    Banned
    Join Date
    May 2012
    Location
    Poland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    After action with depositer, add next action (must be after action with depositer), and paste that :

    if itemcount(LootBPname, LootBPname) > 0 then openitem(LootBPname, LootBPname, false) gotolabel("wpt.id-1")
    end

    On place of "LootBPname" give your name from SETUP.

    If you have 3 backpack for loot, you have to make 2 same actions.

    Depositer - deposits first backpack.
    Action from me - opens second backpack and deposits him.
    Second action from me - opens third backpack and deposits him.

    After work it goes to next waypoints.
    Hope I helped.


    @Polski

    Bezpośrednio po actionie z depozyterem, dodaj następnego actiona (na tym samym sqm - przy skrzynce depo) i wklej do niego to :

    if itemcount(LootBPname, LootBPname) > 0 then openitem(LootBPname, LootBPname, false) gotolabel("wpt.id-1")
    end

    W miejsce "LootBPname" wklej nazwę (skrót) od swoich backpacków na loota, który masz w setupie.


    Jeżeli masz trzy backpacki na loota, to musisz zrobić dwa takie actiony.

    Depositer - zdepozytuje pierwszy backpack.
    Action ode mnie - otworzy drugi backpack i go zdepozytuje.
    Drugi Action ode mnie - otworzy trzeci backpack i go zdepozytuje.

    Po robocie przechodzi do następnych waypointów
    Mam nadzieję, że pomogłem.

  4. #4
    Normal User kozik7's Avatar
    Join Date
    Oct 2012
    Posts
    146
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    depositer by sirmate
    try this one

    PHP Code:
    local CONFIG = {
        
    LOOT_BACKPACK "jewelled backpack",
        
        
    STACKABLE_BACKPACK "green backpack",
        
    STACKABLE_BACKPACK_AMOUNT 2,
        
        
    NOT_STACKABLE_BACKPACK "grey backpack",
        
    NOT_STACKABLE_BACKPACK_AMOUNT 18,
        
        
    DEPOSIT_ITEMS = {"great health potion""fish fin""necklace of the deep""deepling staff"},
    }

    local NOT_STACKABLE_LAST_ON_TOITEM_INDEX 01

    while (#CONFIG.DEPOSIT_ITEMS >= ITEM_INDEX) do
        
    if (type(CONFIG.DEPOSIT_ITEMS[ITEM_INDEX]) == "string"then
            local ITEM_ID 
    itemid(CONFIG.DEPOSIT_ITEMS[ITEM_INDEX])
            
            if (
    ITEM_ID 0then
                CONFIG
    .DEPOSIT_ITEMS[ITEM_INDEX], ITEM_INDEX ITEM_IDITEM_INDEX 1
            
    else
                
    table.remove(CONFIG.DEPOSIT_ITEMSITEM_INDEX)
            
    end
        
    elseif (type(CONFIG.DEPOSIT_ITEMS[ITEM_INDEX]) == "number"then
            
    if (CONFIG.DEPOSIT_ITEMS[ITEM_INDEX] > 0then
                ITEM_INDEX 
    ITEM_INDEX 1
            
    else
                
    table.remove(CONFIG.DEPOSIT_ITEMSITEM_INDEX)
            
    end
        
    else
            
    table.remove(CONFIG.DEPOSIT_ITEMSITEM_INDEX)
        
    end
    end

    while (true) do
        for 
    _DEPOSIT_ITEM in ipairs(CONFIG.DEPOSIT_ITEMS) do
            if (
    itemcount(DEPOSIT_ITEMCONFIG.LOOT_BACKPACK) > 0then
                
    if (itemproperty(DEPOSIT_ITEM).isCumulativethen
                    local STACKABLE_LAST_ON_TO 
    0
                    
                    
    while (CONFIG.STACKABLE_BACKPACK_AMOUNT STACKABLE_LAST_ON_TO) do
                        
    local ITEM_COUNT_BEFORE itemcount(DEPOSIT_ITEMCONFIG.LOOT_BACKPACK)
                        
                        
    moveitemsonto(DEPOSIT_ITEM"all"CONFIG.STACKABLE_BACKPACK100STACKABLE_LAST_ON_TOwait(5001000)
                        
                        
    local ITEM_COUNT_AFTER itemcount(DEPOSIT_ITEMCONFIG.LOOT_BACKPACK)
                        
                        if (
    ITEM_COUNT_BEFORE == ITEM_COUNT_AFTER and ITEM_COUNT_AFTER 0then
                            STACKABLE_LAST_ON_TO 
    STACKABLE_LAST_ON_TO 1
                        
    elseif (ITEM_COUNT_AFTER == 0then
                            
    break
                        
    end
                    end
                
    else
                    while (
    CONFIG.NOT_STACKABLE_BACKPACK_AMOUNT NOT_STACKABLE_LAST_ON_TO) do
                        
    local ITEM_COUNT_BEFORE itemcount(DEPOSIT_ITEMCONFIG.LOOT_BACKPACK)
                        
                        
    moveitemsonto(DEPOSIT_ITEM"all"CONFIG.NOT_STACKABLE_BACKPACK100NOT_STACKABLE_LAST_ON_TOwait(5001000)
                        
                        
    local ITEM_COUNT_AFTER itemcount(DEPOSIT_ITEMCONFIG.LOOT_BACKPACK)
                        
                        if (
    ITEM_COUNT_BEFORE == ITEM_COUNT_AFTER and ITEM_COUNT_AFTER 0then
                            NOT_STACKABLE_LAST_ON_TO 
    NOT_STACKABLE_LAST_ON_TO 1
                        
    elseif (ITEM_COUNT_AFTER == 0then
                            
    break
                        
    end
                    end
                end
            end
        end
        
        
    if (itemcount(CONFIG.LOOT_BACKPACKCONFIG.LOOT_BACKPACK) > 0then
            openitem
    (CONFIG.LOOT_BACKPACKCONFIG.LOOT_BACKPACKfalsewait(20003000)
        else
            break
        
    end
        
        wait
    (100)
    end 

Posting Permissions

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