They could just give exactly 0xp for killing NPCs, but give the player a specific amount of xp for completing the NPC encounters, no matter how they're completed (killing, talking, bribing).