This came to me as I was helping someone to create a programme (script) to search the map for a particular item. It seems to me, when searching a large area, that being able to specify the exact ObjType when searching would reduce the amount of memory used by the created array. So here is my proposed function:
Code: Select all
ListItemsInBoxByObjType( x1, y1, z1, x2, y2, z2, ObjType, realm := _DEFAULT_REALM )