add npc handling template rule