Signup Now
Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Free User
    Join Date
    Apr 2014
    Location
    Netherlands
    Posts
    219
    Reputation
    13
    Rep Power
    21

    Withdraw Items from DP

    DEPRECATED, THIS NO LONGER WORKS.


    Withdraw Items from DP

    Credits: Thanks @Dehan & @Raphael to be so kind to help me!


    Description

    I made an action to withdraw items from DP.
    It also opens the next BP if the BP is empty so you can have more than 20 items (stacks) stored in your DP.

    I made it to store multiple BPs of rings in my DP for longer botting sessions


    Configuration

    This action is only for 1 type of item, in this case life rings. If you want to withdraw 2 types of items from different BPs (example: mushrooms & rings) you'll have to copy and modify some code.
    You can paste the code after your depositer action or put it inside a new action waypoint. Don't forget to change the lootingdestinations to your own settings!

    Here's an image of the BP setup in the depot.


    Code

    local bp = {
    to = getlootingdestination('mainbp'),
    from = getlootingdestination('ringbpdp')
    }

    local item = ('life ring')
    local itemamount = getuseroption('ringamount') -- You can also change this to a number like 5.

    while (windowcount('Locker') == 0) do
    openitem('depot')
    wait(700,800)
    end
    while (windowcount('Depot Chest') == 0) do
    openitem(3502, 'locker')
    wait(800,1200)
    end

    openitem(bp.from, 'Depot Chest', false)
    wait(800,1000)

    amounttowithdraw = itemamount-itemcount(item, bp.to)

    while itemcount(item, bp.to) < itemamount and (itemcount(item, bp.from) >= 1 or itemcount(bp.from, bp.from) == 1) do

    moveitems(item, bp.to, bp.from, amounttowithdraw)
    wait(500,1000)

    if itemcount(item, bp.from) == 0 and itemcount(bp.from, bp.from) == 1 then
    openitem(bp.from, bp.from, false)
    end

    amounttowithdraw = itemamount-itemcount(item, bp.to)
    end


    If there's any bug/it doesn't work for you please let me know so I can fix it!
    Last edited by Tanochi; 08-22-2017 at 06:46 AM. Reason: Upload images to imgur.com

  2. #2
    Banned
    Join Date
    Apr 2014
    Location
    Poland
    Posts
    187
    Reputation
    20
    Rep Power
    0
    Well done!
    For sure it will help a lot of people.

  3. #3
    Free User
    Join Date
    Apr 2014
    Location
    Netherlands
    Posts
    219
    Reputation
    13
    Rep Power
    21
    Quote Originally Posted by Orzel View Post
    Well done!
    For sure it will help a lot of people.
    Thanks for the great support!

  4. #4
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    Good job ;-)

  5. #5
    Free User
    Join Date
    Apr 2014
    Posts
    5
    Reputation
    10
    Rep Power
    0
    15:46:19 error in Action script wptid:103:
    ["amounttowithdraw = itemamount-itemcount(it..."]:Action: :21 attempt to perform arithmetic on local 'itemamount' (a nil value)

    i tried to take some icicles from dp and it didn't work

  6. #6
    Free User
    Join Date
    Feb 2014
    Posts
    154
    Reputation
    14
    Rep Power
    21
    This is really nice and exactly what I was looking for I'm going to withdraw strong manas from dp since I loot so many on ek
    @ vitinhosz. Ik this is months later but seems as if local itemamount was not defined properly so it's returning nil value. You would probably be best off using a numerical value.

  7. #7
    Free User Mazik's Avatar
    Join Date
    May 2014
    Location
    aLovePolandKurwaMać
    Posts
    32
    Reputation
    15
    Rep Power
    0
    Code:
    init start
        local bpDepotAmmo = "green backpack"
        local ammoName = "Dwarwen ring"
        local ammoToMove = 3
        local whereToMove = "deepling backpack" -- you can set your rhand, if you want.
    init end
    
    opendepot() wait(1500, 2500)
    openitem(bpDepotAmmo ) waitcontainer(bpDepotAmmo)
    moveitemsupto(ammoName, ammoToMove, whereToMove, bpDepotAmmo)
    if itemcount(bpDepotAmmo, bpDepotAmmo) > 0 and itemcount(ammoName, bpDepotAmmo) == 0 then
        openitem(bpDepotAmmo, bpDepotAmmo) waitping()
    end
    This real nice script izy step ;D

  8. #8
    Free User
    Join Date
    Jan 2014
    Posts
    69
    Reputation
    12
    Rep Power
    21
    I would like to pick up spears from depot backpack (Beach backpack) to my main backpack (red backpack) a royal spears up to 25. How can i do it?

  9. #9
    Free User
    Join Date
    Feb 2014
    Posts
    26
    Reputation
    10
    Rep Power
    0
    i used to take thunderstom from dp, and get this:

    error in Action script wptid:7: ["while itemcount(item, bp.to) < itemamount..."]:Action: 7:36 attempt to compare number with string

    with:

    local item = ('thunderstorm runes')
    local itemamount = getuseroption('thunderamount')

    when i use a value like 150 instead getuseroption('thunderamount') , works fine... any idea why?
    Last edited by elkan; 11-07-2014 at 07:47 PM.

  10. #10
    Free User Mazik's Avatar
    Join Date
    May 2014
    Location
    aLovePolandKurwaMać
    Posts
    32
    Reputation
    15
    Rep Power
    0
    Hellow elkan look ;D


    init start
    local bpDepotAmmo = "green backpack" -- You Depot backpack
    local ammoName = "thunderstorm runes"
    local ammoToMove = 200
    local whereToMove = "deepling backpack" -- You Main backpack
    init end

    opendepot() wait(1500, 2500)
    openitem(bpDepotAmmo ) waitcontainer(bpDepotAmmo)
    moveitemsupto(ammoName, ammoToMove, whereToMove, bpDepotAmmo)
    if itemcount(bpDepotAmmo, bpDepotAmmo) > 0 and itemcount(ammoName, bpDepotAmmo) == 0 then
    openitem(bpDepotAmmo, bpDepotAmmo) waitping()
    end

 

 

Tags for this Thread

Posting Permissions

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