This is a nice item to come upon in NetHack, but I imagine it'd be even nicer in real life. If you rub a magic lamp, a djinni comes out. If the lamp was blessed, the djinni grants a wish; if it was uncursed, he may or may not grant a wish; if the lamp was cursed, no wishes. A magic lamp can be recharged once with a scroll of charging.