Efreeti Bottle
Wondrous Item, Very Rare

Magic action to remove the stopper: smoke pours out, and at the end of your turn an Efreeti appears in an unoccupied space within 30 ft. The first time it's opened, roll :

Effect
1 Efreeti attacks you for 5 rounds, then vanishes; bottle loses its magic.
2–9 Efreeti obeys your commands 1 hour, then returns; stopper can't be removed for 24 hrs. Same effect the next two openings; on a 4th, it escapes and the bottle loses its magic.
10 Efreeti casts Wish once for you, then vanishes (or after 1 hr); bottle loses its magic.