Difference between revisions of "Magic lamp"

From NetHackWiki
Jump to navigation Jump to search
m (Djinni of the lamp: Use Template:Function)
m (Description: typo)
(22 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 +
{{languages}}
 
{{tool
 
{{tool
 
   |color=yellow
 
   |color=yellow
Line 6: Line 7:
 
   |cost=50
 
   |cost=50
 
   |weight=20
 
   |weight=20
 +
  |material=copper
 
}}
 
}}
  
A '''magic lamp''' provides [[light]] and never runs out of power, making it a useful tool to take into [[Gehennom]] and other dark places.
+
A '''magic lamp''' is a type of [[tool]] that appears in ''[[NetHack]]''. It is a [[light source]] that is made of [[copper]], and appears as a [[lamp]] when unidentified.
  
It can be easily identified in a shop as it costs more than the ordinary lamp.
+
The magic lamp is subject to a few [[rumors]], with all but one of them being true.
  
==Djinni of the lamp==
+
==Generation==
 +
In addition to random generation, magic lamps can be sold in general [[shop]]s, hardware stores and lighting shops. Magic lamps are generated 25% [[blessed]], 50% [[uncursed]], and 25% [[cursed]].
  
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.
+
Magic lamps cannot be [[polypile]]d for, and [[wish]]ing for a magic lamp will instead give you an ordinary [[oil lamp]].
  
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:<ref>{{function|potion.c|djinni_from_bottle}}</ref>
+
==Description==
 +
[[Apply]]ing a magic lamp will illuminate a 3-square radius around it, though unlike a normal oil lamp it will never run out of power.
 +
 
 +
Additionally, each time you [[rub]] a magic lamp, there is a {{frac|3}} chance of a puff of smoke, a {{frac|3}} chance that nothing happens, and a {{frac|3}} chance that a [[djinni]] appears. If a djinni is generated from a magic lamp, the lamp is [[auto-identified]] and turned into an oil lamp of the same [[beatitude]] with 1000-1500 turns of light, and one of the following five outcomes occurs, with their relative probability depending on the beatitude of the lamp:{{refsrc|src/apply.c|1484|nethack=3.6.7|comment=<code>dorub</code> function, calls <code>djinni_from_bottle</code>}}{{refsrc|src/potion.c|2321|nethack=3.6.7|comment=<code>djinni_from_bottle</code> function}}
  
 
{|class="prettytable"
 
{|class="prettytable"
Line 32: Line 38:
 
|}
 
|}
  
Note: There is no way to get a wish from the djinni other than the first outcome above.
+
==Strategy==
 +
Always make sure a magic lamp is blessed before rubbing, as an early magic lamp stands a high chance of being wasted if you rub it without knowing its beatitude. Be wary of rubbing unpaid magic lamps as well, as the shopkeeper will charge you a usage fee if you manage to extract the genie - thankfully, magic lamps are easily distinguished from normal ones via [[price identification]].
 +
 
 +
Some players prefer an inexhaustible light source to an extra wish, depending on their circumstances; the lamp can always be rubbed for a wish later with no trouble, making it a useful tool to bring into [[Gehennom]] and other dark areas. If you reach the [[Astral Plane]] with a magic lamp, it may be worth blessing for the chance to wish up a necessary item, and the leftover oil lamp should provide more than enough turns of light for those looking to [[jump]] their way through the level.
 +
 
 +
==History==
 +
The magic lamp first appears in [[NetHack 2.3e]].
  
There is a limit of 120 djinn per game. Beyond this limit, they are extinct and no more can be created. This includes djinn summoned from [[smoky potion]]s  and any placed on the [[Plane of Air]].
+
==Origin==
 +
{{wikipedia|Aladdin}}
 +
The idea of a djinni dwelling in a magic lamp was popularized by the Middle-Eastern folk tale ''Aladdin''. It is one of the best-known tales associated with ''The Book of One Thousand and One Nights'' (''The Arabian Nights''), despite not being part of the original text - it was added by the French Antoine Galland, based on a folk tale he heard from the Syrian storyteller Hanna Diyab.
  
If you wish for a magic lamp, you will instead get an ordinary [[oil lamp]].
+
The tale has many variations, and the lamp is typically an item that the impoverished Aladdin retrieves from a booby-trapped cave for a sorceror pretending to be a sibling of his late father. After escaping the cave with the aid of a djinni in a magic ring, Aladdin brings the lamp to his mother, who tries to rub it clean so they can sell it to buy food for their supper; this releases a second, far more powerful genie who is bound to do the bidding of the person holding the lamp.  
  
==Strategy==
+
==Variants==
 +
Some variants alter the magic lamp's base price to make it less easy to purchase.
 +
 
 +
===SLASH'EM===
 +
In [[SLASH'EM]], the magic lamp's base cost is increased to 1000[[zm]], and still more expensive magic lamps can be found in [[Black market (SLASH'EM)|the black market]]. SLASH'EM also adds the [[magic candle]], which acts as a permanent light source, and obtaining one means that magic lamps can be safely rubbed for their wishes.
 +
 
 +
[[The Sunless Sea]] is a [[Special level (SLASH'EM)|special level]] that features a guaranteed magic lamp, though it may be underwater.
 +
 
 +
===UnNetHack===
 +
{{main|Wish#UnNetHack}}
 +
In [[UnNetHack]], wishes from magic lamps cannot produce [[magical item]]s. Magic lamps themselves are an eligible wish, but can only be obtained from a [[wand of wishing]]. The [[Black market (UnNetHack)|black market]] in UnNetHack has a chance of selling magic lamps at exorbitant prices.
 +
 
 +
UnNetHack incorporates the [[advent calendar]] patch, where the magic lamp is one of many possible 'Christmas presents' in the 24th room of the branch. The [[Ruins of Moria]] branch always contains an uncursed magic lamp on the last floor, carried by the [[Watcher in the Water]].
 +
 
 +
===dNetHack===
 +
In [[dNetHack]], [[The Sea (dNetHack)|The Sea]] contains a guaranteed magic lamp, similar to The Sunless Sea of SLASH'EM. Each of the level's maps also has a guaranteed [[amulet of magical breathing]] in the event the lamp is underwater.
 +
 
 +
===NetHack Fourk===
 +
In [[NetHack Fourk]], it is possible to use a blessed [[scroll of wishing]] to wish for a magic 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.
+
===The November NetHack Tournament===
 +
In [[The November NetHack Tournament]], magic lamps cannot be placed into the [[swap chest]].
  
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 has been used as an inexhaustible light source. If you reach the [[Astral Plane]] with a magic lamp, it might be worth blessing it and wishing for a good item to help you get through Astral; you won't need more than 1500 turns of light at that point.
+
===EvilHack===
 +
In [[EvilHack]], magic lamps can be wished for. Additionally, cursed magic lamps give off darkness instead of light; the aura of darkness covers the same radius, and overrides any light source. A cursed magic lamp is one of a very few portable sources of darkness, making them ideal tools for any [[Drow (starting race)|drow]] character.
  
Be wary of rubbing unpaid magic lamps; the shopkeeper will charge you a usage fee if you manage to extract the genie.
+
==References==
 
<references/>
 
<references/>
 +
{{nethack-367}}
 
[[Category:Tools]]
 
[[Category:Tools]]

Revision as of 04:47, 6 March 2024

( Lamp.png
Name magic lamp
Appearance lamp
Base price 50 zm
Weight 20
Material copper
Monster use Will not be used by monsters.

A magic lamp is a type of tool that appears in NetHack. It is a light source that is made of copper, and appears as a lamp when unidentified.

The magic lamp is subject to a few rumors, with all but one of them being true.

Generation

In addition to random generation, magic lamps can be sold in general shops, hardware stores and lighting shops. Magic lamps are generated 25% blessed, 50% uncursed, and 25% cursed.

Magic lamps cannot be polypiled for, and wishing for a magic lamp will instead give you an ordinary oil lamp.

Description

Applying a magic lamp will illuminate a 3-square radius around it, though unlike a normal oil lamp it will never run out of power.

Additionally, each time you rub a magic lamp, there is a 13 chance of a puff of smoke, a 13 chance that nothing happens, and a 13 chance that a djinni appears. If a djinni is generated from a magic lamp, the lamp is auto-identified and turned into an oil lamp of the same beatitude with 1000-1500 turns of light, and one of the following five outcomes occurs, with their relative probability depending on the beatitude of the lamp:[1][2]

Blessed Uncursed Cursed Outcome
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 in its regular state (hostile, or sometimes peaceful, if you are neutral).
"You disturbed me, fool!"

Strategy

Always make sure a magic lamp is blessed before rubbing, as an early magic lamp stands a high chance of being wasted if you rub it without knowing its beatitude. Be wary of rubbing unpaid magic lamps as well, as the shopkeeper will charge you a usage fee if you manage to extract the genie - thankfully, magic lamps are easily distinguished from normal ones via price identification.

Some players prefer an inexhaustible light source to an extra wish, depending on their circumstances; the lamp can always be rubbed for a wish later with no trouble, making it a useful tool to bring into Gehennom and other dark areas. If you reach the Astral Plane with a magic lamp, it may be worth blessing for the chance to wish up a necessary item, and the leftover oil lamp should provide more than enough turns of light for those looking to jump their way through the level.

History

The magic lamp first appears in NetHack 2.3e.

Origin

The idea of a djinni dwelling in a magic lamp was popularized by the Middle-Eastern folk tale Aladdin. It is one of the best-known tales associated with The Book of One Thousand and One Nights (The Arabian Nights), despite not being part of the original text - it was added by the French Antoine Galland, based on a folk tale he heard from the Syrian storyteller Hanna Diyab.

The tale has many variations, and the lamp is typically an item that the impoverished Aladdin retrieves from a booby-trapped cave for a sorceror pretending to be a sibling of his late father. After escaping the cave with the aid of a djinni in a magic ring, Aladdin brings the lamp to his mother, who tries to rub it clean so they can sell it to buy food for their supper; this releases a second, far more powerful genie who is bound to do the bidding of the person holding the lamp.

Variants

Some variants alter the magic lamp's base price to make it less easy to purchase.

SLASH'EM

In SLASH'EM, the magic lamp's base cost is increased to 1000zm, and still more expensive magic lamps can be found in the black market. SLASH'EM also adds the magic candle, which acts as a permanent light source, and obtaining one means that magic lamps can be safely rubbed for their wishes.

The Sunless Sea is a special level that features a guaranteed magic lamp, though it may be underwater.

UnNetHack

Main article: Wish#UnNetHack

In UnNetHack, wishes from magic lamps cannot produce magical items. Magic lamps themselves are an eligible wish, but can only be obtained from a wand of wishing. The black market in UnNetHack has a chance of selling magic lamps at exorbitant prices.

UnNetHack incorporates the advent calendar patch, where the magic lamp is one of many possible 'Christmas presents' in the 24th room of the branch. The Ruins of Moria branch always contains an uncursed magic lamp on the last floor, carried by the Watcher in the Water.

dNetHack

In dNetHack, The Sea contains a guaranteed magic lamp, similar to The Sunless Sea of SLASH'EM. Each of the level's maps also has a guaranteed amulet of magical breathing in the event the lamp is underwater.

NetHack Fourk

In NetHack Fourk, it is possible to use a blessed scroll of wishing to wish for a magic lamp.

The November NetHack Tournament

In The November NetHack Tournament, magic lamps cannot be placed into the swap chest.

EvilHack

In EvilHack, magic lamps can be wished for. Additionally, cursed magic lamps give off darkness instead of light; the aura of darkness covers the same radius, and overrides any light source. A cursed magic lamp is one of a very few portable sources of darkness, making them ideal tools for any drow character.

References

  1. src/apply.c in NetHack 3.6.7, line 1484: dorub function, calls djinni_from_bottle
  2. src/potion.c in NetHack 3.6.7, line 2321: djinni_from_bottle function