home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume14 / umoria4 / part39 < prev    next >
Internet Message Format  |  1992-08-31  |  59KB

  1. Path: uunet!zephyr.ens.tek.com!master!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v14i071:  umoria4 - single player dungeon simulation (ver. 5.5), Part39/39
  5. Message-ID: <3435@master.CNA.TEK.COM>
  6. Date: 22 Aug 92 22:16:28 GMT
  7. Sender: news@master.CNA.TEK.COM
  8. Lines: 1999
  9. Approved: billr@saab.CNA.TEK.COM
  10.  
  11. Submitted-by: grabiner@math.harvard.edu (David Grabiner)
  12. Posting-number: Volume 14, Issue 71
  13. Archive-name: umoria4/Part39
  14. Supersedes: umoria3: Volume 9, Issue 55-97; Volume 10, Issue 15-17
  15. Environment: Curses, Unix, Mac, MS-DOS, Atari-ST, Amiga, VMS
  16.  
  17.  
  18.  
  19. #! /bin/sh
  20. # This is a shell archive.  Remove anything before this line, then unpack
  21. # it by saving it into a file and typing "sh file".  To overwrite existing
  22. # files, type "sh file -c".  You can also feed this as standard input via
  23. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  24. # will see the following message at the end:
  25. #        "End of archive 39 (of 39)."
  26. # Contents:  amiga/amiga.c atari_st/README
  27. #   atari_st/moria.lnk atari_st/string.h doc/README files/hours
  28. #   files/news files/owizcmds.hlp files/welcome.hlp ibmpc/ERRORS
  29. #   ibmpc/MAKE.BAT ibmpc/MLINK.LNK ibmpc/Makefile.tc ibmpc/README
  30. #   ibmpc/TCPICK.TCU ibmpc/make/ccthru.bat ibmpc/make/makefile.ibm
  31. #   ibmpc/make/makefile.src ibmpc/turbo_c.inf ibmpc/umoria.prj
  32. #   mac/ERRORS mac/README mac/dumpres/DumpRes.h
  33. #   mac/dumpres/MakeFile.hqx mac/scrnmgr/ERRORS mac/scrnmgr/README
  34. #   mac/scrnmgr/ScrnTest.ro misc/funckeys.h misc/mabbrev util/README
  35. #   util/mc/ERRORS util/mc/Makefile util/mc/attribut.txt
  36. #   util/mc/generic.h util/printit/Makefile util/scores/Makefile
  37. #   util/weapons/ERRORS util/weapons/Makefile util/weapons/highchar.in
  38. #   util/weapons/lowchar.in util/weapons/medchar.in
  39. #   util/weapons/mkallwpn vms/ERRORS vms/README vms/make.com
  40. #   vms/scores.fdl vms/uexit.c
  41. # Wrapped by billr@saab on Thu Aug 20 09:11:37 1992
  42. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  43. if test -f 'amiga/amiga.c' -a "${1}" != "-c" ; then 
  44.   echo shar: Will not clobber existing file \"'amiga/amiga.c'\"
  45. else
  46. echo shar: Extracting \"'amiga/amiga.c'\" \(579 characters\)
  47. sed "s/^X//" >'amiga/amiga.c' <<'END_OF_FILE'
  48. X/* amiga/amiga.c: Amiga support code
  49. X
  50. X   Copyright (c) 1990-92 Corey Gehman, James E. Wilson
  51. X
  52. X   This software may be copied and distributed for educational, research, and
  53. X   not for profit purposes provided that this copyright and statement are
  54. X   included in all such copies. */
  55. X
  56. X#include <curses.h>
  57. X
  58. Xsleep(secs)
  59. Xint secs;
  60. X{
  61. X   sendtimer(secs*1000000);
  62. X   waittimer();
  63. X}
  64. X
  65. Xcheck_input(microsecs)
  66. Xint microsecs;
  67. X{
  68. X  int ch;
  69. X
  70. X  sendtimer(microsecs);
  71. X  waittimer();
  72. X
  73. X  nodelay(stdscr, TRUE);
  74. X  ch = getch ();
  75. X  nodelay(stdscr, FALSE);
  76. X
  77. X  if (ch == -1)
  78. X    return 0;
  79. X
  80. X  return 1;
  81. X}
  82. END_OF_FILE
  83. if test 579 -ne `wc -c <'amiga/amiga.c'`; then
  84.     echo shar: \"'amiga/amiga.c'\" unpacked with wrong size!
  85. fi
  86. # end of 'amiga/amiga.c'
  87. fi
  88. if test -f 'atari_st/README' -a "${1}" != "-c" ; then 
  89.   echo shar: Will not clobber existing file \"'atari_st/README'\"
  90. else
  91. echo shar: Extracting \"'atari_st/README'\" \(1832 characters\)
  92. sed "s/^X//" >'atari_st/README' <<'END_OF_FILE'
  93. X
  94. XFor the Mark Williams C compiler:
  95. X
  96. XUse the atarist.c file along with the source files in ../source.
  97. X
  98. XThis requires a version of curses (a screen management package) for the
  99. XAtari ST, use the one distributed here with the sources.
  100. X
  101. XThe sets.c file has some #pragma lines which will have to be deleted or
  102. Xcommented out, as the MWC preprocessor does not understand them.
  103. X
  104. X*****
  105. X
  106. XFor the Turbo C compiler:
  107. X
  108. XUse the atarist.c file along with the source files in ../source.
  109. X
  110. XThis requires a version of curses (a screen management package) for the
  111. XAtari ST, use the one distributed here with the sources.
  112. X
  113. XCreate a moria.prj file (or borrow the one from the ibmpc directory).
  114. XLink the files together to create the executable with the command
  115. X"TLINK -C=moria.lnk".  Use the Makefile.tc file for make.
  116. XRecommended options for the compile are "-P -G".
  117. X
  118. X*****
  119. X
  120. XFor the Gnu C Compiler:
  121. X
  122. XThere are two major versions of the Run Time Library for the ST.
  123. XThere are two makefiles, Makefile.bam if you use the Bammi RTL, and use
  124. XMakefile.roe if you use the Roede (sp?) RTL.  You do not need any system
  125. Xdefinitions in config.h.  You will need the st-stuff.c file in this directory.
  126. XDo not use the curses sources in this directory, use the ones that come
  127. Xwith the GCC libraries.  The GCC port uses an environment variable
  128. Xcalled MORIA_ROOT to find the misc files, as follows:
  129. X      If it is not set, or contains NULL then moria looks for a directory
  130. X   files/  - based in the CURRENT directory, for all auxillary files. If
  131. X   this subdirectory is not found, moria prints a error message and exits.
  132. X      If it is set, it should be a '/' terminated PATH. This PATH then has
  133. X   'files/' appended to it, thus forming the full search path for auxillary
  134. X   files. This allows the subdirectory 'files/' to be rooted anywhere, on
  135. X   any file system.
  136. X
  137. X*****
  138. END_OF_FILE
  139. if test 1832 -ne `wc -c <'atari_st/README'`; then
  140.     echo shar: \"'atari_st/README'\" unpacked with wrong size!
  141. fi
  142. # end of 'atari_st/README'
  143. fi
  144. if test -f 'atari_st/moria.lnk' -a "${1}" != "-c" ; then 
  145.   echo shar: Will not clobber existing file \"'atari_st/moria.lnk'\"
  146. else
  147. echo shar: Extracting \"'atari_st/moria.lnk'\" \(488 characters\)
  148. sed "s/^X//" >'atari_st/moria.lnk' <<'END_OF_FILE'
  149. X-S=65536
  150. X-O=moria.ttp
  151. X\tc\lib\tcstart.o
  152. Xmain.o
  153. Xmisc1.o
  154. Xmisc2.o
  155. Xmisc3.o
  156. Xmisc4.o
  157. Xstore1.o
  158. Xfiles.o
  159. Xio.o
  160. Xcreate.o
  161. Xdesc.o
  162. Xgenerate.o
  163. Xsets.o
  164. Xdungeon.o
  165. Xcreature.o
  166. Xdeath.o
  167. Xeat.o
  168. Xhelp.o
  169. Xmagic.o
  170. Xpotions.o
  171. Xprayer.o
  172. Xsave.o
  173. Xstaffs.o
  174. Xwands.o
  175. Xscrolls.o
  176. Xspells.o
  177. Xwizard.o
  178. Xstore2.o
  179. Xsignals.o
  180. Xmoria1.o
  181. Xmoria2.o
  182. Xmoria3.o
  183. Xmoria4.o
  184. Xmonsters.o
  185. Xtreasure.o
  186. Xvariable.o
  187. Xrnd.o
  188. Xrecall.o
  189. Xatarist.o
  190. Xundef.o
  191. Xcurses.o
  192. Xplayer.o
  193. Xtables.o
  194. X\tc\lib\tcfltlib.lib
  195. X\tc\lib\tcstdlib.lib
  196. X\tc\lib\tcextlib.lib
  197. X\tc\lib\tctoslib.lib
  198. END_OF_FILE
  199. if test 488 -ne `wc -c <'atari_st/moria.lnk'`; then
  200.     echo shar: \"'atari_st/moria.lnk'\" unpacked with wrong size!
  201. fi
  202. # end of 'atari_st/moria.lnk'
  203. fi
  204. if test -f 'atari_st/string.h' -a "${1}" != "-c" ; then 
  205.   echo shar: Will not clobber existing file \"'atari_st/string.h'\"
  206. else
  207. echo shar: Extracting \"'atari_st/string.h'\" \(691 characters\)
  208. sed "s/^X//" >'atari_st/string.h' <<'END_OF_FILE'
  209. X/* atari_st/string.h: string include file for MWC
  210. X
  211. X   Copyright (c) 1989-92 Stephen A Jacobs, James E. Wilson
  212. X
  213. X   This software may be copied and distributed for educational, research, and
  214. X   not for profit purposes provided that this copyright and statement are
  215. X   included in all such copies. */
  216. X
  217. X#ifndef STRING_H
  218. X#define STRING_H
  219. X
  220. Xchar *index();
  221. Xchar *rindex();
  222. Xchar *strcat();
  223. Xint strcmp();
  224. Xchar *strcpy();
  225. Xint strlen();
  226. Xchar *strncat();
  227. Xint strncmp();
  228. Xchar *strncpy();
  229. Xchar *memchr();
  230. Xint memcmp();
  231. Xchar *memcpy();
  232. Xchar *memset();
  233. Xchar *strchr();
  234. Xunsigned int strcspn();
  235. Xchar *strerror();
  236. Xchar *strpbrk();
  237. Xchar *strrchr();
  238. Xunsigned int strspn();
  239. Xchar *strstr();
  240. Xchar *strtok();
  241. X
  242. X#endif
  243. END_OF_FILE
  244. if test 691 -ne `wc -c <'atari_st/string.h'`; then
  245.     echo shar: \"'atari_st/string.h'\" unpacked with wrong size!
  246. fi
  247. # end of 'atari_st/string.h'
  248. fi
  249. if test -f 'doc/README' -a "${1}" != "-c" ; then 
  250.   echo shar: Will not clobber existing file \"'doc/README'\"
  251. else
  252. echo shar: Extracting \"'doc/README'\" \(1631 characters\)
  253. sed "s/^X//" >'doc/README' <<'END_OF_FILE'
  254. XFEATURES.NEW
  255. X    mentions all of the important user visible changes from
  256. X    umoria 4.87 to umoria 5.x.
  257. X
  258. Xdragon.inf
  259. X    Gives spoiler info on dragons.
  260. X
  261. Xexp.doc
  262. X    Documents how experience works.  Should be part of the manual.
  263. X
  264. Xhistory
  265. X    is a brief history of the program umoria.
  266. X
  267. Xmoria.6
  268. X    is the nroff source for a man page for umoria.  Use the command
  269. X    'nroff -man moria.6' to view it.  By default, it assumes that
  270. X    umoria was compiled with the original command set.  If you
  271. X    compiled umoria with the rogue like command set, then remove
  272. X    the three characters defore the .ds command at the start for
  273. X    a more appropriate man page.
  274. X
  275. Xmoria.man
  276. X    is an already processed copy of the man page (with bold and underlined
  277. X    characters removed) for those without the nroff program.
  278. X
  279. Xmoria1.ms, moria2.ms
  280. X    is the document "The Dungeons of Moria".  It is a complete description
  281. X    of the game.  You may want to adjust the margin and line length
  282. X    values at the beginning.  To view it, use the command
  283. X    'tbl moria1.ms moria1.ms | nroff -ms'.  It is split into two parts
  284. X    so that it can be easily mailed.
  285. X
  286. Xmoria1.txt, moria2.txt
  287. X    is an already processed copy of the document "The Dungeons of Moria"
  288. X    (with bold and underlined characters removed) for those without
  289. X    the nroff program.  It is split into two parts so that it can be
  290. X    easily mailed.
  291. X
  292. Xpronounc
  293. X    explains how to pronounce the name moria.
  294. X
  295. Xspells.doc
  296. X    Documents how spells work.  Should be part of the manual.
  297. X
  298. Xspoilers
  299. X    Answers most frequently asked questions.  Most of this info should
  300. X    really be incorporated into the manual.
  301. X
  302. Xwhere.inf
  303. X    gives info on how to obtain the various versions of moria.
  304. X
  305. END_OF_FILE
  306. if test 1631 -ne `wc -c <'doc/README'`; then
  307.     echo shar: \"'doc/README'\" unpacked with wrong size!
  308. fi
  309. # end of 'doc/README'
  310. fi
  311. if test -f 'files/hours' -a "${1}" != "-c" ; then 
  312.   echo shar: Will not clobber existing file \"'files/hours'\"
  313. else
  314. echo shar: Extracting \"'files/hours'\" \(350 characters\)
  315. sed "s/^X//" >'files/hours' <<'END_OF_FILE'
  316. X    Moria operating hours are:
  317. X    |    AM     |    PM     |
  318. X    1         111         111
  319. X    2123456789012123456789012
  320. XSUN:XXXXXXXXXXXXXXXXXXXXXXXX
  321. XMON:XXXXXXXXXXXXXXXXXXXXXXXX
  322. XTUE:XXXXXXXXXXXXXXXXXXXXXXXX
  323. XWED:XXXXXXXXXXXXXXXXXXXXXXXX
  324. XTHU:XXXXXXXXXXXXXXXXXXXXXXXX
  325. XFRI:XXXXXXXXXXXXXXXXXXXXXXXX
  326. XSAT:XXXXXXXXXXXXXXXXXXXXXXXX
  327. X       (X=Open; .=Closed)
  328. END_OF_FILE
  329. if test 350 -ne `wc -c <'files/hours'`; then
  330.     echo shar: \"'files/hours'\" unpacked with wrong size!
  331. fi
  332. # end of 'files/hours'
  333. fi
  334. if test -f 'files/news' -a "${1}" != "-c" ; then 
  335.   echo shar: Will not clobber existing file \"'files/news'\"
  336. else
  337. echo shar: Extracting \"'files/news'\" \(767 characters\)
  338. sed "s/^X//" >'files/news' <<'END_OF_FILE'
  339. X                         *********************
  340. X                         **   Umoria 5.5    **
  341. X                         *********************
  342. X                 Copyright (c) 1985 Robert Alan Koeneke
  343. X                   Copyright (c) 1989-92 James E. Wilson
  344. X
  345. XProgrammers : Robert Alan Koeneke / University of Oklahoma
  346. X              Jimmey Wayne Todd  / University of Oklahoma
  347. XUNIX Port : James E. Wilson    / Cygnus Support
  348. XVersion 5.5 : David J. Grabiner / Harvard University
  349. X
  350. XPlease send bug reports to grabiner@math.harvard.edu or to the USENET
  351. Xnewsgroup rec.games.moria.
  352. X
  353. XPlease read the file doc/FEATURES.NEW.  In particular, note the new commands
  354. X'G' for learning spells, and '=' for setting options.  Also, to attack
  355. Xinvisible creatures in walls, you must tunnel.
  356. END_OF_FILE
  357. if test 767 -ne `wc -c <'files/news'`; then
  358.     echo shar: \"'files/news'\" unpacked with wrong size!
  359. fi
  360. # end of 'files/news'
  361. fi
  362. if test -f 'files/owizcmds.hlp' -a "${1}" != "-c" ; then 
  363.   echo shar: Will not clobber existing file \"'files/owizcmds.hlp'\"
  364. else
  365. echo shar: Extracting \"'files/owizcmds.hlp'\" \(376 characters\)
  366. sed "s/^X//" >'files/owizcmds.hlp' <<'END_OF_FILE'
  367. X:  - Map area.
  368. X^A - Remove Curse and Cure all maladies.
  369. X^B - Print random objects sample.
  370. X^D - Down/Up n levels.
  371. X^E - Change character.
  372. X^F - Delete monsters.
  373. X^G - Allocate treasures.
  374. X^H - Wizard Help.
  375. X^I - Identify.
  376. X^J - Gain experience.
  377. X^L - Wizard light.
  378. X^T - Teleport player.
  379. X^U  - Summon monster.
  380. X^W - Wizard password on/off.
  381. X@ - Create any object *CAN CAUSE FATAL ERROR*
  382. END_OF_FILE
  383. if test 376 -ne `wc -c <'files/owizcmds.hlp'`; then
  384.     echo shar: \"'files/owizcmds.hlp'\" unpacked with wrong size!
  385. fi
  386. # end of 'files/owizcmds.hlp'
  387. fi
  388. if test -f 'files/welcome.hlp' -a "${1}" != "-c" ; then 
  389.   echo shar: Will not clobber existing file \"'files/welcome.hlp'\"
  390. else
  391. echo shar: Extracting \"'files/welcome.hlp'\" \(423 characters\)
  392. sed "s/^X//" >'files/welcome.hlp' <<'END_OF_FILE'
  393. X                       Welcome to Moria!
  394. X
  395. XYour first task is to generate a character. You must specify a sex,
  396. Xa race and a class. Anytime before you have made these specifications,
  397. Xyou can interrupt with control-C. You can also specify the race as
  398. Xoften as you like by entering '%' to the class request. This will also
  399. Xregenerate your attributes.
  400. X
  401. XIf this is your first time playing, you may want to read the manual first.
  402. END_OF_FILE
  403. if test 423 -ne `wc -c <'files/welcome.hlp'`; then
  404.     echo shar: \"'files/welcome.hlp'\" unpacked with wrong size!
  405. fi
  406. # end of 'files/welcome.hlp'
  407. fi
  408. if test -f 'ibmpc/ERRORS' -a "${1}" != "-c" ; then 
  409.   echo shar: Will not clobber existing file \"'ibmpc/ERRORS'\"
  410. else
  411. echo shar: Extracting \"'ibmpc/ERRORS'\" \(170 characters\)
  412. sed "s/^X//" >'ibmpc/ERRORS' <<'END_OF_FILE'
  413. Xthe two files Makefile and Makefile.XNX are obsolete, and need to be
  414. Xupdated
  415. X
  416. Xdocument the -DLINT_ARGS option for prototypes someplace
  417. X
  418. Xfix up the new makefiles in make/
  419. END_OF_FILE
  420. if test 170 -ne `wc -c <'ibmpc/ERRORS'`; then
  421.     echo shar: \"'ibmpc/ERRORS'\" unpacked with wrong size!
  422. fi
  423. # end of 'ibmpc/ERRORS'
  424. fi
  425. if test -f 'ibmpc/MAKE.BAT' -a "${1}" != "-c" ; then 
  426.   echo shar: Will not clobber existing file \"'ibmpc/MAKE.BAT'\"
  427. else
  428. echo shar: Extracting \"'ibmpc/MAKE.BAT'\" \(162 characters\)
  429. sed "s/^X//" >'ibmpc/MAKE.BAT' <<'END_OF_FILE'
  430. Xcl -c -AL -Os -Gs -Zp -Gt32 -DPC_CURSES *.c
  431. Xlink <mlink.lnk
  432. Xexemod moria.exe /stack 3fff
  433. Xrename moria.exe moria.xxx
  434. Xexepack moria.xxx moria.exe
  435. Xdelete moria.xxx
  436. X
  437. END_OF_FILE
  438. if test 162 -ne `wc -c <'ibmpc/MAKE.BAT'`; then
  439.     echo shar: \"'ibmpc/MAKE.BAT'\" unpacked with wrong size!
  440. fi
  441. # end of 'ibmpc/MAKE.BAT'
  442. fi
  443. if test -f 'ibmpc/MLINK.LNK' -a "${1}" != "-c" ; then 
  444.   echo shar: Will not clobber existing file \"'ibmpc/MLINK.LNK'\"
  445. else
  446. echo shar: Extracting \"'ibmpc/MLINK.LNK'\" \(268 characters\)
  447. sed "s/^X//" >'ibmpc/MLINK.LNK' <<'END_OF_FILE'
  448. XMAIN+CREATE+CREATURE+DEATH+DESC+DUNGEON+
  449. XEAT+FILES+GENERATE+HELP+MAGIC+
  450. XMISC1+MISC2+MONSTERS+MORIA1+MORIA2+
  451. XPOTIONS+PRAYER+RND+SAVE+
  452. XSCROLLS+SETS+SIGNALS+SPELLS+STAFFS+
  453. XSTORE1+STORE2+TREASURE+VARIABLE+
  454. XWANDS+WIZARD+IO+MS_MISC+RECALL+
  455. XPLAYER.C+TABLES.C,moria,,pccurses
  456. END_OF_FILE
  457. if test 268 -ne `wc -c <'ibmpc/MLINK.LNK'`; then
  458.     echo shar: \"'ibmpc/MLINK.LNK'\" unpacked with wrong size!
  459. fi
  460. # end of 'ibmpc/MLINK.LNK'
  461. fi
  462. if test -f 'ibmpc/Makefile.tc' -a "${1}" != "-c" ; then 
  463.   echo shar: Will not clobber existing file \"'ibmpc/Makefile.tc'\"
  464. else
  465. echo shar: Extracting \"'ibmpc/Makefile.tc'\" \(647 characters\)
  466. sed "s/^X//" >'ibmpc/Makefile.tc' <<'END_OF_FILE'
  467. XFLAGS = -1 -c -w-
  468. XDEFS = -DUSG -DMSDOS
  469. XCC = \tc\bin\tcc
  470. XPROGRAM = moria.exe
  471. XLINKER = \tc\bin\tlink
  472. X
  473. XOBJS        = create.obj creature.obj death.c desc.obj dungeon.obj \
  474. X          eat.obj files.obj generate.obj help.obj io.obj rnd.obj \
  475. X          magic.obj main.obj misc1.obj misc2.obj misc2.obj misc4.obj \
  476. X          monsters.obj moria1.obj moria2.obj moria3.obj moria4.obj \
  477. X          ms_ansi.obj ms_misc.obj potions.obj \
  478. X          prayer.obj save.obj scrolls.obj sets.obj signals.obj \
  479. X          spells.obj staffs.obj store1.obj store2.obj treasure.obj \
  480. X          variable.obj wands.obj wizard.obj
  481. X
  482. X.c.obj:
  483. X    $(CC) $(FLAGS) $(DEFS) $*
  484. X
  485. X$(PROGRAM):   $(OBJS)
  486. X        $(LINKER) $(OBJS), $(PROGRAM),,
  487. END_OF_FILE
  488. if test 647 -ne `wc -c <'ibmpc/Makefile.tc'`; then
  489.     echo shar: \"'ibmpc/Makefile.tc'\" unpacked with wrong size!
  490. fi
  491. # end of 'ibmpc/Makefile.tc'
  492. fi
  493. if test -f 'ibmpc/README' -a "${1}" != "-c" ; then 
  494.   echo shar: Will not clobber existing file \"'ibmpc/README'\"
  495. else
  496. echo shar: Extracting \"'ibmpc/README'\" \(1780 characters\)
  497. sed "s/^X//" >'ibmpc/README' <<'END_OF_FILE'
  498. X
  499. XTo compile this program, you need a copy of PC-Curses, a screen management
  500. Xpackage.  Sources for this are distributed separately, since most people
  501. Xwho need it already have a copy.
  502. X
  503. XOr, if you have Turbo C, you can use the tcio.c file instead of PC-Curses.
  504. X
  505. X*************************
  506. X
  507. XCONFIG.DOC
  508. X    The MSDOS specific documentation file that came with PC-Moria 4.873.
  509. X    Much of this is out-of-date, and needs to be updated.  The section
  510. X    describing the MORIA.CNF configuration file is still useful.
  511. X
  512. XMAKE.BAT, MLINK.LNK
  513. X    If you have MSC, you can compile the Umoria by executing this
  514. X    MAKE.BAT commands files, which uses MLINK.LNK to specify all of the
  515. X    files to be linked together to form the executable.
  516. X
  517. XMORIA.CNF
  518. X    A sample configuration file for the MSDOS version of umoria 5.x.
  519. X
  520. XMakefile, Makefile.XNX
  521. X    Obsolete Makefiles that were used for PC-Moria 4.873.  May still be
  522. X    useful as a reference though for those who want to write their own
  523. X    Makefiles.
  524. X
  525. XTERMCAP
  526. X    A sample TERMCAP file which can be used by PC-Curses.
  527. X
  528. Xmake
  529. X    A directory containing 3 makefiles for MSC.  Put the makefile.top
  530. X    file in the top directory (which contains the CHANGES file), put
  531. X    the makefile.src file in the source directory, and put the makefile.ibm
  532. X    in this directory.  Note that each file must be renamed to makefile
  533. X    when it is moved.  You can then build moria by running the MSC Make
  534. X    program in the top directory.
  535. X
  536. Xms_ansi.c, ms_ansi.h, ms_misc.c
  537. X    MSDOS specific source files for umoria 5.x.
  538. X
  539. Xtcio.c
  540. X    For TC, this is an alternative io.c file.  If you use this file
  541. X    instead of source/io.c, then you don't need PC-Curses.  This should
  542. X    result in a smaller, faster program.
  543. X
  544. Xturbo_c.inf
  545. X    Some hints on compiling Umoria with TC.
  546. X
  547. Xumoria.prj
  548. X    A project file to be used when compiling Umoria with TC.
  549. END_OF_FILE
  550. if test 1780 -ne `wc -c <'ibmpc/README'`; then
  551.     echo shar: \"'ibmpc/README'\" unpacked with wrong size!
  552. fi
  553. # end of 'ibmpc/README'
  554. fi
  555. if test -f 'ibmpc/TCPICK.TCU' -a "${1}" != "-c" ; then 
  556.   echo shar: Will not clobber existing file \"'ibmpc/TCPICK.TCU'\"
  557. else
  558. echo shar: Extracting \"'ibmpc/TCPICK.TCU'\" \(1715 characters\)
  559. sed "s/^X//" >'ibmpc/TCPICK.TCU' <<'END_OF_FILE'
  560. XA uuencoded copy of a TCPICK.TC file.
  561. X
  562. Xbegin 640 TCPICK.TC
  563. XM5'5R8F\@0R!0:6-K($QI<W0@1FEL92 :  $-$A<!&@ " 0$ X@(S 48Z7$=!
  564. XM34537%5-3U(U,S%<5T]22UQ534]224$N4%)*                        
  565. XM                                        O0-&.EQ'04U%4UQ534]2
  566. XM-3,Q7%=/4DM<4T%612Y# $4N0P                                  
  567. XM                             %4#1CI<1T%-15-<54U/4C4S,5Q73U)+
  568. XM7$1%051(+DD  $H                                             
  569. XM                     $8Z7$=!34537%5-3U(U,S%<5T]22UQ&24Q%4RY#
  570. XM "Y#                                                        
  571. XM        GB9&.EQ'04U%4UQ534]2-3,Q7%=/4DM<5$-)3RY# $,         
  572. XM                                                         !X(
  573. XM1CI<1T%-15-<54U/4C4S,5Q73U)+7$U37TU)4T,N0P                  
  574. XM                                               5-48Z7$=!3453
  575. XM7%5-3U(U,S%<5T]22UQ465!%4RY(                                
  576. XM                                    P%Q&.EQ'04U%4UQ534]2-3,Q
  577. XM7%=/4DM<1$5!5$@N0P  0P                                      
  578. XM                            1CI<1T%-15-<54U/4C4S,5Q73U)+7$-2
  579. XM14%412Y# $H                                                 
  580. XM               " !( !P $  8  0 #  ( !0    @  P"9  "-  <     
  581. XM             *@#     !^4             @($ "X +@ N "X IS+> 0  
  582. XM                     -,D     %P-            X <)            
  583. XM-!-)$P"!-                    (]:     ,!<     ,!<P%P         
  584. XM              0 -@   $J,E!8  -R&E!80 $"RE!8  !BVDQ8  *NXDQ8 
  585. XM .&-E!8  +9^DQ8  #)=E18  +"ADQ9D  P "@%G            90 !  !F
  586. XM "   U!*1P!?<V-O<F5S  !R                      !G "          
  587. XM                                  !H %  2E5.2P N0P N5$]0    
  588. XM                                                            
  589. X:                          #__P( &@  
  590. Xend
  591. END_OF_FILE
  592. if test 1715 -ne `wc -c <'ibmpc/TCPICK.TCU'`; then
  593.     echo shar: \"'ibmpc/TCPICK.TCU'\" unpacked with wrong size!
  594. fi
  595. # end of 'ibmpc/TCPICK.TCU'
  596. fi
  597. if test -f 'ibmpc/make/ccthru.bat' -a "${1}" != "-c" ; then 
  598.   echo shar: Will not clobber existing file \"'ibmpc/make/ccthru.bat'\"
  599. else
  600. echo shar: Extracting \"'ibmpc/make/ccthru.bat'\" \(78 characters\)
  601. sed "s/^X//" >'ibmpc/make/ccthru.bat' <<'END_OF_FILE'
  602. X@echo off
  603. Xtouch %1.%2 > nul:
  604. Xcopy %1.%2 ..\%2 > nul:
  605. Xtouch ..\%2\%1.%2 > nul:
  606. END_OF_FILE
  607. if test 78 -ne `wc -c <'ibmpc/make/ccthru.bat'`; then
  608.     echo shar: \"'ibmpc/make/ccthru.bat'\" unpacked with wrong size!
  609. fi
  610. # end of 'ibmpc/make/ccthru.bat'
  611. fi
  612. if test -f 'ibmpc/make/makefile.ibm' -a "${1}" != "-c" ; then 
  613.   echo shar: Will not clobber existing file \"'ibmpc/make/makefile.ibm'\"
  614. else
  615. echo shar: Extracting \"'ibmpc/make/makefile.ibm'\" \(185 characters\)
  616. sed "s/^X//" >'ibmpc/make/makefile.ibm' <<'END_OF_FILE'
  617. XCFLAG =    $(FLAG)
  618. X
  619. XINC =    ms_ansi.h
  620. X
  621. X.c.$(OBJ):
  622. X    cl -c $(CFLAG) -Fo$*.$(OBJ) $*.c > $*.$(REDIR)
  623. X    ..\ccthru $* $(OBJ)
  624. X
  625. Xms_ansi.$(OBJ):        ms_ansi.c $(INC)
  626. X
  627. Xms_misc.$(OBJ):        ms_misc.c $(INC)
  628. X
  629. END_OF_FILE
  630. if test 185 -ne `wc -c <'ibmpc/make/makefile.ibm'`; then
  631.     echo shar: \"'ibmpc/make/makefile.ibm'\" unpacked with wrong size!
  632. fi
  633. # end of 'ibmpc/make/makefile.ibm'
  634. fi
  635. if test -f 'ibmpc/make/makefile.src' -a "${1}" != "-c" ; then 
  636.   echo shar: Will not clobber existing file \"'ibmpc/make/makefile.src'\"
  637. else
  638. echo shar: Extracting \"'ibmpc/make/makefile.src'\" \(1243 characters\)
  639. sed "s/^X//" >'ibmpc/make/makefile.src' <<'END_OF_FILE'
  640. XCFLAG =    $(FLAG)
  641. X
  642. XINC =    \
  643. X    config.h\
  644. X    constant.h\
  645. X    externs.h\
  646. X    types.h
  647. X
  648. X.c.$(OBJ):
  649. X    cl -c $(CFLAG) -Fo$*.$(OBJ) $*.c > $*.$(REDIR)
  650. X    ..\ccthru $* $(OBJ)
  651. X
  652. Xcreate.$(OBJ):        create.c $(INC)
  653. X
  654. Xcreature.$(OBJ):    creature.c $(INC)
  655. X
  656. Xdeath.$(OBJ):        death.c $(INC)
  657. X
  658. Xdesc.$(OBJ):        desc.c $(INC)
  659. X
  660. Xdungeon.$(OBJ):        dungeon.c $(INC)
  661. X
  662. Xeat.$(OBJ):        eat.c $(INC)
  663. X
  664. Xfiles.$(OBJ):        files.c $(INC)
  665. X
  666. Xgenerate.$(OBJ):    generate.c $(INC)
  667. X
  668. Xhelp.$(OBJ):        help.c $(INC)
  669. X
  670. Xio.$(OBJ):        io.c $(INC)
  671. X
  672. Xmagic.$(OBJ):        magic.c $(INC)
  673. X
  674. Xmain.$(OBJ):        main.c $(INC)
  675. X
  676. Xmisc1.$(OBJ):        misc1.c $(INC)
  677. X
  678. Xmisc2.$(OBJ):        misc2.c $(INC)
  679. X
  680. Xmonsters.$(OBJ):    monsters.c $(INC)
  681. X
  682. Xmoria1.$(OBJ):        moria1.c $(INC)
  683. X
  684. Xmoria2.$(OBJ):        moria2.c $(INC)
  685. X
  686. Xpotions.$(OBJ):        potions.c $(INC)
  687. X
  688. Xprayer.$(OBJ):        prayer.c $(INC)
  689. X
  690. Xrecall.$(OBJ):        recall.c $(INC)
  691. X
  692. Xrnd.$(OBJ):        rnd.c $(INC)
  693. X
  694. Xsave.$(OBJ):        save.c $(INC)
  695. X
  696. Xscrolls.$(OBJ):        scrolls.c $(INC)
  697. X
  698. Xsets.$(OBJ):        sets.c $(INC)
  699. X
  700. Xsignals.$(OBJ):        signals.c $(INC)
  701. X
  702. Xspells.$(OBJ):        spells.c $(INC)
  703. X
  704. Xstaffs.$(OBJ):        staffs.c $(INC)
  705. X
  706. Xstore1.$(OBJ):        store1.c $(INC)
  707. X
  708. Xstore2.$(OBJ):        store2.c $(INC)
  709. X
  710. Xtreasure.$(OBJ):    treasure.c $(INC)
  711. X
  712. Xundef.$(OBJ):        undef.c $(INC)
  713. X
  714. Xvariable.$(OBJ):    variable.c $(INC)
  715. X
  716. Xwands.$(OBJ):        wands.c $(INC)
  717. X
  718. Xwizard.$(OBJ):        wizard.c $(INC)
  719. X
  720. END_OF_FILE
  721. if test 1243 -ne `wc -c <'ibmpc/make/makefile.src'`; then
  722.     echo shar: \"'ibmpc/make/makefile.src'\" unpacked with wrong size!
  723. fi
  724. # end of 'ibmpc/make/makefile.src'
  725. fi
  726. if test -f 'ibmpc/turbo_c.inf' -a "${1}" != "-c" ; then 
  727.   echo shar: Will not clobber existing file \"'ibmpc/turbo_c.inf'\"
  728. else
  729. echo shar: Extracting \"'ibmpc/turbo_c.inf'\" \(845 characters\)
  730. sed "s/^X//" >'ibmpc/turbo_c.inf' <<'END_OF_FILE'
  731. X
  732. XCompiler Stats :
  733. XTurboC on Compaq 386sx w/ 1Meg memory & 20Meg HD
  734. XC calling convention
  735. X80286 code generation
  736. XHUGE model used
  737. Xoptimized for size
  738. XCompiler Defines : MSDOS;DEBUG
  739. X
  740. XWhen compiling PC-Curses, make sure the .obj code is the same model as the
  741. Xsource code for Umoria.  Also, a size modifier letter must start the name
  742. Xof the .lib file (HCURSES.LIB for instance).
  743. X
  744. XNote that reset_term() is commented out in death.c and io.c.  This is
  745. Xbecause calling this function causes moria to die horribly when moria is
  746. Xcompiled by Turbo C.  I do know what the problem is, so, for now, reset_term()
  747. Xis never called for the Turbo C version.
  748. X
  749. XThe file tcio.c is an untested file meant to replace the source/io.c file.
  750. XIf you use tcio.c instead of source/io.c, you do not need PC-Curses.
  751. XThe result is a program a bit smaller, and perhaps a bit faster.
  752. END_OF_FILE
  753. if test 845 -ne `wc -c <'ibmpc/turbo_c.inf'`; then
  754.     echo shar: \"'ibmpc/turbo_c.inf'\" unpacked with wrong size!
  755. fi
  756. # end of 'ibmpc/turbo_c.inf'
  757. fi
  758. if test -f 'ibmpc/umoria.prj' -a "${1}" != "-c" ; then 
  759.   echo shar: Will not clobber existing file \"'ibmpc/umoria.prj'\"
  760. else
  761. echo shar: Extracting \"'ibmpc/umoria.prj'\" \(269 characters\)
  762. sed "s/^X//" >'ibmpc/umoria.prj' <<'END_OF_FILE'
  763. XCREATE
  764. XCREATURE
  765. XDEATH
  766. XDESC
  767. XDUNGEON
  768. XEAT
  769. XFILES
  770. XGENERATE
  771. XHELP
  772. XTCIO
  773. XMAGIC
  774. XMAIN
  775. XMISC1
  776. XMISC2
  777. XMISC3
  778. XMISC4
  779. XMONSTERS
  780. XMORIA1
  781. XMORIA2
  782. XMORIA3
  783. XMORIA4
  784. XMS_MISC
  785. XPLAYER
  786. XPOTIONS
  787. XPRAYER
  788. XRECALL
  789. XRND
  790. XSAVE
  791. XSCROLLS
  792. XSETS
  793. XSIGNALS
  794. XSPELLS
  795. XSTAFFS
  796. XSTORE1
  797. XSTORE2
  798. XTABLES
  799. XTREASURE
  800. XVARIABLE
  801. XWANDS
  802. XWIZARD
  803. END_OF_FILE
  804. if test 269 -ne `wc -c <'ibmpc/umoria.prj'`; then
  805.     echo shar: \"'ibmpc/umoria.prj'\" unpacked with wrong size!
  806. fi
  807. # end of 'ibmpc/umoria.prj'
  808. fi
  809. if test -f 'mac/ERRORS' -a "${1}" != "-c" ; then 
  810.   echo shar: Will not clobber existing file \"'mac/ERRORS'\"
  811. else
  812. echo shar: Extracting \"'mac/ERRORS'\" \(560 characters\)
  813. sed "s/^X//" >'mac/ERRORS' <<'END_OF_FILE'
  814. Xmac.c:
  815. Xcheck_debugger(): all code commented out for THINK_C
  816. Xunloadsegments(): all code commented out for THINK_C
  817. Xmain(): code for unloading the screenmanager is commented out for THINK_C
  818. X
  819. Xmacio.c:
  820. Xget_check(): change x,y to short?
  821. X
  822. Xmacmoria.r: no SIZE resource, and no help text
  823. Xthe help text, as a precompiled resource, is available in the file
  824. Xmiscrsrc.hqx  This resource has incorrect version numbers, so you should
  825. Xedit it before you use it to change the version numbers from 5.2.2 to
  826. X5.5.
  827. X
  828. XThere should not be any version numbers as text in any Mac file.
  829. END_OF_FILE
  830. if test 560 -ne `wc -c <'mac/ERRORS'`; then
  831.     echo shar: \"'mac/ERRORS'\" unpacked with wrong size!
  832. fi
  833. # end of 'mac/ERRORS'
  834. fi
  835. if test -f 'mac/README' -a "${1}" != "-c" ; then 
  836.   echo shar: Will not clobber existing file \"'mac/README'\"
  837. else
  838. echo shar: Extracting \"'mac/README'\" \(1611 characters\)
  839. sed "s/^X//" >'mac/README' <<'END_OF_FILE'
  840. X1.    To build Moria on the mac, you will need MPW C 3.0 or better.
  841. X
  842. X2.    The top directory of the source distribution is denoted "{DistDir}"
  843. X    in the rest of this document.  It has as an immediate subdirectory
  844. X    "mac" which contains the file you are now reading, and an MPW script
  845. X    called "Install".
  846. X
  847. X3.    The "Install" script configures the files of the source distribution
  848. X    for use with MPW.  It also creates a new directory on your disk into
  849. X    which the files required to build the game will be moved (since they
  850. X    are spread out across several directories as received).  Invoke this
  851. X    script as follows --
  852. X
  853. X    a.    Set the directory to "{DistDir}mac"
  854. X    b.    Execute the command "Install {DistDir} {NewDir}" where "{NewDir}"
  855. X        is the name of the directory you want created to hold all the
  856. X        source required to build to mac version of the game.
  857. X
  858. X4.    The mac version of the game uses two subroutine packages which must
  859. X    be built first as follows --
  860. X
  861. X    a.    Set the directory to "{DistDir}mac:scrnmgr"
  862. X    b.    Build (cmd-B) "Install" (or execute "BuildProgram Install").
  863. X    c.    Set the directory to "{DistDir}mac:dumpres"
  864. X    d.    Build (cmd-B) "Install" (or execute "BuildProgram Install").
  865. X
  866. X5.    Now the game can be built as follows --
  867. X
  868. X    a.    Set the directory to "{NewDir}"
  869. X    b.    Build (cmd-B) "Moria" (or execute "BuildProgram Moria").
  870. X    c.    If Moria doesn't seem to work right, it is probably because
  871. X        the resource and text files weren't appended to the application.
  872. X        Either delete the file Moria and rebuild, or else execute by hand
  873. X        the commands which append the resources and text files.
  874. X
  875. X*********
  876. X
  877. XMoria can also be built with Think C now.
  878. END_OF_FILE
  879. if test 1611 -ne `wc -c <'mac/README'`; then
  880.     echo shar: \"'mac/README'\" unpacked with wrong size!
  881. fi
  882. # end of 'mac/README'
  883. fi
  884. if test -f 'mac/dumpres/DumpRes.h' -a "${1}" != "-c" ; then 
  885.   echo shar: Will not clobber existing file \"'mac/dumpres/DumpRes.h'\"
  886. else
  887. echo shar: Extracting \"'mac/dumpres/DumpRes.h'\" \(672 characters\)
  888. sed "s/^X//" >'mac/dumpres/DumpRes.h' <<'END_OF_FILE'
  889. X/* mac/dumpres/DumpRes.h: prototypes for DumpRes.c
  890. X
  891. X   Copyright (c) 1989-1991 Curtis McCauley, James E. Wilson
  892. X
  893. X   This software may be copied and distributed for educational, research, and
  894. X   not for profit purposes provided that this copyright and statement are
  895. X   included in all such copies. */
  896. X
  897. Xvoid DumpRes(
  898. X    char *fileName,
  899. X    long resType, long resID, char *resName, long resAttrs,
  900. X    char *elemPtr, unsigned long elemCnt, unsigned long elemSiz,
  901. X    void (*strProc)(char *elem, void (*proc)(char **str))
  902. X);
  903. X
  904. Xlong LoadRes(
  905. X    char **memPtr,
  906. X    long resType, long resID,
  907. X    unsigned long elemCnt, unsigned long elemSiz,
  908. X    void (*strProc)(char *elem, void (*proc)(char **str))
  909. X);
  910. END_OF_FILE
  911. if test 672 -ne `wc -c <'mac/dumpres/DumpRes.h'`; then
  912.     echo shar: \"'mac/dumpres/DumpRes.h'\" unpacked with wrong size!
  913. fi
  914. # end of 'mac/dumpres/DumpRes.h'
  915. fi
  916. if test -f 'mac/dumpres/MakeFile.hqx' -a "${1}" != "-c" ; then 
  917.   echo shar: Will not clobber existing file \"'mac/dumpres/MakeFile.hqx'\"
  918. else
  919. echo shar: Extracting \"'mac/dumpres/MakeFile.hqx'\" \(1515 characters\)
  920. sed "s/^X//" >'mac/dumpres/MakeFile.hqx' <<'END_OF_FILE'
  921. X(This file must be converted with BinHex 4.0)
  922. X:#%eKDf9'D@aP!&4&@&408&-J!3!!!!+E!!!"IV2*3dp`G'P[ER-J25!YE@*R)'p
  923. XZ$8a2F(4TEfjc)$d0$84eEA"5CA-ZEb$%)%4eEA"5CA-ZB`d*3b"l3dp`G'P[ER0
  924. Xp)#e[)%4eEA"5CA-ZEb"%G@e`8Q9c,Q-0$84eEA"5CA08CA0d,Q-ZEb$%)%4eEA"
  925. X5CA08CA0d,Q-0#8-JHd02F(4TEfjcI5"%G@e`8Q9c9'9cG#jM$3N06f*UC@0dFb!
  926. Xp)%4eEA"5CA08CA0d,Q-ZEb"%G@e`8Q9c,Qm0$5-J5PFk)%05G@jdD@eP,QmJB@j
  927. XN)%0*ER4PFQCKBf8ZEb"bC@e[GQ9N)(0TEQ0P)%NJGf&c)(4[E'3JG'KKG#"dD'9
  928. Xj)'&bC5"[BR0[E'9dC3e%G@e`8Q9c9'9cG#$%a#"l6f*UC@0dFhd0#8aTEQXJHda
  929. X2F(4TEfjcI5!YGb!YBb!R69"6)#FJ,A3J69"69##f$3N*HdpLDQ9MG(0p),B0#3N
  930. XLHdaTBR*KFQPPFhdLFh4eBR-ZEb#f$3N*)RY-D@*bBA*TCA0p)P*eER4TE@8ZEb#
  931. Xf$3N*)RY-D@*bBA*TCA0p)NPZG'9bCQ&MC5j[),B0#3NLHd0-D@*bBA*TCA0p)P0
  932. XdC%0-D@)ZEb#f$3N*)RY$6'PLFQ&bD@9cI5*$8d&148aTBLj[),B0#3NLHd0-D@*
  933. XbBA*TCA0p)NeKG'JZEb#f$3N*)RY-D@*bBA*TCA0p)P4[Efa-D@*c,QmJYJd*#5e
  934. X[)%4eEA"5CA08CA0d$3e*ER0dB@aX)-3J4(9YF&*PFbjS)%4eEA"5CA-ZE`d*4(9
  935. X`E'PMBA4P)#ej)%4eEA"5CA-ZD#!LHd0*EQ0XG@4PFhdL$3P%GA"XD@0KG'8J,AN
  936. XJ4(9YF&*PFbj[)#*l3daTBR*KFQPPFhdL$6Yi!!!"!!!!!8`!!!"-!!!!-N4eEA"
  937. X5CA08CA0d,QeKDf80)b!J)&4KFQGPG$SJ)#!J$8eKDf9'D@aP,Q4eEA!#!!!!9%9
  938. XB9%e38b!!!!!!!!!!!&4&@&408&-J!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!SS@
  939. X$J3!!!TX!!!&qBA*MD#!e,#!a16Jj)$%b1M)a1M3d$3e%G@e`8Q9c9'9cG#jM,Qm
  940. XJa#"%G@e`8Q9c9'9cG#jYB@YP)%4eEA"5CA08CA0d,Q-0#8-J4(9YF&*PFe4PFh3
  941. XZB`e%G@e`8Q9c,Q-ZEb$%)%4eEA"5CA08CA0d,QeKDf8J4(9YF&*PFbjM$3!!!%J
  942. X!#8e[EQ&ME`##!!-!#3!+Irm!$J!*!!Trr`#(!)%!JRrr!!B!"!!q!!m"d`*c!$i
  943. X!$`(6!R1LKBLX!!!#!J!!!J)!!!!!!3!!!!%!!!!"6!!!!%`!!!!b!#eT3!Kd!!!
  944. X!(!!b!!"08&05!!!!#J2Yrrm!!!!!!#jV*$e,:
  945. END_OF_FILE
  946. if test 1515 -ne `wc -c <'mac/dumpres/MakeFile.hqx'`; then
  947.     echo shar: \"'mac/dumpres/MakeFile.hqx'\" unpacked with wrong size!
  948. fi
  949. # end of 'mac/dumpres/MakeFile.hqx'
  950. fi
  951. if test -f 'mac/scrnmgr/ERRORS' -a "${1}" != "-c" ; then 
  952.   echo shar: Will not clobber existing file \"'mac/scrnmgr/ERRORS'\"
  953. else
  954. echo shar: Extracting \"'mac/scrnmgr/ERRORS'\" \(360 characters\)
  955. sed "s/^X//" >'mac/scrnmgr/ERRORS' <<'END_OF_FILE'
  956. XScrnMgr.c:
  957. X
  958. XWNETest(), the THINK C code always returns false, hence the code is not
  959. X    multifinder friendly
  960. XAdjustPortBounds(), the THINK C code does not work right for color and/or
  961. X    multiple monitors
  962. XGetScreenBounds(), the THINK C code does not handle multiple monitors
  963. X
  964. XScrnTest.ro:
  965. X
  966. Xdoesn't have the multifinder SIZE resource, hence not multifinder friendly
  967. X
  968. END_OF_FILE
  969. if test 360 -ne `wc -c <'mac/scrnmgr/ERRORS'`; then
  970.     echo shar: \"'mac/scrnmgr/ERRORS'\" unpacked with wrong size!
  971. fi
  972. # end of 'mac/scrnmgr/ERRORS'
  973. fi
  974. if test -f 'mac/scrnmgr/README' -a "${1}" != "-c" ; then 
  975.   echo shar: Will not clobber existing file \"'mac/scrnmgr/README'\"
  976. else
  977. echo shar: Extracting \"'mac/scrnmgr/README'\" \(187 characters\)
  978. sed "s/^X//" >'mac/scrnmgr/README' <<'END_OF_FILE'
  979. XThe *.r files are input files for MPW's Rez program.
  980. XThe *.ro files are input files for the old resource compiler distributed
  981. Xwith Think C.
  982. X
  983. XThe *.r files are better than the *.ro files.
  984. END_OF_FILE
  985. if test 187 -ne `wc -c <'mac/scrnmgr/README'`; then
  986.     echo shar: \"'mac/scrnmgr/README'\" unpacked with wrong size!
  987. fi
  988. # end of 'mac/scrnmgr/README'
  989. fi
  990. if test -f 'mac/scrnmgr/ScrnTest.ro' -a "${1}" != "-c" ; then 
  991.   echo shar: Will not clobber existing file \"'mac/scrnmgr/ScrnTest.ro'\"
  992. else
  993. echo shar: Extracting \"'mac/scrnmgr/ScrnTest.ro'\" \(1139 characters\)
  994. sed "s/^X//" >'mac/scrnmgr/ScrnTest.ro' <<'END_OF_FILE'
  995. XScrnTest.rsrc
  996. X????????
  997. X
  998. X*/*    Copyright (C) Curtis McCauley, 1989.  All rights reserved.
  999. X*
  1000. X*    You may copy this subroutine package freely, modify it as you desire,
  1001. X*    and distribute it at will, as long as the copyright notice in the source
  1002. X*    material is not disturbed, excepting that no one may use this package or
  1003. X*    any part of it for commercial purposes of any kind without the express
  1004. X*    written consent of its author. */
  1005. X*
  1006. X*#include "Types.r"
  1007. X
  1008. X
  1009. XINCLUDE ScrnMgr.rsrc
  1010. X
  1011. X
  1012. XTYPE STR
  1013. XAbout Title, 128
  1014. XAbout ScrnTest\C9
  1015. X
  1016. X
  1017. XTYPE DITL
  1018. XDummy Alert, 1024
  1019. X2
  1020. X
  1021. Xbutton
  1022. X88 224 108 284
  1023. XOK
  1024. X
  1025. XstaticText disabled
  1026. X8 64 72 288
  1027. XThis is a dummy alert.
  1028. X
  1029. X
  1030. XTYPE ALRT
  1031. XDummy Alert, 1024
  1032. X40 42 158 352
  1033. X1024
  1034. X5555
  1035. X
  1036. XTYPE MENU
  1037. XScrnTest, 133
  1038. XScrnTest
  1039. XX Out
  1040. XDummy Alert/A
  1041. X
  1042. X
  1043. XTYPE MENU
  1044. XScrnTest (No Keys), 233
  1045. XScrnTest
  1046. XX Out
  1047. XDummy Alert
  1048. X
  1049. X
  1050. X*resource 'SIZE' (-1) {
  1051. X*    dontSaveScreen,
  1052. X*    acceptSuspendResumeEvents,
  1053. X*    enableOptionSwitch,
  1054. X*    canBackground,
  1055. X*    multiFinderAware,
  1056. X*    backgroundAndForeground,
  1057. X*    dontGetFrontClicks,
  1058. X*    ignoreChildDiedEvents,
  1059. X*    not32BitCompatible,
  1060. X*    reserved,
  1061. X*    reserved,
  1062. X*    reserved,
  1063. X*    reserved,
  1064. X*    reserved,
  1065. X*    reserved,
  1066. X*    reserved,
  1067. X*    128 * 1024,
  1068. X*    128 * 1024
  1069. X*};
  1070. END_OF_FILE
  1071. if test 1139 -ne `wc -c <'mac/scrnmgr/ScrnTest.ro'`; then
  1072.     echo shar: \"'mac/scrnmgr/ScrnTest.ro'\" unpacked with wrong size!
  1073. fi
  1074. # end of 'mac/scrnmgr/ScrnTest.ro'
  1075. fi
  1076. if test -f 'misc/funckeys.h' -a "${1}" != "-c" ; then 
  1077.   echo shar: Will not clobber existing file \"'misc/funckeys.h'\"
  1078. else
  1079. echo shar: Extracting \"'misc/funckeys.h'\" \(1110 characters\)
  1080. sed "s/^X//" >'misc/funckeys.h' <<'END_OF_FILE'
  1081. X/* funckeys.h*/
  1082. X/* default mappings for SUN-3 function keys */
  1083. X
  1084. X#define FCHAR '['
  1085. X
  1086. Xchar keyarray[50];
  1087. Xchar rkeys[] = {
  1088. X    INPUT_ERROR,            /* nothing */
  1089. X    INPUT_ERROR,            /* r1 */
  1090. X    INPUT_ERROR,            /* r2 */
  1091. X    INPUT_ERROR,            /* r3 */
  1092. X    '7',            /* r4 */
  1093. X    '8',            /* r5 */
  1094. X    '9',            /* r6 */
  1095. X    '4',            /* r7 */
  1096. X    '5',            /* r8 */
  1097. X    '6',            /* r9 */
  1098. X    '1',            /* r10 */
  1099. X    '2',            /* r11 */
  1100. X    '3',            /* r12 */
  1101. X    INPUT_ERROR,            /* r13 */
  1102. X    INPUT_ERROR,            /* r14 */
  1103. X    '.'                /* r15 */
  1104. X};
  1105. X
  1106. Xchar lkeys[] = {
  1107. X    INPUT_ERROR,
  1108. X    INPUT_ERROR,            /* l1 */
  1109. X    INPUT_ERROR,            /* l2 */
  1110. X    INPUT_ERROR,            /* l3 */
  1111. X    INPUT_ERROR,            /* l4 */
  1112. X    INPUT_ERROR,            /* l5 */
  1113. X    INPUT_ERROR,            /* l6 */
  1114. X    INPUT_ERROR,            /* l7 */
  1115. X    INPUT_ERROR,            /* l8 */
  1116. X    INPUT_ERROR,            /* l9 */
  1117. X    INPUT_ERROR                /* l10 */
  1118. X};
  1119. X
  1120. Xchar fkeys[] = {
  1121. X    INPUT_ERROR,
  1122. X    INPUT_ERROR,            /* f1 */
  1123. X    INPUT_ERROR,            /* f2 */
  1124. X    INPUT_ERROR,            /* f3 */
  1125. X    INPUT_ERROR,            /* f4 */
  1126. X    INPUT_ERROR,            /* f5 */
  1127. X    INPUT_ERROR,            /* f6 */
  1128. X    INPUT_ERROR,            /* f7 */
  1129. X    INPUT_ERROR,            /* f8 */
  1130. X    INPUT_ERROR,            /* f9 */
  1131. X};
  1132. END_OF_FILE
  1133. if test 1110 -ne `wc -c <'misc/funckeys.h'`; then
  1134.     echo shar: \"'misc/funckeys.h'\" unpacked with wrong size!
  1135. fi
  1136. # end of 'misc/funckeys.h'
  1137. fi
  1138. if test -f 'misc/mabbrev' -a "${1}" != "-c" ; then 
  1139.   echo shar: Will not clobber existing file \"'misc/mabbrev'\"
  1140. else
  1141. echo shar: Extracting \"'misc/mabbrev'\" \(1326 characters\)
  1142. sed "s/^X//" >'misc/mabbrev' <<'END_OF_FILE'
  1143. Xglobal
  1144. X ESC-[-2-1-0-z    R3
  1145. X ESC-[-2-0-2-z    L8
  1146. X ESC-[-2-3-1-z    F5
  1147. X ESC-[-2-3-6-z    F8
  1148. X ESC-[-M-A    DoubleMouseLeft
  1149. X ESC-[-M-B    DoubleMouseMiddle
  1150. X ESC-[-M-C    DoubleMouseRight
  1151. X ESC-[-2-2-0-z    R13
  1152. X ESC-[-2-1-2-z    R5
  1153. X ESC-[-2-0-4-z    L9
  1154. X ESC-[-M-^A    MouseLeft
  1155. X ESC-[-2-3-3-z    F6
  1156. X ESC-[-M-^B    MouseMiddle
  1157. X ESC-[-2-2-5-z    F2
  1158. X ESC-[-M-^C    MouseRight
  1159. X ESC-[-2-0-9-z    R2
  1160. X ESC-[-M-^E    ShiftMouseLeft
  1161. X ESC-[-M-^F    ShiftMouseMiddle
  1162. X ESC-[-M-^G    ShiftMouseRight
  1163. X ESC-[-1-9-4-z    L2
  1164. X ESC-[-M-^I    CtrlMouseLeft
  1165. X ESC-[-M-^J    CtrlMouseMiddle
  1166. X ESC-[-M-^K    CtrlMouseRight
  1167. X ESC-[-2-0-1-z    L7
  1168. X ESC-[-M-^Q    MetaMouseLeft
  1169. X ESC-[-M-^R    MetaMouseMiddle
  1170. X ESC-[-M-^S    MetaMouseRight
  1171. X ESC-[-2-2-2-z    R15
  1172. X ESC-[-2-1-4-z    R7
  1173. X ESC-[-2-0-6-z    L10
  1174. X ESC-[-2-3-5-z    F7
  1175. X ESC-[-2-2-7-z    F4
  1176. X ESC-[-1-9-6-z    L4
  1177. X ESC-[-2-1-1-z    R4
  1178. X ESC-[-2-2-4-z    F1
  1179. X ESC-[-2-1-6-z    R9
  1180. X ESC-[-2-0-8-z    R1
  1181. X ESC-[-2-3-7-z    F9
  1182. X ESC-[-2-2-9-z    F4
  1183. X ESC-[-1-9-8-z    L5
  1184. X ESC-[-M-!    ModelineMouseLeft
  1185. X ESC-[-2-0-0-z    L6
  1186. X ESC-[-M-"    ModelineMouseMiddle
  1187. X ESC-[-M-#    ModelineMouseRight
  1188. X ESC-[-2-1-3-z    R6
  1189. X ESC-[-M-'    ShiftModelineMouseRight
  1190. X ESC-[-2-2-6-z    F3
  1191. X ESC-[-M-)    CtrlModelineMouseLeft
  1192. X ESC-[-A    R8
  1193. X ESC-[-2-1-8-z    R11
  1194. X ESC-[-B    R14
  1195. X ESC-[-C    R12
  1196. X ESC-[-D    R10
  1197. X ESC-[-1-9-5-z    L3
  1198. Xnormal-mode
  1199. Xtext-mode
  1200. Xelec-c
  1201. X main    main
  1202. X default    default
  1203. X do    do
  1204. X while    while
  1205. X else    else
  1206. X if    if
  1207. X switch    switch
  1208. X argc    argc
  1209. X for    for
  1210. X #d    #define
  1211. X #i    #include
  1212. X case    case
  1213. X
  1214. END_OF_FILE
  1215. if test 1326 -ne `wc -c <'misc/mabbrev'`; then
  1216.     echo shar: \"'misc/mabbrev'\" unpacked with wrong size!
  1217. fi
  1218. # end of 'misc/mabbrev'
  1219. fi
  1220. if test -f 'util/README' -a "${1}" != "-c" ; then 
  1221.   echo shar: Will not clobber existing file \"'util/README'\"
  1222. else
  1223. echo shar: Extracting \"'util/README'\" \(952 characters\)
  1224. sed "s/^X//" >'util/README' <<'END_OF_FILE'
  1225. Xmap.c is obsolete `print map to file' code from 4.87, superceded by
  1226. Xthe reduced map display, and the improved Where/Locate code
  1227. X
  1228. Xmc is a monster compiler by Joseph N Hall.  It would be nice if this
  1229. Xwas used to generate the monster.c file.  This would be more maintainable
  1230. Xthat the current method.
  1231. X
  1232. Xmcheck.inf: my and David J. Grabiner's ideas on monster consistency, and
  1233. Xchecks that should be added to the monster compiler
  1234. X
  1235. Xmonster.cng: a list of some of the changes to the monster.c file, is this
  1236. Xstill needed?
  1237. X
  1238. Xprintit.c: some code which will pretty print item/monster descriptions,
  1239. Xwritten by Carl Hommel
  1240. X
  1241. Xscores: two standalone programs for dealing with scorefiles, one to print
  1242. Xscorefiles, and another to delete a single record from a scorefile
  1243. X
  1244. Xshowmon.c: obsolete code from 4.87 for printing the monster dictionary,
  1245. Xsuperceded by the monster memories
  1246. X
  1247. Xweapons: a program which roughly indicates which weapons are best, written
  1248. Xby Wayne Schlitt
  1249. X
  1250. END_OF_FILE
  1251. if test 952 -ne `wc -c <'util/README'`; then
  1252.     echo shar: \"'util/README'\" unpacked with wrong size!
  1253. fi
  1254. # end of 'util/README'
  1255. fi
  1256. if test -f 'util/mc/ERRORS' -a "${1}" != "-c" ; then 
  1257.   echo shar: Will not clobber existing file \"'util/mc/ERRORS'\"
  1258. else
  1259. echo shar: Extracting \"'util/mc/ERRORS'\" \(334 characters\)
  1260. sed "s/^X//" >'util/mc/ERRORS' <<'END_OF_FILE'
  1261. Xbefore calling writecreatures in main(), should call a subroutine
  1262. Xverifycreatures, i.e. check to make sure no conflicting bits are set
  1263. X
  1264. Xwould prefer 'a' for cchar instead of "a"
  1265. X
  1266. Xprefer exp over xp
  1267. X
  1268. Xprefer 2d4 instead of 2 d 4
  1269. X
  1270. Xshould be able to specify none/void or similar for empty slots
  1271. X
  1272. Xneed descriptions for all of the monsters
  1273. END_OF_FILE
  1274. if test 334 -ne `wc -c <'util/mc/ERRORS'`; then
  1275.     echo shar: \"'util/mc/ERRORS'\" unpacked with wrong size!
  1276. fi
  1277. # end of 'util/mc/ERRORS'
  1278. fi
  1279. if test -f 'util/mc/Makefile' -a "${1}" != "-c" ; then 
  1280.   echo shar: Will not clobber existing file \"'util/mc/Makefile'\"
  1281. else
  1282. echo shar: Extracting \"'util/mc/Makefile'\" \(326 characters\)
  1283. sed "s/^X//" >'util/mc/Makefile' <<'END_OF_FILE'
  1284. XCFLAGS = -g
  1285. X
  1286. Xmc : creaturec.o symtab.o
  1287. X    cc creaturec.o symtab.o -o mc -lm
  1288. X
  1289. Xcreaturec.o : creaturec.y st.h generic.h
  1290. X    yacc creaturec.y
  1291. X    cc -c $(CFLAGS) y.tab.c
  1292. X    rm y.tab.c
  1293. X    mv y.tab.o creaturec.o
  1294. X
  1295. Xsymtab.o : symtab.c st.h generic.h
  1296. X    cc -c $(CFLAGS) symtab.c
  1297. X
  1298. Xlintout : symtab.c creaturec.y
  1299. X    lint symtab.c creaturec.y > lintout
  1300. END_OF_FILE
  1301. if test 326 -ne `wc -c <'util/mc/Makefile'`; then
  1302.     echo shar: \"'util/mc/Makefile'\" unpacked with wrong size!
  1303. fi
  1304. # end of 'util/mc/Makefile'
  1305. fi
  1306. if test -f 'util/mc/attribut.txt' -a "${1}" != "-c" ; then 
  1307.   echo shar: Will not clobber existing file \"'util/mc/attribut.txt'\"
  1308. else
  1309. echo shar: Extracting \"'util/mc/attribut.txt'\" \(1179 characters\)
  1310. sed "s/^X//" >'util/mc/attribut.txt' <<'END_OF_FILE'
  1311. X
  1312. XDEFENSE attributes:
  1313. X
  1314. X    dragon
  1315. X    animal
  1316. X    evil
  1317. X    undead
  1318. X    frost
  1319. X    fire
  1320. X    poison
  1321. X    acid
  1322. X    light
  1323. X    stone
  1324. X    bit_9
  1325. X    bit_10
  1326. X    no_sleep
  1327. X    infra
  1328. X    max_hp
  1329. X    bit_15
  1330. X
  1331. XMOVE attributes:
  1332. X
  1333. X    attack_only
  1334. X    move_normal
  1335. X    bit_2
  1336. X    random_20
  1337. X    random_40
  1338. X    random_75
  1339. X
  1340. XSPECIAL attributes:
  1341. X
  1342. X    invisible
  1343. X    open_door
  1344. X    phase
  1345. X    eats_other
  1346. X    picks_up
  1347. X    multiply
  1348. X    win_creature
  1349. X
  1350. XTREASURE attributes:
  1351. X
  1352. X    carry_obj
  1353. X    carry_gold
  1354. X    has_random_60
  1355. X    has_random_90
  1356. X    has_1d2_obj
  1357. X    has_2d2_obj
  1358. X    has_4d2_obj
  1359. X
  1360. XSPELL attributes:
  1361. X
  1362. X    tel_short
  1363. X    tel_long
  1364. X    tel_to
  1365. X    lght_wnd
  1366. X    ser_wnd
  1367. X    hold_per
  1368. X    blind
  1369. X    confuse
  1370. X    fear
  1371. X    summon_mon
  1372. X    summon_und
  1373. X    slow_per
  1374. X    drain_mana
  1375. X    bit_17
  1376. X    bit_18
  1377. X
  1378. XBREATH attributes:
  1379. X
  1380. X    light
  1381. X    gas
  1382. X    acid
  1383. X    frost
  1384. X    fire
  1385. X
  1386. XATTACK TYPES:
  1387. X
  1388. X    normal_damage
  1389. X    lose_str
  1390. X    confusion
  1391. X    cause_fear
  1392. X    fire_damage
  1393. X    acid_damage
  1394. X    cold_damage
  1395. X    lightning_damage
  1396. X    corrosion
  1397. X    cause_blindness
  1398. X    cause_paralysis
  1399. X    steal_money
  1400. X    steal_obj
  1401. X    poison
  1402. X    lose_dex
  1403. X    lose_con
  1404. X    lose_int
  1405. X    lose_wis
  1406. X    lose_exp
  1407. X    aggravation
  1408. X    disenchant
  1409. X    eat_food
  1410. X    eat_light
  1411. X    eat_charges
  1412. X    blank
  1413. X
  1414. XATTACK DESCRIPTIONS:
  1415. X
  1416. X    hits
  1417. X    bites
  1418. X    claws
  1419. X    stings
  1420. X    touches
  1421. X    kicks
  1422. X    gazes
  1423. X    breathes
  1424. X    spits
  1425. X    wails
  1426. X    embraces
  1427. X    crawls_on
  1428. X    releases_spores
  1429. X    begs_for_money
  1430. X    slimes
  1431. X    crushes
  1432. X    tramples
  1433. X    drools_on
  1434. X    insults
  1435. X    is_repelled
  1436. X
  1437. END_OF_FILE
  1438. if test 1179 -ne `wc -c <'util/mc/attribut.txt'`; then
  1439.     echo shar: \"'util/mc/attribut.txt'\" unpacked with wrong size!
  1440. fi
  1441. # end of 'util/mc/attribut.txt'
  1442. fi
  1443. if test -f 'util/mc/generic.h' -a "${1}" != "-c" ; then 
  1444.   echo shar: Will not clobber existing file \"'util/mc/generic.h'\"
  1445. else
  1446. echo shar: Extracting \"'util/mc/generic.h'\" \(1130 characters\)
  1447. sed "s/^X//" >'util/mc/generic.h' <<'END_OF_FILE'
  1448. X/* util/mc/generic.h: useful generic union type, used here and there
  1449. X *
  1450. X * Copyright (c) 1989 by Joseph Hall.
  1451. X * All rights reserved except as stated below.
  1452. X *
  1453. X * Jim Wilson and any other holders of copyright on substantial portions
  1454. X * of Moria are granted rights to use, modify, and distribute this program
  1455. X * as they see fit, so long as the terms of its use, modification and/or
  1456. X * distribution are no less restrictive than those applying to Moria,
  1457. X * version 5.0 or later, itself, and so long as this use is related to
  1458. X * the further development of Moria.
  1459. X *
  1460. X * Anyone having any other use in mind for this code should contact the
  1461. X * author at 4116 Brewster Dr., Raleigh NC 27606 (jnh@ecemwl.ncsu.edu).
  1462. X */
  1463. X
  1464. X#ifndef _GENERIC_H_
  1465. X#define _GENERIC_H_
  1466. X
  1467. Xtypedef union {
  1468. X    int    i;
  1469. X    long    l;
  1470. X    float    f;
  1471. X    double    d;
  1472. X    char    c;
  1473. X    char    *s;
  1474. X    char    **s_A;
  1475. X    char    *v;
  1476. X    } generic_t, *generic_Pt;
  1477. X
  1478. X#define GEN_TYPE_NONE 0
  1479. X#define GEN_TYPE_INT 1
  1480. X#define GEN_TYPE_LONG 2
  1481. X#define GEN_TYPE_FLOAT 3
  1482. X#define GEN_TYPE_DOUBLE 4
  1483. X#define GEN_TYPE_CHAR 5
  1484. X#define GEN_TYPE_STRING 6
  1485. X#define GEN_TYPE_STRING_A 7
  1486. X#define GEN_TYPE_VOID_PTR 8
  1487. X
  1488. X#endif /* _GENERIC_H_ */
  1489. END_OF_FILE
  1490. if test 1130 -ne `wc -c <'util/mc/generic.h'`; then
  1491.     echo shar: \"'util/mc/generic.h'\" unpacked with wrong size!
  1492. fi
  1493. # end of 'util/mc/generic.h'
  1494. fi
  1495. if test -f 'util/printit/Makefile' -a "${1}" != "-c" ; then 
  1496.   echo shar: Will not clobber existing file \"'util/printit/Makefile'\"
  1497. else
  1498. echo shar: Extracting \"'util/printit/Makefile'\" \(226 characters\)
  1499. sed "s/^X//" >'util/printit/Makefile' <<'END_OF_FILE'
  1500. XCFLAGS= -c
  1501. X
  1502. Xall:    pr_items pr_monst
  1503. X
  1504. Xpr_items:    pr_items.c treasure.o
  1505. X    cc pr_items.c treasure.o -o pr_items
  1506. X    pr_items > items
  1507. X
  1508. Xpr_monst:    pr_monst.c monsters.o
  1509. X    cc pr_monst.c monsters.o -o pr_monst
  1510. X    pr_monst > monsters
  1511. X
  1512. END_OF_FILE
  1513. if test 226 -ne `wc -c <'util/printit/Makefile'`; then
  1514.     echo shar: \"'util/printit/Makefile'\" unpacked with wrong size!
  1515. fi
  1516. # end of 'util/printit/Makefile'
  1517. fi
  1518. if test -f 'util/scores/Makefile' -a "${1}" != "-c" ; then 
  1519.   echo shar: Will not clobber existing file \"'util/scores/Makefile'\"
  1520. else
  1521. echo shar: Extracting \"'util/scores/Makefile'\" \(218 characters\)
  1522. sed "s/^X//" >'util/scores/Makefile' <<'END_OF_FILE'
  1523. Xall: prscore delscore
  1524. X
  1525. X# Use the player.c from ../../source
  1526. Xprscore: print.o player.o
  1527. X    cc -o prscore print.o player.o
  1528. X
  1529. Xdelscore: delete.o
  1530. X    cc -o delscore delete.o
  1531. X
  1532. Xclean:
  1533. X    rm delscore delete.o prscore print.o player.o
  1534. END_OF_FILE
  1535. if test 218 -ne `wc -c <'util/scores/Makefile'`; then
  1536.     echo shar: \"'util/scores/Makefile'\" unpacked with wrong size!
  1537. fi
  1538. # end of 'util/scores/Makefile'
  1539. fi
  1540. if test -f 'util/weapons/ERRORS' -a "${1}" != "-c" ; then 
  1541.   echo shar: Will not clobber existing file \"'util/weapons/ERRORS'\"
  1542. else
  1543. echo shar: Extracting \"'util/weapons/ERRORS'\" \(371 characters\)
  1544. sed "s/^X//" >'util/weapons/ERRORS' <<'END_OF_FILE'
  1545. Xthe program is a bit simplistic, as it does not consider monster AC,
  1546. Xand does not correctly handle weapons that are too heavy to wield properly
  1547. X
  1548. Xthe README, dragon.inf, and weapons.lst files are probably out of date,
  1549. Xand need to be updated
  1550. X
  1551. Xthe README file contains info that doesn't belong here, perhaps create a
  1552. Xhints file in the doc directory that contains this info?
  1553. END_OF_FILE
  1554. if test 371 -ne `wc -c <'util/weapons/ERRORS'`; then
  1555.     echo shar: \"'util/weapons/ERRORS'\" unpacked with wrong size!
  1556. fi
  1557. # end of 'util/weapons/ERRORS'
  1558. fi
  1559. if test -f 'util/weapons/Makefile' -a "${1}" != "-c" ; then 
  1560.   echo shar: Will not clobber existing file \"'util/weapons/Makefile'\"
  1561. else
  1562. echo shar: Extracting \"'util/weapons/Makefile'\" \(239 characters\)
  1563. sed "s/^X//" >'util/weapons/Makefile' <<'END_OF_FILE'
  1564. X
  1565. Xall:    calchits
  1566. X
  1567. X
  1568. Xcalchits:    calchits.c
  1569. X    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  1570. X
  1571. Xclean:
  1572. X    -rm -f >&/dev/null *.o
  1573. X
  1574. Xdist:
  1575. X    shar README Makefile calchits.c dragon.inf weapon.lst \
  1576. X         mkallwpn mkallwpn.lst highchar.in lowchar.in >calchit.shr
  1577. X
  1578. X
  1579. END_OF_FILE
  1580. if test 239 -ne `wc -c <'util/weapons/Makefile'`; then
  1581.     echo shar: \"'util/weapons/Makefile'\" unpacked with wrong size!
  1582. fi
  1583. # end of 'util/weapons/Makefile'
  1584. fi
  1585. if test -f 'util/weapons/highchar.in' -a "${1}" != "-c" ; then 
  1586.   echo shar: Will not clobber existing file \"'util/weapons/highchar.in'\"
  1587. else
  1588. echo shar: Extracting \"'util/weapons/highchar.in'\" \(858 characters\)
  1589. sed "s/^X//" >'util/weapons/highchar.in' <<'END_OF_FILE'
  1590. X36
  1591. X44
  1592. X160      1d8 10 10
  1593. X 95      1d9 10 10
  1594. X150      2d4 10 10
  1595. X140      3d4 10 10
  1596. X180      2d8 10 10
  1597. X170      3d4 10 10
  1598. X180      2d6 10 10
  1599. X160      2d6 10 10
  1600. X150      2d5 10 10
  1601. X 40      1d4 10 10
  1602. X110      1d7 10 10
  1603. X 20      1d4 10 10
  1604. X 30      1d5 10 10
  1605. X 15      1d4 10 10
  1606. X 12      1d4 10 10
  1607. X260      4d5 10 10
  1608. X170      1d10 10 10
  1609. X150      2d6 10 10
  1610. X 30      1d5 10 10
  1611. X190      2d6 10 10
  1612. X190      3d4 10 10
  1613. X 30      1d4 10 10
  1614. X120      3d4 10 10
  1615. X300      2d8 10 10
  1616. X130      1d10 10 10
  1617. X120      2d5 10 10
  1618. X120      2d4 10 10
  1619. X180      3d4 10 10
  1620. X150      2d6 10 10
  1621. X160      2d5 10 10
  1622. X 40      1d6 10 10
  1623. X 50      1d7 10 10
  1624. X 75      1d6 10 10
  1625. X 50      1d6 10 10
  1626. X100      1d7 10 10
  1627. X 80      1d6 10 10
  1628. X280      3d6 10 10
  1629. X200      3d6 10 10
  1630. X180      3d6 10 10
  1631. X240      4d5 10 10
  1632. X200      4d4 10 10
  1633. X280      4d6 10 10
  1634. X120      3d3 10 10
  1635. X100      1d3 10 10
  1636. X18/100 18/100
  1637. END_OF_FILE
  1638. if test 858 -ne `wc -c <'util/weapons/highchar.in'`; then
  1639.     echo shar: \"'util/weapons/highchar.in'\" unpacked with wrong size!
  1640. fi
  1641. # end of 'util/weapons/highchar.in'
  1642. fi
  1643. if test -f 'util/weapons/lowchar.in' -a "${1}" != "-c" ; then 
  1644.   echo shar: Will not clobber existing file \"'util/weapons/lowchar.in'\"
  1645. else
  1646. echo shar: Extracting \"'util/weapons/lowchar.in'\" \(762 characters\)
  1647. sed "s/^X//" >'util/weapons/lowchar.in' <<'END_OF_FILE'
  1648. X10
  1649. X44
  1650. X160      1d8 3 3
  1651. X 95      1d9 3 3
  1652. X150      2d4 3 3
  1653. X140      3d4 3 3
  1654. X180      2d8 3 3
  1655. X170      3d4 3 3
  1656. X180      2d6 3 3
  1657. X160      2d6 3 3
  1658. X150      2d5 3 3
  1659. X 40      1d4 3 3
  1660. X110      1d7 3 3
  1661. X 20      1d4 3 3
  1662. X 30      1d5 3 3
  1663. X 15      1d4 3 3
  1664. X 12      1d4 3 3
  1665. X260      4d5 3 3
  1666. X170      1d10 3 3
  1667. X150      2d6 3 3
  1668. X 30      1d5 3 3
  1669. X190      2d6 3 3
  1670. X190      3d4 3 3
  1671. X 30      1d4 3 3
  1672. X120      3d4 3 3
  1673. X300      2d8 3 3
  1674. X130      1d10 3 3
  1675. X120      2d5 3 3
  1676. X120      2d4 3 3
  1677. X180      3d4 3 3
  1678. X150      2d6 3 3
  1679. X160      2d5 3 3
  1680. X 40      1d6 3 3
  1681. X 50      1d7 3 3
  1682. X 75      1d6 3 3
  1683. X 50      1d6 3 3
  1684. X100      1d7 3 3
  1685. X 80      1d6 3 3
  1686. X280      3d6 3 3
  1687. X200      3d6 3 3
  1688. X180      3d6 3 3
  1689. X240      4d5 3 3
  1690. X200      4d4 3 3
  1691. X280      4d6 3 3
  1692. X120      3d3 3 3
  1693. X100      1d3 3 3
  1694. X11 15
  1695. END_OF_FILE
  1696. if test 762 -ne `wc -c <'util/weapons/lowchar.in'`; then
  1697.     echo shar: \"'util/weapons/lowchar.in'\" unpacked with wrong size!
  1698. fi
  1699. # end of 'util/weapons/lowchar.in'
  1700. fi
  1701. if test -f 'util/weapons/medchar.in' -a "${1}" != "-c" ; then 
  1702.   echo shar: Will not clobber existing file \"'util/weapons/medchar.in'\"
  1703. else
  1704. echo shar: Extracting \"'util/weapons/medchar.in'\" \(762 characters\)
  1705. sed "s/^X//" >'util/weapons/medchar.in' <<'END_OF_FILE'
  1706. X20
  1707. X44
  1708. X160      1d8 6 6
  1709. X 95      1d9 6 6
  1710. X150      2d4 6 6
  1711. X140      3d4 6 6
  1712. X180      2d8 6 6
  1713. X170      3d4 6 6
  1714. X180      2d6 6 6
  1715. X160      2d6 6 6
  1716. X150      2d5 6 6
  1717. X 40      1d4 6 6
  1718. X110      1d7 6 6
  1719. X 20      1d4 6 6
  1720. X 30      1d5 6 6
  1721. X 15      1d4 6 6
  1722. X 12      1d4 6 6
  1723. X260      4d5 6 6
  1724. X170      1d10 6 6
  1725. X150      2d6 6 6
  1726. X 30      1d5 6 6
  1727. X190      2d6 6 6
  1728. X190      3d4 6 6
  1729. X 30      1d4 6 6
  1730. X120      3d4 6 6
  1731. X300      2d8 6 6
  1732. X130      1d10 6 6
  1733. X120      2d5 6 6
  1734. X120      2d4 6 6
  1735. X180      3d4 6 6
  1736. X150      2d6 6 6
  1737. X160      2d5 6 6
  1738. X 40      1d6 6 6
  1739. X 50      1d7 6 6
  1740. X 75      1d6 6 6
  1741. X 50      1d6 6 6
  1742. X100      1d7 6 6
  1743. X 80      1d6 6 6
  1744. X280      3d6 6 6
  1745. X200      3d6 6 6
  1746. X180      3d6 6 6
  1747. X240      4d5 6 6
  1748. X200      4d4 6 6
  1749. X280      4d6 6 6
  1750. X120      3d3 6 6
  1751. X100      1d3 6 6
  1752. X18 18
  1753. END_OF_FILE
  1754. if test 762 -ne `wc -c <'util/weapons/medchar.in'`; then
  1755.     echo shar: \"'util/weapons/medchar.in'\" unpacked with wrong size!
  1756. fi
  1757. # end of 'util/weapons/medchar.in'
  1758. fi
  1759. if test -f 'util/weapons/mkallwpn' -a "${1}" != "-c" ; then 
  1760.   echo shar: Will not clobber existing file \"'util/weapons/mkallwpn'\"
  1761. else
  1762. echo shar: Extracting \"'util/weapons/mkallwpn'\" \(383 characters\)
  1763. sed "s/^X//" >'util/weapons/mkallwpn' <<'END_OF_FILE'
  1764. X#!/bin/sh
  1765. X
  1766. X#
  1767. X# this shell script will generate a formated list of what all weapons will
  1768. X# do
  1769. X
  1770. Xin=$1
  1771. Xout=`basename $in .in`.out
  1772. X
  1773. Xecho -n "          Name                | Mblow | Blows | wt ratio |" >$out
  1774. Xecho    " dam | w/ critical |" >>$out
  1775. X
  1776. Xcalchits <$in \ |
  1777. X   sed -n -e "2,45p" | cut -c15-17,19-30,35-45,49-53,57- | \
  1778. X   paste -d" " mkallwpn.lst - | sort -t"|" -bnr +5 -6 >>$out
  1779. X
  1780. END_OF_FILE
  1781. if test 383 -ne `wc -c <'util/weapons/mkallwpn'`; then
  1782.     echo shar: \"'util/weapons/mkallwpn'\" unpacked with wrong size!
  1783. fi
  1784. chmod +x 'util/weapons/mkallwpn'
  1785. # end of 'util/weapons/mkallwpn'
  1786. fi
  1787. if test -f 'vms/ERRORS' -a "${1}" != "-c" ; then 
  1788.   echo shar: Will not clobber existing file \"'vms/ERRORS'\"
  1789. else
  1790. echo shar: Extracting \"'vms/ERRORS'\" \(992 characters\)
  1791. sed "s/^X//" >'vms/ERRORS' <<'END_OF_FILE'
  1792. Xwhy does the VMS port need its own versions of the curses functions in
  1793. Xcbreak.c and getch.c?
  1794. X
  1795. Xfiles.c needs two restore_screen() calls to work properly?
  1796. X
  1797. Xclear_screen() in shell_out() after return from spawned process does
  1798. Xnot clear screen properly?
  1799. X
  1800. Xif <errno.h> is only included in files.c, and errno is defined in externs.h,
  1801. Xthen there is a 'psect' problem with errno?
  1802. X
  1803. XESCAPE is defined as Control-Z for compatibility with the VMS Moria versions,
  1804. Xbut this is not documented anywhere, note the define for ESCAPE in constant.h
  1805. X
  1806. X! and $ commands are aliases, but this is not documented
  1807. X
  1808. Xcurses puts vtxxx keypad into application mode, inkey() has some code
  1809. Xto convert keypad escape sequences back into numbers, this code may
  1810. Xcause strange behaviour if someone types a real ESCAPE character,
  1811. Xwhy does curses put the keypad in application mode in the first place?
  1812. X
  1813. Xrefresh() and clear() do not seem to work right, note the contorted code
  1814. Xin inkey() and clear_screen() to make these work right
  1815. END_OF_FILE
  1816. if test 992 -ne `wc -c <'vms/ERRORS'`; then
  1817.     echo shar: \"'vms/ERRORS'\" unpacked with wrong size!
  1818. fi
  1819. # end of 'vms/ERRORS'
  1820. fi
  1821. if test -f 'vms/README' -a "${1}" != "-c" ; then 
  1822.   echo shar: Will not clobber existing file \"'vms/README'\"
  1823. else
  1824. echo shar: Extracting \"'vms/README'\" \(1613 characters\)
  1825. sed "s/^X//" >'vms/README' <<'END_OF_FILE'
  1826. XNOTE: ESCAPE is defined as Control-Z in constant.h to be more like the
  1827. Xoriginal VMS moria, this is not documented anyplace, so whenever the
  1828. Xdoc/program says escape type control_Z instead.   If you don't like this,
  1829. Xdelete the define for escape in constant.h (but you will probably have to
  1830. Xhit escape twice for it to work).
  1831. X
  1832. XIf you're building Moria on a VAX/VMS system, you'll need a C compiler
  1833. Xthat understands the 'defined()' macro.
  1834. X
  1835. X    Notes on VMS files:
  1836. X
  1837. X    getch.c - single character terminal input and related routines.
  1838. X
  1839. X    uexit.c    - shell for the exit() call, to prevent -NOMSG messages
  1840. X        from appearing when exiting the Moria program.
  1841. X
  1842. X    makefile. - for use if you have a Make utility.  I use Todd
  1843. X        Aven's VMSMAKE (with the unix options)
  1844. X
  1845. X    moria.opt - the options file for linking Moria.  (You do a
  1846. X        'link moria/opt' command to link the program)
  1847. X
  1848. X    descrip.mms - builds moria if you have the mms utility. (You do a
  1849. X        'mms/description=descrip.mms' to build it.)
  1850. X
  1851. X    debug.mms - builds moria to run under debug if you have the mms
  1852. X        utility. (You do a 'mms/description=debug.mms' to build
  1853. X        the debugger version.)
  1854. X
  1855. X    make.com - for those without make or mms, does all the compiles
  1856. X        and the final link of the program.
  1857. X
  1858. X        scores.fdl - file intended for use with CONVERT/FDL; the score
  1859. X                file needs to be created empty, then converted using
  1860. X                scores.fdl.  This is because moria expects it to be
  1861. X                stream/LF format.
  1862. X
  1863. XIn the config.h file, the files that moria uses are defined to be
  1864. Xon the logical device 'moria:'.  This will need to be defined before
  1865. Xyou can run Moria.
  1866. END_OF_FILE
  1867. if test 1613 -ne `wc -c <'vms/README'`; then
  1868.     echo shar: \"'vms/README'\" unpacked with wrong size!
  1869. fi
  1870. # end of 'vms/README'
  1871. fi
  1872. if test -f 'vms/make.com' -a "${1}" != "-c" ; then 
  1873.   echo shar: Will not clobber existing file \"'vms/make.com'\"
  1874. else
  1875. echo shar: Extracting \"'vms/make.com'\" \(1228 characters\)
  1876. sed "s/^X//" >'vms/make.com' <<'END_OF_FILE'
  1877. X$ set verify
  1878. X$ cc create.c /obj=create.obj
  1879. X$ cc creature.c /obj=creature.obj
  1880. X$ cc death.c /obj=death.obj
  1881. X$ cc desc.c /obj=desc.obj
  1882. X$ cc dungeon.c /obj=dungeon.obj
  1883. X$ cc eat.c /obj=eat.obj
  1884. X$ cc files.c /obj=files.obj
  1885. X$ cc generate.c /obj=generate.obj
  1886. X$ cc help.c /obj=help.obj
  1887. X$ cc io.c /obj=io.obj
  1888. X$ cc magic.c /obj=magic.obj
  1889. X$ cc main.c /obj=main.obj
  1890. X$ cc misc1.c /obj=misc1.obj
  1891. X$ cc misc2.c /obj=misc2.obj
  1892. X$ cc misc3.c /obj=misc3.obj
  1893. X$ cc misc4.c /obj=misc4.obj
  1894. X$ cc monsters.c /obj=monsters.obj
  1895. X$ cc moria1.c /obj=moria1.obj
  1896. X$ cc moria2.c /obj=moria2.obj
  1897. X$ cc moria3.c /obj=moria3.obj
  1898. X$ cc moria4.c /obj=moria4.obj
  1899. X$ cc potions.c /obj=potions.obj
  1900. X$ cc player.c /obj=player.obj
  1901. X$ cc prayer.c /obj=prayer.obj
  1902. X$ cc recall.c /obj=recall.obj
  1903. X$ cc rnd.c /obj=rnd.obj
  1904. X$ cc save.c /obj=save.obj
  1905. X$ cc scrolls.c /obj=scrolls.obj
  1906. X$ cc sets.c /obj=sets.obj
  1907. X$ cc signals.c /obj=signals.obj
  1908. X$ cc spells.c /obj=spells.obj
  1909. X$ cc staffs.c /obj=staffs.obj
  1910. X$ cc store1.c /obj=store1.obj
  1911. X$ cc store2.c /obj=store2.obj
  1912. X$ cc tables.c /obj=tables.obj
  1913. X$ cc treasure.c /obj=treasure.obj
  1914. X$ cc variable.c /obj=variable.obj
  1915. X$ cc wands.c /obj=wands.obj
  1916. X$ cc wizard.c /obj=wizard.obj
  1917. X$ cc getch.c /obj=getch.obj
  1918. X$ cc uexit.c /obj=uexit.obj
  1919. X$ link moria/opt
  1920. END_OF_FILE
  1921. if test 1228 -ne `wc -c <'vms/make.com'`; then
  1922.     echo shar: \"'vms/make.com'\" unpacked with wrong size!
  1923. fi
  1924. # end of 'vms/make.com'
  1925. fi
  1926. if test -f 'vms/scores.fdl' -a "${1}" != "-c" ; then 
  1927.   echo shar: Will not clobber existing file \"'vms/scores.fdl'\"
  1928. else
  1929. echo shar: Extracting \"'vms/scores.fdl'\" \(567 characters\)
  1930. sed "s/^X//" >'vms/scores.fdl' <<'END_OF_FILE'
  1931. XIDENT   "12-JUL-1990 11:05:15   VAX-11 FDL Editor"
  1932. X
  1933. XSYSTEM
  1934. X        SOURCE                  "VAX/VMS"
  1935. X
  1936. XFILE
  1937. X        BEST_TRY_CONTIGUOUS     no
  1938. X        CLUSTER_SIZE            3
  1939. X        CONTIGUOUS              no
  1940. X        EXTENSION               0
  1941. X        FILE_MONITORING         no
  1942. X        GLOBAL_BUFFER_COUNT     0
  1943. X        ORGANIZATION            sequential
  1944. X        PROTECTION              (system:RWED, owner:RWED, group:, world:RW)
  1945. X
  1946. XRECORD
  1947. X        BLOCK_SPAN              yes
  1948. X        CARRIAGE_CONTROL        carriage_return
  1949. X        FORMAT                  stream_LF
  1950. END_OF_FILE
  1951. if test 567 -ne `wc -c <'vms/scores.fdl'`; then
  1952.     echo shar: \"'vms/scores.fdl'\" unpacked with wrong size!
  1953. fi
  1954. # end of 'vms/scores.fdl'
  1955. fi
  1956. if test -f 'vms/uexit.c' -a "${1}" != "-c" ; then 
  1957.   echo shar: Will not clobber existing file \"'vms/uexit.c'\"
  1958. else
  1959. echo shar: Extracting \"'vms/uexit.c'\" \(806 characters\)
  1960. sed "s/^X//" >'vms/uexit.c' <<'END_OF_FILE'
  1961. X/* vms/uexit.c: special exit command, to exit cleanly from VMS program.
  1962. X
  1963. X   Copyright (c) 1990-92 Joshua Delahunty, James E. Wilson
  1964. X
  1965. X   This software may be copied and distributed for educational, research, and
  1966. X   not for profit purposes provided that this copyright and statement are
  1967. X   included in all such copies. */
  1968. X
  1969. X/*    Unix programs usually return 0 for "good execution",
  1970. X    and 1 for "some problem occured."  In VMS, we WANT the
  1971. X    program to return a 1, or else we get an ugly
  1972. X    "%NONAME-W-NOMSG, Message number 00000000"
  1973. X    message upon image exit (yeech!).
  1974. X
  1975. X    So, we convert 0 exit codes to 1's, leaving all others alone.  */
  1976. X
  1977. Xvoid uexit(exitcode)
  1978. Xint exitcode;
  1979. X{
  1980. X    if (exitcode == 0)    /* On Unix, clean, on VMS, yeech! */
  1981. X        exit(1);    /* converted... */
  1982. X    else
  1983. X        exit(exitcode); /* returned unscathed... */
  1984. X}
  1985. END_OF_FILE
  1986. if test 806 -ne `wc -c <'vms/uexit.c'`; then
  1987.     echo shar: \"'vms/uexit.c'\" unpacked with wrong size!
  1988. fi
  1989. # end of 'vms/uexit.c'
  1990. fi
  1991. echo shar: End of archive 39 \(of 39\).
  1992. cp /dev/null ark39isdone
  1993. MISSING=""
  1994. for I in 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 ; do
  1995.     if test ! -f ark${I}isdone ; then
  1996.     MISSING="${MISSING} ${I}"
  1997.     fi
  1998. done
  1999. if test "${MISSING}" = "" ; then
  2000.     echo You have unpacked all 39 archives.
  2001.     echo "Now run "bldfiles.sh" to build split files"
  2002.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2003. else
  2004.     echo You still need to unpack the following archives:
  2005.     echo "        " ${MISSING}
  2006. fi
  2007. ##  End of shell archive.
  2008. exit 0
  2009.