Finally, as another suggestion, you can just download the sourcecode to most of the classic RLs (ADOM being a notable exception), and learn from playing with that. Once I get around to finishing this and starting on my "serious" RL, I will probably spend more time doing that first.
Also, I forgot how verbally abusive that thing was shaping up to be. Lulz.