PDA

View Full Version : [DEPOSITER] Open next Bp, when first is busy



lubasq
01-05-2016, 11:39 AM
Hello.
I had problem with blocking my script, when I have no space in BP, where i move loot, when i refilling..

I try some methods.. but without results ;/
I want to open next bp on the bp, where's enough space to move loot.



(labelName == "Deposit") then
setWalkerEnabled(false)
Self.ReachDepot()
while(Self.ItemCount(8043)>0 or Self.ItemCount(9303)>0 or Self.ItemCount(823)>0 or Self.ItemCount(815)>0 or Self.ItemCount(8050)>0 or Self.ItemCount(9666)>0 or Self.ItemCount(3029)>0) do
Self.DepositItems({8043,1},{9303,1})
Self.DepositItems({823,2},{815,0})
Self.DepositItems({8050,2},{9666,2},{3029,2})
end


BTW.. this while is really long, and problematic..
could I change it to smaller parts, which check less points? cuz when i use more than one while in each label, bot look only at first WHILE and skip others (YES, i do while() do ... end, while() do ... end)...


Thanks for reply :)