Custom Npc inventories?

Is there a way to do this and create Guards/bandits/cumans with better or worse equipment?