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 >
Text File  |  1990-12-14  |  5KB  |  174 lines

  1. Uther Pendragon #1 @9401
  2. Wed Dec 12 14:47:57 1990
  3. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  4.                          Extended Status Modification
  5.                   Written By: Uther Pendragon    User 1@9401
  6. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  7.  
  8.     This is one of the simplest mods I have ever written for a mod file.
  9. This is probibly because this is the ONLY mod I have ever written for a mod
  10. file. What this does is make the user's status look differently. This status
  11. is more complete than the one that comes with the origional WWIV4.11. This is
  12. what this mod makes your status look like:
  13.  
  14.  
  15. Handle          : Uther Pendragon #1
  16. Phone Number    : 904-739-1937
  17. E-Mail Waiting  : 2
  18.  
  19. Security Level  : 255
  20. Transfer Level  : 255
  21.  
  22. Last Call       : 03/29/90
  23. Total Calls     : 1071
  24. Calls Today     : 2
  25. Total Minutes   : 13046
  26.  
  27. Messages Posted : 1529
  28. Uploads         : 1941K in 82 files
  29. Downloads       : 181K in 2 files
  30. Transfer Ratio  : 99.98
  31. E-Mail Sent     : 1971
  32. Your Gold       : 512
  33.  
  34.     I tried to make the installation process as simple and painless as
  35. possible. There are some optional additions marked with a /* */.
  36.  
  37. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  38.  
  39. -Step 1:
  40.  
  41. Load up BBSUTIL.C and find (^Q^F) void yourinfo();
  42.  
  43. Block read (^K^R) this right before the void yourinfo(); 
  44.  
  45. void yourinfo()
  46. {
  47.   char s[81],s1[81],s2[81],s3[81];
  48.  
  49.   outchr(12);
  50.   print("Handle          : ",nam(&thisuser,usernum),"");
  51.   print("Phone Number    : ",thisuser.phone,"");
  52.   if (thisuser.waiting) {
  53.     itoa((int)thisuser.waiting,s,10);
  54.   print("E-Mail Waiting  : ",s,"");
  55.   }
  56.   nl();
  57.   itoa((int)thisuser.sl,s,10);
  58.   print("Security Level  : ",s,"");
  59.   itoa((int)thisuser.dsl,s,10);
  60.   print("Transfer Level  : ",s,"");
  61.   nl();
  62.   print("Last Call       : ",thisuser.laston,"");
  63.   itoa((int)thisuser.logons,s,10);
  64.   print("Total Calls     : ",s,"");
  65.   itoa((int)thisuser.ontoday,s,10);
  66.   print("Calls Today     : ",s,"");
  67.   ltoa((long) ((thisuser.timeon+timer()-timeon)/60.0),s,10);
  68.   print("Total Minutes   : ",s,"");
  69.   nl();
  70.   itoa((int)thisuser.msgpost,s,10);
  71.   print("Messages Posted : ",s,"");
  72.   itoa(thisuser.uploaded,s,10);
  73.   itoa(thisuser.downloaded,s1,10);
  74.   ltoa(thisuser.uk,s2,10);
  75.   ltoa(thisuser.dk,s3,10);
  76.   print("Uploads         : ",s2,"K in ",s," files","");
  77.   print("Downloads       : ",s3,"K in ",s1," files","");
  78.   sprintf(s,"%-6.3f",ratio());
  79.   print("Transfer Ratio  : ",s,"");
  80.   itoa((int)(thisuser.emailsent+thisuser,feedbacksent+thisuser,emailnet),s,10);
  81.   print("Email Sent      : ",s,"");
  82.   itoa((int)thisuser.gold,s,10);     /* optional for gold */
  83.   print("Your Gold       : ",s,"");  /*optional for gold */
  84.   nl();
  85. }
  86.  
  87. -Step 2:
  88.  
  89. Erase the old void yourinfo(); by using ^Y
  90.  
  91. Save BBSUTIL.C
  92.  
  93. -Step 3: (Optional)
  94.  
  95. What the following steps do is exchange the short Transfer Status Which looks
  96. like this:
  97.  
  98. Uploads         : 1941K in 81 files
  99. Downloads       : 181K in 2 files
  100. Transfer Ratio  : 99.98
  101.  
  102. into the status you just installed.
  103.  
  104. Load up BBSUTIL.C and search for 
  105.  
  106. yourinfodl();
  107.  
  108. change that to
  109.  
  110. yourinfo();
  111.  
  112. Save BBSUTIL.C
  113.  
  114. -Step 4: (Optional)
  115.  
  116. Load up XFER.C and search for
  117.  
  118. void yourinfodl()
  119.  
  120. remove the following lines:
  121.  
  122. void yourinfodl()
  123. {
  124.   char s[81],s1[81],s2[81],s3[81];
  125.  
  126.   itoa(thisuser.uploaded,s,10);
  127.   itoa(thisuser.downloaded,s,10);
  128.   ltoa(thisuser.uk,s2,10);
  129.   ltoa(thisuser.dk,s3,10);
  130.   nl();
  131.   nl();
  132.   print("Uploads  : ",s2,"k in ",s," files",""
  133.   print("Downloads: ",s3,"k in ",s1," files",""
  134.   sprintf(s,"%-6.3f",ratio());
  135.   print("Ratio    : ",s,"");
  136.   itoa(thisuser.dsl,s,10);
  137.   print("Your DSL : ",s,"");
  138.   nl();
  139. }
  140.  
  141. the next line you should see is:
  142.  
  143. void l_config_nscan()
  144.  
  145. DO NOT delete this!
  146.  
  147. -Step 5: (Optional)
  148.  
  149. Load up FCNS.H
  150.  
  151. search for void yourinfodl
  152.  
  153. remove this line.
  154.  
  155. -Step 6
  156.  
  157. Hit F9 and Compile. If you added the optional lines, this will take longer to
  158. compile, since you edited FCNS.H.
  159.  
  160. -----------------------------------------------------------------------------
  161.     If you found this useful, please leave Email to 1@9401, telling me
  162. you decided to install this modification. If you have any problems, questions
  163. or comments, please don't hesitate to write me.
  164. -----------------------------------------------------------------------------
  165.                                            Uther Pendragon 1@9401
  166.  
  167. Highway Star (904)/739-1937    Jacksonville,  Florida      WWIVnet Node: 940 and away you go.
  168. Let me say the usual stuff like tough luck if your BBS crashes, I take no 
  169. responsibility for that. I am not a C programmer, and do not claim to be. 
  170. There is probably a better way to do this, but I don't know what it is.
  171. This was written and tested using Turbo C 2.0 and WWIV 4.10, I don't have any 
  172. idea if it works on earlier versions or not, since I don't have them. But I 
  173. would appreciate you replying to me if you install this mod, hate it, or 
  174. whatZ9