in the battle tower you just have to talk to the man at the right side of the room and he will give you the judge fuction no completing the tower is needed
the Shiny code actually work on the underground, you just have to click the button before you enter a cave with pokemon and all of them will be shiny, just have to activate before entering the room