Signup Now
Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Depot Action

  1. #1
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22

    Depot Action

    Hey, guys!
    Well, I'm using this code here to deposit stuff and usually everything goes fine.
    --depositer
    setsetting('Cavebot/WalkThroughPlayers', 'no')
    closewindows()
    openitem(itemname($back.id), 'back')
    waitping()
    openitem(lootbp, itemname($back.id))
    waitping()
    openitem(lootbp, lootbp)
    waitping()
    resizewindows()
    waitping()


    if windowcount(lootbp) ~= 1 then
    gotolabel($wptid-1)
    end


    waitping()
    setsetting('Looting/OpenNextBP', 'no')
    waitping()
    depotaction('maindp', 'lootbp', {'r', 'raredp', 's', 'stackdp'})
    waitping()


    However, once in a while it will also deposit the potions I have on my main backpack.
    Is there a way to avoid that without having to use a supply backpack?
    Yours,
    pvzin

  2. #2
    Banned
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    242
    Reputation
    14
    Rep Power
    0
    I dont get it.
    Just simple add

    openitem(0, "back", true)

  3. #3
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Quote Originally Posted by Frox View Post
    I dont get it.
    Just simple add

    openitem(0, "back", true)
    I saw that..

    The action works, bro. The problem is restricted to the depositing line.
    Once it opens the lootbp and starts depositing, it will come back to the previous lootbps, so it can deposit everything.
    But there's a point when it reaches the mainbp, and when it does so, there are some occasions on which it also deposits the potions I have there.

    So mainly, I would like to know if there's a way to avoid the bot getting to the mainbp on this point, or stop depositing the potions I have there.
    Yours,
    pvzin

  4. #4
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    so close your main backpack after open the LootBP or open in MainBp window

  5. #5
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Quote Originally Posted by Dworak View Post
    so close your main backpack after open the LootBP or open in MainBp window
    They do open in the same window. I think the action pretty much gives it out, doesn't it? '-'

    Let's focus here:
    waitping()
    setsetting('Looting/OpenNextBP', 'no')
    waitping()
    depotaction('maindp', 'lootbp', {'r', 'raredp', 's', 'stackdp'})
    waitping()


    Consider I have 2 lootbps, then I'll name them for you:
    - mainbp = #1
    - 1st lootbp = #2
    - 2nd lootbp = #3

    The action will open everything until #3, then it starts depositing.
    When there are no items left on #3, it goes back to #2 and deposits whatever is left there.
    *Finally, it goes back to #1, so it can open the lootbp again, for an extra check.*

    That's how this code works:
    depotaction('maindp', 'lootbp', {'r', 'raredp', 's', 'stackdp'})


    The thing is, when it comes to the last part
    (*), I, sometimes, have my potions deposited.
    I don't want that to happen, though.

    Was it clear enough now?!


    Last edited by pvzin; 04-07-2014 at 12:28 PM.
    Yours,
    pvzin

  6. #6
    Free User CroiX's Avatar
    Join Date
    Jan 2014
    Posts
    890
    Reputation
    61
    Rep Power
    22
    Well, you obviously got your potions in category 'r' or 's' then. Just remove the category and it won't deposit. =)

    ---

    Quote or Tag me if you want me to reply quicker


  7. #7
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Quote Originally Posted by CroiX View Post
    Well, you obviously got your potions in category 'r' or 's' then. Just remove the category and it won't deposit. =)
    Yep, they are categorized because they are also loot from the hunt.
    Yours,
    pvzin

  8. #8
    Free User CroiX's Avatar
    Join Date
    Jan 2014
    Posts
    890
    Reputation
    61
    Rep Power
    22
    Quote Originally Posted by pvzin View Post
    Yep, they are categorized because they are also loot from the hunt.
    You don't need a category to loot them. Simply remove the category, or change to anything else but R and S and you'll be fine.

    ---

    Quote or Tag me if you want me to reply quicker


  9. #9
    Free User pvzin's Avatar
    Join Date
    Dec 2013
    Location
    USA
    Posts
    974
    Reputation
    48
    Rep Power
    22
    Quote Originally Posted by CroiX View Post
    You don't need a category to loot them. Simply remove the category, or change to anything else but R and S and you'll be fine.
    True, but then I won't get to deposit the looted ones, right?! :P
    You see, I want to deposit the looted potions, but not the ones I'm gonna use, that's why they are in different bps, hehe!
    Thx for the time, though!

    ---

    @thread:
    If anybody else thinks of a solution, please bring me them!
    Yours,
    pvzin

  10. #10
    Moderator BUgWT's Avatar
    Join Date
    Dec 2013
    Location
    www.bugwt.com
    Posts
    546
    Reputation
    72
    Rep Power
    22
    Since I don't use depotaction(), maybe you can try this
    A hotkey to change potion's category, for example

    auto(100)
    if $wptid == 123 and windowcount($back.id) == 1 then
    --category Z
    else
    --category S
    end


    Which means when it is in main bp, it will change the category to "Z"


    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.


 

 

Posting Permissions

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