Added npc processinput

I am so sorry about this outbreak. :(