I say get an inspection and look for a lot of different things like plumbing, leaky basements, poor quality of bathrooms and kitchens, Furnace, Air conditioner, Electrical service for hookups of Stove and refrigerator as well as 3 prong grounded plugs. Lead paint, electrical service box. Insulated windows, Insulation in attic, serviceable chimney, Roof, Water Heater, floors, walls, doors, etc.
Some people look at a house as an investment, but it requires a lot of maintenance and can become a giant pit you have to keep throwing money into.
Basically, for every Item you find wrong account for the money you would need to fix it or repair it or replace it. Then demand the home owner discount the selling price. It might be worth it if you make your home loan include the improvements needed for the bank. You are buying the house and the repair costs as well to bring it up to code.