The 40 Thieves' Revenge

Sherazade and Ali Baba fly back to the Thieves’ Cave in search of more money to build a new ship. Osman spots their flight from his watchtower and plans an ambush. Inside the cave, Ali Baba finds a chest containing some artifacts stolen from Harun Khalid, and when he foolishly touches one of them both he and Sherazade become magically glued to it, trapped. The thieves return and discover them, but Ali Baba is able to free himself by using an “invisibility cap” from inside the chest. He does not abandon Sherazade, instead working with her to trick the thieves into empty barrels and seal them inside. And when they find Osman and his troops waiting outside to capture them, they roll the barrels (with thieves inside) out the door as a diversion and make their escape.