You need to be prepared to pay for a building and pest inspection before you purchase that sort of property - unless the price is based on an a worse case for repair costs.
Some things that look like a major issue can be quite cheap to fix.
When you know the cost of the repairs you have to...