Results 1 to 5 of 5

Thread: Looting backpacks!

  1. #1
    Normal User
    Join Date
    Jan 2013
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Looting backpacks!

    Hey guys i want to have 2 backpacks for rares, but i dont know how to fix it when depositing on dp!
    How can i make actions like that?
    Should add a action for OPEN NEXT BP "NO", before depositer? And after it? Please thx guys!

  2. #2
    Normal User
    Join Date
    Jan 2013
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    please guys, just a second to help with that

  3. #3
    Normal User
    Join Date
    Jan 2013
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    No one? BUMP"

  4. #4
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    yes, you have to.

    Example:

    1. (Opening Backpacks in Depot + Setting Open Next BP - no) - Action

    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "no")
    wait (500)
    closewindows ()
    wait (500,700)
    while windowcount(LootBP) < 1 do
    openitem (MainBP, 'back')
    wait (500, 700)
    openitem (LootBP, MainBP, false )
    wait (500, 700)
    resizewindows ()
    wait (500)
    end


    2. (Depositing Items - Action)

    --depositing items
    reachgrounditem("depot")
    wait(1000, 1500)
    openitem("depot")
    wait(900, 1400)
    openitem(3502, "locker")
    wait(900, 1400)

    openitem(MainDpBp, 'Depot Chest')
    wait(900, 1400)

    local CONFIG = {
    LOOT_BACKPACK = LootBP,

    STACKABLE_BACKPACK = StackItems,
    STACKABLE_BACKPACK_AMOUNT = itemcount(StackItems),

    NOT_STACKABLE_BACKPACK = LootRares,
    NOT_STACKABLE_BACKPACK_AMOUNT = itemcount(LootRares),

    DEPOSIT_ITEMS = {"great health potion", "Cursed shoulder spikes", "tower shield", "zaoan armor", "zaoan legs", "zaoan shoes", "great mana potion", "focus cape", "wand of inferno", "zaoan robe", "small diamond", "lizard leather", "lizard scale", "small emerald", "high guard flag", "spiked iron ball", "high guard shoulderplates", "scale of corruption", "terra rod", "small amethyst", "life ring", "dragon priests wandtip", "zaogun flag", "zaogun shoulderplates", "lizard trophy", "legionnaire flags", "broken halberd", "obsidian lance", "corrupted flag", 281, 283, "crocodile boots", "bunch of ripe rice", "angelic axe", "mercenary sword", "glorious axe", "striped fur", "mutated bat ear", "sabretooth", "guardian shield", "zaoan helmet"},
    }

    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(1800, 2000)
    else
    break
    end

    wait(100, 200)
    end

  5. #5
    Normal User
    Join Date
    Jan 2013
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by Eli View Post
    yes, you have to.

    Example:

    1. (Opening Backpacks in Depot + Setting Open Next BP - no) - Action

    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "no")
    wait (500)
    closewindows ()
    wait (500,700)
    while windowcount(LootBP) < 1 do
    openitem (MainBP, 'back')
    wait (500, 700)
    openitem (LootBP, MainBP, false )
    wait (500, 700)
    resizewindows ()
    wait (500)
    end


    2. (Depositing Items - Action)

    --depositing items
    reachgrounditem("depot")
    wait(1000, 1500)
    openitem("depot")
    wait(900, 1400)
    openitem(3502, "locker")
    wait(900, 1400)

    openitem(MainDpBp, 'Depot Chest')
    wait(900, 1400)

    local CONFIG = {
    LOOT_BACKPACK = LootBP,

    STACKABLE_BACKPACK = StackItems,
    STACKABLE_BACKPACK_AMOUNT = itemcount(StackItems),

    NOT_STACKABLE_BACKPACK = LootRares,
    NOT_STACKABLE_BACKPACK_AMOUNT = itemcount(LootRares),

    DEPOSIT_ITEMS = {"great health potion", "Cursed shoulder spikes", "tower shield", "zaoan armor", "zaoan legs", "zaoan shoes", "great mana potion", "focus cape", "wand of inferno", "zaoan robe", "small diamond", "lizard leather", "lizard scale", "small emerald", "high guard flag", "spiked iron ball", "high guard shoulderplates", "scale of corruption", "terra rod", "small amethyst", "life ring", "dragon priests wandtip", "zaogun flag", "zaogun shoulderplates", "lizard trophy", "legionnaire flags", "broken halberd", "obsidian lance", "corrupted flag", 281, 283, "crocodile boots", "bunch of ripe rice", "angelic axe", "mercenary sword", "glorious axe", "striped fur", "mutated bat ear", "sabretooth", "guardian shield", "zaoan helmet"},
    }

    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(1800, 2000)
    else
    break
    end

    wait(100, 200)
    end

    Thx bro, rep+ for u :

Posting Permissions

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