After reading the discussion about moving around in an area and automaticly creating new rooms using the next available vnums, here are the two files that I have for this to work in Rom. Can be easily converted to be used in other codebases.
Files included in archice are enhanced dig and auto dig.