just a little thought, the only problem is walking to the locations of the chest; my solutions are:
1)exact constant cordinates can be taken to the location of the chest ( am aware that the map shifts so the cordinates have to be recorded accurately. However, if we do it this way, opening the chest would be somewhat difficult. since to open the chest requires you to move a slight bit away from the location of the cordinates u set; it would cause the bot to drift away from the locations of the chest's constant cordinates.
2) The color scan and image search idea. I think this would be the better solution. However, i don't know if theres a function that allows Autoit to acknowledge that it has already clicked on an image previously. For example, when auto it finds the location of the chest on the map, clicks on it and moves to it. Then when it finds another chest it would move to it as well. But then, if it searches and moves back to the previous chest it already founded, this could be a problem. If there's a possible way to make the bot do an image search in a Specific area OR have it search in a circular pattern let me know :<.
This probably did not make any sense but if u get the point and figured something out share it with us so we can come to a solution