To get a code from the King, first you must donate to his charity. Make at least three seperate donations and donate 5000 points and you will receive a password.
Enter the password at the King's palace in TamaTown. It's the purple and red building that's sitting on the hill. Right in between the mall and the arcade.
Then you will get a souvenir from the King. Enter the password in your tama to get the souvenir.
You can do this up to 2 more times. The 5000 point donation prize is a ring. The 12000 point donation prize is a cape. The 30000 point donation prize is a crown.
Once you get the crown you will receive a Royal Costume in your items list.
Your tama can wear it when it's an adult. It's reusable.
When the tama is done with the costume a password will appear. It's for the Tamagotchi Corner Shop DS game. If you enter it in the game you will receive a sofa.
GotchiGirl96