It can be easily identified in a shop as it costs more than the ordinary lamp.
Djinni of the lampEdit
Each time you rub a magic lamp, there is a 1/3 chance that "You see a puff of smoke" and another 1/3 chance that "Nothing happens"; in either case, just try again.
The remaining 1/3 of the time, a djinni appears, the lamp is identified and turned into a full, 1500-light-turn oil lamp of the same BUC as the magic lamp, and one of the following five outcomes occurs. The relative chance of these outcomes depends on whether the lamp was blessed, uncursed, or cursed:
|80%||20%||5%||Grants one wish, then disappears.|
"I am in your debt. I will grant one wish!"
|5%||20%||5%||Remains as a pet.|
"Thank you for freeing me!"
|5%||20%||5%||Remains as a peaceful monster.|
"You freed me!"
|5%||20%||5%||Speaks, then vanishes.|
"It is about time!"
|5%||20%||80%||Remains as a hostile monster.|
"You disturbed me, fool!"
Note: There is no way to get a wish from the djinni other than the first outcome above.
If you wish for a magic lamp, you will instead get an ordinary oil lamp.
An early magic lamp stands a high chance of being wasted if you rub it without knowing its BUC status. Always bless it before rubbing.
Some players prefer having an inexhaustible light source to an extra wish. This very much depends on the circumstances of your character. Note that the lamp may still be rubbed for a wish later, regardless of how long it is used as an inexhaustible light source.
Be wary of rubbing unpaid magic lamps; the shopkeeper will charge you a usage fee if you manage to extract the genie.