There is no such thing as a "quest-flagged" NPC. The function sets TESForm flag 0x400, which is an entirely different flag for object references: the persistence flag. Luthien (talk)