1Frequently Asked Questions for rec.games.roguelike.moria
2Last changes: 7/21/94 (Moria 5.5.2)
3              6/25/94 (Moria 5.5.1)
4              6/21/94 (changed RTFM archive name)
5
6First, a general guideline for posters.  When you post any question
7related to playing or debugging the game, please give the version
8number, which you can get during the game by pressing "v".
9
10These are the questions in the Moria Frequently Asked Questions list.
11Quick answers to some questions are given in parentheses; more detailed
12answers to those questions with numbers are in the list which follows.
13
14The answers below are separated by form feeds, so that in most news
15readers, you can get the answer you want without looking at the rest of
16the spoilers.  (Search for the string "Q5", for example.)
17
18Many of the answers are only correct for Umoria versions (4.87 and 5.x);
19I don't know much about the other versions of Moria.
20
21Please send any corrections or other suggested questions to me at
22grabiner@math.harvard.edu.
23
24A current copy of this FAQ may be obtained by FTP from the RTFM archive,
25
26rtfm.mit.edu:/pub/usenet/rec.games.roguelike.moria/rec.games.roguelike.moria_Frequently_Asked_Questions
27
28or by using the mailserver on RTFM.  To use the mailserver, send a
29message to mail-server@rtfm.mit.edu containing the line
30"send /pub/usenet/rec.games.roguelike.moria/rec.games.roguelike.moria_Frequently_Asked_Questions"
31
32The most common questions, asked by both beginners and others:
33
34Q1. How do I get the Moria sources/executables/documentation?
35(FTP from ftp.cis.ksu.edu; there is also a mailserver.)
36
37Q2. I can't get Moria/Angband set up on my machine; is there a server on
38another machine that I can use?  (Yes; telnet bbs.runet.edu and
39login as bbs.)
40
41What does this item do?  (Answer is below with the spoilers.)
42
43Why do most winning characters carry several copies of spell books?
44(In case one gets stolen or burned.)
45
46What does the (-2) in Chain Mail (-2) [14,+2] mean?  (It's a penalty to
47hit, caused by the heavy armor.)
48
49Q3. How do I use wizard mode, and what can I do in it?  (In 5.x, just type
50control-W.)
51
52Non-spoiler questions:
53
54Q4. How does resistance work?  Are two items of resistance cumulative?
55(Not if both are worn items.)
56
57Q5. How does speed work?  Do you get faster if you are already Very Fast
58and get another speed item?  (Yes.)
59
60Q6. I'm playing Moria version V; how does that compare to the current
61version?  Is it compatible?
62
63Q7. I think I've found a bug; what should I do?  (Report it with the
64version number and system.)
65
66Common spoiler requests:
67
68Q8. What are the special abilities of ego weapons?  Crowns?  Amulet of
69the Magi?  Cloak of Protection?
70
71Q9. How much damage do spells and wands do?
72
73Q10. What does spell Y do?
74
75Q11. On what level do you find X?  (Level 25 is best for gain stat potions.)
76
77Q12. How many attacks can I get with this weapon?
78
79Q13. How do you kill an ancient multi-hued dragon?  (Usually, you don't.)
80
81Q14. How do you kill an emperor lich?  (With speed and spells.)
82
83Q15. What is the grape jelly trick?  Does it work in Umoria 5.x?  (No.)
84
85Questions related to the source code:
86
87Q16. I don't like haggling; can I change the source code to turn it off?
88
89Q17. How do you create objects in wizard mode?
90
91Q1. How do I get the Moria sources/executables/documentation?
92
93The following Moria files are available by anonymous FTP from
94ftp.cis.ksu.edu (IP address 129.130.10.80) or ftp.engg.ksu.edu (IP
95address 129.130.41.83).  They should also be available by gopher from
96gopher.cis.ksu.edu or gopher.engg.ksu.edu, or from the WWW
97server at KSU:
98
99xmosaic http://www.engg.ksu.edu/welcome.html
100
101If you don't have FTP access, there is a mailserver which gives access
102to ftp.cis.ksu.edu; see below.  If you can't use the mailserver, see
103further below for a BBS which has the files.
104
105The sources for Umoria 5.5.0 were also posted to comp.sources.games, so
106they should be available (in compressed shar form) on any site which
107archives comp.sources.games, such as ftp.uu.net.
108
109/pub/Games/Moria/[machine name]
110Executables for the Amiga, Atari ST, IBM PC, and Mac; look at the README
111files in these directories for more information.  Some of these files
112may need to be transferred in binary mode; type "binary" before
113transferring the files.  KSU has both color and monochrome executables
114for the IBM PC.  European users can also get Mac binaries from jyu.fi,
115in a file /maclib/game/moria.sit.bin.
116
117/pub/Games/Moria/source/um5.5.2.tar.Z
118A compressed tar file containing the entire source, for use on any
119system; if you have tar on your system, this is probably the file that
120you want.  (If you don't have compress, you can FTP it from ftp.uu.net;
121it is compress.tar.)  This file must be transferred in binary mode; type
122"binary" before getting the file.  Once you have the tar.Z file, type
123"zcat um5.5.2.tar.Z | tar xf -" to extract the files, and read the README
124files for help in installing.
125
126/pub/Games/Moria/pc/src/mor55src.zip
127A ZIP file containing the source.
128
129/pub/Games/Moria/XMoria/xm1.07.tar.Z
130The source to Moria for X Windows.
131
132/pub/Games/Moria/doc
133The documentation for Moria 5.5, including the official documentation,
134the FAQ file, and a complete monster list.
135
136/pub/Games/Moria/pc/mono5.5
137The auxilliary files are in this directory; you may need them if you
138have an executable without them.
139
140/pub/Games/Angband
141The source to Angband for UNIX, and source and executable for the PC and
142Mac.
143
144/pub/Games/Moria/boss
145The source distribution, in Pascal, for BOSS.
146
147/pub/Games/Moria/vms
148The source discribution, in Pascal, for VMS Moria 4.8 and 5.0.  Umoria
1495.x will also work on VMS machines.
150
151/pub/Games/Moria/unofficial
152Other unofficial modifications of Moria, including the druid version for
153the PC, and the sources for Morgul and Pmoria.
154
155VMS sources for Imoria are available on ubvms.cc.buffalo.edu, in a
156directory /maslib/games/imoria.  VMS Moria 4.8 and 5.0 sources are also
157there.
158
159Mailserver instructions (from Karl Hagen <greyhelm@cis.ksu.edu>):
160
161For all those unfortunates who don't have Internet ftp access, I've
162setup a mailserver to provide access to the archives on
163ftp.cis.ksu.edu.
164
165This mailserver can be contacted via mail one of the following
166addresses:
167
168...!rutgers!depot!mailserver  (UUCP)
169mailserver@cis.ksu.edu        (Internet)
170mailserver@engg.ksu.edu       (Internet)
171
172The server accepts commands given in the body of the mail messages;
173help is available with the command "help".
174
175A listing of the files in
176the story archive may be obtained by "dir -l /pub/Games/Moria".
177
178Since the files archive consists of binary files, they must
179be uuencoded before they are sent on their way.  To specify this mode,
180use the command "encode uuencode"  To retrieve the files, use the
181"send" command (ex:  send /pub/Games/Moria/pc/mor55-286.zip
182
183If you have a system which cannot handle ZIP files, you may use
184the "unzip" filter ("encode unzip")
185which will send you the uncompressed (but not uuencoded) version of the file.
186
187Here is an example mail message:
188
189% Mail mailserver@cis.ksu.edu
190~Subject: request
191help
192encode uue
193send /pub/Games/Moria/pc/mor55-286.zip
194^D
195%
196
197Please note that this is completely experimental and is not bug free.
198Questions and problems about this mailserver may be directed to
199"greyhelm@engg.ksu.edu".
200
201BBS instructions (from Tom Sorensen <gt0040a@prism.gatech.edu>):
202
203I've been making the source code, DOS and OS/2 executables, and all the
204spoilers I have available on:
205
206Ravishing Nook
207(404)368-9949
2082400-14.4k (V.32bis)
209Downloads should be available on first call.
210
211
212Q2. I can't get Moria/Angband set up on my machine; is there a server on
213another machine that I can use?
214
215There is a bbs at bbs.runet.edu which has Moria and Angband installed.
216To play either game, telnet to bbs.runet.edu, and login as bbs to set up
217an account.
218
219If possible, please try to set up Moria or Angband yourself first, to
220avoid overloading the BBS.  The game will also play better on your own
221machine, because there will be no network delays.
222
223This BBS is maintained by Brian Kirouac, bri@ltpsun.gsfc.nasa.gov;
224please mail any questions or problems to him, not to me.
225
226Q3. How do I use wizard mode, and what can I do in it?
227
228In Umoria 5.x, anyone can use wizard mode by typing ^W.  However,
229characters who play in wizard mode are permanently barred from the
230scoreboard; wizard mode should be used only for debugging and
231experimenting.
232
233In 4.87 on Unix systems, only the person who installed the game can use
234wizard mode; if you are the installer, the passwords are in the source
235file constants.h.
236
237In PC-Moria 4.8x, you need to know the passwords to use wizard mode, and
238the password will depend on who compiled your game.
239
2404.87 has both wizard and god modes; 5.x's wizard mode is equivalent to
241the old god mode.  The 4.87 wizard mode allows you to do only things
242related to the game (cure all problems, teleport, identify).  The 5.x
243wizard mode and 4.87 god mode allow you to test the program by editing
244your character, creating objects, deleting monsters, and similar things.
245
246In wizard mode, ^H or DELETE will give you a list of the available
247commands.
248
249Q4. How does resistance work?  Are two items of resistance cumulative?
250
251Resist heat/cold potions and spells give temporary resistance to heat or
252cold.  All other resistance items give permanent resistance.  Two
253permanent resistances are not cumulative, and two temporary resistances
254are cumulative only in duration.
255
256Fire and cold do 1/3 damage if you have single resistance, 1/9 if you
257have double.
258Acid does 1/2 damage if you have any armor to corrode, 1/3 if you have
259resistance but no armor, and 1/4 if you have resistance and armor.
260Lightning does 1/3 damage if you have resistance.
261There is no resistance against poison gas.
262
263Q5. How does speed work?  Do you get faster if you are already Very Fast
264and get another speed item?
265
266Very Fast is the highest speed that can be displayed, but if you are
267fortunate enough to find several speed items, you can get still faster.
268Permanent speed items (rings and boots) are cumulative, and temporary
269speed (potions, spells, and staffs) can add one more point to your
270speed.  Multiple uses of temporary speed are cumulative only in
271duration.
272
273Q6. I'm playing Moria version V; how does that compare to the current
274version?  Is it compatible?
275
276Moria versions:
277
278Umoria 5.5.2: This is the current version of Umoria.  It will accept
279characters from all Umoria 5.x versions.
280
281Umoria 5.3.1-5.5.1: These are essentially identical to 5.5.2, and
282compatible with it, although 5.5.2 fixes a few bugs, and there have been
283a few minor changes.  Upgrading from 5.5.1 to 5.5.2 is probably not
284necessary.
285
286Umoria 5.2.2/5.3.0: These are in good condition, and compatible with the
287current version.  One bug: don't rest more than 10,000 turns in place,
288and leave the level if you start seeing lots of "Compacting monsters..."
289messages, or the game may lock up.
290
291Umoria 5.2.1: This is playable, but has no high scores file; you
292probably want to upgrade if possible.
293
294Umoria 5.1.0-5.2.0: These versions can be played, but are somewhat
295buggy.  If you run into an invisible, invincible monster which doesn't
296move or attack, get off the level.  If you can FTP the sources or
297executables, you should upgrade.
298
299The U is often omitted from the names of the following Umoria versions.
300
301Umoria 4.87/PC-Moria 4.87x: This version is based on the old VMS Moria.
302It is relatively bug-free, but it doesn't have the features of the 5.x
303versions, such as monster memory.  The save file format is incompatible
304with 5.x, and several people have failed in attempts to write a
305conversion program.
306
307Umoria 4.85: A moderately buggy version, also based on VMS Moria.
308
309Umoria/PC-Moria 4.83: An extremely buggy version, based on VMS Moria.
310This version is essentially unplayable (see invisible doesn't work,
311stores all close after 32768 turns, etc.)
312
313The following versions are not compatible with Umoria, and Umoria
314spoiler files may not apply to them.  I don't know much about these
315versions.
316
317UB Moria 5.0: Also known as VMS Moria 5.0, this is the current version
318of VMS Moria.  It has more monsters, a Black Market, and other features.
319
320Imoria 4.9: This is apparently a very good game, with new character
321classes and other features.  It hasn't been released widely outside of the
322University of Washington, but it is now available from the University of
323Buffalo; see the FTP instructions.  It is available only for VMS.
324
325Amiga Moria 3.0: Although this version was originally based on 4.85, it
326has many added monsters, features, and bugs (including items which make
327you virtually invincible).
328
329BOSS: This game changes the setting of Moria, but keeps many of the
330items.  It is based on VMS Moria 5.0.
331
332Pmoria: A version of Moria based on 5.5.0, with many enhancements.
333
334Morgul: An expanded version of Moria, keeping a similar setting.  It is
335based on Umoria 5.5.0.
336
337Angband: Another expanded version of Moria with a similar setting.  It
338is based on Umoria 5.2.1; current versions include some of the bug fixes
339from later versions.
340
341Q7. I think I've found a bug; what should I do?
342
343When you are reporting a suspected bug, make sure to give the version
344number and the system.  The bug report can be posted here or sent to me.
345If someone else maintains the game on your machine, the bug report
346should also be sent to him or her; the bug may be in a change on your
347machine but not in my code.
348
349If you have a patch for the bug, it would be best to send the patch by
350Email, so that I can check the patch before releasing it.
351
352If you report a bug which has been fixed in the current version, I may
353be able to send you a patch, or at least tell you that you can fix the
354bug by upgrading.  If the bug hasn't been fixed, a good bug report may
355make it easy to fix.
356
357Q8. What are the special abilities of ego weapons?  Crowns?  Amulet of
358the Magi?  Cloak of Protection?
359
360All version-dependent changes are marked in brackets.
361
362Amulet of the Magi    free action, see invisible, searching, +3 AC.
363                      [no searching bonus in 4.87]
364Cloak of Protection   no special ability, just a larger bonus than usual.
365
366Ego weapons:
367
368(HA) Holy Avenger   +(1-4) str, +(1-4) AC, (SE), (SU), sustain stat,
369                    see invisible.
370(DF) Defender       stealth, regeneration, free action, see invisible,
371                    feather fall, RF, RC, RL, RA, +(6-10) to AC
372(SM) Slay Monster   Damage (x 2) vs. monsters, see invisible. [found in
373                    4.87 only]
374(SA) Slay Animal    Damage (x 2) vs. animals, [does not exist in 4.87;
375                    has see invisible through 5.1.4]
376(SD) Slay Dragon    Damage (x 4) vs. dragons.
377(SE) Slay Evil      Damage (x 2) vs. evil monsters.
378(SU) Slay Undead    Damage (x 3) vs. undead, [see invisible in 5.1.5 and later]
379(FT) Flame Tongue   Damage (x 1.5) vs. monsters harmed by fire.
380(FB) Frost Brand    Damage (x 1.5) vs. monsters harmed by cold.
381
382A HA which is +1 to strength sustains strength; +2, intelligence; +3,
383wisdom; +4, constitution (not dexterity).
384
385Crown of the Magi     +(1-3) int, (RF), (RC), (RA), (RL)
386                      [In 4.87, it had see invisible instead of RL]
387Crown of Lordliness   +(1-3) wis, chr.
388Crown of Might        +(1-3) str, dex, con, free action.
389Crown of Seeing       see invisible, +(10-25) searching.
390                      [+(2-5) to seach in 4.87]
391Crown of Regeneration Regeneration.
392Crown of Beauty       +(1-3) charisma.
393
394Regeneration lets you recover mana and hit points at 1.5 times the
395normal rate, but also makes you use up food much more quickly.
396
397Free action prevents you from being slowed or paralyzed by monsters.
398
399Q9. How much damage do spells and wands do?
400
401Spell Name              4.87 damage     5.1.0 and later damage
402Magic Missile           2d6             2d6
403Stinking Cloud          8               12
404Lightning Bolt          3d8             4d8
405Lightning Ball          24              32
406Frost Bolt              4d8             6d8
407Frost/Cold Ball         32              48
408Acid Ball               40              60
409Fire Bolt               6d8             9d8
410Fire Ball               48              72
411Wand of Drain Life      50              75 [in 5.1.4 and later]
412
413In 5.x only, a wand of wall building will do 4d8 damage to any creature
414buried in the wall (except one that moves through walls), and will kill
415any immobile creature.  On the creature's next turn, it will attempt to
416move out of the wall, and if it is unable to do so, it will take 10d8
417damage and dig its way out.
418
419Everything below is the same in all versions.
420Wand of Light/Staff of  2d8 (if sensitive)
421Starlight
422Stone to Mud		100 (if sensitive)
423Orb of Draining         3d6 + caster's level, double to evil creatures
424Dispel Undead/Evil      1-60 from scroll or staff; 1 up to triple
425                        caster's level from spell
426Holy Word               Dispel evil for 1 up to quadruple caster's level
427
428Notes:
429
430All mage spells in 4.87 do the damage listed in the table above if cast
431from a wand, and 1 point more if cast by a mage.
432All ball spells do full damage for a direct hit, half damage one space
433away, and 1/3 damage two spaces away.
434
435Q10. What does spell Y do?
436
437Non-obvious spell effects:
438
439Mage spells:
440
441Phase Door: short-range teleport.
442Find Hidden Traps/Doors: also detects stairs.
443Sleep I: sleep one monster in a given direction.
444Recharge Item I: fewer charges than Recharge Item II, and more likely to
445		 fail.
446Sleep II: sleep all monsters adjacent to player.
447Sleep III: sleep all monsters with a line of sight to player (including
448	   invisible ones).
449Word of Destruction: obliterates everything within 15 spaces of the
450		     player; Balrog will teleport to another level.
451
452Priest spells:
453
454Bless: +2 to AC, and +5 to chance to hit (equivalent to +1-2/3 bonus on
455       weapon) for a short time.
456Blind Creature: blinded creatures wander around confused until they recover.
457Portal: medium-range teleport.
458Chant: double duration Bless.
459Sanctuary: sleep creatures adjacent to player.
460Protection from Evil: prevents any evil creature of the player's level
461		      or lower from attacking the player.
462Earthquake: causes random walls and ceilings in the area to collapse,
463	    possibly injuring anything nearby.
464Turn Undead: all undead of the player's level or lower, and some of
465	     higher level, will attempt to flee [in 5.5.0 and earlier
466             versions, they will be confused]
467Prayer: quadruple duration Bless.
468Dispel Undead/Evil: affects all undead/evil within line of sight (even
469		    invisble ones in 5.x versions), damage is from 1
470		    up to 3x player's level, 1-60 from scroll or staff.
471Glyph of Warding: creates a glyph which monsters cannot enter, but have
472		  a small chance of breaking.
473Holy Word: heals player completely, cures poison and fear, and dispels
474	   evil for 1 to 4x player's level.  In 5.5.1, also restores
475	   all stats, and makes player invulnerable for 3 turns.
476
477Q11. On what level do you find X?
478
479Where important objects are found:
480
481In 4.87, 1/20 of items are chosen as if you were on level 50.  In 5.1
482and all later versions, 1/12 of items are chosen as if you were on a
483deeper level, which has (current level/50) chance of being level 50, and
484is always level 1 in the town.
485
486Items become somewhat less common as you go deeper than the indicated
487levels; however, if you can survive down there, this is compensated for
488by the fact that there are more treasures on deeper levels.
489
490Item type			Level
491Ego weapons, special armor,	Progressively more common as you get
492boots, gloves, helmets		deeper, all the way to level 55
493Healing potion			12
494Gain stat potions		25
495Restore mana potion		25
496Invulnerability potion		40
497Gain experience potion		50
498Genocide scroll			35
499Destruction scroll		40
500Rune of Protection scroll	50
501Mass Genocide scroll		50
502Amulets of wisdom, charisma	20
503Gain str/int/dex/con rings	30
504Amulet of the magi		50
505Ring of speed			50
506Staff of speed			40
507Staff of mass polymorph		46
508Staff of dispel evil		49
509Staff of destruction		50
510Wand of clone monster		15 [2 in 4.87]
511Wand of drain life		50
512
513Q12. How many attacks can I get with this weapon?
514
515Here is the table (for 5.x) for the number of blows for a given strength
516and dexterity.  If your strength or dexterity is 18+xx, that is stored
517as 18/xx; thus, for example, you need an 18/90 strength to use the
518bottom row of the table with a katana (12 pounds).
519
520If you don't know the weight of a weapon, set the option "Show weights
521in inventory."
522
523/* used to calculate the number of blows the player gets in combat */
524int8u blows_table[7][6] = {
525/* STR/W:	   9  18  67 107 117 118   : DEX */
526/* <2 */	{  1,  1,  1,  1,  1,  1 },
527/* <3 */	{  1,  1,  1,  1,  2,  2 },
528/* <4 */	{  1,  1,  1,  2,  2,  3 },
529/* <5 */	{  1,  1,  2,  2,  3,  3 },
530/* <7 */	{  1,  2,  2,  3,  3,  4 },
531/* <9 */	{  1,  2,  2,  3,  4,  4 },
532/* >9 */	{  2,  2,  3,  3,  4,  4 }
533};
534
535
536Q13. How do you kill an ancient multi-hued dragon?
537
538Usually, you don't want to try; one gas breath from a full-strength AMHD
539does 693 damage, with no resistance.
540
541If you can get to speed 3 (one permanent speed item, and either another
542permanent speed item or a haste self spell or staff), you can try this
543technique.  First, create (or find in a maze room) a wall with one open
544space on all four sides.
545
546   .
547  .#.
548   .
549
550Stand on one side, with the dragon on the other side.  When the dragon
551moves adjacent to you, attack it once, and then hide behind the pillar.
552The dragon can't see you, so it won't breathe, and will instead chase
553you to another side.  Now attack once, and hide again, and so on until
554the dragon is finished.
555
556Q14. How do you kill an emperor lich?
557
558You can kill an emperor lich if you can get to speed 2, which is its
559speed.  A mage or ranger can do this with the spell of haste self;
560anyone else needs a staff of speed, potion of haste self, or permanent
561speed item.  You will also need about 10 cure critical wounds or cure
562serious wounds potions, and some item giving you free action.
563
564You also need some ranged spell attack.  Liches take double damage from
565lightning in 5.x versions, so the spell of lightning bolt or wand of
566lightning balls is a good choice.  Rogues and warriors will need several
567wands, with a total of about 30 charges to guarantee that they can kill
568the lich with them.  A priest or paladin has Orb of Draining, which is
569even better.
570
571Now, try to line up with the lich while you are not adjacent to it,
572either in a room or a corridor.  This gives you a chance to cast your
573spell.  The lich will get one action.  If it cast a spell and you
574resisted, or the spell didn't do anything harmful, you have another
575chance.  If you were confused or blinded, drink a cure wounds potion;
576the lich isn't adjacent to you, so it can't hurt you.  If the lich moved
577and is now adjacent to you, move back.  Try to avoid getting cornered,
578and phase door or portal away if you are.  A priest can make this easier
579by putting down a glyph of warding, but this must be done *before* the
580lich chases you across the glyph.  (Don't stand on the glyph; it isn't
581foolproof.)
582
583If you run low on mana and don't have a wand, teleport out and come back
584later to finish the job.
585
586A priest with glyph of warding can also set up the following
587configuration (the exact length doesn't matter as long as you are within
588spell range):
589
590#L#####
591#^^...@
592#######
593
594The lich cannot cast spells from this position, because it cannot see
595you.  As long as it doesn't break the glyphs, you are safe, and can fire
596Orb of Draining down the corridor; the lich will take some damage each
597time.  If the lich breaks either glyph, run or teleport out, and
598continue the battle elsewhere.
599
600I do not advise trying this technique against an AMHD; it will probably
601break a glyph before the battle is over, and if your teleport spell
602fails, or if you haven't hasted yourself, the AMHD gets a chance to
603breathe.
604
605An emperor lich has 1520 hit points, plus anything additional that it
606gains by draining mana (6 points per mana point drained) and charges (40
607points per charge).  Never let it attack you in melee, because it can
608destroy your wands, healing itself in the process, as well as draining
609your experience and dexterity.
610
611If you can get to speed 3, faster than the lich, it is easy to kill;
612just fight, move back, fight, move back, and so on.  You will still need
613a lot of cure wounds potions, unless you let it chase you around a
614pillar, as in the AMHD technique.
615
616Q15. What is the grape jelly trick?  Does it work in Umoria 5.x?
617
618The Grape Jelly trick is a spoiler/workaround/trick which is no longer
619necessary in 5.1 and later versions.
620
621In 4.87, when your intelligence and constitution changed, your mana and
622hit points did not change.  Thus, in order to get the benefit of the
623increased values, you have to let a grape jelly (or other creature, but
624grape jellies are otherwise harmless) drain you to a low level, and then
625drink restore life levels potions to go back up with the increased
626stats.
627
628Q16. I don't like haggling; can I change the source code to turn it off?
629
630If you have the source code for any 5.x version, you can turn off
631haggling with a simple change.  Here is the change you would need to make.
632(Note: This is *not* an official patch.)
633
634In the source file store1.c, this is the routine for determining whether
635you need to haggle.  You can change the function, or simply change the
636return(flagnoneed) to return(TRUE) to eliminate all haggling.  The code
637here is from versions 5.5.1 and 5.5.2; the text of the function is
638slightly different in earlier versions.
639
640int noneedtobargain(store_num, minprice)
641int store_num;
642int32 minprice;
643{
644  register int flagnoneed;
645  int bargain_record;
646  register store_type *s_ptr;
647
648  s_ptr = &store[store_num];
649  if (s_ptr->good_buy == MAX_SHORT)
650    return TRUE;
651  bargain_record = (s_ptr->good_buy - 3 * s_ptr->bad_buy - 5);
652  flagnoneed = ((bargain_record > 0)
653		&& ((long)bargain_record * (long)bargain_record
654		    > minprice/50));
655  return (flagnoneed);
656}
657
658Q17. How do you create objects in wizard mode?
659
660You will need the source; if you have only executables, get the source
661files constant.h and treasure.c from ftp.cis.ksu.edu, which contain the
662necessary definitions.  This is an explanation of some of the
663parameters.
664
665Tval: This is defined in constant.h; it is the value for the item type.
666For example, TV_WAND is 65.
667
668Tchar: The character used to represent this object; it should usually be
669proper for the item type.
670
671Subval: This identifies the specific item.  If you are duplicating an
672item from the item list, use the same subval (and tval) as that item;
673otherwise, don't.  Use subvals 0-63 for items that shouldn't stack,
67464-127 for items that should always stack (potions and scrolls), 193 or
675more for items that are generated in a group, and should stack as that
676group (arrows).
677
678Weight: In tenths of a pound.
679
680P1: Used for all special bonuses which don't appear elsewhere:
681bonus to stats/searching/stealth/speed, which stat to sustain (warning:
682constitution is 4 and dexterity 5), tunneling value, food value, light
683value of a lamp, torch, or flask of oil.
684For missiles, different values of P1 distinguish different groups of
685missiles; use small negative numbers if you create groups as a wizard.
686For bows, slings, and crossbows, the values identify the weapon type;
687use the same value that is used for the corresponding weapon in
688treasure.c.
689
690Flags: A hexadecimal number which contains:
691for wearable items, all special effects (bits beginning with TR_ in
692constant.h).
693for chests, trap flags (CH_ bits in constant.h) and treasure flags (CM_
694bits in constant.h).  The CM_WIN flag is cleared when you open a chest,
695so you can't create a chest with that bit set in order to get an instant
696win.
697for potions/scrolls/staffs/wands, the effects of using the item (see the
698items in treasure.c).  Many potions have multiple effects (cure light
699wounds also cures blindness).
700for books, which spells are in the book (spell 1 is the units bit).
701
702Level: Level on which the item would be found.  This affects the
703difficulty of using wands and staffs.
704
705The object will have no name, except for the inscription {wizard item},
706and possibly a type name, such as "Potion of"; you can change the
707inscription.
708
709