U need To have an action replay ds.
Ok heres the steps
2)Use 100% Pokedex Completed Cheat in ar (When activated you should have 2 stars by now) *U need a national dex*
3)Use this cheat to max under ground records.Then steal another 1 from a freind's base. *U now have 3 stars*
4)Use a cheat that lets you have a hack Pokemon that has all ribbons and Maxed Beauty,Cool,Cute,Etc. Win any Master rank contest. U should have 4 stars