$500 bucks?? That's a steal without an engine! 239K is no big deal, if the oil was changed. I'm at 370K... many on the board are at 400K, 500K and well beyond. 97 was a VERY good year for Cummins powered Dodge trucks!
I'm one of those "If it ain't broke... ... " guys. But when I fix something I try to make it better than it came, if I can.
The pumps are solid, forget about it until it breaks (if it ever does). Mine leaked oil from the valve cover gaskets. Here's my list for you, assuming the trucks already runs and drives "OK";
1) Get some manuals
2) Look at the water pump weep hole for signs of leakage. (cheap and easy fix)
3) Check the front & rear drive line u-joints, etc. Front u-joint failure can wipe out your transfer case!
4) Inspect the metal tube trans cooling lines for "rub spots" and replace both entire lines with hyd hose if they are wore.
5) Replace the ball joints, front axle u-joints, and brakes if needed. The trucks can be hard on lower ball joints. . the uppers seem to last forever on mine.
6) Get some good tires on it. You won't know what else is shot if the tires are crap... . this goes for the shocks as well. If they are OEM get them off, they are gonners at 239K.
7) Chase down your oil leaks and fix (if they are large, or if they bug you. . lol)
8) Change the rear axle fluid. Don't forget the additive if you have an LS unit.
FYI Heres how long my stuff last, based on my use;
1) Transmission 260K
2) Trans cooling lines 200K and non-stop leaks thereafter!. . until I rebuilt with hyd hoses.
3) AC "clutch"... needs one every 60K
4) Ball joints 150K. I like the Duralast units from Auto Zone. Resonable, lifetime warrantee and they live well. Pulled them with 200K on them and they were fine, why pay more?
5) Radiator 370K (this weekend's work)
6) Front brake pads... I change them every 25-30K, after eatin a couple of rotors (you can't hear-um till they are smokin).
7) Fuel filter... I change when the truck starts loosing power, you'll know. These filters are a fuel quality issue, not a mileage issue. Some last me 20K, others 30K... some only 15K. IMHO changing the fuel filter before it starts slowing the truck down is a waste of money. Put a new one in NOW, to get a base line. This goes for you oil as well.
8) Wheel bearing hubs (front). . OEMs made 150K, aftermarkets would go about 60K (BTW I replaced the mess that Dodge made of the fine Dana 60 with "lock-free" hubs and solid axles at 320K. . best decision I have made to date on this truck)
9) My rear drum brakes seem to last forever. I have changed them twice "just because". In both cases the brakes shops told me they were fine.
Good luck, enjoy the truck. Hope she serves you well.