I read a review of Spycraft 2.0, and it seems that they created a system of creating NPCs on the fly by choosing a difficulty and cross referencing it with a chart based on PC level. This method sounds really interesting. I can't tell you the number of times when the DMG tables don't really suffice for instant NPC creation in my game and was wondering if any simliar systems have been constructed for D&D.