Possibilty of implementing a magic weapon/armor crafting vender

Players have a hard time finding enchanted items for classes they play. Would it be possible to write up a vendor that allows players to enchant and craft their dream weapons/armor. Rules are available, I know the problem comes down to scripts and coding.

But over all, this is a traveling army, with camp followers trailing the crusade, wouldnt be to hard to imagine a wizard/cleric with the weapon/armor/item creation feats to help craft those specialty weapons and armor. A cost of course, which would help limit how many items are crafted. It’s a feature I really wished that was added to king maker.