1. To view the ID of a room you need to go to Position and place your mouse over one of the small room images and the ID should appear as a hint. a new way to view room IDs should be available soon(tm)
2. don't remember
3. patience. someone would answer although sometime noone answers my topics :P
1/ I've added a check to see if the locationID is a number, if not it'll error out. To find out the cityID talk to the owner, if you don't know who the owner is try talking to whoever controls the planet, they should be able to point you to the owner (if they themselves aren't the owner). It's a rather cumbersome system but I don't really want to do anymore work on it because it's only temporary until such time as planets generate NPCs and you have to go down to them, and into certain facilities, to hire the NPCs.
2/ Do you mean the 1 square wide border running around the outside of the city? If so, no, this is still considered as part of the city