Begging is the skill by which one can acquire gold and potentially other items from NPCs.
Right-click an NPC character and click beg.