home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
lockdoor.zip
/
READ.ME
< prev
Wrap
Text File
|
1995-06-06
|
5KB
|
88 lines
Multi-Line Door Control Setup
-----------------------------
by Jerry Jones
Fidonet 1:3602/212
Many SysOps that operate two line systems or even that operate a single
line system but use the local session for their personal login access might
like to have a single-user door "locked" when another user is already in that
door. In addition, it would be nice to let the other user, the one trying to
enter the locked door, know that the door is in use at that time. So, in light
of that need (one that I have with a two-line board) I devised a system of
using Adept's menus, scripts and REXX command files to control my doors and to
check for a door being in use and then responding correctly.
The set of files enclosed in this archive are the command files to run
a Barren Realms Elite InterPlanetary game. This includes the BRE to Adept .CMD
file to process the BRE generated .MSG files and make the appropriate Adept
file attaches. The following explains how I have gone about incorporating these
command files into the Adept menuing system to get the desired results.
Ok...first of all, I know BRE is maybe not the best example to use for
this since BRE does generate its own little "in-use" message but I wanted to
include the adaptation of the BRE2AD.CMD file the was created by Dave Tenney
and myself. Ok..so I'm really into BRE right now too...so I hope you have a
need for this and I hope you have as much fun with it as I have.
Following is the setup that you have to use to make this combination
work properly. The first thing you need to do is convert the menu entry that
you are using to drive your door from an Adept menu type 801 to a type 10.
This makes Adept call a script from the Adept\Menus directory. My entry in
the door.menu file looks like this:
N ,10 ,,brenet.cmd,0
instead of like this:
N ,801,,cmd.exe /c breip.cmd {LN,0
Next you put the BRENET.CMD file in the Adept\Menus directory and the
BREIP.CMD file in the Adept directory. The BRENET.CMD file will test for the
existence of a flag file in the Adept\Doors\Breip directory. If the flag does
not exist the BREIP.CMD file is called using the AdeptMenuType function from
AdeptREXX like so:
AdeptMenuType(linenum,801,'cmd.exe /c breip.cmd {LN')
and the BREIP.CMD file will copy the flag file into the door directory while
the current user is using the door..."locking" the door. If another user comes
along and tries to access the same door while the first user is still playing
then the BRENET.CMD file will check for the flag, find it and display a nice
little message to the user stating that the door is in use..come back later.
When the first user leaves the door BREIP.CMD will delete the flag file and
then call the BRE2AD.CMD to convert the BRE .MSG file attaches, if needed, to
Adept file attaches. Upon deleting the flag file the door is "unlocked" and
is now available to another user.
The BRE2AD.CMD file is only needed if you are playing an InterPlanetary
Barren Realms Elite game. If you check this file you will find that it is able
to create "crash" packets or "hold" packets. This is so you can hold packets
for those systems that would normally be long distance from you and either they
are calling you or you wait until a timed event to call them at night. There
are verbose comments in that file explaining how to modify it to work for your
particular setup. Additional "hold" type nodes can easily be added to the file.
That is about it except for the typical disclaimer kind of nonsense
that anyone writing something like this must do...so here 'tis:
This archive of programs is distributed on an as-is basis as freeware
with no warranty as to their performance or with regard to the impact that
they may have on your system. They have been tested thoroughly here at Enigma
and have been found to perform the desired functions in my particular case.
Should they cause any unexpected results on your system in your environment
Jerry Jones and Enigma, A Piece of the Puzzle, will not be responsible for
the consequences or held liable for any damages induced by your use of these
programs.
AdeptXBBS has got to be one of the greatest innovations in the history
of bulletin board systems. This package offers more versatility and flexibility
than any software that I have had cause to work with in 15 years of BBSing. I
look forward to offering more contributions to the support of the Adept platform
in the near future. I hope you find this contribution of value. Thanks...
Jerry Jones
Enigma, A Piece of the Puzzle
FidoNET @1:3602/212.0