home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / EVENTS / WWIVTALK.ZIP / WWIVTALK.MOD < prev   
Text File  |  1990-06-27  |  2KB  |  59 lines

  1. Tolkien #1 @3456
  2. Tue Jun 26 22:35:35 1990
  3.  
  4.     Have you ever been sitting in a chair watching TV, had someone logon, and
  5. wished that the computer could just TELL you who was logging on? Well, this
  6. mod (in conjunction with the PD program TRAN) will do just that. Now, when
  7. someone logs onto The Fellowship, it announces "Logging on is XXXXXX.", where
  8. XXXXXX is the caller's handle.
  9.  
  10.     Before you start this mod please backup your source, using whatever method
  11. works best for you.
  12.  
  13.     Now, here we go:
  14.  
  15. Step 1:
  16.    Search (^Q^F) for void getuser() in BBSUTL.C. In the int declarations, add
  17. z as an int.
  18.  
  19.    Then go to the very bottom of this function. Right before the last } that
  20. ends the function, add this hunk of code:
  21.  
  22.   strcpy(s,"CALLER.TXT");
  23.   z=open(s,O_RDWR | O_BINARY | O_CREAT | O_TRUNC, S_IREAD | S_IWRITE);
  24.   sprintf(s2,"Logging on is %s.",thisuser.name);
  25.   write(z,(void *)s2,strlen(s2));
  26.   close(z);
  27.   strcpy(s3,"TALK CALLER.TXT");
  28.   full_external(s3,0,1);
  29.  
  30. } /* THIS IS THE LAST ENDING BRACE FOR VOID GETUSER() */
  31.  
  32. Step 2:
  33.   Now you need to create the TALK.BAT file, to go in your BBS directory. Ours
  34. contains the following:
  35.  
  36.   @Echo Off
  37.   Tran -t -p -d1 6 +d2 30 caller.txt
  38.  
  39.   The 6 and the 30 may have to be adjusted; they control the speaking speed.
  40. We are running on a 386/20 -- if your is slower, then decrease these numbers
  41. somewhat. If your machine is faster then increase them. Experimentation to get
  42. the proper tone may (probably will) be necessary.
  43.  
  44. Step 3:
  45.   Get the file PCVOICE.ZIP from us here at The Fellowship (314-644-5777) or
  46. anywhere else that might have it and unzip TRAN.EXE from within it to your BBS
  47. directory.
  48.  
  49. Step 4:
  50.   Recompile the BBS and try it out. It will not operate for fast logons so
  51. you'll have to give it a "real" logon to hear it.
  52.  
  53. That's all there is to it. Thanks to Steven Neely for writing TRAN -- that was
  54. definitely the hard part. I'm sure if you want to send him a contribution, he
  55. wouldn't mind.
  56.  
  57.                                     7- 2jrr 7-
  58.  
  59.