For NPC's you would need to swap the visibility from player flags to a more global flag so others can see them?
Like have a table etc for playerhousing.
column1 being the mapID, 2 who owns it, then a column for each feature, ie house, mine, etc. The feature will be the number of the npc img...