I've tried all night to use the masterball and rare candy codes with no avail. I've tried the infinite item code and the pokemart codes. They either freeze the game or make my ball and item pockets useless by adding a lot of garbage data. Is there any way to have these codes be programmed in and have the pockets be clean EXCEPT for these items?

If anyone can produce a SAV file with 99 Master Balls, 99 Rare Candies, and Max Money and not be a glitchy mess, that would be GREATLY appreciated!