If you do not bring both teleporter stones with you to the wastelands, ancient pyramids will be placed in those ruins as replacements. You could have picked up the second ancient pyramid, tossed it a few feet away and teleported out of the small ruins.
location of the Ancient Pyramids (71KB) - if you did not bring both teleporter stones with you to the wastelands
You can trade items for repairs. Even if he doesn't have enough gold to make up the difference in value, you could buy a stack of potions, then trade those for future repairs. You will loose a bit of value with this, but you should have enough loot it wouldn't matter.