Hmmm, considering that the ruby worldmap uses 256 colors, I would open the map viewer, click on each tile, and find that value in the pallet viewer. Then while in the pallet viewer, check each value, and find it in ape. Not much to help you with, 'cuz I script. :\