Added NPCDef, and NPC hook

NPC hook is unstable