The Action Replay code for this is:
Once you put in the code and named it ,you....
1.press L and R at the same time so that you get 493 master balls and 100 ultra balls.
2.go into your bag and throw away the certain amount of master balls and ultra balls.
3.while pressing down L walk in long grass and wait for encounter (it should be the pokemon you wanted)
4.Catch the pokemon using a masterball and your done.
The number of master balls you throw away is 493 (total number of masterballs) minus the National Pokedex number of the pokemon you want.
And the number of Ultra balls that you will have LEFT in your bag will be the level of the "wild" pokemon.
so... Yanma's Ntional pokedex number is 193 so 493 - 193 is 300, so I would throw away 300 master balls
If I want my yanma to be level 8 I would throw out 92 ultra balls cuz 100 - 92 is 8 (throw away 99 level 1, 98 level 2 and so on)
Srry the instructions were so long but its worth it.
Hope I helped! : )
PLEASE COMMENT AND SUSCRIBE!