Wizard of Yendor
The Wizard of Yendor, @ (also informally known as Rodney), is one of the primary obstacles in NetHack and the guardian of the Book of the Dead. You must get the Book from him before you can descend to Moloch's Sanctum and get the Amulet of Yendor from the high priest of Moloch.
However, killing him alone will not be enough to deter him; not only can he hassle you remotely, but the Wizard will eventually reappear, and he can and will follow you up to the Elemental Planes. He will not appear in the Astral Plane; however, if he appears on the Plane of Water, he can follow you through the portal to the Astral Plane.
In addition to the full complement of arcane monster spells, the Wizard has a unique spell, Double Trouble, which creates another incarnation of him, with all his powers. The clone can show up with a different appearance from his normal self; one of water demon, vampire, red dragon, troll, umber hulk, xorn, xan, cockatrice, floating eye, guardian naga or trapper. He will not use this spell if there are already two of him in the world.
He is incapable of harming monsters, e.g. pets or the high priest of Moloch. The latter case is frequent in NetHack 3.4.3 because he may appear within twelve turns after you perform the Invocation, and will immediately warp into the Sanctum to obtain the Amulet from the high priest. As of NetHack 3.6.0, covetous monsters won't attack the priest.
After the Wizard dies for the first time, or after you perform the Invocation (if you have stolen the Book from him without killing him), he will cause you trouble for the rest of the game. Fifty to 299 turns after the wizard is first killed, 2–12 turns after you perform the Invocation and every 50–249 turns afterwards (not counting turns where you are invulnerable while praying), one of the following effects will happen:
|1⁄3||No effect||"You feel vaguely nervous."|
|1⁄6||Curse items||"You notice a black glow surrounding you." (if not blind)|
|1⁄6||Aggravate monsters, as per the monster spell||"You feel that monsters are aware of your presence."|
|1⁄6||Summon nasties||No message|
|1⁄6||If there is currently no living Wizard, he returns to life near you, one monster level higher than his previous incarnation. If the Wizard is alive on a different dungeon level, and doesn't have the real Amulet, he is brought to you.||"A voice booms out... 'So thou thought thou couldst <kill/elude> me, fool.'"|
Unrelated are various cosmetic messages that "harass" the player (e.g. "laughing fiendishly").
In UnNetHack, there is one additional possible effect of this harassment—if you aren't on the Astral Plane, there is a chance of a large earthquake, similar to the effect of playing a drum of earthquake.
Many players choose to zap a wand of death at the Wizard instantly every time he reappears. However, if you are low on wand charges, you may want to take him out by conventional means or, for example, stoning him. Watch for the Elvenkings the Wizard likes to summon—they are represented by the same @ symbol as the Wizard. It is annoying to realize that you've squandered a ray of death on the wrong monster.
Being covetous, the Wizard is capable of stealing quest artifacts from your main inventory. If you were relying on that carried artifact for magic resistance, look out—you don't have MR any longer, but he does! Not only is he is now immune to death rays and the like, but he might be inclined to return the favor. Prudent players will arrange for other items to duplicate the vital powers of their quest artifacts before beginning the ascension run, and may even wish to carry their own quest artifact in a container to avoid the Wizard stealing it and making use of it himself. Pity the unprepared Caveman who has the Sceptre of Might stolen with no other source of MR and no other good melee weapon in inventory.
In NetHack 3.6.0, he will only steal the player's own quest artifact—those of other roles are immune (e.g. a neutral non-wizard can get theft-proof MR by wishing for The Eye of the Aethiopica). As of NetHack 3.6.1, any quest artifact is vulnerable, so this is no longer a viable strategy.
The Wizard will not reappear if he obtains the real Amulet. If you are being overwhelmed by the Wizard, you can throw the Amulet away and change levels as he goes to pick it up. You will need to retrieve the Amulet at some point, but this gives you an opportunity to recover pets and equipment. However, the other forms of harassment will continue to affect you.
Obtaining the Book of the Dead
|Attacking the Wizard through the corner|
It is possible to dig into the Wizard's tower without waking him up: standing in a corner of the room, zap a wand of digging diagonally at the tower. This will remove a bit of the tower, but will not wake up the Wizard. This will happen, just outside your visual field with no message; don't move to check it out. Without having moved, If you then shoot a death ray in through this newly created gap, you will kill him without giving him the chance to cast spells at you. You have to do all this from the same position. If you dig in any other way, or if you get near the breached tower, you will wake him up.
If you kill him over the moat, you can get the Book of the Dead by zapping a wand of cold or the cone of cold spell over the water; the Book of the Dead is immune to blanking, and will end up on top of the ice. Alternately, you can wear an amulet of magical breathing to go into the water and pick it up. If you choose to do this, remember to leave your water-damageable items (potions, spellbooks, scrolls, non-rustproof weapons) on the dry land or in a noncursed oilskin sack.
If you have a drum of earthquake, you can reliably wake him up from outside the Wizard's Tower. You can then kill him and obtain the Book without having to enter the Tower at all. A tame (master) mind flayer can also lock onto him with its telepathy, waking him up and bringing him to you. If you polymorph into a mind flayer, you have a 10% chance of locking into his mind each time you #monster, provided he is within an eight-tile radius. Drinking a cursed potion of invisibility will also wake him up, along with all other sleeping and meditating monsters on the level.
Once you have killed the Wizard or performed the Invocation ritual, the harassment will begin and will last for the remainder of the game. Thus it is usually a good idea to prepare for the ascension run before killing him to reduce the number of turns—and thus the amount of harassment—needed to finish the game. Finding the vibrating square and creating paths through the Gehennom mazes are always beneficial. Stealing the Book of the Dead without killing him will allow you to continue preparations without risk of harassment; this is especially useful for pacifists trying to raise the dead to obtain a level 49 purple worm.
Level draining the Wizard will permanently reduce the level of this incarnation, although it will still increase when another one appears. If you are able to reduce his level to 0 he will lose all spellcasting abilities, and his melee damage becomes unremarkable. Reducing his level without killing him is best done with a negatively enchanted Stormbringer (enchantment can be easily reduced to −3 through engraving). Reducing his level will also make him more susceptible to polymorph; polymorphing him will prevent his covetous teleportation and remove most of his abilities. Your pets can also begin to attack him on their own initiative once he approaches their level. Sliming is also an option.
Teleporting the Wizard will always move him to the upstairs, or the down ladder if you are within his tower. As he is covetous, this is rarely a concern as he can simply warp himself back to your position; if you managed to polymorph or slime the Wizard first, you will not be able to teleport him away from the staircase.
The Wizard normally cannot be made tame or peaceful, but there are a handful of methods to pacify him if you are able to polymorph him. (Usually, you have to slime him first.) The Wizard will always be made hostile when he next revives, so these methods cannot be used to permanently pacify him.
- Polymorph him into a unicorn and throw him a gem. (It is not necessary to use a co-aligned unicorn nor a valuable gem.)
- Polymorph him into a snake and successfully use a wooden flute.
- Polymorph him into a nymph and successfully use a wooden harp.
- Polymorph him into any undead monster and read the blessed Book of the Dead.
- As a chaotic priest or knight outside of Gehennom, polymorph him into any undead and successfully turn undead.
- Polymorph him into any non-human, non-mindless monster and #untrap it from a pit that you did not create. Failure from the monster weighing too much, or success, both have chances of pacifying the wizard, but failure will leave him trapped, allowing you to try again.
- In SLASH'EM, polymorph him into any monster and hit it with a potion of amnesia. This effect can be resisted by the monster's MR.
The Wizard of Yendor first appeared in Hack 1.0.2.
Through NetHack 2.3e, he appeared in a 1x2 room in the center of the maze, which also contained a hell hound (that did not have a breath weapon) and the Amulet of Yendor. The room had no doors and was surrounded by a moat. His symbol was 1, rather than @. These versions of NetHack did not have color.
Fake Wizard rooms had a demon (generic in this version) instead of the Wizard, and a fake Amulet.
Fake Wizard rooms had a randomly chosen demon prince, or demon lord if no demon prince was available, or a random demon if demon lords were also gone; at the time, all eight modern named demons existed, and occurred only in fake Wizard rooms or when summoned.
Starting with NetHack 3.1.0, the Amulet is now given to the high priest of Moloch, and the Wizard instead carries the Book of the Dead. The 3.0.x-style Wizard room still exists as the room in which the Wizard lives, as well as a similar room on the first level of the Wizard's Tower, and as the two "fake Wizard" levels.
No one knows how old this mighty wizard is, or from whence he
came. It is known that, having lived a span far greater than
any normal man's, he grew weary of lesser mortals; and so,
spurning all human company, he forsook the dwellings of men
and went to live in the depths of the Earth. He took with
him a dreadful artifact, the Book of the Dead, which is said
to hold great power indeed. Many have sought to find the
wizard and his treasure, but none have found him and lived to
tell the tale. Woe be to the incautious adventurer who
disturbs this mighty sorcerer!
- monst.c in NetHack 3.4.3, line 2482: The Wizard is the only always-unaligned monster in NetHack (though some other monsters can be set to unaligned if generated under special conditions)
- wizard.c in NetHack 3.4.3, line 405
- wizard.c in NetHack 3.4.3, line 38
- wizard.c in NetHack 3.4.3, line 733
- mhitm.c in NetHack 3.4.3, line 1129
- spell.c in NetHack 3.4.3, line 248
- wizard.c in NetHack 3.4.3, line 551: Specifically, you must not be a demigod to start this counter
- spell.c in NetHack 3.4.3, line 256
- allmain.c in NetHack 3.4.3, line 267
- polyself.c in NetHack 3.4.3, line 1090
- teleport.c in NetHack 3.4.3, line 993