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 :o
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!
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
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! :)
06-12-2014, 07:21 PM
Orzel
Well done!
For sure it will help a lot of people.
06-12-2014, 08:34 PM
Tanochi
Quote:
Originally Posted by Orzel
Well done!
For sure it will help a lot of people.
Thanks for the great support!
06-13-2014, 06:01 AM
Dworak
Good job ;-)
07-14-2014, 06:50 PM
vitinhosz
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
10-19-2014, 09:46 AM
gmoney
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 :cool:
@ 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.
10-22-2014, 09:47 AM
Mazik
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
11-05-2014, 01:33 PM
adarzithor
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?
11-07-2014, 07:44 PM
elkan
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?
11-08-2014, 08:28 AM
Mazik
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