Pressing p while inside a shop will attempt to pay the nearest shopkeeper you can see - this will automatically pay any debts incurred from usage fees or used/destroyed items, then prompt you to ask for itemized billing. Selecting yes will allow you to pay for each item individually, while saying no will attempt to pay for all unpaid items at once. If in an area with multiple shopkeepers, such as Minetown, you will be asked to select the shopkeeper you are paying.
The command can also be used outside of a shop, though in a majority of cases it will not do anything. However, if a shopkeeper is outside of their shop - usually chasing you down after you steal from them - you can use the pay command to cover any applicable debts.
- There appears to be no shopkeeper here to receive your payment.
- You used the pay command while not inside a shop.
- <Foo> is not near enough to receive your payment.
- As above, but you are outside near a shop.
While payment is mostly restricted to use with shopkeepers in NetHack, variants may also employ it for additional purposes.
SlashTHEM has the same types of shopkeeper services as SlashTHEM, accessed through the same method.