Results 1 to 3 of 3

Thread: help with depositer

  1. #1
    Normal User
    Join Date
    Nov 2012
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Post help with depositer

    pls give me good action to deposit from 3-5 bp of loot !! no stacable items ;s pls help !!

  2. #2
    zami84's Avatar
    Join Date
    May 2012
    Posts
    316
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    48
    Rep Power
    5
    PHP Code:
    local CONFIG = {
        
    LOOT_BACKPACK LootBP,
        
        
    STACKABLE_BACKPACK StackDPBP,
        
    STACKABLE_BACKPACK_AMOUNT 2,
        
        
    NOT_STACKABLE_BACKPACK LootDPBP,
        
    NOT_STACKABLE_BACKPACK_AMOUNT 17,
        
        
    DEPOSIT_ITEMS = {"Flash Arrow""Throwing Star""Mana Potion""Strong Mana Potion""Crystal Sword""Obsidian Lance""Small Amethyst""Crystal Ring""Energy Ring""Silver Amulet""Wand of Cosmic Energy""Guardian Shield"},
    }

    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 
    LOOT_BACKPACK = LootBP, -- in this line u can write yours mainloot bp ex. "minotaur backpack"

    STACKABLE_BACKPACK = StackDPBP, -- in this line u can write yours stack backpack from depot ex. "minotaur backpack"
    STACKABLE_BACKPACK_AMOUNT = 2,

    NOT_STACKABLE_BACKPACK = LootDPBP, -- in this line u can write yours non-stack backpack from depot ex. "minotaur backpack"



    Before u have to add action opening depot, locker and a depot bp (with stack bp and nonstack bp`s)
    Last edited by zami84; 02-10-2013 at 05:42 PM.

  3. #3
    Normal User
    Join Date
    Nov 2012
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    thanks very much

Posting Permissions

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