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
11-23-2014, 05:50 AM
henqqq
This is not working for me
11-23-2014, 08:13 PM
HjugO
Quote:
Originally Posted by henqqq
This is not working for me
I dont know that will work, its my first LUA code in WindBot, I don't know even constants, also I don't have WindBot for test this script.
opendepot() wait(1500, 2500)
for _, value in pairs(CONFIG) do
openitem(value[1]) waitcontainer(value[1])
moveitemsupto(value[2], value[3], value[4], value[1])
end
end
11-24-2014, 02:34 AM
henqqq
It's working now, there is a bug that when you use simple "backpack" (brown backpack) as your mainbp, it does not move items, so i just chage it to another type of backpack.
12-26-2014, 04:10 PM
roje
Can you please tell me exactly what else to change in the settings?
03-30-2015, 10:00 PM
jorgeluisnavarro
hepl me error in Persistent script NewPersistentScript:
[" while itemcount(item, mainbp)..."]:NewPersistentScript:23 attempt to compare number with nil
03-30-2015, 10:40 PM
jorgeluisnavarro
withdraw arrow depot
help me for error in Persistent script NewPersistentScript:
[" while itemcount(item, bp.to) ..."]:NewPersistentScript:23 attempt to compare number with nil
local bp = {
to = getlootingdestination('stackable'),
from = getlootingdestination('arrowbpdp')
}
local item = ('crystalline arrow')
local itemamount = getuseroption('arrowamount')-- You can also change this to a number like 10.
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
03-17-2016, 08:40 PM
Pumparen
Hey! I don't get this one to work after the new dp box setting, can someone help me with it?
09-05-2016, 05:33 PM
botboy
Quote:
Originally Posted by Tanochi
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 :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! :)
hi i need one action to move mine runes to dp ? u help me plx
i use this more error to
init start
local bpDepotAmmo = "camouflage backpack" -- You Depot backpack
local ammoName = "avalanche runes"
local ammoToMove = 200
local whereToMove = "brocade backpack" -- You Main backpack
init end
opendepot() wait(1500, 2500)
openitem(bpDepotAmmo ) waitcontainer(bpDepotAmmo)
moveitemsupto(ammoName, bpDepotAmmo, whereToMove, ammoToMove)
if itemcount(bpDepotAmmo, bpDepotAmmo) > 0 and itemcount(ammoName, bpDepotAmmo) == 0 then
openitem(bpDepotAmmo, bpDepotAmmo) waitping()
end
i use to move to dp mine marker runes more are error plx help
10:54:42 error in Action script move runa:
["while itemcount(itemname, to) < amou..."]:LucasTerra.lua:1718 attempt to compare number with string
stack traceback:
["moveitemsupto(ammoName, bpDepotAmmo, whereToMove, ammoToMove..."]:Action: move runa:10 in user script
09-15-2016, 03:27 AM
thiagos
Nice, Thank you
08-22-2017, 02:38 AM
kronicles
Quote:
Originally Posted by Tanochi
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 :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! :)
Dont Work with new depot system......
08-22-2017, 06:44 AM
Tanochi
That's correct. I'm not playing anymore so I can't confirm this will work but give it a try:
Code:
function eopendepot()
while windowcount('depot chest') < 1 do
opendepot(true)
wait(300,500)
openitem(3502)
waitping()
end
end
local depotId = 22796
function withdrawfrombox(itemName, tobackpack, box, amount)
local from = depotId+box
local itemsLeft = function() return itemcount(itemname, 'depot chest') end
eopendepot()
openitem(from)
wait(300)
for i = 0, amount do
moveitems(itemName, tobackpack, from, amount)
waitping()
if itemcount(itemName, tobackpack) == amount then
break
elseif itemsLeft() < 1 then
nextpage('depot chest')
if itemsLeft() < 1 then
break
end
end
end
end
// Use the function to withdraw items
withdrawfrombox('life ring', 'myBP', 1, 5)