Guys I'm using Souleaters by Eli Scripts.

Everything is fine with it but when it loots sometimes it browse fields on the floor and if there is a big stack of vials on the floor it will try and move them but it bugs out and stays stood there all night. How can I fix it? This is the code I believe.


Code:
auto(200)
local FLASKS = {283,284,285}

for i = 1, #FLASKS do
	while (itemcount(FLASKS[i]) >= 40) and (maround(4,false) == 0) and $cap <= 300 do
		pausewalking(10000)
    	moveitems(FLASKS[i], 'ground', 'all', 100)
		pausewalking(0)
    end
end