Results 1 to 1 of 1

Thread: Problemas no Deposit DP

  1. #1
    iBot User
    Join Date
    Jul 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    15
    Rep Power
    5

    Question Problemas no Deposit DP

    Galera seguinte, peguei um script mas não to conseguindo arrumar a parte em que ele deposita os itens no dp, ele abre a bp do dp e deixa as outras 20 (18loot+2agrupaveis) mas não joga os loots pras bps, fica parado. Deve ser alguma coisa que não to conseguindo achar. Help me?

    Segue a Action que to usando
    Code:
    while (windowcount("Locker") ==0) do     
           reachgrounditem("depot")    
           openitem("depot")
           wait(700,900)
    end
    
    while (windowcount("Depot Chest") == 0) do
        openitem(3502, "locker")
        wait(800,1000)
    end
    
    wait(1000,1200)
    openitem(maindpbp, 3502, false)
    wait(800,1000)
    
    depotdeposit("stackabledpbp", "lootdpbp")
    wait(1000)
    openitem(mainbp, "back", true)
    wait(1000)
    
    local DEPOSIT_ITEMS, NOT_STACKABLE_LAST_ON_TO, ITEM_INDEX = {"Dragon Scale Mail",  "Royal Helmet",  "Dragon Slayer",  "Dragon Lord Trophy",  "Tower Shield",  "Fire Sword",  "Dragon Shield",  "Dragonbone Staff",  "Dragon Hammer",  "Serpent Sword",  "Strange Helmet",  "Life Crystal",  "Red Dragon Scale",  "Red Dragon Leather",  "Green Dragon Scale",  "Green Dragon Leather",  "Small Diamond", "Small Sapphire", "Dragons Tail", "Golden Mug", "Magma Boots", 3071}, 0, 1
    
    while (#DEPOSIT_ITEMS >= ITEM_INDEX) do
        if (type(DEPOSIT_ITEMS[ITEM_INDEX]) == [[string]]) then
            local ITEM_ID = itemid(DEPOSIT_ITEMS[ITEM_INDEX])
            
            if (ITEM_ID > 0) then
                DEPOSIT_ITEMS[ITEM_INDEX], ITEM_INDEX = ITEM_ID, ITEM_INDEX + 1
            else
                table.remove(DEPOSIT_ITEMS, ITEM_INDEX)
            end
        elseif (type(DEPOSIT_ITEMS[ITEM_INDEX]) == [[number]]) then
            if (DEPOSIT_ITEMS[ITEM_INDEX] > 0) then
                ITEM_INDEX = ITEM_INDEX + 1
            else
                table.remove(DEPOSIT_ITEMS, ITEM_INDEX)
            end
        else
            table.remove(DEPOSIT_ITEMS, ITEM_INDEX)
        end
    end
    
    while (true) do
        for _, DEPOSIT_ITEM in ipairs(DEPOSIT_ITEMS) do
            local NEXT_ITEM = true
            
            if (itemcount(DEPOSIT_ITEM, lootbp) > 0) then
                if (itemproperty(DEPOSIT_ITEM).isCumulative) then
                    local STACKABLE_LAST_ON_TO = 0
                    
                    while (5 > STACKABLE_LAST_ON_TO) do
                        local ITEM_COUNT_BEFORE = itemcount(DEPOSIT_ITEM, lootbp)
                        
                        moveitemsonto(DEPOSIT_ITEM, "all", stackabledpbp, 100, STACKABLE_LAST_ON_TO) wait(500, 1000)
                        
                        local ITEM_COUNT_AFTER = itemcount(DEPOSIT_ITEM, lootbp)
                        
                        if (ITEM_COUNT_BEFORE == ITEM_COUNT_AFTER and ITEM_COUNT_AFTER > 0) then
                            STACKABLE_LAST_ON_TO = STACKABLE_LAST_ON_TO + 1
                        elseif (ITEM_COUNT_AFTER == 0) then
                            break
                        end
                    end
                else
                    while (15 > NOT_STACKABLE_LAST_ON_TO) do
                        local ITEM_COUNT_BEFORE = itemcount(DEPOSIT_ITEM, lootbp)
                        
                        moveitemsonto(DEPOSIT_ITEM, "all", lootdpbp, 100, NOT_STACKABLE_LAST_ON_TO) wait(500, 1000)
                        
                        local ITEM_COUNT_AFTER = itemcount(DEPOSIT_ITEM, lootbp)
                        
                        if (ITEM_COUNT_BEFORE == ITEM_COUNT_AFTER and ITEM_COUNT_AFTER > 0) then
                            NOT_STACKABLE_LAST_ON_TO = NOT_STACKABLE_LAST_ON_TO + 1
                        elseif (ITEM_COUNT_AFTER == 0) then
                            break
                        end
                    end
                end
            end
        end
        
        if (itemcount(lootbp, lootbp) == 0) then
            break
        else
            openitem(lootbp, lootbp, false) wait(2000, 3000)
        end
        
        wait(100)
    end
    
    closewindows()
    setsettings("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers","yes")
    Last edited by augusto15; 04-18-2013 at 10:00 PM.

Tags for this Thread

Posting Permissions

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