Results 1 to 4 of 4

Thread: Char nao deposita todos os itens.

  1. #1
    Normal User
    Join Date
    Dec 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    Exclamation Char nao deposita todos os itens.

    Bom gente, eu usava o neo portanto não sou tao iniciante assim, porem já tentei de varias maneiras possíveis e não consigo fazer o char depositar todos os itens, um exemplo:
    Ele chega, abre o dp e deposita apenas 1 item de cada tipo.. Ou seja, se tiver 200 stones ele deposita apensa 100, se tiver 2 wands ele deposita apenas 1...
    Alguém poderia ajudar?

  2. #2
    iBot User
    Join Date
    May 2012
    Location
    BRASIL
    Posts
    390
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    54 Post(s)
    Reputation
    13
    Rep Power
    5
    Qual action voce ta usando ?


    vendo 300k em amera R$4,00 - mande pm

  3. #3
    Normal User
    Join Date
    Dec 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    -- Dp Depositer.
    closewindows()
    wait(500, 1000)
    openitem(MainBP, 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    openitem(MainDPBP, "depot chest")
    wait(700,900)
    depotdeposit(MainDPBP,"Protection Amulet","Power Ring","Club Ring","Health Potion","Ape Fur","Small Stone","Wand of Decay","Banana Staff","Small Amethyst")
    wait(700,900)
    Obs: nao e problema de variavel

  4. #4
    Normal User Silkster Scripts's Avatar
    Join Date
    Apr 2012
    Posts
    252
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    23
    Rep Power
    5
    Tenta usa a ACTION de depositer do sirmate:
    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_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)
        end
    end
     
    while (true) do
        for _, DEPOSIT_ITEM in ipairs(CONFIG.DEPOSIT_ITEMS) do
            if (itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK) > 0) then
                if (itemproperty(DEPOSIT_ITEM).isCumulative) then
                    local STACKABLE_LAST_ON_TO = 0
     
                    while (CONFIG.STACKABLE_BACKPACK_AMOUNT > STACKABLE_LAST_ON_TO) do
                        local ITEM_COUNT_BEFORE = itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK)
     
                        moveitemsonto(DEPOSIT_ITEM, "all", CONFIG.STACKABLE_BACKPACK, 100, STACKABLE_LAST_ON_TO) wait(500, 1000)
     
                        local ITEM_COUNT_AFTER = itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK)
     
                        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 (CONFIG.NOT_STACKABLE_BACKPACK_AMOUNT > NOT_STACKABLE_LAST_ON_TO) do
                        local ITEM_COUNT_BEFORE = itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK)
     
                        moveitemsonto(DEPOSIT_ITEM, "all", CONFIG.NOT_STACKABLE_BACKPACK, 100, NOT_STACKABLE_LAST_ON_TO) wait(500, 1000)
     
                        local ITEM_COUNT_AFTER = itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK)
     
                        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(CONFIG.LOOT_BACKPACK, CONFIG.LOOT_BACKPACK) > 0) then
            openitem(CONFIG.LOOT_BACKPACK, CONFIG.LOOT_BACKPACK, false) wait(2000, 3000)
        else
            break
        end
     
        wait(100)
    end
    Lembrando que para funcionar você precissa da Library do Sirmate.
    Ajudei ?? REP ++ , INCENTIVE A QUEM TE AJUDOU A CONTINUAR AJUDANDO.
    █ Tibia IBot ~ UDP Silkster (Leader: Silkster Scripts)
    █ Loja Virtual + Web Site da Silkster Scripts (Loja - Click Here)
    █ @SilksterScripts ~ Follow US on Twitter.
    █ Duvidas? Pergunte aqui no forum ou me envie uma Private Message , Contato direto so para clientes.

Posting Permissions

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