If you're using an Action Replay on Pokémon Platinum and want a stockpile of Master Balls, here's a code to try. Enter the following, then press L and R together to activate it:
94000130 FCFF0000
B2101D40 00000000
E0000D00 0000003C
01ED0001 00000000
D2000000 00000000
Once activated, you should receive a large batch of Master Balls—reportedly around 493 of them—ready to use on your toughest catches.