FLASH004.MOD - Sound Blaster tells you user's chat reason.. Josh Weide #267 @19911 Tuesday, March 16, 1993 7:22 pm ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mod Name: FLASH004.MOD Date: 3/16/93 ³ ³ Mod Author: Flashman #1 @9930 WWIVNet ³ ³ Difficulty: Even George Bush couldn't screw THIS ONE up. ³ ³ WWIV Version: 4.22 ³ ³ Files Affected: bbs.c ³ ³ Description: A Sound Blaster Pro chat call that makes the computer say the ³ ³ words, "User requests chat because" then the chat reason. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ I offered this one a little while ago and I got a big response, so here it is. The actual mod to the source code is extremely minute, as most of it uses an external file which I am supplying the batch file source code and the .COM file for. This mod uses Sound Blaster Pro's READ utility to summon the sysop for chat. the mod will write the user's chat reason to a file and then have the SBTALKER voice driver load, read the reason, then remove the driver. Don't worry about this process taking long. The whole procedure is very quick with no noticable delay. The voice will end up saying, "User requests chat because" followed by the chat reason the user typed in. Snappy, eh? Here's the mod. DISCLAIMER: Hey, read the level of difficulty at the top of this thing. If you screw it up, would you even want to ADMIT IT?!? I didn't think so. KEY: /* ++ */ Add this line /* && */ Existing line STEP ONE: Load bbsutl.c and find void reqchat(). Search for and add the following code: /* && */ prt(2,get_string(598)); /* "Reason: " */ /* && */ inputl(s,70); /* && */ if (s[0]) { /* && */ chatcall=1; /* ++ */ sprintf(s1,"echo User requests chat because %s > chatreas.txt",s); /* ++ */ system(s1); /* ++ */ nl(); /* ++ */ pl("Paging sysop by way of the Sound Blaster Pro."); /* ++ */ system("chat"); /* && */ sprintf(chatreason,"%s: %s",get_stringx(1,33), s); /* "Chat" */ /* && */ nl(); /* && */ sysoplog(chatreason); STEP TWO: Below is a uuencoded version of the file you'll need called CHAT.COM. This file assumes 2 things: 1.) All your SBTALKER files including SBTALKER, READ, and REMOVE are in the directory called \SBPRO\SBTALKER. This is the Creative Labs default directory for these files so chances are you're in good shape. 2.) Your main WWIV directory is called \WWIV. If either of these are false, I have provided the source code to this .COM file right after the uuencoded file, so you may make the appropriate changes under 2 conditions. 1.) You MUST compile the file to an executable file, and 2.) The file you make MUST be named CHAT.COM. Using this in batch file form will not return control of the system back to the BBS thus freezing the BBS until reboot. When your CHAT.COM file is ready, place it in your main WWIV directory. *** Here is the UUencoded version of CHAT.COM *** -------------------------------------------------------------------------------- section 1 of uuencode 2.8 of file chat.com by R.E.M. begin 644 chat.com MZSJ00V]M<&EL960@8GD@0D%4,D5814,@,2XU#0I00R!-86=A>FEN92#^($1O) M=6=L87,@0F]L:6YG#0H:_+U<`8MN`(NF`@"+G@0`M$K-(:$L`(F&&@"+G@``R M_^.]!,>&$`#__XO6,\FX`CP+_W0"_L3-(7(IB]@+_W0+N`)",]*+RLTA`!Y0_U?Z- M+O]7^%@?B(8>`%O#4^@@``!$54U-62`@($9#0@``````1%5-35D@("!&0T(`* M````6QX&B:8"`%=6B_=&C3^X`RG-(8U_$+@#*$@#-(<.C`14$)03``6@$4^@R``!0[ M051(/4-/345814)!5`````!"860@8V]M;6%N9"!O6NLE@'\Q`'4(BW[E)`*P\('8'/"YT_ M`ZKB]+`NJHUW!KD#`*6D,L"J4E91B_+_5_I97EIS"H/O!.+I_@?I._^#^0%U: M,XUW+H/J`XOZI:0RP+G\`/*NQD7_((MW$3A,_W<#BDS_\Z3&!0V+\HO'*\*(J M1/__5_+K#XM_$4_^#5>+\O]7^%_^!5O#BA1&"M)T!K0"S2'K\\-1`E/H!`!0K M051(6U)6'KH$`(OS_U?Z2>,+K`K`="0\.W7WZ_*L/#MT!PK`=`.JZ_0.'R:`5 M??]<=`.P7*KX'UY:6\/YZ_B+U[0:S2&+UC/)M$[-(7($@\<>^,/'AA0`__^+8 MUK@`/QN+F!_?8``!N4 M=6P`+"]#($-/4%D@8VAA=')E87,N='AT($,Z7'-B<')O7'-B=&%L:V5R("`@5 M("`@#0!N=6P`&B]#($-$7'-B<')O7'-B=&%L:V5R("`@("`@#0!N=6P`4T)42 M04Q+15(`$2`O9$),05-415(@("`@("`-`&-H871R96%S+G1X=`!N=6P`4D5!F M1``6("`@("`@("`@("`@("`@("`@("`@#0!N=6P`4D5-3U9%``<@("`@("`-O M`&YU;``0+T,@0T1<=W=I=B`@("`@(`T`C;8@`+\``+A>`?_0C;8E`+BC`?_0( MN)<"_]"-ME,`OP``N%X!_]"-ME@`N*,!_]"XEP+_T(VV=`"_``"X7@'_T(VV% M>`"-OH(`N+P"_]"XEP+_T(VVE`"X?03_T(VVH0"_``"X7@'_T(VVI0"-OJL`A MN+P"_]"XHP3_T+B7`O_0C;;"`+\``+A>`?_0C;;&`(V^S@"XO`+_T+B7`O_0R ?C;;6`+\``+A>`?_0C;;;`+BC`?_0N)<"_]"X`$S-(4S-+ `` end size 1381 -------------------------------------------------------------------------------- If you'll be modifying the batch file and recompiling, here's CHAT.BAT. You only need this file if the conditions for CHAT.COM listed below aren't met and you need to change something. -------------------------------------------------------------------------------- @echo off copy chatreas.txt \sbpro\sbtalker > nul cd\sbpro\sbtalker > nul sbtalker /dBLASTER > nul read nul remove > nul cd\wwiv -------------------------------------------------------------------------------- STEP THREE: Compile the BBS and try 'er out. Works like a charm! Just remember you must have your sound drivers loaded for it to work.. Duh! That's it! An easy mod if I do say so myself. If you use this, let me know. I can be reached at WWIVNet 1@9930 for questions or comments or to let me know of your use of my mod. Thanks. - Flashman -