Contingent antimagic field? I could put one up...but this screws us all over.
EDIT: Malacarus will take 20,000 gp in gate incense, a scroll of create greater undead, a scroll of shades, a scroll of dimensional anchor, and 100,000 gp in diamond dust. The rest he'll take in gold. Oh, and...