Before graduating from the school of magic, Khalid is allowed to inhabit his first lamp, but he forgets to restrict his master to three wishes and must find a princess to save him from a lifetime of servitude.