home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
LOGNTALK.MOD
< prev
next >
Wrap
Text File
|
1990-06-28
|
2KB
|
59 lines
Tolkien #1 @3456
Tue Jun 26 22:35:35 1990
Have you ever been sitting in a chair watching TV, had someone logon, and
wished that the computer could just TELL you who was logging on? Well, this
mod (in conjunction with the PD program TRAN) will do just that. Now, when
someone logs onto The Fellowship, it announces "Logging on is XXXXXX.", where
XXXXXX is the caller's handle.
Before you start this mod please backup your source, using whatever method
works best for you.
Now, here we go:
Step 1:
Search (^Q^F) for void getuser() in BBSUTL.C. In the int declarations, add
z as an int.
Then go to the very bottom of this function. Right before the last } that
ends the function, add this hunk of code:
strcpy(s,"CALLER.TXT");
z=open(s,O_RDWR | O_BINARY | O_CREAT | O_TRUNC, S_IREAD | S_IWRITE);
sprintf(s2,"Logging on is %s.",thisuser.name);
write(z,(void *)s2,strlen(s2));
close(z);
strcpy(s3,"TALK CALLER.TXT");
full_external(s3,0,1);
} /* THIS IS THE LAST ENDING BRACE FOR VOID GETUSER() */
Step 2:
Now you need to create the TALK.BAT file, to go in your BBS directory. Ours
contains the following:
@Echo Off
Tran -t -p -d1 6 +d2 30 caller.txt
The 6 and the 30 may have to be adjusted; they control the speaking speed.
We are running on a 386/20 -- if your is slower, then decrease these numbers
somewhat. If your machine is faster then increase them. Experimentation to get
the proper tone may (probably will) be necessary.
Step 3:
Get the file PCVOICE.ZIP from us here at The Fellowship (314-644-5777) or
anywhere else that might have it and unzip TRAN.EXE from within it to your BBS
directory.
Step 4:
Recompile the BBS and try it out. It will not operate for fast logons so
you'll have to give it a "real" logon to hear it.
That's all there is to it. Thanks to Steven Neely for writing TRAN -- that was
definitely the hard part. I'm sure if you want to send him a contribution, he
wouldn't mind.
7- 2jrr 7-