Vithrax / vBot

main repository of bot profile for OTClientV8, vBot
29 stars 31 forks source link

move to index 1 if container has pages #5

Closed cubbie closed 2 years ago

cubbie commented 2 years ago

I was running into a problem with looting into containers that are paged/infinite space. Lazily just placed move into to first slot and it worked.

Vithrax commented 2 years ago
  if container:hasPages() then
    table.insert(lootContainers, container)
  elseif container:getItemsCount() < container:getCapacity() or container:hasPages() then
    table.insert(lootContainers, container)

you are double checking if container has pages and in both cases containre is added to lootContainers - it doesnt make much sense tbh

move to index 1 if container has pages - does it makes any difference? feel free to contact me on discord to discuss this Vithrax#5814