I'm basically just trying to run a cleanup routine if I get to a combine and notice that I don't have a required item. (I.E. the first 4 components I have already put into the PotteryWheel, but I don't have the 5th.) How I'm trying to do it is to run a loop from 0 to Z, and just left click then auto dump them back to my inventory. Z being the number of slots in the container. I've tried $item(e,slots)-1 to no avail, thinking that since finding a pack's # is simple, $pack($var,slots)-1 Any tips, or oversights I'm missing?
Thanks


