BAST003.MOD -- New Piping System Bast #224 @17303 Sat Feb 13 14:00:13 1993 /** ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mod Name: Revolutionary Pipe System Mod Author: Bast ³ ³ Difficulty: ±±±°°°°°°° Date: 02/07/93 ³ ³ WWIV Version: 4.22 and above ³ ³ Files Affected: BBSUTL.C, COM.C, MSGBASE.C, FCNS.H, VARS.H (argh!) ³ ³ Description: This piping system compensates for sysops with extended colors³ ³ in, and doesn't use Ctrl-P. I've discovered that it is a pain ³ ³ not having a piping system that is compatible with extended ³ ³ colors, so I wrote this up. What it does is simple: it uses ³ ³ another Ctrl key, Ctrl-L to be specific, rather that Ctrl-P. ³ ³ All the pipe commands are in an ANSi I designed, and that is ³ ³ UUEncoded at the bottom of this mod. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ **/ /** STEP 1: Backup Your Source!!!!! I CANNOT and WILL NOT be responsible for any damage done to your source code by this mod. **/ /** STEP 2: Open BBSUTL.C **/ /** In void inli(...) Add The Following Above case 16: **/ case 12: /* Ctrl-L */ if (cp': /* K uploaded */ sprintf(s,"%d",thisuser.uk); break; case '(': /* # of files downloaded */ sprintf(s,"%d",thisuser.downloaded); break; case '<': /* K downloaded */ sprintf(s,"%d",thisuser.dk); break; default: return(0); } outstr(s); return(1); } /** STEP 3: Save And Close BBSUTL.C And Open COM.C **/ /** In Function outchr(char c) Search For The Following **/ if (change_color) { change_color = 0; if ((c >= '0') && (c <= '7')) ansic(c - '0'); return; } if (c == 3) { change_color = 1; return; } /** Below That, Add The Following **/ if (pipes) { pipes = 0; pipe(c); return; } if (c == 5) { /** If C = CLOVER, 5 Being The Ascii Value Of The Clover **/ pipes = 1; return; } /** STEP 4: Save And Close COM.C And Open FCNS.H **/ /** Under The BBSUTL.C Prototype Block, Add The Following **/ int pipe(char ch); /** Save And Close FCNS.H And Open VARS.H At the bottom of the __EXTRN__ int block, add the variable "pipes" It should look something like below **/ sysop_alert, tempio, topdata, topline, two_color, userfile, usernum, useron, use_workspace, using_modem, wfc, x_only, pipes; /** Added "pipes" **/ /** Step 5: Save And Close VARS.H And Open MSGBASE.C **/ /** In void inmsg(...) Do Following **/ /* Search For This, And Add Specified Code */ if (s[0]=='/') { /* Existing Code */ if (stricmp(s,"/HELP")==0) { /* Existing Code */ savel=0; /* Existing Code */ printmenu(2); /* Existing code */ } /* Existing Code */ if(stricmp(s,"/PIPES")==0) { /* Add Me */ savel=0; /* Add Me */ printfile("PIPES.ANS"); /* Add Me */ } /* Add Me */ /** STEP 6: Save And Close MSGBASE.C And Re-Compile Your Whole Board **/ /** STEP 7: UUDecode Following And Put It In Your GFILES Directory So Your Users Know What Commands To Use For The Pipes **/ section 1 of uuencode 4.13 of file PIPES.ANS by R.E.M. begin 644 PIPES.ANS M&ULT,&T;6S)*&ULP.S$[,S1MVL3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$% MQ,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q,3$Q!M;,S9MQ,3$Q!M;,#LS-FW$Q,3$= M&ULS-VW$OQM;,CLQ2!M;,3LS-&VS&ULR,4,;6S!M4&D;6S,V;7`;6S%M92!#3 M;VUM&ULP.S,V;6%N&ULS-VUD7!E("`;6S,P;5@@(!M;N M,S%M4V5X&ULQ-4,;6S,V;;,;6S,P;=L;6S8[,4@;6S,T;;,@&ULS,&U#("`;_ M6S,Q;4-I='D;6W,-"AM;=1M;,3-#&ULS,&U.("`;6S,Q;4%L:6%S&ULQ,$,;U M6S,P;5D@(!M;,S%M0D)3(%-Y&5M<'1I;VX;6SA#, M&ULS,&U0("`;6S,Q;5!H;VYE&ULQ,$,;6S,P;3$;6S,W;2P;6S,P;1M;