home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
PRE412.ZIP
/
EXTSTAT.MOD
< prev
next >
Wrap
Text File
|
1990-12-14
|
5KB
|
174 lines
Uther Pendragon #1 @9401
Wed Dec 12 14:47:57 1990
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Extended Status Modification
Written By: Uther Pendragon User 1@9401
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This is one of the simplest mods I have ever written for a mod file.
This is probibly because this is the ONLY mod I have ever written for a mod
file. What this does is make the user's status look differently. This status
is more complete than the one that comes with the origional WWIV4.11. This is
what this mod makes your status look like:
Handle : Uther Pendragon #1
Phone Number : 904-739-1937
E-Mail Waiting : 2
Security Level : 255
Transfer Level : 255
Last Call : 03/29/90
Total Calls : 1071
Calls Today : 2
Total Minutes : 13046
Messages Posted : 1529
Uploads : 1941K in 82 files
Downloads : 181K in 2 files
Transfer Ratio : 99.98
E-Mail Sent : 1971
Your Gold : 512
I tried to make the installation process as simple and painless as
possible. There are some optional additions marked with a /* */.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-Step 1:
Load up BBSUTIL.C and find (^Q^F) void yourinfo();
Block read (^K^R) this right before the void yourinfo();
void yourinfo()
{
char s[81],s1[81],s2[81],s3[81];
outchr(12);
print("Handle : ",nam(&thisuser,usernum),"");
print("Phone Number : ",thisuser.phone,"");
if (thisuser.waiting) {
itoa((int)thisuser.waiting,s,10);
print("E-Mail Waiting : ",s,"");
}
nl();
itoa((int)thisuser.sl,s,10);
print("Security Level : ",s,"");
itoa((int)thisuser.dsl,s,10);
print("Transfer Level : ",s,"");
nl();
print("Last Call : ",thisuser.laston,"");
itoa((int)thisuser.logons,s,10);
print("Total Calls : ",s,"");
itoa((int)thisuser.ontoday,s,10);
print("Calls Today : ",s,"");
ltoa((long) ((thisuser.timeon+timer()-timeon)/60.0),s,10);
print("Total Minutes : ",s,"");
nl();
itoa((int)thisuser.msgpost,s,10);
print("Messages Posted : ",s,"");
itoa(thisuser.uploaded,s,10);
itoa(thisuser.downloaded,s1,10);
ltoa(thisuser.uk,s2,10);
ltoa(thisuser.dk,s3,10);
print("Uploads : ",s2,"K in ",s," files","");
print("Downloads : ",s3,"K in ",s1," files","");
sprintf(s,"%-6.3f",ratio());
print("Transfer Ratio : ",s,"");
itoa((int)(thisuser.emailsent+thisuser,feedbacksent+thisuser,emailnet),s,10);
print("Email Sent : ",s,"");
itoa((int)thisuser.gold,s,10); /* optional for gold */
print("Your Gold : ",s,""); /*optional for gold */
nl();
}
-Step 2:
Erase the old void yourinfo(); by using ^Y
Save BBSUTIL.C
-Step 3: (Optional)
What the following steps do is exchange the short Transfer Status Which looks
like this:
Uploads : 1941K in 81 files
Downloads : 181K in 2 files
Transfer Ratio : 99.98
into the status you just installed.
Load up BBSUTIL.C and search for
yourinfodl();
change that to
yourinfo();
Save BBSUTIL.C
-Step 4: (Optional)
Load up XFER.C and search for
void yourinfodl()
remove the following lines:
void yourinfodl()
{
char s[81],s1[81],s2[81],s3[81];
itoa(thisuser.uploaded,s,10);
itoa(thisuser.downloaded,s,10);
ltoa(thisuser.uk,s2,10);
ltoa(thisuser.dk,s3,10);
nl();
nl();
print("Uploads : ",s2,"k in ",s," files",""
print("Downloads: ",s3,"k in ",s1," files",""
sprintf(s,"%-6.3f",ratio());
print("Ratio : ",s,"");
itoa(thisuser.dsl,s,10);
print("Your DSL : ",s,"");
nl();
}
the next line you should see is:
void l_config_nscan()
DO NOT delete this!
-Step 5: (Optional)
Load up FCNS.H
search for void yourinfodl
remove this line.
-Step 6
Hit F9 and Compile. If you added the optional lines, this will take longer to
compile, since you edited FCNS.H.
-----------------------------------------------------------------------------
If you found this useful, please leave Email to 1@9401, telling me
you decided to install this modification. If you have any problems, questions
or comments, please don't hesitate to write me.
-----------------------------------------------------------------------------
Uther Pendragon 1@9401
Highway Star (904)/739-1937 Jacksonville, Florida WWIVnet Node: 940 and away you go.
Let me say the usual stuff like tough luck if your BBS crashes, I take no
responsibility for that. I am not a C programmer, and do not claim to be.
There is probably a better way to do this, but I don't know what it is.
This was written and tested using Turbo C 2.0 and WWIV 4.10, I don't have any
idea if it works on earlier versions or not, since I don't have them. But I
would appreciate you replying to me if you install this mod, hate it, or
whatZ 9