Signup Now
Results 1 to 4 of 4
  1. #1
    Free User
    Join Date
    Mar 2014
    Posts
    127
    Reputation
    11
    Rep Power
    21

    Depositing action bug

    So i converted a IBOT script, it works great but, when depositing, it doesnt deposit any kind of items.. Someone can help me to fix this out?


    openitem(MainBPname, "back")
    reachgrounditem("depot")
    while (windowcount("Locker") ==0) do
    openitem("depot")
    wait(700,900)
    end

    while (windowcount("Depot Chest") == 0) do
    openitem(3502, "locker")
    wait(800,1000)
    end

    openitem(MainDepotname, "Depot Chest", false)
    wait(800,1000)

    local CONFIG = {
    LOOT_BACKPACK = LootBPname,

    STACKABLE_BACKPACK = AddonDepotname,
    STACKABLE_BACKPACK_AMOUNT = 3,

    NOT_STACKABLE_BACKPACK = LootDepotname,
    NOT_STACKABLE_BACKPACK_AMOUNT = 15,

    DEPOSIT_ITEMS = {"royal helmet", "boots of haste", "medusa shield", "knight armor", "hydra head", "hydra egg", "stone skin amulet", "small sapphire", "ring of healing", "life crystal", "warrior 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 (iteminfo(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, CONFIG .STACKABLE_BACKPACK,STACKABLE_LAST_ON_TO, nil, "all", 100) 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, CONFIG .NOT_STACKABLE_BACKPACK,NOT_STACKABLE_LAST_ON_TO, nil, "all", 100) 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

    setsetting("Cavebot/WalkThroughPlayers","no")

  2. #2
    Free User
    Join Date
    Mar 2014
    Posts
    127
    Reputation
    11
    Rep Power
    21
    helperino please fellas!

  3. #3
    Moderator BUgWT's Avatar
    Join Date
    Dec 2013
    Location
    www.bugwt.com
    Posts
    546
    Reputation
    72
    Rep Power
    22
    I converted an ibot script and it deposited just fine.

    Things to check:
    Brown Backpack? Backpack? <--Try both
    Check your bps again just to be sure

    If none of those work, just reply again!


    LATEST SCRIPTS SKYPE
    Got a Question? Add me on Skype!
    bugwt.support

    This image is hosted on a possibly dangerous website (http://mystatus.skype.com/smallclassic/bugwt.support). Please consider reuploading it on Imgur.com.


  4. #4
    Free User albino's Avatar
    Join Date
    Apr 2014
    Location
    Brazil
    Posts
    183
    Reputation
    27
    Rep Power
    21
    I'm sorry I read it wrong.

 

 

Posting Permissions

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