Results 1 to 3 of 3

Thread: Ajuda com depotdeposit()

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

    Ajuda com depotdeposit()

    Atualmente, para guardar os itens no DP eu utilizo o depotdeposit(), porem, a BP de 'non- stackable items' enche na primeira hunt e então ele volta pra hunt com toda a bp cheia.

    Eu sei que tem actions do tipo: opemitem(), moveitems(), porém nao consegui usalos, alguem pode me ajudar?

    Obrigado!

  2. #2
    iBot User Ragekemi's Avatar
    Join Date
    Sep 2012
    Posts
    300
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    15
    Rep Power
    5
    Modifique as Bps de acordo com as variaveis que você utiliza e edite os loots, esse deposit foi criado pelo bugwt se nao me engano e suporta infinitas backpacks.. =)

    PHP Code:
    -- Dp Depositer.
    setsettings("Settings\\CaveBot\\Settings\\OpenNextBp""No"
    closewindows()
    wait(5001000)
    openitem(MainBp'back')
    wait(5001000)
    resizewindows() 
    wait(5001000)
    openitem(LootBpMainBptrue)
    wait(5001000)
    resizewindows() 
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502"locker")
    wait(700,900)
    openitem(MainDpBp"depot chest")
    wait(700,900)
    resizewindows() 

    local CONFIG = {
        
    LOOT_BACKPACK LootBp,
        
        
    STACKABLE_BACKPACK StackableDpBp,
        
    STACKABLE_BACKPACK_AMOUNT 4,
        
        
    NOT_STACKABLE_BACKPACK LootDpBp,
        
    NOT_STACKABLE_BACKPACK_AMOUNT 10,
        
        
    DEPOSIT_ITEMS =  {"scale of corruption""corrupted flag""cursed spike shoulder""strong health potion""great health potion""lizard trophy""zaoan legs""zaoan armor""zaoan robe""drakinata""tower shield""focus cape""zaoan shoes""wand of inferno""terra rod""yellow gem""crocodile boots""zaogun flag""high guard flag""zaoan halberd""legionnaire flags""lizard scale""small diamond""small emerald""small amethyst""dragon priests wandtip""lizard leather""zaogun shoulderplates""high guard shoulderplates""great mana potion","broken halberd""spiked iron ball""strong mana potion""bunch of ripe rice""life ring""piece of crocodile leather"},
    }

    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

    setsettings
    ("Settings\\CaveBot\\Settings\\OpenNextBp""Yes"

  3. #3
    Normal User
    Join Date
    Mar 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    alguem tem mais alguma sugestão?

Posting Permissions

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