add support for CustomNPC mod

thi patch kill custom NPC only when want kill npc