Yes... disable everything except the pokedex code. Activate the encounter and shiny for exemple, but do this before even start the game. In game you open the pokedex, choose the pokemon, click L and move around to spawn wild pokemon. It wont work on already spawn mob, rest or move around and all...