I am assuming you have what we call an old upright. There are a few things you can do to hide scratches, not much you can do about the dents.
Look in your yellow pages to see if you have a refinisher's supply business near you. Go there, taking a small piece of the piano with you. They will help you find a touchup pen the right color for your finish. These are nothing more than thinned lacquer with stain mixed in. Be ready to get your fingers a little messy! You aren't going to drag the pen across the scratch like you would drag an inkpen over paper. You are going to just touch the marker into the scratch and let a little spot of the lacquer drop in, then daub it with your finger lightly until it blends. Go gently, and use sparingly. One edges where the finish has worn through, you can drag it along the edge.
After this, wait until the lacquer has dried for a while, then go back over it all with a could scratch cover liquid, also available at the refinisher supply house. Don't get any of that Old English stuff you can get at the grocery store. Use a soft cloth, wipe it until it doesn't look greasy.
Or, get a refinisher to give you a quote on a touch up job.
Larry Fletcher Pianos Inc Atlanta GA Dealer/technician
Doing the work of three men.....Larry, Curly, & Moe
Http://www.pianosinc.net