Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: DP Depositer

  1. #1
    Normal User
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0

    DP Depositer

    Hello again, I have this script wich used to work pretty good 100%, I used back in january and now, when I try to use it again I found the following issue:
    When the character comes to refill and goes to the depot to deposit the loot, it opens all the bp correctly, dpbps as well but then he walks away without depositing anything.

    Anyone has any idea why is this happening? And if anyone know can you help me out?

    Thanks in advance.

  2. #2
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    Can you post the action in the waypoint?? Also the Debug would help, ty ^^

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  3. #3
    Normal User
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    Quote Originally Posted by Onehit View Post
    Can you post the action in the waypoint?? Also the Debug would help, ty ^^
    Sure, here you go:

    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    openitem(MainDpBp, "depot chest")
    wait(700,900)

    local CONFIG = {
    LOOT_BACKPACK = LootBP,

    STACKABLE_BACKPACK = StackItems,
    STACKABLE_BACKPACK_AMOUNT = 2,

    NOT_STACKABLE_BACKPACK = LootRares,
    NOT_STACKABLE_BACKPACK_AMOUNT = 18,

    DEPOSIT_ITEMS = {"dragons tail", "broadsword", "green dragon leather", "green dragon scale", "wand of inferno", "Strong Health Potion", "small diamond", "life crystal", "dragon hammer", "serpent sword", "dragon shield", "dragonbone staff", "small sapphire", "golden mug", "green mushroom", "energy ring", "red dragon scale", "red dragon Leather", "strange helmet", "fire sword", "tower shield", "royal helmet", "dragon scale mail", "dragon lord trophy", "dragon slayer", "life crystal"},
    }

    local NOT_STACKABLE_LAST_ON_TO, ITEM_INDEX = 0, 1

    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 > 0) then
    CONFIG.DEPOSIT_ITEMS[ITEM_INDEX], ITEM_INDEX = ITEM_ID, ITEM_INDEX + 1
    else
    table.remove(CONFIG.DEPOSIT_ITEMS, ITEM_INDEX)
    end
    elseif (type(CONFIG.DEPOSIT_ITEMS[ITEM_INDEX]) == "number") then
    if (CONFIG.DEPOSIT_ITEMS[ITEM_INDEX] > 0) then
    ITEM_INDEX = ITEM_INDEX + 1
    else
    table.remove(CONFIG.DEPOSIT_ITEMS, ITEM_INDEX)
    end
    else
    table.remove(CONFIG.DEPOSIT_ITEMS, ITEM_INDEX)




    PS: It just arrives to the dp, open DpBp and then walks away without depositing any item. The BPs are correct.

    Thanks.

  4. #4
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    Try using sirmate's action.

    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 = {"dragons tail""broadsword""green dragon leather""green dragon scale""wand of inferno""Strong Health Potion""small diamond""life crystal""dragon hammer""serpent sword""dragon shield""dragonbone staff""small sapphire""golden mug""green mushroom""energy ring""red dragon scale""red dragon Leather""strange helmet""fire sword""tower shield""royal helmet""dragon scale mail""dragon lord trophy""dragon slayer""life crystal"},
    }

    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 
    Just change the backpacks.

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  5. #5
    Normal User
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    The character doesn't open the DpBp now. If I open it manually then he deposits the items.

  6. #6
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    Quote Originally Posted by Cesar Garnier View Post
    The character doesn't open the DpBp now. If I open it manually then he deposits the items.
    ops, sorry forgot to add this

    PHP Code:
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502"locker")
    wait(700,900)
    openitem(MainDpBp"depot chest")
    wait(700,900
    Add this to the top and it should be ok, it will be like this.

    PHP Code:
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502"locker")
    wait(700,900)
    openitem(MainDpBp"depot chest")
    wait(700,900)

    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 = {"dragons tail""broadsword""green dragon leather""green dragon scale""wand of inferno""Strong Health Potion""small diamond""life crystal""dragon hammer""serpent sword""dragon shield""dragonbone staff""small sapphire""golden mug""green mushroom""energy ring""red dragon scale""red dragon Leather""strange helmet""fire sword""tower shield""royal helmet""dragon scale mail""dragon lord trophy""dragon slayer""life crystal"},
    }

    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 
    Last edited by Onehit; 06-04-2013 at 01:11 PM.

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  7. #7
    Normal User
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    I love you!

  8. #8
    Normal User
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    One las question, if he already deposited all the items from one loot bp, he will open the next one after that? or do I have to add another condition?

  9. #9
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    It should open.

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  10. #10
    Normal User
    Join Date
    Oct 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    nvm i Fixed it
    Last edited by Cesar Garnier; 06-04-2013 at 06:15 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
  •