1. My goal is to hide NPC namplates altogether but keep the friendly player and enemy player nameplates visible. I've only come across scripts and addons that just toggle the options that WoW gives you in the interface options. Is there a way to do this with scripts?

    Not without massive computation and code. Nameplates are not friendly to work with at all.