The djinni (plural djinn) is a monster in NetHack. It is only generated on the Plane of Air. It can be found elsewhere by rubbing a magic lamp or drinking a smoky potion. A djinni generated this way might be tame, peaceful, or hostile; or it might simply disappear, sometimes granting a wish first. A tame djinni makes a powerful pet in the early game -- it is intelligent and will use weapons -- but a wish is almost always more useful. Blessing the lamp or potion will increase the odds of receiving a wish.
Djinn are never randomly generated and besides the three that appear on the plane of air, only come from quaffing smoky potions, rubbing magic lamps, applying figurines of djinn, or casting stone to flesh on a statue of a djinni.
A player or monster may not polymorph into a djinni.
The following messages can occur when you release a djinni from a magic lamp or smoky potion, or a monster releases a djinni from a smoky potion. See those articles for more details on the relative frequency of each.
- "I am in your debt. I will grant one wish!"
- You get a wish, then the released djinni will vanish.
- "Thank you for freeing me!"
- The released djinni is tame.
- "You freed me!"
- The released djinni is peaceful.
- "It is about time!"
- The released djinni simply vanishes.
- "You disturbed me, fool!"
- The released djinni is hostile (or sometimes peaceful to a neutral hero, perhaps due to a bug).
- "Sorry, I'm all out of wishes."
- You have chatted to a tame djinni.
- "I'm free!"
- You chatted to a peaceful djinni.
- "This will teach you not to disturb me!"
- You chatted to a hostile djinni.
The djinn are genies from the elemental plane of Air. There,
among their kind, they have their own societies. They are
sometimes encountered on earth and may even be summoned here
to perform some service for powerful wizards. The wizards
often leave them about for later service, safely tucked away
in a flask or lamp. Once in a while, such a tool is found by
a lucky rogue, and some djinn are known to be so grateful
when released that they might grant their rescuer a wish.
- The efreeti (&), from the Plane of Fire
- The dao (& in NetHack-- 3.1.3, & in SLASH 6), from the Plane of Earth
- The marid (& in NetHack-- 3.1.3, & in SLASH 6), from the Plane of Water
None of the genies are randomly generated. In SLASH 6, any one of the four types can be found in a potion or magic lamp, with the same probabilities of granting wishes, etc. as a djinni in regular NetHack. (The code for randomly selecting one of the four types is present in the SLASHTHEM source as well, but commented out.) Despite the elemental affinities of the three new genies, according to the DnD source, djinn remain the only species that are guaranteed to appear on any of the Elemental Planes. (In NetHack-- 3.0.10, only the djinni can be found in a potion or lamp, and the Elemental Planes do not exist, so it is unclear how a player can find the other three types, apart from wishing for a figurine or a statue.)
Like the djinni, these genies are not considered demons and so are not harmed by silver. They are almost identical to the djinni, except in their names, glyphs, and alleged homes. The only significant differences are that in SLASH 6 the efreeti resists fire and electrical damage (only fire in NetHack-- 3.0.10) and the marid resists cold damage. In NetHack-- 3.0.10 the dao phases like an earth elemental while the other three genies can fly; in SLASH 6 all four are flyers. All four genies have the same 2d8 physical attack.
The efreeti and marid are referenced in regular NetHack as hallucinatory monsters.