Difference between revisions of "Oil lamp"

From NetHackWiki
Jump to navigation Jump to search
m (languages)
 
(20 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 +
{{languages}}
 
{{tool
 
{{tool
 
   |color=yellow
 
   |color=yellow
Line 6: Line 7:
 
   |cost=10
 
   |cost=10
 
   |weight=20
 
   |weight=20
 +
  |material=copper
 
}}
 
}}
  
An '''oil lamp''', cost 10, is a [[light]] source. Applying one will provide light to darkened areas for 1000 to 1499 turns. They can be refilled with [[scroll of charging|scrolls of charging]] or [[potion of oil|potions of oil]] (using the [[dip|#dip]] command). If you dip a lit oil lamp into a potion of oil, you are likely to cause a fireball.
+
An '''oil lamp''' is a kind of [[tool]] that appears in ''[[NetHack]]'', and is one of the game's many [[light source]]s. It appears as a '''[[lamp]]''' when unidentified, and is made of [[copper]].
  
 +
==Generation==
 
When you release a [[djinni]] from a [[magic lamp]], the lamp becomes an oil lamp.
 
When you release a [[djinni]] from a [[magic lamp]], the lamp becomes an oil lamp.
  
It's a good idea to [[name]] oil lamps by class, when you're sure it's a regular oil lamp. This way you can distinguish it from [[magic lamp]]s met on your way (or at least know you have both kinds of lamp). It is not possible to class name an item that is identified to you, for example by appearing in your starting inventory. In this case class name any lamps you find, and if the name sticks it's magic.
+
The following roles have a chance of starting with an oil lamp:{{refsrc|src/u_init.c|182|version=NetHack 3.6.7}}
  
If an oil lamp is cursed, it might not light when applied (50% chance){{refsrc|apply.c|1088}} - just try again. This is usually only bothersome if you turn it off in each lit room to conserve oil.
+
* [[Archeologist]] ({{frac|4}} chance){{refsrc|src/u_init.c|671|version=NetHack 3.6.7}}
 +
* [[Barbarian]]s ({{frac|6}} chance){{refsrc|src/u_init.c|685|version=NetHack 3.6.7}}
 +
* [[Healer]]s ({{frac|25}} chance){{refsrc|src/u_init.c|699|version=NetHack 3.6.7}}
 +
* [[Monk]]s ({{frac|10}} chance){{refsrc|src/u_init.c|719|version=NetHack 3.6.7}}
 +
* [[Priest]]s ({{frac|10}} chance){{refsrc|src/u_init.c|731|version=NetHack 3.6.7}}
 +
* [[Valkyrie]]s ({{frac|6}} chance){{refsrc|src/u_init.c|783|version=NetHack 3.6.7}}
  
==Light Radius==
+
Characters that start the game with an oil lamp will possess knowledge of the [[potion of oil]].{{refsrc|src/u_init.c|1111|version=NetHack 3.6.7}}
An oil lamp has a light radius of three squares around the character.
+
 
 +
Oil lamps may appear within the lighting [[shop]] run by [[Izchak]] in [[Minetown]]; in [[Orcish Town]], an oil lamp can instead be found near one of the [[shopkeeper]] [[corpse]]s.
 +
 
 +
{{upcoming|3.7.0|One [[themed room]] is a dark room that always contains a lit oil lamp.}}
 +
 
 +
==Description==
 +
[[Apply]]ing a [[beatitude|noncursed]] oil lamp in your inventory will turn it on, unless you are currently underwater or there is no oil; a cursed oil only has a {{frac|2}} chance of lighting each time it is applied.{{refsrc|src/apply.c|1381|version=NetHack 3.6.7}} Applying an oil lamp that belongs to a [[shop]] will incur extra fees on top of that lamp's price.
 +
 
 +
While on, an oil lamp will light darkened tiles in a radius of three squares around it:
 
{{lightradius|r=3}}
 
{{lightradius|r=3}}
 +
 +
Oil lamps will remain on for for 1000 to 1499 turns; they can be refilled by [[read]]ing a [[scroll of charging]], invoking the [[Platinum Yendorian Express Card]] or #[[dip]]ping the unlit lamp into a [[potion of oil]]. If you dip a lit oil lamp into a potion of oil, you are likely to cause a [[fireball]].
 +
 +
==Strategy==
 +
Oil lamps can be conserved by turning them off upon reaching a lit room or area. Cursed oil lamps are simply more tedious to turn on and provide just as much light, so they are not as urgent to bless or uncurse as other items.
 +
 +
Oil lamps can be distinguished from magic lamps by [[price identification]]; an oil lamp's base price is 10zm, while a magic lamp's is 50. Magic lamps also burn indefinitely, so any lamp that eventually flickers and goes out is an oil lamp. You can also #[[rub]] the lamp a few times to see if a puff of smoke or a djinni emerges, though doing this with a non-blessed magic lamp is likely to release the djinni without granting a [[wish]]. Once a lamp is indirectly identified as an oil lamp, it can be [[type-name]]d to differentiate them from unidentified magic lamps.
 +
 +
==History==
 +
The oil lamp first appears in [[NetHack 2.3e]], where it is simply called a "lamp"; it was given its current name in [[NetHack 3.1.0]].
  
 
==Messages==
 
==Messages==
As the lamp runs out of turns, you will receive the following messages in order.
+
{{message|The lamp flickers for a moment, then dies.|You attempted to light a cursed oil lamp and failed.}}
 +
{{message|This oil lamp has no oil.|You attempted to light an oil lamp that is currently empty.}}
 +
{{message|This is not a diving lamp.|You attempted to light an oil lamp while underwater.}}
 +
 
 +
As the lamp runs out of turns, you will receive the following messages in order:{{refsrc|src/timeout.c|1212|version=NetHack 3.6.7}}
  
* Your lamp flickers. (a couple hundred turns left)
+
{{message|Your lamp flickers.|The lamp has a couple hundred turns left.}}
* Your lamp flickers considerably. (50 or so turns left)
+
{{message|Your lamp flickers considerably.|The lamp has 50 or so turns left.}}
* Your lamp seems about to go out. (about ten or twenty turns left)
+
{{message|Your lamp seems about to go out.|The lamp has about ten or twenty turns left.}}
* Your lamp has gone out. (zero turns left)
+
{{message|Your lamp has gone out.|The lamp will no longer provide light unless refilled or recharged.}}
  
 
==See also==
 
==See also==
 
+
*[[Light sources#Lanterns and lamps|Light sources § Lanterns and lamps]]
*[[Light_sources#Lanterns_and_lamps]]
 
  
 
==References==
 
==References==
<references />
+
<references/>
 
+
{{nethack-366}}
 
 
 
[[Category:Tools]]
 
[[Category:Tools]]
{{nethack-343}}
 

Latest revision as of 15:51, 18 February 2024

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

An oil lamp is a kind of tool that appears in NetHack, and is one of the game's many light sources. It appears as a lamp when unidentified, and is made of copper.

Generation

When you release a djinni from a magic lamp, the lamp becomes an oil lamp.

The following roles have a chance of starting with an oil lamp:[1]

Characters that start the game with an oil lamp will possess knowledge of the potion of oil.[8]

Oil lamps may appear within the lighting shop run by Izchak in Minetown; in Orcish Town, an oil lamp can instead be found near one of the shopkeeper corpses.

The following information pertains to an upcoming version (3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.

One themed room is a dark room that always contains a lit oil lamp.

Description

Applying a noncursed oil lamp in your inventory will turn it on, unless you are currently underwater or there is no oil; a cursed oil only has a 12 chance of lighting each time it is applied.[9] Applying an oil lamp that belongs to a shop will incur extra fees on top of that lamp's price.

While on, an oil lamp will light darkened tiles in a radius of three squares around it:

...........
...........
....xxx....
...xxxxx...
..xxxxxxx..
..xxx@xxx..
..xxxxxxx..
...xxxxx...
....xxx....
...........
...........

Oil lamps will remain on for for 1000 to 1499 turns; they can be refilled by reading a scroll of charging, invoking the Platinum Yendorian Express Card or #dipping the unlit lamp into a potion of oil. If you dip a lit oil lamp into a potion of oil, you are likely to cause a fireball.

Strategy

Oil lamps can be conserved by turning them off upon reaching a lit room or area. Cursed oil lamps are simply more tedious to turn on and provide just as much light, so they are not as urgent to bless or uncurse as other items.

Oil lamps can be distinguished from magic lamps by price identification; an oil lamp's base price is 10zm, while a magic lamp's is 50. Magic lamps also burn indefinitely, so any lamp that eventually flickers and goes out is an oil lamp. You can also #rub the lamp a few times to see if a puff of smoke or a djinni emerges, though doing this with a non-blessed magic lamp is likely to release the djinni without granting a wish. Once a lamp is indirectly identified as an oil lamp, it can be type-named to differentiate them from unidentified magic lamps.

History

The oil lamp first appears in NetHack 2.3e, where it is simply called a "lamp"; it was given its current name in NetHack 3.1.0.

Messages

The lamp flickers for a moment, then dies.
You attempted to light a cursed oil lamp and failed.
This oil lamp has no oil.
You attempted to light an oil lamp that is currently empty.
This is not a diving lamp.
You attempted to light an oil lamp while underwater.

As the lamp runs out of turns, you will receive the following messages in order:[10]

Your lamp flickers.
The lamp has a couple hundred turns left.
Your lamp flickers considerably.
The lamp has 50 or so turns left.
Your lamp seems about to go out.
The lamp has about ten or twenty turns left.
Your lamp has gone out.
The lamp will no longer provide light unless refilled or recharged.

See also

References