moritheil said:
1st—disguise self, mage armor, magic missile, shield, true strike;
2nd—acid arrow, bear’s endurance, eagle's splendor, scorching ray;
3rd—fireball, haste, vampiric touch;
4th—evard's tentacles, improved invisibility;
5th—baleful polymorph
If the main way this guy does damage is via engulf, then I'd choose spells to make that more likely. With Arcane Preparation or the PHBII sorcerer variant, you could get quickened true strike.
Another interesting combo would be Teleport + Celerity (PHBII) + Engulf. That would allow an immediate engulf attack against anyone, but it would leave the worm dazed for a round afterwards. Teleport is also a great escape spell, of course.
And then defensive options: Greater Mirror Image (PHBII) is a very nice spell. Slightly better than Mirror Image, but the main advantage is that it's an immediate action. Against a high-level party, I'd expect it to be more effective than invisibility -- about the only thing that sees through it is true seeing. Or Instant Diversion (Races of the Dragon) for a 1st-level version -- swift action, and it basically gives you a 1-round Mirror Image.
As Iku Rex recently pointed out, Wings of Cover (Races of the Dragon) is a great spell. As an immediate action, it gives you complete cover (and breaks line of effect) against any one attack or spell.
You could up his AC another good chunk with Dragonskin (SC), and that also provides energy resistance.
If he doesn't care about his allies' ability to attack, Blacklight is arguably better than Greater Invisibility -- magical darkness that travels with the caster and which he can see through perfectly.
And if he knows the fight is coming, Stoneskin always helps.
Stacking all the don't-target-me spells could also be quite effective. With greater invisibility + blacklight + mirror image, it would take at least 3 spells (or True Seeing or disjunction) to see through it all. It wouldn't be worth casting them in combat, though -- only if he can buff ahead of time (perhaps by holding off the party with fodder for a couple rounds).