home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / volume18 / hobbit / part01 < prev    next >
Encoding:
Internet Message Format  |  1993-07-11  |  35.5 KB

  1. Path: uunet!news.tek.com!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v18i009:  hobbit - MS-DOS adventure using BAT-files, Part01/01
  5. Date: 10 Jul 1993 20:49:06 GMT
  6. Organization: Tektronix, Inc, Redmond, OR, USA
  7. Lines: 1152
  8. Approved: billr@saab.CNA.TEK.COM
  9. Message-ID: <21na02$oro@ying.cna.tek.com>
  10. NNTP-Posting-Host: saab.cna.tek.com
  11. Xref: uunet comp.sources.games:1809
  12.  
  13. Submitted-by: d91frera@odalix.ida.liu.se (FrEdRiK rAmSbErG (wiilllDDDDCCCCaaarrd))
  14. Posting-number: Volume 18, Issue 9
  15. Archive-name: hobbit/part01
  16. Environment: MS-DOS
  17.  
  18. [From the author...]
  19. [[This is a small shareware adventure game, as far as I know the first one to be
  20. written entirely in MS-DOS, using BAT-files. If the game is started from
  21. AUTOEXEC.BAT, it can be played at any time while in DOS. It has no memory-resident parts.]]
  22.  
  23. #! /bin/sh
  24. # This is a shell archive.  Remove anything before this line, then unpack
  25. # it by saving it into a file and typing "sh file".  To overwrite existing
  26. # files, type "sh file -c".  You can also feed this as standard input via
  27. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  28. # will see the following message at the end:
  29. #        "End of archive 1 (of 1)."
  30. # Contents:  MANIFEST README.TXT ask.bat clue.bat cut.bat drop.bat
  31. #   e.bat eat.bat enter.bat examine.bat get.bat go.bat hint.bat i.bat
  32. #   inventor.bat kill.bat l.bat look.bat n.bat quit.bat restart.bat
  33. #   s.bat show.bat take.bat talk.bat talkhelp.bat w.bat wait.bat x.bat
  34. # Wrapped by billr@saab on Sat Jul 10 13:47:43 1993
  35. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  36. if test -f 'MANIFEST' -a "${1}" != "-c" ; then 
  37.   echo shar: Will not clobber existing file \"'MANIFEST'\"
  38. else
  39. echo shar: Extracting \"'MANIFEST'\" \(1013 characters\)
  40. sed "s/^X//" >'MANIFEST' <<'END_OF_FILE'
  41. X   File Name        Archive #    Description
  42. X-----------------------------------------------------------
  43. X MANIFEST                   1    This shipping list
  44. X README.TXT                 1    
  45. X ask.bat                    1    
  46. X clue.bat                   1    
  47. X cut.bat                    1    
  48. X drop.bat                   1    
  49. X e.bat                      1    
  50. X eat.bat                    1    
  51. X enter.bat                  1    
  52. X examine.bat                1    
  53. X get.bat                    1    
  54. X go.bat                     1    
  55. X hint.bat                   1    
  56. X i.bat                      1    
  57. X inventor.bat               1    
  58. X kill.bat                   1    
  59. X l.bat                      1    
  60. X look.bat                   1    
  61. X n.bat                      1    
  62. X quit.bat                   1    
  63. X restart.bat                1    
  64. X s.bat                      1    
  65. X show.bat                   1    
  66. X take.bat                   1    
  67. X talk.bat                   1    
  68. X talkhelp.bat               1    
  69. X w.bat                      1    
  70. X wait.bat                   1    
  71. X x.bat                      1    
  72. END_OF_FILE
  73. if test 1013 -ne `wc -c <'MANIFEST'`; then
  74.     echo shar: \"'MANIFEST'\" unpacked with wrong size!
  75. fi
  76. # end of 'MANIFEST'
  77. fi
  78. if test -f 'README.TXT' -a "${1}" != "-c" ; then 
  79.   echo shar: Will not clobber existing file \"'README.TXT'\"
  80. else
  81. echo shar: Extracting \"'README.TXT'\" \(3440 characters\)
  82. sed "s/^X//" >'README.TXT' <<'END_OF_FILE'
  83. X                                                         Monday 19.April 1993
  84. X                         
  85. X                         
  86. X                         Hobbit - The True Story
  87. X
  88. X                by Fredrik Ramsberg and Johan Berntsson
  89. X
  90. X
  91. XThis is a small interactive adventure game for PC's using MS-DOS 5.0. The
  92. Xgame is in fact, in its entirety, written in MS-DOS. After unpacking the 
  93. Xgame in a directory of its own, this is what you have to do to be able to
  94. Xplay it:
  95. X
  96. X               * Include the name of the directory in the PATH variable
  97. X                 declaration in your AUTOEXEC.BAT.
  98. X
  99. X               * Type RESTART at a DOS prompt, or better yet, put it on the 
  100. X                 last line in your AUTOEXEC.BAT.
  101. X
  102. XAfter having done this, reboot the machine and the game will be available at
  103. Xall times. Please note: You can interrupt gameplay at any time, to do
  104. Xsomething else in DOS. As long as you don't turn off or reset the computer,
  105. Xthe game will always be ready for continuation. If you have trouble running
  106. Xthe game, make sure that you have DOS version 5.0 and that you have enough
  107. Xmemory space reserved for environment variables. The space reserved can be
  108. Xextended using the MS-DOS command "command /e:nnnnn".
  109. X
  110. X
  111. X
  112. X                                Story
  113. X
  114. XThis game is about what really happened to Bilbo Baggins on his famous
  115. Xadventure. The story, in somewhat corrupt versions, has been told in a book -
  116. XThe Hobbit by JRR Tolkien, and several computer games, among them Hobbit.
  117. XYou play the part of Bilbo, and your goal is to journey to Smaug, the great
  118. Xred dragon in the land beyond the river, and return with treasures. For an
  119. Xassistant you have Thorin the dwarf and Gandalf the powerful wizard. They
  120. Xwill do everything within their power to guide you and to help you. Well,
  121. Xalmost everything, as long as they don't have to get into any trouble
  122. Xthemselves. Or get wet, for that matter. Or cold.
  123. X
  124. XSample sentences that the parser will recognize:
  125. X(Note that everything must be typed in lower case.)
  126. X
  127. X>take chest
  128. X>show gandalf chest
  129. X>show the chest to gandalf
  130. X>drop the chest
  131. X>inventory
  132. X>i  (Short for inventory)
  133. X>get the chest
  134. X>ask gandalf about the spell
  135. X>talk to thorin about chest
  136. X>examine chest
  137. X>x chest (Short for examine chest)
  138. X>hint
  139. X>clue
  140. X>look
  141. X>l (Short for look)
  142. X>go east
  143. X>e (Short for go east)
  144. X>enter the chest
  145. X>wait
  146. X>restart
  147. X>quit
  148. X
  149. X
  150. X                                General info
  151. X
  152. XThis game is a shareware product. You are absolutely free to distribute it
  153. Xto anyone, as long as you don't take a profit from it. However, anyone who
  154. Xenjoys it and decides to keep it should pay a small fee to the authors. This
  155. Xfee will encourage them to write more shareware programs in the future.
  156. XAlso, paying the fee is helping to establish this form of distribution, as
  157. Xother programmers may start using it if it works properly.
  158. X
  159. XThe shareware fee for this program is set to US $10. This may be sent in any
  160. Xway you like to the address below. Thank you!
  161. X
  162. X                           Mr. Fredrik Ramsberg
  163. X                               Ryds Alle 17:214
  164. X                             S-582 51  LINKOPING
  165. X                               SWEDEN
  166. X
  167. XIf you have any questions or comments, feel free to contact me using the
  168. Xabove address, or the e-mail address below:
  169. X
  170. X                               d91frera@und.ida.liu.se
  171. X
  172. XThank you for playing this game!
  173. END_OF_FILE
  174. if test 3440 -ne `wc -c <'README.TXT'`; then
  175.     echo shar: \"'README.TXT'\" unpacked with wrong size!
  176. fi
  177. # end of 'README.TXT'
  178. fi
  179. if test -f 'ask.bat' -a "${1}" != "-c" ; then 
  180.   echo shar: Will not clobber existing file \"'ask.bat'\"
  181. else
  182. echo shar: Extracting \"'ask.bat'\" \(94 characters\)
  183. sed "s/^X//" >'ask.bat' <<'END_OF_FILE'
  184. X@echo off
  185. Xif "%3" == "the" ask %1 %2 %4
  186. Xif "%2" == "about" talkhelp %1 %3 
  187. Xtalkhelp %1 %2
  188. END_OF_FILE
  189. if test 94 -ne `wc -c <'ask.bat'`; then
  190.     echo shar: \"'ask.bat'\" unpacked with wrong size!
  191. fi
  192. # end of 'ask.bat'
  193. fi
  194. if test -f 'clue.bat' -a "${1}" != "-c" ; then 
  195.   echo shar: Will not clobber existing file \"'clue.bat'\"
  196. else
  197. echo shar: Extracting \"'clue.bat'\" \(249 characters\)
  198. sed "s/^X//" >'clue.bat' <<'END_OF_FILE'
  199. X@echo off
  200. Xif "%&room%" == "clearing" goto clearing
  201. X
  202. Xecho Try examining things!
  203. Xgoto exit
  204. X
  205. X:clearing
  206. Xecho Trolls are not known to stand sunlight very well. It may be wise to wait a
  207. Xecho while before confronting them.
  208. Xgoto exit
  209. X
  210. X:exit
  211. X
  212. X
  213. END_OF_FILE
  214. if test 249 -ne `wc -c <'clue.bat'`; then
  215.     echo shar: \"'clue.bat'\" unpacked with wrong size!
  216. fi
  217. # end of 'clue.bat'
  218. fi
  219. if test -f 'cut.bat' -a "${1}" != "-c" ; then 
  220.   echo shar: Will not clobber existing file \"'cut.bat'\"
  221. else
  222. echo shar: Extracting \"'cut.bat'\" \(899 characters\)
  223. sed "s/^X//" >'cut.bat' <<'END_OF_FILE'
  224. X@echo off
  225. Xif "%1" == "the" cut %2
  226. Xif "%1" == "cigar" goto cutcigar
  227. Xif "%1" == "dragon" kill %1
  228. Xif "%1" == "thorin" kill %1
  229. Xif "%1" == "elrond" kill %1
  230. Xif "%1" == "thorin" kill %1
  231. Xif "%1" == "troll" kill %1
  232. Xif "%1" == "trolls" kill %1
  233. Xecho You can't cut that!
  234. Xgoto exit
  235. X
  236. X:cutcigar
  237. Xif not "%&room%" == "den" goto cantseecig
  238. Xif not "%&o6loc%" == "me" goto havntsword
  239. Xecho You run towards the mighty dragon and cut off his cigar. The dragon
  240. Xecho exclaims, "Hey, what are you doing!". You explain that the cigar will
  241. Xecho be easier to smoke now, and after some experimenting, Smaug agrees with you.
  242. Xecho He trades your sword for a treasure and offers you transport to Rivendell.
  243. Xset &o7loc=me
  244. Xset &room=rivendell
  245. Xset &o6loc=den
  246. Xecho.
  247. Xpause
  248. Xlook
  249. X:cantseecig
  250. Xecho There are no cigars around.
  251. Xgoto exit
  252. X:havntsword
  253. Xecho You havn't got anything to cut with.
  254. Xgoto exit
  255. X
  256. X:exit
  257. END_OF_FILE
  258. if test 899 -ne `wc -c <'cut.bat'`; then
  259.     echo shar: \"'cut.bat'\" unpacked with wrong size!
  260. fi
  261. # end of 'cut.bat'
  262. fi
  263. if test -f 'drop.bat' -a "${1}" != "-c" ; then 
  264.   echo shar: Will not clobber existing file \"'drop.bat'\"
  265. else
  266. echo shar: Extracting \"'drop.bat'\" \(765 characters\)
  267. sed "s/^X//" >'drop.bat' <<'END_OF_FILE'
  268. X@echo off
  269. Xif "%1"=="torch" goto drop-torch
  270. Xif "%1"=="lunch" goto drop-lunch
  271. Xif "%1"=="map" goto drop-map
  272. Xif "%1"=="sword" goto drop-sword
  273. Xif "%1"=="treasure" goto drop-treasure
  274. Xif "%1" == "the" drop %2
  275. Xgoto not-held
  276. X
  277. X:drop-torch
  278. Xif not "%&o1loc%"=="me" goto not-held
  279. Xset &o1loc=%&room%
  280. Xgoto dropped
  281. X
  282. X:drop-lunch
  283. Xif not "%&o2loc%"=="me" goto not-held
  284. Xset &o2loc=%&room%
  285. Xgoto dropped
  286. X
  287. X:drop-map
  288. Xif not "%&o3loc%"=="me" goto not-held
  289. Xset &o3loc=%&room%
  290. Xgoto dropped
  291. X
  292. X:drop-sword
  293. Xif not "%&o6loc%"=="me" goto not-held
  294. Xset &o6loc=%&room%
  295. Xgoto dropped
  296. X
  297. X:drop-treasure
  298. Xif not "%&o7loc%"=="me" goto not-held
  299. Xset &o7loc=%&room%
  300. Xgoto dropped
  301. X
  302. X:not-held
  303. Xecho You are not holding that.
  304. Xgoto exit
  305. X
  306. X:dropped
  307. Xecho You drop the %1.
  308. X
  309. X:exit
  310. END_OF_FILE
  311. if test 765 -ne `wc -c <'drop.bat'`; then
  312.     echo shar: \"'drop.bat'\" unpacked with wrong size!
  313. fi
  314. # end of 'drop.bat'
  315. fi
  316. if test -f 'e.bat' -a "${1}" != "-c" ; then 
  317.   echo shar: Will not clobber existing file \"'e.bat'\"
  318. else
  319. echo shar: Extracting \"'e.bat'\" \(10 characters\)
  320. sed "s/^X//" >'e.bat' <<'END_OF_FILE'
  321. X@go east
  322. END_OF_FILE
  323. if test 10 -ne `wc -c <'e.bat'`; then
  324.     echo shar: \"'e.bat'\" unpacked with wrong size!
  325. fi
  326. # end of 'e.bat'
  327. fi
  328. if test -f 'eat.bat' -a "${1}" != "-c" ; then 
  329.   echo shar: Will not clobber existing file \"'eat.bat'\"
  330. else
  331. echo shar: Extracting \"'eat.bat'\" \(340 characters\)
  332. sed "s/^X//" >'eat.bat' <<'END_OF_FILE'
  333. X@echo off
  334. Xif "%1" == "the" eat %2
  335. Xif "%1" == "lunch" goto eatlunch
  336. Xif "%1" == "" echo What do you want to eat?
  337. Xif not "%1" == "" echo You can't eat that!
  338. Xgoto exit
  339. X
  340. X:eatlunch
  341. Xif not "%&o2loc%" == "me" goto donthave
  342. Xecho You feel much refreshed.
  343. Xset &o2loc=nil
  344. Xgoto exit
  345. X
  346. X:donthave
  347. Xecho But you don't have any lunch!
  348. X
  349. X:exit
  350. END_OF_FILE
  351. if test 340 -ne `wc -c <'eat.bat'`; then
  352.     echo shar: \"'eat.bat'\" unpacked with wrong size!
  353. fi
  354. # end of 'eat.bat'
  355. fi
  356. if test -f 'enter.bat' -a "${1}" != "-c" ; then 
  357.   echo shar: Will not clobber existing file \"'enter.bat'\"
  358. else
  359. echo shar: Extracting \"'enter.bat'\" \(33 characters\)
  360. sed "s/^X//" >'enter.bat' <<'END_OF_FILE'
  361. X@if "%1" == "the" go %2
  362. X@go %1
  363. END_OF_FILE
  364. if test 33 -ne `wc -c <'enter.bat'`; then
  365.     echo shar: \"'enter.bat'\" unpacked with wrong size!
  366. fi
  367. # end of 'enter.bat'
  368. fi
  369. if test -f 'examine.bat' -a "${1}" != "-c" ; then 
  370.   echo shar: Will not clobber existing file \"'examine.bat'\"
  371. else
  372. echo shar: Extracting \"'examine.bat'\" \(4103 characters\)
  373. sed "s/^X//" >'examine.bat' <<'END_OF_FILE'
  374. X@echo off
  375. Xif "%1" == "" look
  376. Xif "%1" == "torch" goto torch
  377. Xif "%1" == "lunch" goto lunch
  378. Xif "%1" == "map" goto map
  379. Xif "%1" == "chest" goto chest
  380. Xif "%1" == "elrond" goto elrond
  381. Xif "%1" == "gandalf" goto gandalf
  382. Xif "%1" == "thorin" goto thorin
  383. Xif "%1" == "smaug" goto smaug
  384. Xif "%1" == "dragon" goto smaug
  385. Xif "%1" == "treasure" goto treasure
  386. Xif "%1" == "paintings" goto paintings
  387. Xif "%1" == "painting" goto paintings
  388. Xif "%1" == "cigar" goto cigar
  389. Xif "%1" == "the" examine %2
  390. Xecho There is nothing special about the %1.
  391. Xgoto exit
  392. X
  393. X:torch
  394. Xif not "%&o1loc%" == "me" if not "%&o1loc%" == "%&room%" goto cantsee
  395. Xecho It is currently providing light.
  396. Xgoto exit
  397. X
  398. X:lunch
  399. Xif not "%&o2loc%" == "me" if not "%&o2loc%" == "%&room%" goto cantsee
  400. Xecho It's edible.
  401. Xgoto exit
  402. X
  403. X:map
  404. Xif "%&o3loc%" == "gandalf" if "%&room%" == "home" goto ganhasmap
  405. Xif not "%&o3loc%" == "me" if not "%&o3loc%" == "%&room%" goto cantsee
  406. Xecho The curious map must obviously have been drawn by hand, at great effort. 
  407. Xecho It shows the mysterious surroundings of Rivendell, home of the elves.
  408. Xgoto exit
  409. X:ganhasmap
  410. Xecho Gandalf has it. You should ask him about it. Maybe he doesn't need it anyway.
  411. Xgoto exit
  412. X
  413. X:chest
  414. Xif not "%&o4loc%" == "me" if not "%&o4loc%" == "%&room%" goto cantsee
  415. Xecho It's a nice piece of wooden workmanship.
  416. Xif "%&o1loc%" == "chest" echo There's a burning torch inside it. You decide to pick it up.
  417. Xif "%&o1loc%" == "chest" set &o1loc=me
  418. Xgoto exit
  419. X
  420. X:gandalf
  421. Xif not "%&room%" == "home" goto gancantsee
  422. Xecho Gandalf, the old magician, is still working with his new spell.
  423. Xif "%&o3loc%" == "gandalf" echo He is carrying a map.
  424. Xgoto exit
  425. X:gancantsee
  426. Xecho Gandalf isn't here!
  427. Xgoto exit
  428. X
  429. X:elrond
  430. Xif not "%&room%" == "rivendell" goto elrcantsee
  431. Xecho Elrond has turned pretty nasty lately. Better not mess with him, considering
  432. Xecho his plans to enslave all Hobbits. 
  433. Xgoto exit
  434. X:gancantsee
  435. Xecho Elrond isn't here!
  436. Xgoto exit
  437. X
  438. X:thorin
  439. Xecho Thorin, your old friend, is no longer the proud dwarf he once was. All the
  440. Xecho drugs have turned him into a drooling good-for-nothing idiot. The only reason
  441. Xecho that he has come along is to get more treasures for drugs, as always.
  442. X
  443. Xif "%&room%" == "home" echo He doesn't seem to happy about leaving the house.
  444. Xif "%&room%" == "rivendell" echo Thorin takes another beer from the fridge. Elrond slaps him.
  445. Xif "%&room%" == "den" echo Thorin is negotiating with the dragon about taking some rare drugs home,
  446. Xif "%&room%" == "den" echo provided that Smaug gets to keep your body.
  447. Xif "%&room%" == "woods" echo Thorin says "We're lost! Abandon all hope. We'll never get out of here alive!".
  448. Xif "%&room%" == "clearing" if "%&stoned%" == "NO" echo Thorin participates in the chanting.
  449. Xif "%&room%" == "clearing" if "%&stoned%" == "YES" echo Thorin is talking to the trolls. He doesn't notice that they are dead. 
  450. Xif "%&room%" == "cave" echo Thorin is writing a song. I shall call it "Let's roll another one", he remarks.
  451. Xgoto exit
  452. X
  453. X:smaug
  454. Xif not "%&room%" == "den" goto smacantsee
  455. Xecho Smaug's red dragon body is filling the eastern part of the cave. As he can't
  456. Xecho get out of the cave anymore, he seems to have settled with just lying here,
  457. Xecho eating any adventurers that drop by. Every now and then he enjoys a big
  458. Xecho cigar, but he obviously doesn't know quite how to do it right. The cigar in
  459. Xecho his mouth hasn't been cut properly. Smaug coughs, but luckily you're out of
  460. Xecho the deadly range.
  461. Xgoto exit
  462. X:smacantsee
  463. Xecho Smaug is not around, as far as I can see.
  464. Xgoto exit
  465. X
  466. X:treasure
  467. Xif not "%&o7loc%" == "me" if not "%&o7loc%" == "%&room%" goto cantsee
  468. Xecho It is just the kind of treasure you'd expect to find in a dragon's den. It does
  469. Xecho seem mighty valuable.
  470. Xgoto exit
  471. X
  472. X:paintings
  473. Xif not "%&room%" == "den" goto cantsee
  474. Xecho Among the paintings you recognize works of Picasso, da Vinci and Rembrandt. 
  475. Xgoto exit
  476. X
  477. X:cigar
  478. Xif not "%&room%" == "den" goto cantsee
  479. Xecho The cigar doesn't seem to be properly cut.
  480. Xgoto exit
  481. X
  482. X:cantsee
  483. Xecho It is nowhere to be seen.
  484. X
  485. X:exit
  486. END_OF_FILE
  487. if test 4103 -ne `wc -c <'examine.bat'`; then
  488.     echo shar: \"'examine.bat'\" unpacked with wrong size!
  489. fi
  490. # end of 'examine.bat'
  491. fi
  492. if test -f 'get.bat' -a "${1}" != "-c" ; then 
  493.   echo shar: Will not clobber existing file \"'get.bat'\"
  494. else
  495. echo shar: Extracting \"'get.bat'\" \(16 characters\)
  496. sed "s/^X//" >'get.bat' <<'END_OF_FILE'
  497. X@take %1 %2 %3
  498. END_OF_FILE
  499. if test 16 -ne `wc -c <'get.bat'`; then
  500.     echo shar: \"'get.bat'\" unpacked with wrong size!
  501. fi
  502. # end of 'get.bat'
  503. fi
  504. if test -f 'go.bat' -a "${1}" != "-c" ; then 
  505.   echo shar: Will not clobber existing file \"'go.bat'\"
  506. else
  507. echo shar: Extracting \"'go.bat'\" \(3679 characters\)
  508. sed "s/^X//" >'go.bat' <<'END_OF_FILE'
  509. X@echo off
  510. X
  511. Xif "%&room%" == "woods" goto woods
  512. Xif "%&room%" == "cave" goto cavern
  513. Xif "%&room%" == "clearing" goto clearing
  514. Xif "%&room%" == "home" goto home
  515. Xif "%&room%" == "rivendell" goto rivendell
  516. Xif "%&room%" == "den" goto den
  517. X
  518. Xgoto error
  519. X
  520. X
  521. X:woods
  522. Xif "%1" == "raft" if "%&o5loc%" == "woods" goto rwoods
  523. Xif "%1" == "south" goto gowoods
  524. Xif "%1" == "west" goto gowoods
  525. Xif "%1" == "north" goto gorivendell
  526. Xgoto fail
  527. X:rwoods
  528. Xecho Not knowing what is about to happen, you fearlessly enter the raft. You follow
  529. Xecho the river downstream for a while, as you don't have any means of manouvering
  530. Xecho the little dingy. When hitting land, you are cold and starving. You soon find
  531. Xecho a trail leading to a little village. The natives feed you and treat you well,
  532. Xecho so you are soon healthy enough to go hunting on your own. On one of your trips
  533. Xecho up into the mountains, you are suddenly brought back to your original mission,
  534. Xecho as you step on a loose rock, which gives way. You slide down a long tunnel
  535. Xecho which has many bends and little light. Eventually you leave the tunnel, only
  536. Xecho to come into...
  537. Xset &o5loc=nil
  538. Xset &room=den
  539. Xecho.
  540. Xpause
  541. Xcall look
  542. Xecho Thorin, whom you haven't seen since you were in the forest together, enters
  543. Xecho from a side door, singing about peace. He greets you with a laugh.
  544. Xgoto exit
  545. X
  546. X:cavern
  547. Xif "%1" == "south" goto goclearing
  548. Xgoto fail
  549. X
  550. X:clearing
  551. Xif "%1" == "east" goto gorivendell
  552. Xif "%1" == "north" goto nclearing
  553. Xif "%1" == "west" goto gohome
  554. Xgoto fail
  555. X:nclearing
  556. Xif "%&stoned%" == "YES" goto gocave
  557. Xecho The trolls won't let you.
  558. Xgoto exit
  559. X
  560. X:home
  561. Xif "%1" == "east" goto goclearing
  562. Xgoto fail
  563. X
  564. X:rivendell
  565. Xif "%1" == "north" goto nrivendell
  566. Xif "%1" == "west" goto wrivendell
  567. Xgoto fail
  568. X:wrivendell
  569. Xif not "%&o2loc%"=="me" goto goclearing
  570. Xecho Just as you leave, Elrond grabs your lunch. He looks annoyed.
  571. Xset &o2loc=rivendell
  572. Xgoto goclearing
  573. X:nrivendell
  574. Xif not "%&o2loc%"=="me" goto nrivcont
  575. Xecho Just as you leave, Elrond grabs your lunch. He looks annoyed.
  576. Xset &o2loc=rivendell
  577. X:nrivcont
  578. Xif "%&o3loc%" == "me" goto gowodfromriv
  579. Xecho You stagger off into the surrounding hills, but find nothing of interest.
  580. Xecho Disappointed you return back to Elrond's party.
  581. Xgoto exit
  582. X:gowodfromriv
  583. Xecho Using the curious map that Gandalf gave you, you soon find your way to the
  584. Xecho pleasant lush of the woods.
  585. Xset &room=woods
  586. Xlook
  587. X
  588. X:den
  589. Xgoto fail
  590. X
  591. X:gohome
  592. Xset &room=home
  593. Xif not "%&o7loc%"=="me" goto success
  594. Xecho You go west.
  595. Xcall look
  596. Xecho.
  597. Xecho As you enter your home again, Gandalf comes to his feet. He comes forward, as
  598. Xecho if to greet and congratulate you, but instead he asks, "Did you bring any
  599. Xecho tobacco?". You decide to do what you should have done a long time ago. You
  600. Xecho show the old wizard to the door, and kindly ask him to leave. Thorin follows
  601. Xecho Gandalf out through the door.
  602. Xecho.
  603. Xecho Without any wizards or dwarves pestering you all the time, your life gets very
  604. Xecho pleasant, and with the treasure it stays that way. You have won!!!
  605. Xecho.
  606. Xpause
  607. Xrestart
  608. X
  609. X:goclearing
  610. Xset &room=clearing
  611. Xgoto success
  612. X:gocave
  613. Xset &room=cave
  614. Xgoto success
  615. X:gorivendell
  616. Xset &room=rivendell
  617. Xgoto success
  618. X:gowoods
  619. Xset &room=woods
  620. Xgoto success
  621. X:goden
  622. Xset &room=den
  623. Xgoto success
  624. X
  625. X
  626. X:error
  627. Xecho Error: Undefined room!
  628. Xgoto exit
  629. X
  630. X:fail
  631. Xecho You can't go %1.
  632. Xgoto exit
  633. X
  634. X:success
  635. Xecho You walk %1.
  636. Xcall look
  637. Xif "%1" == "north" echo Thorin is already here.
  638. Xif "%1" == "south" echo Thorin comes running after you.
  639. Xif "%1" == "east" echo Thorin enters from the west.
  640. Xif "%1" == "west" echo Thorin follows your trail.
  641. X
  642. X:exit
  643. END_OF_FILE
  644. if test 3679 -ne `wc -c <'go.bat'`; then
  645.     echo shar: \"'go.bat'\" unpacked with wrong size!
  646. fi
  647. # end of 'go.bat'
  648. fi
  649. if test -f 'hint.bat' -a "${1}" != "-c" ; then 
  650.   echo shar: Will not clobber existing file \"'hint.bat'\"
  651. else
  652. echo shar: Extracting \"'hint.bat'\" \(13 characters\)
  653. sed "s/^X//" >'hint.bat' <<'END_OF_FILE'
  654. X@clue %1 %2
  655. END_OF_FILE
  656. if test 13 -ne `wc -c <'hint.bat'`; then
  657.     echo shar: \"'hint.bat'\" unpacked with wrong size!
  658. fi
  659. # end of 'hint.bat'
  660. fi
  661. if test -f 'i.bat' -a "${1}" != "-c" ; then 
  662.   echo shar: Will not clobber existing file \"'i.bat'\"
  663. else
  664. echo shar: Extracting \"'i.bat'\" \(14 characters\)
  665. sed "s/^X//" >'i.bat' <<'END_OF_FILE'
  666. X@inventory
  667. X
  668. END_OF_FILE
  669. if test 14 -ne `wc -c <'i.bat'`; then
  670.     echo shar: \"'i.bat'\" unpacked with wrong size!
  671. fi
  672. # end of 'i.bat'
  673. fi
  674. if test -f 'inventor.bat' -a "${1}" != "-c" ; then 
  675.   echo shar: Will not clobber existing file \"'inventor.bat'\"
  676. else
  677. echo shar: Extracting \"'inventor.bat'\" \(217 characters\)
  678. sed "s/^X//" >'inventor.bat' <<'END_OF_FILE'
  679. X@echo off
  680. Xecho You are carrying:
  681. Xif "%&o1loc%"=="me" echo A Torch
  682. Xif "%&o2loc%"=="me" echo Some Lunch
  683. Xif "%&o3loc%"=="me" echo A Curious Map
  684. Xif "%&o6loc%"=="me" echo A Sword
  685. Xif "%&o7loc%"=="me" echo A Treasure
  686. END_OF_FILE
  687. if test 217 -ne `wc -c <'inventor.bat'`; then
  688.     echo shar: \"'inventor.bat'\" unpacked with wrong size!
  689. fi
  690. # end of 'inventor.bat'
  691. fi
  692. if test -f 'kill.bat' -a "${1}" != "-c" ; then 
  693.   echo shar: Will not clobber existing file \"'kill.bat'\"
  694. else
  695. echo shar: Extracting \"'kill.bat'\" \(89 characters\)
  696. sed "s/^X//" >'kill.bat' <<'END_OF_FILE'
  697. X@echo off
  698. Xecho Violence is not very likely to solve your problems. Better stay calm.
  699. X
  700. END_OF_FILE
  701. if test 89 -ne `wc -c <'kill.bat'`; then
  702.     echo shar: \"'kill.bat'\" unpacked with wrong size!
  703. fi
  704. # end of 'kill.bat'
  705. fi
  706. if test -f 'l.bat' -a "${1}" != "-c" ; then 
  707.   echo shar: Will not clobber existing file \"'l.bat'\"
  708. else
  709. echo shar: Extracting \"'l.bat'\" \(9 characters\)
  710. sed "s/^X//" >'l.bat' <<'END_OF_FILE'
  711. X@look
  712. X
  713. END_OF_FILE
  714. if test 9 -ne `wc -c <'l.bat'`; then
  715.     echo shar: \"'l.bat'\" unpacked with wrong size!
  716. fi
  717. # end of 'l.bat'
  718. fi
  719. if test -f 'look.bat' -a "${1}" != "-c" ; then 
  720.   echo shar: Will not clobber existing file \"'look.bat'\"
  721. else
  722. echo shar: Extracting \"'look.bat'\" \(2768 characters\)
  723. sed "s/^X//" >'look.bat' <<'END_OF_FILE'
  724. X@echo off
  725. Xecho.
  726. Xif "%&room%" == "woods" goto woods
  727. Xif "%&room%" == "cave" goto cavern
  728. Xif "%&room%" == "clearing" goto clearing
  729. Xif "%&room%" == "home" goto home
  730. Xif "%&room%" == "rivendell" goto rivendell
  731. Xif "%&room%" == "den" goto den
  732. X
  733. Xgoto error
  734. X
  735. X:woods
  736. Xecho Deep Forest
  737. Xecho You are standing in the deep forest. Paths lead off in all directions but east,
  738. Xecho where a mighty river is floating by. You feel lost and hungry.
  739. Xecho Thorin sits down and starts singing about drugs. He offers you a joint.
  740. Xgoto exit
  741. X
  742. X:cavern
  743. Xecho Trolls' Cave
  744. Xif "%&o1loc%"=="cavern" goto cavelight
  745. Xif "%&o1loc%"=="me" goto cavelight
  746. Xecho It's dark. You can't see anything.
  747. Xgoto lastexit
  748. X:cavelight
  749. Xecho You are in a hardly even lit cavern with a doorway leading south.
  750. Xecho Thorin is mumbling to himself and fails to notice your presence.
  751. Xgoto exit
  752. X
  753. X:clearing
  754. Xecho Trolls' Clearing
  755. Xecho You are standing in a vast clearing, with paths leading off to the east and 
  756. Xecho west. A yellow brick road leads north. Trolls are standing all around you,
  757. Xecho fiercely watching every move of your limbs.
  758. Xif "%&stoned%"=="YES" echo The trolls seem to be stoned. They probably don't like the sunlight.
  759. Xif not "%&stoned%"=="YES" echo The trolls are chanting ancient rhymes. They tend to do that just before dawn.
  760. Xgoto exit
  761. X
  762. X:home
  763. Xecho Tunnel Like Hall
  764. Xecho You are in your comfortable tunnel like hall. Infact, it's just a dirty hole in
  765. Xecho the ground, but to you it's home. Gandalf is working on a nasty spell. There
  766. Xecho is a round, green door set in the eastern wall.
  767. Xgoto exit
  768. X
  769. X:rivendell
  770. Xecho Rivendell
  771. Xecho This is Rivendell, the last homelike house. At least, that's the name of it.
  772. Xecho Elrond is sitting at a round table together with his generals, discussing his 
  773. Xecho plans for a coming conquest and enslavement of the Hobbits. Paths lead off to
  774. Xecho the north and west.
  775. Xecho Elrond hesitatingly offers you some food. He gives your fairly thick legs a
  776. Xecho greedy look. He drools.
  777. Xecho Thorin announces: "If you're attacking the Hobbits, count me in!"
  778. Xset &o2loc=me
  779. Xgoto exit
  780. X
  781. X:den
  782. Xecho Smaug's Den
  783. Xecho You are in a great cave. Gold and jewelry cover the floor. Precious paintings
  784. Xecho are hanging on all the walls. Smaug is lying on a big heap of silver bars,
  785. Xecho smoking a huge cigar. He looks at you and yawns loudly. 
  786. Xgoto exit
  787. X
  788. X:error
  789. Xecho Error: Undefined room!
  790. X
  791. X:exit
  792. Xecho You can see:
  793. Xif "%&o1loc%"=="%&room%" echo A Torch
  794. Xif "%&o2loc%"=="%&room%" echo Some Lunch
  795. Xif "%&o3loc%"=="%&room%" echo A Curious Map
  796. Xif "%&o4loc%"=="%&room%" echo A Wooden Chest
  797. Xif "%&o5loc%"=="%&room%" echo A Raft
  798. Xif "%&o6loc%"=="%&room%" echo A Sword
  799. Xif "%&o7loc%"=="%&room%" echo A Treasure
  800. Xecho Thorin, the dwarf.
  801. X:lastexit
  802. END_OF_FILE
  803. if test 2768 -ne `wc -c <'look.bat'`; then
  804.     echo shar: \"'look.bat'\" unpacked with wrong size!
  805. fi
  806. # end of 'look.bat'
  807. fi
  808. if test -f 'n.bat' -a "${1}" != "-c" ; then 
  809.   echo shar: Will not clobber existing file \"'n.bat'\"
  810. else
  811. echo shar: Extracting \"'n.bat'\" \(11 characters\)
  812. sed "s/^X//" >'n.bat' <<'END_OF_FILE'
  813. X@go north
  814. END_OF_FILE
  815. if test 11 -ne `wc -c <'n.bat'`; then
  816.     echo shar: \"'n.bat'\" unpacked with wrong size!
  817. fi
  818. # end of 'n.bat'
  819. fi
  820. if test -f 'quit.bat' -a "${1}" != "-c" ; then 
  821.   echo shar: Will not clobber existing file \"'quit.bat'\"
  822. else
  823. echo shar: Extracting \"'quit.bat'\" \(10 characters\)
  824. sed "s/^X//" >'quit.bat' <<'END_OF_FILE'
  825. X@restart
  826. END_OF_FILE
  827. if test 10 -ne `wc -c <'quit.bat'`; then
  828.     echo shar: \"'quit.bat'\" unpacked with wrong size!
  829. fi
  830. # end of 'quit.bat'
  831. fi
  832. if test -f 'restart.bat' -a "${1}" != "-c" ; then 
  833.   echo shar: Will not clobber existing file \"'restart.bat'\"
  834. else
  835. echo shar: Extracting \"'restart.bat'\" \(424 characters\)
  836. sed "s/^X//" >'restart.bat' <<'END_OF_FILE'
  837. X@echo off
  838. Xrem ***  The first known attempt at MS-DOS adventuring    ***
  839. Xrem *** Launched by Johbe and Frera on 30:th of March '93 ***
  840. X
  841. Xset &room=home
  842. Xset &o1loc=chest
  843. Xset &o2loc=rivendell
  844. Xset &o3loc=gandalf
  845. Xset &o4loc=home
  846. Xset &o5loc=woods
  847. Xset &o6loc=cave
  848. Xset &o7loc=den
  849. Xset &stoned=NO
  850. X
  851. Xecho Hobbit - The True Story.
  852. Xecho.
  853. Xecho An MS-DOS adventure released by Milbus Software (tm) 1993.
  854. Xecho.
  855. Xcall look
  856. X
  857. END_OF_FILE
  858. if test 424 -ne `wc -c <'restart.bat'`; then
  859.     echo shar: \"'restart.bat'\" unpacked with wrong size!
  860. fi
  861. # end of 'restart.bat'
  862. fi
  863. if test -f 's.bat' -a "${1}" != "-c" ; then 
  864.   echo shar: Will not clobber existing file \"'s.bat'\"
  865. else
  866. echo shar: Extracting \"'s.bat'\" \(13 characters\)
  867. sed "s/^X//" >'s.bat' <<'END_OF_FILE'
  868. X@go south
  869. X
  870. END_OF_FILE
  871. if test 13 -ne `wc -c <'s.bat'`; then
  872.     echo shar: \"'s.bat'\" unpacked with wrong size!
  873. fi
  874. # end of 's.bat'
  875. fi
  876. if test -f 'show.bat' -a "${1}" != "-c" ; then 
  877.   echo shar: Will not clobber existing file \"'show.bat'\"
  878. else
  879. echo shar: Extracting \"'show.bat'\" \(181 characters\)
  880. sed "s/^X//" >'show.bat' <<'END_OF_FILE'
  881. X@echo off
  882. Xrem show (the) map to elrond
  883. Xrem show elrond (the) map
  884. X
  885. Xif "%1" == "the" show %2 %3 %4
  886. Xif "%2" == "the" show %1 %3
  887. X
  888. Xif "%2" == "to" talkhelp %3 %1
  889. Xtalkhelp %1 %2
  890. END_OF_FILE
  891. if test 181 -ne `wc -c <'show.bat'`; then
  892.     echo shar: \"'show.bat'\" unpacked with wrong size!
  893. fi
  894. # end of 'show.bat'
  895. fi
  896. if test -f 'take.bat' -a "${1}" != "-c" ; then 
  897.   echo shar: Will not clobber existing file \"'take.bat'\"
  898. else
  899. echo shar: Extracting \"'take.bat'\" \(1273 characters\)
  900. sed "s/^X//" >'take.bat' <<'END_OF_FILE'
  901. X@echo off
  902. Xif "%1"=="torch" goto take-torch
  903. Xif "%1"=="lunch" goto take-lunch
  904. Xif "%1"=="map" goto take-map
  905. Xif "%1"=="chest" goto take-chest
  906. Xif "%1"=="raft" goto take-raft
  907. Xif "%1"=="sword" goto take-sword
  908. Xif "%1"=="treasure" goto take-treasure
  909. Xif "%1" == "the" take %2
  910. Xgoto cant-take
  911. X
  912. X:take-torch
  913. Xif "%&o1loc%"=="me" goto already-got
  914. Xif not "%&o1loc%"=="%&room%" goto cant-see
  915. Xset &o1loc=me
  916. Xgoto taken
  917. X
  918. X:take-lunch
  919. Xif "%&o2loc%"=="me" goto already-got 
  920. Xif not "%&o2loc%"=="%&room%" goto cant-see
  921. Xset &o2loc=me
  922. Xgoto taken
  923. X
  924. X:take-map
  925. Xif "%&o3loc%"=="me" goto already-got
  926. Xif not "%&o3loc%"=="%&room%" goto cant-see
  927. Xset &o3loc=me
  928. Xgoto taken
  929. X
  930. X:take-chest
  931. Xif not "%&o4loc%"=="%&room%" goto cant-see
  932. Xgoto cant-take
  933. X
  934. X:take-raft
  935. Xif not "%&o5loc%"=="%&room%" goto cant-see
  936. Xgoto cant-take
  937. X
  938. X:take-sword
  939. Xif "%&o6loc%"=="me" goto already-got
  940. Xif not "%&o6loc%"=="%&room%" goto cant-see
  941. Xset &o6loc=me
  942. Xgoto taken
  943. X
  944. X:take-treasure
  945. Xif "%&o7loc%"=="me" goto already-got
  946. Xif not "%&o7loc%"=="%&room%" goto cant-see
  947. Xset &o7loc=me
  948. Xgoto taken
  949. X
  950. X:already-got
  951. Xecho You are already carrying that.
  952. Xgoto exit
  953. X
  954. X:cant-take
  955. Xecho You can't take that.
  956. Xgoto exit
  957. X
  958. X:cant-see
  959. Xecho You can't see it here.
  960. Xgoto exit
  961. X
  962. X:taken
  963. Xecho You take the %1.
  964. X
  965. X:exit
  966. END_OF_FILE
  967. if test 1273 -ne `wc -c <'take.bat'`; then
  968.     echo shar: \"'take.bat'\" unpacked with wrong size!
  969. fi
  970. # end of 'take.bat'
  971. fi
  972. if test -f 'talk.bat' -a "${1}" != "-c" ; then 
  973.   echo shar: Will not clobber existing file \"'talk.bat'\"
  974. else
  975. echo shar: Extracting \"'talk.bat'\" \(443 characters\)
  976. sed "s/^X//" >'talk.bat' <<'END_OF_FILE'
  977. X@echo off
  978. Xrem talk to gandalf about (the) map
  979. Xrem talk gandalf (the) map
  980. Xrem talk to gandalf 
  981. X
  982. Xif "%4" == "the" talk %1 %2 %3 %5 %6
  983. Xif "%2" == "the" talk %1 %3 %4 %5 %6
  984. X
  985. Xif not "%5" == "" goto toomany
  986. Xif "%1" == "to" if "%3" == "about" talkhelp %2 %4
  987. Xif "%1" == "to" talkhelp %2
  988. Xif "%3" == "" talkhelp %1 %2
  989. X
  990. Xecho I don't understand that sentence.
  991. Xgoto exit
  992. X
  993. X:toomany
  994. Xecho There are too many words in that sentence.
  995. X
  996. X:exit
  997. END_OF_FILE
  998. if test 443 -ne `wc -c <'talk.bat'`; then
  999.     echo shar: \"'talk.bat'\" unpacked with wrong size!
  1000. fi
  1001. # end of 'talk.bat'
  1002. fi
  1003. if test -f 'talkhelp.bat' -a "${1}" != "-c" ; then 
  1004.   echo shar: Will not clobber existing file \"'talkhelp.bat'\"
  1005. else
  1006. echo shar: Extracting \"'talkhelp.bat'\" \(3293 characters\)
  1007. sed "s/^X//" >'talkhelp.bat' <<'END_OF_FILE'
  1008. X@echo off
  1009. Xif "%1" == "gandalf" goto talkgandalf
  1010. Xif "%1" == "elrond" goto talkelrond
  1011. Xif "%1" == "thorin" goto talkthorin
  1012. X
  1013. Xgoto notalk
  1014. X
  1015. X:talkgandalf
  1016. Xif not "%&room%"=="home" goto cantsee
  1017. Xif "%2" == "map" goto ganmap
  1018. Xif "%2" == "spell" goto ganspell
  1019. Xif "%2" == "hoboff" goto ganhoboff
  1020. Xecho "Yes, that's probably so", he says.
  1021. Xgoto exit
  1022. X:ganmap
  1023. Xif not "%&o3loc%"=="gandalf" goto gan2map
  1024. Xecho "Oh, that map. There is absolutely nothing special about it at all. I guess
  1025. Xecho you could have it, if you want it.", Gandalf declares and hands you the map. 
  1026. Xset &o3loc=me
  1027. Xgoto exit
  1028. X:gan2map
  1029. Xecho Gandalf yells, "I already gave it to you, didn't I!!!".
  1030. Xgoto exit
  1031. X:ganspell
  1032. Xecho "This will be a great spell. I shall name it 'HOBOFF', no doubt.", Gandalf
  1033. Xecho chuckles.
  1034. Xgoto exit
  1035. X:ganhoboff
  1036. Xecho Gandalf gives you a mean smile, showing all his teeth. "Any Hobbit of my
  1037. Xecho choice will be turned into a pile of dirt.", he laughs, "Only a few minor
  1038. Xecho adjustments left, and it will produce a great fertilizer.". His eyes open
  1039. Xecho wide as he reaches the end of the sentence. He then looks at you for a good
  1040. Xecho fifteen seconds before he slowly turns away.
  1041. Xgoto exit
  1042. X
  1043. X:talkelrond
  1044. Xif not "%&room%"=="rivendell" goto cantsee
  1045. Xif "%2" == "map" goto elmap
  1046. Xif "%2" == "plans" goto elplans
  1047. Xecho Elrond laughs at your silly question. He pats your head.
  1048. Xgoto exit
  1049. X:elmap
  1050. Xif not "%&o3loc%" == "rivendell" if not "%&o3loc%" == "me" goto elnomap
  1051. Xecho "That's a fine map you've got there. We wouldn't want anything to HAPPEN to it,
  1052. Xecho now would we?", Elrond hisses. He continues; "Whatever you do, don't show it to
  1053. Xecho that crazy dwarf!".
  1054. Xgoto exit
  1055. X:elnomap
  1056. Xecho "What map are you talking about, you little prat? You must be delirious!",
  1057. Xecho Elrond snarls. He slaps you in the face.
  1058. Xgoto exit
  1059. X:elplans
  1060. Xecho "They are top secret. If you reveal anything you're dead meat, pipsqueak!",
  1061. Xecho Elrond whispers. He look as though he meant it.
  1062. Xgoto exit
  1063. X
  1064. X:talkthorin
  1065. Xif "%2" == "map" goto thormap
  1066. Xif "%&room%" == "clearing" echo Thorin gets a serious look on his face. "Don't push your luck, kid!", he says.
  1067. Xif "%&room%" == "woods" echo "Have you ever tried picking up your teeth with broken fingers?",Thorin replies.
  1068. Xif "%&room%" == "cave" echo "I'm tired of killing for money. Let's go home!", Thorin sighs.
  1069. Xif "%&room%" == "rivendell" echo Thorin is too absorbed by Elronds plans to pay attention.
  1070. Xif "%&room%" == "den" echo "Hell, this is a fortune!", Thorin states as he walks around the cave.
  1071. Xif "%&room%" == "home" echo "Did your mom ever talk to you about death?", Thorin asks you.
  1072. Xgoto exit
  1073. X:thormap
  1074. Xif not "%&o3loc%" == "%&room%" if not "%&o3loc%" == "me" goto thornomap
  1075. Xecho Thorin takes a quick look at the map. His eyes widen in rage as he reaches for
  1076. Xecho his battle axe. "It was you all the time, wasn't it?!", he cries out. With one
  1077. Xecho well placed blow he cleaves your skull. All is dark...
  1078. Xecho.
  1079. Xpause
  1080. Xrestart
  1081. X:thornomap
  1082. Xecho Thorin eyes you suspiciously. "Don't try any tricks, boy. We both know that
  1083. Xecho there is no map here, now don't we?", he asks. He doesn't seem too sure about
  1084. Xecho it himself.
  1085. Xgoto exit
  1086. X
  1087. X
  1088. X:cantsee
  1089. Xecho You can't see him here.
  1090. Xgoto exit
  1091. X
  1092. X:notalk
  1093. Xecho Action speaks louder than words!
  1094. X
  1095. X:exit
  1096. END_OF_FILE
  1097. if test 3293 -ne `wc -c <'talkhelp.bat'`; then
  1098.     echo shar: \"'talkhelp.bat'\" unpacked with wrong size!
  1099. fi
  1100. # end of 'talkhelp.bat'
  1101. fi
  1102. if test -f 'w.bat' -a "${1}" != "-c" ; then 
  1103.   echo shar: Will not clobber existing file \"'w.bat'\"
  1104. else
  1105. echo shar: Extracting \"'w.bat'\" \(10 characters\)
  1106. sed "s/^X//" >'w.bat' <<'END_OF_FILE'
  1107. X@go west
  1108. END_OF_FILE
  1109. if test 10 -ne `wc -c <'w.bat'`; then
  1110.     echo shar: \"'w.bat'\" unpacked with wrong size!
  1111. fi
  1112. # end of 'w.bat'
  1113. fi
  1114. if test -f 'wait.bat' -a "${1}" != "-c" ; then 
  1115.   echo shar: Will not clobber existing file \"'wait.bat'\"
  1116. else
  1117. echo shar: Extracting \"'wait.bat'\" \(242 characters\)
  1118. sed "s/^X//" >'wait.bat' <<'END_OF_FILE'
  1119. X@echo off
  1120. X
  1121. Xif "%&room%" == "clearing" if not "%&stoned%" == "YES" goto wait-clearing
  1122. Xecho Time passes...
  1123. Xgoto exit
  1124. X
  1125. X:wait-clearing
  1126. Xecho A new day dawns. The trolls seem rather surprised, and rigid with fear.
  1127. Xset &stoned=YES
  1128. X
  1129. X:exit
  1130. END_OF_FILE
  1131. if test 242 -ne `wc -c <'wait.bat'`; then
  1132.     echo shar: \"'wait.bat'\" unpacked with wrong size!
  1133. fi
  1134. # end of 'wait.bat'
  1135. fi
  1136. if test -f 'x.bat' -a "${1}" != "-c" ; then 
  1137.   echo shar: Will not clobber existing file \"'x.bat'\"
  1138. else
  1139. echo shar: Extracting \"'x.bat'\" \(16 characters\)
  1140. sed "s/^X//" >'x.bat' <<'END_OF_FILE'
  1141. X@examine %1 %2
  1142. END_OF_FILE
  1143. if test 16 -ne `wc -c <'x.bat'`; then
  1144.     echo shar: \"'x.bat'\" unpacked with wrong size!
  1145. fi
  1146. # end of 'x.bat'
  1147. fi
  1148. echo shar: End of archive 1 \(of 1\).
  1149. cp /dev/null ark1isdone
  1150. MISSING=""
  1151. for I in 1 ; do
  1152.     if test ! -f ark${I}isdone ; then
  1153.     MISSING="${MISSING} ${I}"
  1154.     fi
  1155. done
  1156. if test "${MISSING}" = "" ; then
  1157.     echo You have the archive.
  1158.     rm -f ark[1-9]isdone
  1159. else
  1160.     echo You still need to unpack the following archives:
  1161.     echo "        " ${MISSING}
  1162. fi
  1163. ##  End of shell archive.
  1164. exit 0
  1165.