Scrooge McDuck, Huey, Dewey, and Louie, Webby Vanderquack, Sunset Shimmer, Fluttershy, Pinkie Pie, Applejack, Rairty, Rainbow Dash and Launchpad McQuack journey to the middle east in search of the treasure of Callie Baba and his Forty Thieves. They are accompanied by Dijon, a humble man who is hired as a guide to an ancient temple. Unbeknownst to them, he is under the employ of Merlock, an old magician (whom The Dazzlings work for) who has a very specific treasure in mind. After overcoming several booby traps, Scrooge finds the treasure and while investigating it Dijon sneaks off with some of the prize. Webby discovers what appears to be an ordinary oil lamp which Scrooge grudgingly gives to her when he sees little value in it. Meanwhile, having discovered Dijon, Merlock becomes upset because the treasure he wanted--the lamp--has not been obtained by the thief, forcing the two of them to intervene. They trap the party in a shallow water flow filled with deadly scorpions and attend to the rest of the treasure, however Webby has made off with what Merlock wants the most.
Back in Duckburg, Webby, the boys, Sunset Shimmer, Fluttershy, Pinkie Pie, Applejack, Rairty and Rainbow Dash discover that the lamp is actually a magic lamp containing a genie who claims to be able to grant them three wishes each. With a total of twelve wishes between the four of them, they use it on things like a giant ice cream sundae and play things while Webby uses one of her wishes to bring her dolls to life. The boys use one of their wishes to reverse hers to avoid suspicion from the adults as they suspect they'll just take Genie away from them. Scrooge meets the Genie by mistake and they pass him off as a normal boy named "Gene." One night, Genie becomes afraid of an owl, and confesses he thought it may have been the wizard Merlock, who after being granted immortality had come into the possession of a magical talisman that gave him the power to change forms at will. When combined with the lamp, the talisman enables the user to gain unlimited wishes. After a disastrous wish from Webby, the boys and our heroes reveal Gene's identity to Scrooge who collects him as they were afraid of. It isn't long before Dijon discovers the Genie and uses him to wish away Scrooge's fortune to himself. Scrooge is arrested for trespassing on "his" property and Mrs. Beakly bails him out.
Scrooge, Launchpad, the boys and our heros infiltrate the Money Bin in order to obtain the lamp and reverse the mess, however Merlock is not far behind. As the heroes make their way to the top of the money bin, Merlock takes the lamp for himself and turns the bin into a gigantic floating fortress, dragging the intruders along with them. During a confrontation with Scrooge, Merlock orders the genie to destroy him and the others, which he has no choice but to obey. However Scrooge manages to take Merlock with him as the pair fall from the orbital fortress. Scrooge manages to take the lamp and make his second wish: "I wish me, my commerads and my family and me bin were back in Duckberg, right now!" (his first wish having been reacquiring the treasure of Callie Baba) the respective people and locations disappear from sight and Merlock looses his talisman, rendering him unable to transform and fly to safety he is shown falling down through clouds to his demise. Back in Duckburg, all seems well and the memories of the events seem limited to Scrooge and his family and friends. Scrooge acts curmudgeonly, threatening to send the lamp to the deepest point in the center of the Earth. But instead makes his final wish to make Gene a real boy. After granting the wish, the magic no longer with the lamp it wastes away into dust. To celebrate his new found humanity, Gene initiates a game of Cops and Robbers with the kids.
In the final scene, Scrooge catches Dijon trying to steal coins from Scrooge's Money Bin and chases Dijon down the road, yelling "Somebody, Stop those pants!"
- The Dazzlings will be working with Merlock in this film.
- This film takes place after Pooh's Adventures of My Little Pony: Equestria Girls - Rainbow Rocks (Which Sunset Shimmer and the Human Mane 5 already knows Scrooge McDuck, Huey, Dewey, Louie and Webby).
- Sunset Shimmer and The Human Mane 5 will faced Dijon again in Winnie the Pooh and The Return of Jafar.