Add getnpcdir and setnpcdir functions.