Fixed small copy-paste issue, corrected offset in array_key_exists for duplicate NPCs.