Mystery Gift option part 1 and 2 must be done first or it will not work. After you have unlocked all of the Mystery Gifts, go to the game's main menu and select Mystery Gift then select recieve gift then by wi-fi connection and choose the gift you want, it will then be in your bag when playing. There are three Mystery Gifts that can each unlock a legendary, they are Oak's Letter, the Azure Flute and the Heavens Pipe. If you don't get a ticket that matches one of your pokemons ID's, you can't draw another until the next day (if you set your DS's date forward one day, you can draw another straight away).
|Mystery Gift option part 1||Go to the TV building in Jubilife City and go to the third floor then talk to the man standing next to a women and he will ask you a question then enter Everyone+Happy|
|Mystery Gift option part 2||he will ask you something else then enter Wi-fi+Connection|
|Mystery Gift||Go back to the first floor and go and talk to the women at the counter then draw a lotto ticket and if it matches one of your pokemons ID's, you will get a Mystery Gift|