-
Notifications
You must be signed in to change notification settings - Fork 9
/
safe-config
242 lines (198 loc) · 7.89 KB
/
safe-config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# safe-config v1.0 by Marc Hartstein (marcmagus)
#
# A configuration file for Interhack which should only include "safe" plugins.
# "Safe" is here defined as not being spoilers simply by having them on.
#
# The defaults are fairly sane so this should work out of the box to play
# nethack locally, but you should go through and configure it to your liking.
#
# Note: If you go hunting in the source code for the plugins, you may well
# discover things you would prefer to have figured out for yourself.
# Similarly, it's possible that reading this will give you ideas you didn't
# have before and which change the way you play the game. Sorry, there's only
# so much I can do to protect you from a tool designed to be useful for expert
# players.
##############################################################################
# Configure how you're going to connect to your nethack game
# Set nickname for server autologin
nick "Yourname";
# Set password
# You will probably prefer to use a separate password file.
# See the file CONFIG for instructions.
#
#pass "Password";
# Select server to log in to:
# Options: ih_server, nao, sporkhack, noway
#
# ih_server Gives you a command-line locally, but you won't see what you
# type. Run nethack, or ssh to your favorite server (devnull?)
# nao [nethack.alt.org]
# sporkhack Beta server for SporkHack [sporkhack.nineball.org]
# noway [noway.ratry.ru]
server "ih_server";
##############################################################################
# Display improvements
# Overrides the default status line and bottom line with a much improved one.
#
# Uncomment the following to turn off features:
#
#exclude "hpmon"; # Colorized HP display
#exclude "powermon"; # Colorized Pw display
#exclude "eido-colors-status"; # Colorized Status effects
#exclude "timer"; # Elapsed real-world time
exclude "exp-2nl"; # Xp needed for next level [SPOILER]
include "botl";
# You can also configure what should appear on each of the last two lines.
#
# Available features are:
# $botl{char} <name>: <role> <race> <sex> <alignment>
# $botl{stats} St:<st> Dx:<dx> Co:<co> In:<in> Wi:<wi> Ch:<ch>
# $botl{score} S:<score> # Only if showscore is enabled
# $botl{dlvl} Dungeon Level
# $botl{au} $:<gold carried>
# $botl{hp} HP:<hp>(<max-hp>)
# $botl{pw} Pw:<pw>(<max-pw>)
# $botl{ac} AC:<ac>
# $botl{xp} Xp:<level>/<xp> # <xp> only if showexp is enabled.
# # <xp> is current xp, or needed if enabled.
# $botl{turncount} T:<turncount> # Only if time is enabled.
# $botl{status} <status> # Any current status effects
#
# And of course you can include anything else you want in there.
#
# Defaults:
#
# $statusline = sub { "$botl{char} $botl{stats} $botl{score}" };
# $botl = sub { "$botl{dlvl} $botl{au} $botl{hp} $botl{pw} $botl{ac} $botl{xp} $botl{turncount} $botl{status}" };
# Adds a real-time clock to the right side of the status line.
# Also adds #time for time elapsed.
#
# include "timer";
# Adds #keys to check how many keystrokes you've used.
#
# include "keystroke-count";
# Set the color of anything matching a pattern.
#
# recolor <matching> => <color>
#
# e.g.
#
# recolor qr/\bblessed\b/ => "bcyan"; # Make the word blessed bright cyan
# recolor qr/You hear the wailing of the Banshee.../ => "red" # WARNING!
# Color monster names the color of the monster's glyph.
#
$chromatic_nemeses = 1; # Give your nemesis a non-random color.
$chromatic_gods = 0; # [Don't] Give the gods rainbow-colored names.
include "colors-monsters";
# Makes names in the nao to-watch menu gray if they're idle.
#
# include "idle-gray";
# Strip out colors created by NAO MENUCOLORS
#
# include "strip-menucolors";
##############################################################################
# Annotations
# This feature allows you to annotate messages coming from nethack with
# anything you'd like to be reminded of when they appear. Very useful to help
# you remember what some of the more cryptic messages nethack sends mean.
#
# make_annotation <matching> => <message>;
make_annotation 'Oh wow! Great stuff!' => "You are now hallucinating.";
##############################################################################
# Require confirmation for important messages
# This feature will set a check which will stop accepting input until you
# press the <TAB> key or a sufficiently long time passes. These are useful
# for forcing you to notice important messages which might otherwise get lost
# in the background, and for preventing you from accidentally saying yes to
# questions when you're typing quickly.
#
# You can optionally set a message to display on the "annotation" line. This
# works just like making an annotation [see above] in addition to waiting for
# the tab.
#
# You can also select the timeout (in microseconds)
# press_tab (<matching>, <message>, <timeout>)
# Don't let me quit by typo!
press_tab qr/^Really quit\? \[yn\] \(n\) +$/;
# Adds a confirmation on "really attack?" so you won't accidentally confirm
# when trying to go northwest
#
include "confirm-confirm";
##############################################################################
# Tabs
#
# Tabs anticipate what you might want to do next. When a pattern is matched,
# you will be given the opportunity to send an appropriate sequence of
# keystrokes to nethack by simply pressing <TAB>. Or you can ignore it by
# typing anything else.
#
# make_tab <matching> => <tabstring>
# make_tab qr/^What do you want to write in the dust here\?/ => "Elbereth\n";
# A plugin like the above, but with more comprehensive regular expressions to
# cover all cases of writing on the ground.
#
# include "elbereth";
# Autoadjust easily sets up tabs to move items to your preferred inventory
# slot when you obtain them. It can be given more than one preferred slot for
# something, and can also be told to *avoid* certain inventory slots.
include "autoadjust";
sub autoadjust;
# To use this include lines of the form:
# autoadjust <REGEXP> => <STRING>;
# e.g.
# autoadjust qr/key/ => "k"; # Try to move keys to k
# autoadjust qr/DANGEROUS/ => "^yY"; # Don't put dangerous things on y or Y
# Add a tab to name a lamp as empty when they are.
#
# include "emptylamp-name";
# Add a tab to name a wand as empty if Nothing happens.
#
# include "emptywand-name";
##############################################################################
# Remap
#
# Allows you to remap a key to send the specified string to nethack.
# Saves you keystrokes.
#
# remap <key> => <string>;
# remap "\ce" => "E- Elbereth\n"; # ^E to write Elbereth in the dust...
##############################################################################
# Extended Commands
#
# You can add extra extended commands which interhack will recognize. You
# won't get the convenient command completion for these, however.
#
# extended_command "command" => <subroutine>;
# Automore will skip over every --More-- prompt with a very brief delay.
# Adds #automore to toggle it on and off.
#
# include "automore";
# Add #eval to evaluate arbitrary Perl code.
# Doesn't currently do anything at all for safety reasons.
#
# include "eval";
# Add #geno extended command which lists all genocided species.
#
# include "geno-list";
# Add #grep to search your ttyrec.
# Requires nhgrep
#
# include "grep";
# Adds #c to IM hiveminder with a new task.
# See the comment at the top of plugins/hiveminder.pl for details
# and configuration instructions.
#
# include "hiveminder";
# Lets you view the maps of levels you've visited before:
# #view DLVL
#
# include "view";
##############################################################################
# Other
# Sends your display to termcast.
#
# $termcast_name = 'whatever';
# $termcast_pass = 'whatever';
# $write_interhack_ttyrec = 1;
# include "termcast";
# vim: filetype=perl