I have something like this, but i have problem. It drops loot from 1 bp and don't open next loot bp for drop. Can anyone help me?
PHP Code:
local addony = {"earflap""cheesy figurine""bola""cheese cutter"}
local poty = {"ratana""life preserver""leather harness""spike shield""spiky club"}
local zao = {"rat god doll"}

local addony_pos ground(32422317596)--
local poty_pos ground(32422317606)--
local zao_pos ground(32421317606)--


-------
opening backpacks-------
setsettings("Settings\\Cavebot\\Settings\\OpenNextBp""no")

while 
windowcount(LootBP) ~= or windowcount() ~= do
closewindows()
wait(500800)

openitem(MainBP'back')
wait(500800)
resizewindow(MainBP0)
wait(500800)

openitem(LootBPMainBPtrue)
wait(700900)

closewindow(MainBP)
wait(500800)
end

--drop

for i=1#addony do
while itemcount(addony[i]) > do
 
moveitems(addony[i], "all"addony_pos100)
 
wait(110140)
end
end

for i=1#poty do
while itemcount(poty[i]) > do
 
moveitems(poty[i], "all"poty_pos100)
 
wait(110140)
end
end

for i=1#zao do
while itemcount(zao[i]) > do
 
moveitems(zao[i], "all"zao_pos100)
 
wait(110140)
end
end