Difference between revisions of "Loot"

From NetHackWiki
Jump to navigation Jump to search
({{Keyboard Commands}})
m (Variants)
 
(8 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
{{Keyboard Commands}}
 
{{Keyboard Commands}}
'''#loot''' is an [[extended command]] used to open an unlocked [[container]] on the floor. Containers in the inventory are opened by [[apply]]ing them.  When a [[bag of tricks]] is #looted, it will bite [[you]] (for 1 to 10 hit points damage) and become identified.
+
'''#loot''' is an [[extended command]] used to open an unlocked [[container]] on the floor. (Containers in your inventory can be opened by [[apply]]ing them.) With the [[number_pad]] option on, the {{kbd|l}} key can be used a single-letter alias for #loot.
  
You cannot loot locked containers. You have to first open the lock by either applying some [[unlocking tool]], or breaking the lock with a [[weapon]] (using the #[[force]] command) or [[kicking]] the locked container. However, kicking (or forcing the lock with a blunt weapon) may destroy the contents: you will hear a [[muffled shatter]] if any [[glass]] object breaks, and a muffled cracking in the case of [[egg]]s. Forcing the lock with an edged weapon has a chance of breaking your weapon.
+
'''Loot''' is also the general name by which the stuff that you have found is called. It is often used in a context like "''In addition to the [[wand of wishing|wand]], I found lots of nice loot from the [[Castle]].''" Useless loot is called [[junk]].
 +
 
 +
== Looting containers ==
 +
[[Large boxes]] and [[chests]] may be generated locked. To loot a locked container, you must first [[Container#Unlocking|unlock]] it.
 +
 
 +
Sometimes looting a container may [[Container trap|trigger a trap]], such as a [[poison]] needle (this only happens if you succeed in opening the box—it will never go off if it's locked). You can use the #[[untrap]] command to search the container for traps prior to looting.
 +
 
 +
When a [[bag of tricks]] is #looted, it will bite [[you]] (for 1 to 10 hit points damage) and become identified.
  
Sometimes looting a container may trigger a trap, such as a [[poison]] needle.  Use the #[[untrap]] command to search the container for traps prior to looting.
+
== Looting other things ==
 +
The loot command can be used to remove the [[saddle]] from a saddled [[pet]] monster.
  
The loot command can also be used to remove the [[saddle]] from a saddled monster.
+
If you try to loot when there is no container present, you will be told ''"You don't find anything here to loot."'' If you are [[confused]], you will instead drop some of your gold and get the message ''"Ok, now there is loot here."''
  
If you try to loot when there is no container present, you will be told ''"You don't find anything here to loot."''  Furthermore, if you are [[confused]] and do this, you will drop some of your gold, and see the message: ''"Ok, now there is loot here."''  Attempting to loot a [[throne]] while [[confused]] generates a [[throne room]] [[monster]] and deposits a random amount of your [[gold]] in its inventory (''"The exchequer accepts your contribution"''), unless there is a [[chest]] on the level, in which case the gold is put in that (''"Thank you for your contribution to reduce the debt."'')
+
Attempting to loot a [[throne]] while [[confused]] generates a [[throne room]] [[monster]] and deposits a random amount of your [[gold]] in its inventory (''"The exchequer accepts your contribution"''), unless there is a [[chest]] on the level, in which case the gold is put in that (''"Thank you for your contribution to reduce the debt."'') See [[Farming#Throne_farming|throne farming]].
  
'''Loot''' is also the general name by which the stuff that you have found is called. It is often used in a context like "''In addition to the [[wand of wishing|wand]], I found lots of nice loot from the [[Castle]].''" Useless loot is called [[junk]].
+
== Configuration ==
 +
The configuration option <tt>lootabc</tt> determines what keyboard shortcuts are available in the looting menu. When <tt>lootabc</tt> is true, the options are {{kbd|a}} - Take something out of the container, {{kbd|b}} - Put something into the container, and {{kbd|c}} - Both of the above. When <tt>lootabc</tt> is false, the respective shortcuts are {{kbd|o}}, {{kbd|i}}, and {{kbd|b}}.
 +
 
 +
==Variants==
 +
===EvilHack===
 +
In [[EvilHack]], using #loot on pets allows you to give and take items directly, with respect to their carrying capacity.
  
 +
===xNetHack===
 +
In [[xNetHack]], you can also #loot an adjacent pet to exchange items with it directly; selecting gear they have equipped will make them unequip and eventually drop it. In [[wizard mode]], this works on any monster. Using the command on a square with a single container will loot it without prompting.
 +
{{nethack-366}}
 
[[Category:Extended commands]]
 
[[Category:Extended commands]]

Latest revision as of 03:37, 26 June 2022

Keyboard commands
~ ! @ # $ % ^ & * ( ) _ = +
Q W E R T Y U I O P { } |
q w e r t y u i o p [ ] \
A S D F G H J K L : "
a s d f g h j k l ; '
Z X C V B N M < > ?
z x c v b n m , . /
q w e r t u i o p Alt
a s d f j l Alt
c v n m ? Alt
A C R T O Alt
a c d o p r t [ Ctrl

#loot is an extended command used to open an unlocked container on the floor. (Containers in your inventory can be opened by applying them.) With the number_pad option on, the l key can be used a single-letter alias for #loot.

Loot is also the general name by which the stuff that you have found is called. It is often used in a context like "In addition to the wand, I found lots of nice loot from the Castle." Useless loot is called junk.

Looting containers

Large boxes and chests may be generated locked. To loot a locked container, you must first unlock it.

Sometimes looting a container may trigger a trap, such as a poison needle (this only happens if you succeed in opening the box—it will never go off if it's locked). You can use the #untrap command to search the container for traps prior to looting.

When a bag of tricks is #looted, it will bite you (for 1 to 10 hit points damage) and become identified.

Looting other things

The loot command can be used to remove the saddle from a saddled pet monster.

If you try to loot when there is no container present, you will be told "You don't find anything here to loot." If you are confused, you will instead drop some of your gold and get the message "Ok, now there is loot here."

Attempting to loot a throne while confused generates a throne room monster and deposits a random amount of your gold in its inventory ("The exchequer accepts your contribution"), unless there is a chest on the level, in which case the gold is put in that ("Thank you for your contribution to reduce the debt.") See throne farming.

Configuration

The configuration option lootabc determines what keyboard shortcuts are available in the looting menu. When lootabc is true, the options are a - Take something out of the container, b - Put something into the container, and c - Both of the above. When lootabc is false, the respective shortcuts are o, i, and b.

Variants

EvilHack

In EvilHack, using #loot on pets allows you to give and take items directly, with respect to their carrying capacity.

xNetHack

In xNetHack, you can also #loot an adjacent pet to exchange items with it directly; selecting gear they have equipped will make them unequip and eventually drop it. In wizard mode, this works on any monster. Using the command on a square with a single container will loot it without prompting.