Honestly the 98 motor is probably fine, might be a little hydrolocked but that can be taken care of. The lim (lower intake manifold) gasket went on but the head gaskets should be fine. Lim job is pretty easy, there's a how to video in the how to section.
How bad is the 05? Can find parts cheap enough of its not that bad.