Test. I do not know whether it will work. Only Master Dehan to respond.
@Dehan
I'm just not sure the use of ( if itemproperty(i.id, 5) then )
local Ring = true
local Amulet = true
local MP = true
local HP = true
local ItemMaxRing = 3
local ItemMaxAmulet = 3
local ItemMaxMP = 100
local ItemMaxHP = 100
local BptoMove = "jewelled backpack"
local depotBoxNumber = 4
--[[DO NOT EDIT BELOW THIS LINE]]--
setsetting('Looting/OpenNextBP', 'no')
while windowcount("Depot Chest") == 0 do
opendepot(true)
wait(1000)
openitem(3502)
wait(1000)
end
local BpFrom = "depot chest"
local depotId = 22796
local itemDepotId = depotId + depotBoxNumber
while itemcount(22797) > 0 do
openitem(itemDepotId, "depot chest", false)
wait(1000)
end
for i = 1, getcontainer("depot chest").lastpage do
moveTry = 0
foreach supplyitem s category do
while moveTry < 10 then
if itemproperty(i.id, 5) then
if Ring and (ItemMaxRing - itemcount(s.id,BptoMove) > 0) and (itemcount(s.id, BpFrom) > 0) and getcontainer(BptoMove).emptycount > 1 do
moveitems(s.id, BptoMove, BpFrom,ItemMaxRing - itemcount(s.id,BptoMove))
wait(200)
moveTry = moveTry + 1
elseif Amulet and (ItemMaxAmulet - itemcount(s.id,BptoMove) > 0) and (itemcount(s.id, BpFrom) > 0) and getcontainer(BptoMove).emptycount > 1 do
moveitems(s.id, BptoMove, BpFrom,ItemMaxAmulet - itemcount(s.id,BptoMove))
wait(200)
moveTry = moveTry + 1
elseif MP and (ItemMaxMP - itemcount(s.id,BptoMove) > 0) and (itemcount(s.id, BpFrom) > 0) and getcontainer(BptoMove).emptycount > 1 do
moveitems(s.id, BptoMove, BpFrom,ItemMaxMP - itemcount(s.id,BptoMove))
wait(200)
moveTry = moveTry + 1
elseif HP and (ItemMaxHP - itemcount(s.id,BptoMove) > 0) and (itemcount(s.id, BpFrom) > 0) and getcontainer(BptoMove).emptycount > 1 do
moveitems(s.id, BptoMove, BpFrom,ItemMaxHP - itemcount(s.id,BptoMove))
wait(200)
moveTry = moveTry + 1
end
end
if getcontainer("depot chest").itemcount > 32 then
nextpage("depot chest")
wait(200,400)
end
end
end
end
12-15-2016, 03:12 PM
Ragekemi
Amazing job, im ocmmenting this only to find it later as i dont know how to save a thread in favorites
12-15-2016, 08:15 PM
mistgun
@Cisco - itemproperty(id, 5) checks if item is stackable. @Mietowka - check my action in the signature, it will withdraw anything you wish with only one action.
12-15-2016, 09:28 PM
Wesker
i dont see how is this action any better from the rest, to much code, and to add anything else your going to add even more code.
mistgun has the right idea with hes action based on supplylist.
12-15-2016, 11:04 PM
Dehan
Quote:
Originally Posted by Wesker
i dont see how is this action any better from the rest, to much code, and to add anything else your going to add even more code.
mistgun has the right idea with hes action based on supplylist.
I dont see how your comment is any better from the rest, and to add: your opinion is worth nothing around here.
Any user with reading skills can find it is just a simple backpack opener + depot withdrawer, the item withdrawer part has 10lines about, can be perfect for those who don't want to have troubles to withdraw items in some cases or with some basic LUA skills you can improve to be as advanced as you want.
For now, anything else from you will be just ignored.
12-15-2016, 11:28 PM
Wesker
Quote:
Originally Posted by Dehan
I dont see how your comment is any better from the rest, and to add: your opinion is worth nothing around here.
Any user with reading skills can find it is just a simple backpack opener + depot withdrawer, the item withdrawer part has 10lines about, can be perfect for those who don't want to have troubles to withdraw items in some cases or with some basic LUA skills you can improve to be as advanced as you want.
For now, anything else from you will be just ignored.
As a moderator your posts need to have some value and teach users how to do things the correct way, your job is to help users navigate in windbot forums as smooth as posible, my opinion is worth nothing ??
Big Deal coming from a moderator that cant even code properly.
U fail as a moderator.
Your whole status depends on 3 things :
Respect Users - failed. even if im wrong and my opinion is worth shit you need to respect my opinion kuz ur a mod.
Helping with the right use of code - failed too cocky and arrogant to even be a mod
Help people to understand the program and what it can do - fail at this misserable attempt.
Why you are a mod it beats me, ur useless.
As a moderator of Neobot Forums i've never had this shitty attitude with the users,
U cant even follow the rules, again who is worth nothing ?
hey if u want me to finish u up with a combo msg np.
AND U SELL SCRIPTS HAHAHAHAHA COMEDY WRITES ITSELF
12-16-2016, 02:36 AM
nayito
Quote:
Originally Posted by Wesker
As a moderator your posts need to have some value and teach users how to do things the correct way, your job is to help users navigate in windbot forums as smooth as posible, my opinion is worth nothing ??
Big Deal coming from a moderator that cant even code properly.
U fail as a moderator.
Your whole status depends on 3 things :
Respect Users - failed. even if im wrong and my opinion is worth shit you need to respect my opinion kuz ur a mod.
Helping with the right use of code - failed too cocky and arrogant to even be a mod
Help people to understand the program and what it can do - fail at this misserable attempt.
Why you are a mod it beats me, ur useless.
As a moderator of Neobot Forums i've never had this shitty attitude with the users,
U cant even follow the rules, again who is worth nothing ?
hey if u want me to finish u up with a combo msg np.
AND U SELL SCRIPTS HAHAHAHAHA COMEDY WRITES ITSELF
Have you seen yourself in a mirror? you are the most arrogant guy around windbot forums, the action works great so who cares your opinion? have you seen your reputation? no one cares about you around here no one even likes your work, your scripts are shit, they are useless and stop telling they're safe because they aren't safe at all, your thread is horrible, just shut up and keep doing your work or leave from this forum, and who cares if he do scripts? at least his scripts are useful not like yours :)
12-16-2016, 02:47 AM
Wesker
Quote:
Originally Posted by nayito
Have you seen yourself in a mirror? you are the most arrogant guy around windbot forums, the action works great so who cares your opinion? have you seen your reputation? no one cares about you around here no one even likes your work, your scripts are shit, they are useless and stop telling they're safe because they aren't safe at all, your thread is horrible, just shut up and keep doing your work or leave from this forum, and who cares if he do scripts? at least his scripts are useful not like yours :)