home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
EVENTS
/
TUJOKE1.ZIP
/
TUJOKE.DOC
< prev
next >
Wrap
Text File
|
1995-08-08
|
5KB
|
117 lines
WWIV Joke Of The Day
by The Usurper
08/07/95
DISCALIMER :
I'm not responsible for what you do with this. (Long enough? |])
INTRODUCTION:
Joke Of The Day for WWIV will display a random joke. It can be run in
the logon even or as a door. It was written in Turbo Pascal 7.0 for those
who love jokes as much as I do (or more, if that's possible).
INSTALATION:
* To run it in the logon event edit your LOGON.BAT (or whatever you're
executing) and put TUJOKE1.BAT %1 at the end (make sure you have %1 after
logon.bat in init!).
If you're not running any external programs at logon, go into init and
enter LOGON.BAT %1 in external programs where it asks for a logon event.
Then create a file LOGON.BAT and put TUJOKE1.BAT %1 inside.
Next, create a directory for the Joke Of The Day files and place them all
in there except for TUJOKE1.BAT which you should place in your main WWIV
directory. Next, edit TUJOKE1.BAT and change the paths and stuff, you'll
know what to do.
Please make sure that TUJOKE1.BAT %1 is the last line in your LOGON.BAT. If
it's not, logon programs after it will not be executed. If you HAVE TO have
another program executed last, try using CALL TUJOKE1.BAT %1 or just copy
all TUJOKE1 files to your main WWIV directory and execute
"TUJOKE1.EXE %1 JOKELIST.TXT" from LOGON.BAT.
* To run it as a door, create a directory for it, place the files in there,
edit/change TUJOKE1.BAT, place it in your main WWIV directory, run Chain Edit
from WWIV, create a new chain, and enter TUJOKE1.BAT %1 in the B line.
EXTRA FEATURES:
* TUJOKE1 not only will display jokes found in file the joke file. It will
also convert special codes. They are:
%%N - User's real name
%%H - User's handle
%%A - User's age
In other words, you can use the user's name, alias, or age in jokes. Just
place one of the codes above somewhere inside a joke and it will be converted
when the joke is being displayed.
* TUJOKE1 uses the file TUJOKES.DAT by default. However, you can specify
a text file in the command line which contains a list of joke files and
TUJOKE1 will pick one file at random. That way, instead of having only 50
jokes to pick from, you can have an infinite amount of them!
The file must look like this:
------
3
TUJOKES.DAT
MYJOKES.DAT
C:\EXTRA\MOREJKS.DAT
------
(not the dashed lines though)
The first line must be a numeric value which tells TUJOKE1 how many joke
files you have listed below. The following lines must be valid names of
joke files (if a joke file is in a different directory you can enter
the path + filename).
To use multiple joke files you must execute TUJOKE1 as below:
TUJOKE1.EXE %1 JOKELIST.TXT
where %1 stands for the CHAIN.TXT file and JOKELIST.TXT stands for the text
file containing the list of joke files. This is the default setting.
JOKE EDITOR:
TUJOKE1 comes with an editor that lets the sysop edit the jokes. To edit
TUJOKES.DAT just execute the editor w/out any options. To edit a different
joke file execute the editor followed by the name of the joke file
(i.e. JOKEDIT.EXE MYJOKES.DAT).
* Editor options
$ - saves the file you're editing. If you quit w/out saving the changes you
made will not be saved (duh!)
# - sets the number of jokes that this file has. You don't need to have all
50 jokes in a joke file; TUJOKE1 will pick only from as many as you set
the number of jokes to. (i.e. to use only jokes 1-20 set the number to 20).
If you leave this at 0 no jokes will be displayed.
] - moves one joke up
[ - moves one joke down
A - jumps to a joke number
1 - lets you enter the first line of the joke (max. 130 characters)
2 - lets you enter the second line of the joke (max. 130 characters)
3 - lets you enter the third line of the joke (max. 130 characters)
W - writes all jokes from this file to a text file. If you want to correct
spelling of all jokes using an external spell checker, you can print your
jokes to a text file and quickly find which ones have misspelled words in
them. You still have to edit the jokes using JOKEDIT.EXE.
Q - quit the editor WITHOUT SAVING CHANGES.
Problems:
If there are any problems go back and read this file again. If you follow
instructions there can't be any problems. If you need help contact The
Usurper on a local bulletin board in South New Jersey (609 area code).
Sorry, i don't remember my WWIVNet address |]
Registration:
This utility is freeware. If you feel like paying for it anyway, send
money to your favorite BBS SysOp for their hard work.
Comments:
I appreciate any comments, suggestions, bug reports, etc. Please feel
free to let me know what you think about TUJOKE1.