it sounds like it will need a motor overhaul. for purposes of buying it, assume it needs a sleeve and piston kit / valve work, bearings / crank turned / injectors cleaned / etc. easily $1,200 - $1,500 in parts. double that to include engine labor. assuming you remove the engine and take it to the shop. and then there's the clutch and TOB - when you get that deep in a tractor it's generally a bad move to not replace them. I'm also assuming the D188 engine in that tractor is a sleeved motor as i've not checked the book.
also, does the TA function correctly?