Getting 999 Master Balls in Pokémon Sapphire isn't possible through normal gameplay—you only receive a limited number legitimately. To obtain that many, players typically resort to a cheat device like an Action Replay, which can modify your inventory. Just keep in mind that Master Balls have a 100% catch rate under normal conditions, so you rarely need more than a handful anyway.