To use the encounter spawn code, enable [(M) Press L] and [20# Always Encounter (M)]
go to dex and select pokemon from the scroll down
close dex
run around the area until new pokemon spawn and they'll all be the pokemon you want unless it's a huisian form (bad egg, lucario) or, for example, it's...