Be cautious while using the master ball code it is known to make the game very dull and unexciting because of the easiness of catching the pokemon. When you turn it back on fight Gary for the first time andit will work properly. His data will not be in the pokedex though. . The PokeDex even updates data! Use my store codes to get some MasterBalls from anystore.
I have only tested the code on the red version but i assume that it works on both versions. Thus you will be able to capture it. All balls will have the same one. Ticket 40 - Gold Teeth 41 - X Attack 42 - X Defend 43 - X Speed 44 - X Special 45 - Coin Case 46 - Oak's Parcel 47 - Item Finder 48 - Silph Scope 49 - PokeFlute 4A - Lift Key 4B - Exp. Master balls cost 0 and always catch even if you don't weaken the Pokemon.
When you turn it back on fight gary for the first time andit will work properly. Infinite Energy 01ff16d0 No Random Battles 01033cd1. Sometimes the picture of the pokemon will be messed up, but you can still get it without problems later on. Change the xx's to a number from the list. I would only use the master balls on the three legendary birds,. Pick your starting PokeMon from the 3 balls at the start of the game.
This code will cause you to always fight the same Pokemon. He will only be the lvl that the pokemon that you caught was so I'd go to the mysterious dungeon to get since there are more powerful pokemon there. Then go into a patch of tall grass and walk around until you get into a fight with a Pokemon. Change the xx's to a number from the list. .
. . . . . . .
. . . . . .
. . . . .
. . . . . .