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

Thread: need help with depositer !!!

  1. #1
    Normal User
    Join Date
    May 2014
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    3

    need help with depositer !!!

    i have this depositer its working perfect but i need make to open next lootbp and depositer from this too.

    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    openitem(MainDPBP, "depot chest")
    wait(1500,2000)
    depotdeposit(stackbpdp, "white mushroom", "iron ore", "mutated rat tail", "green mushroom", "bat wing", "black pearl", "mutated bat ear", "small amethyst", "striped fur", "sabretooth", "broken gladiator shield")
    wait(500,1000)
    depotdeposit(lootbpdp, "battle hammer", "steel helmet ", "crossbow", "axe ring", "dwarven ring", "dwarven shield", "battle axe", "plate armor", "halberd", "stealth ring", "spellbook of enlightenment", "tower shield", "obcidian lance", "black shield", "batwing hat", "mercenary sword", "life ring", "glorious axe", "guardian shield", "angelic axe", "crusader helmet", "knight axe", "flask of warrior's sweat")

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Try this:
    Lua Code:
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "no")
    wait(300,500)
     
    reachgrounditem("depot")
    wait(1000, 1500)
    openitem("depot")
    wait(900, 1400)
    openitem(3502, "locker")
    wait(900, 1400)
     
    openitem(MainDPBP, 'Depot Chest')
    wait(900, 1400)
     
    resizewindow(MainDPBP, 100)
    wait(100,200)
     
    local CONFIG = {
        LOOT_BACKPACK = LootBP,
     
        STACKABLE_BACKPACK = stackbpdp,
        STACKABLE_BACKPACK_AMOUNT = itemcount(stackbpdp),
     
        NOT_STACKABLE_BACKPACK = lootbpdp,
        NOT_STACKABLE_BACKPACK_AMOUNT = itemcount(lootbpdp),
     
        DEPOSIT_ITEMS = {"battle hammer", "steel helmet ", "crossbow", "axe ring", "dwarven ring", "dwarven shield", "battle axe", "plate armor", "halberd", "stealth ring", "spellbook of enlightenment", "tower shield", "obcidian lance", "black shield", "batwing hat", "mercenary sword", "life ring", "glorious axe", "guardian shield", "angelic axe", "crusader helmet", "knight axe", "flask of warrior's sweat", "white mushroom", "iron ore", "mutated rat tail", "green mushroom", "bat wing", "black pearl", "mutated bat ear", "small amethyst", "striped fur", "sabretooth", "broken gladiator shield"},
    }
     
    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(120, 160)
     
                        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(120, 160)
     
                        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(1000, 2000)
        else
            break
        end
     
        wait(100, 200)
     
    wait(100)
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "yes")
    wait(300,500)
    Last edited by Eli; 06-01-2014 at 05:11 PM. Reason: fixed typo

  3. #3
    Normal User
    Join Date
    May 2014
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    3
    its not working and i dont know why but its my debug info
    20:58 : LUAoAction:Cavebot:depositer:: - LuaInterface.LuaScriptException: [string "chunk"]:195: 'end' expected (to close 'while' at line 101) near ''

  4. #4
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Give me your loot backpack variable :P
    Last edited by Eli; 06-01-2014 at 05:11 PM.

  5. #5
    Normal User
    Join Date
    May 2014
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    3
    MainBP = "grey Backpack"
    LootBP = "camouflage Backpack"
    GoldBP = "yellow Backpack"
    SupBp = "grey Backpack"

    MainDPBP = "blue Backpack"
    lootbpdp = "brocade Backpack"
    stackbpdp = "green backpack"
    Last edited by krzysiek.zaq1; 06-01-2014 at 05:19 PM.

  6. #6
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    ok check now

  7. #7
    Normal User
    Join Date
    May 2014
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    3
    no, debug info
    21:37 : LUAoAction:Cavebot:depositer:: - LuaInterface.LuaScriptException: [string "chunk"]:195: 'end' expected (to close 'while' at line 101) near ''

  8. #8
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Attach this script here or send me pm

  9. #9
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    This action from sirmate is working to me.

  10. #10
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Already fixed, I hope
    @krzysiek.zaq1

Posting Permissions

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