Removed NPC and character parameters from NPC functions

These functions can only be used in the context of a character talking
to an NPC, so these parameters can be deduced from that context rather
than passing them explicitly all the time.

Simplifies NPC scripting.