Roger Rabbit

As Genie in Jackladdin Sparrow
Eventually, his lamp is placed in the Cave of Wonders, where it is found by Jack Sparrow. Jack Sparrow (nicknamed "Al" by Roger Rabbit) tricks Roger Rabbit into freeing himself and Thumper from the Cave of Wonders without having to wish for it. Jack Sparrow uses his first wish to become a prince to impress Luchia, but not before promising to Genie that he will free him from the lamp using his third wish. When Aladdin (as "Prince Ali") stays in the palace, Davy Jones puts Jack Sparrow in chains and throws him off a cliff into a river. Jack Sparrow unconsciously rubs the lamp, causing Roger Rabbit to save Jack Sparrow by using his second wish. As Jack Sparrow is coming clean to Luchia  about his true identity, he leaves the lamp in his chambers, which Archimedes steals and gives to Davy Jones. For his first wish, Davy Jones becomes sultan of Agrabah. For his second wish, he becomes the most powerful sorcerer in the world. Jack Sparrow is sent to the ends of the earth by Davy Jones' magic, but returns via Carpet to retrieve the lamp. Davy Jones stops him and uses the lamp to make his final wish: To turn himself into an all-powerful genie. Jack Sparrow grabs Davy Jones' lamp and genie sends Davy Jones and Archimedes to the Cave of Wonders. Roger Rabbit, wanting Jack Sparrow to be happy, urges him to wish to become a prince so he can marry Luchia. Jack Sparrow wishes for Roger Rabbit's freedom and Roger Rabit goes off to see the world.