When I was playing around with them in the past, I think I figured out the mathematics behind them. A Rod of the Wyrm is basically created around it having a caster level equal to the dragon's hit dice, and a cost equal to 48,600 gp * Caster Level, plus the cost of a +5/masterwork quarterstaff...