home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / AST002.MOD < prev    next >
Text File  |  1994-04-04  |  6KB  |  156 lines

  1. Asterius, Master Of Thought #95 @8
  2. Fri Apr 01 22:23:36 1994
  3. 0R: net33: @1 (via @2) [03:47 04/04/94]
  4. 0R: net33: @2 [10:31 04/03/94]
  5. 0R: net33: @2 (via @22) [00:43 04/02/94]
  6. 0R: net33: @22 (via @8) [23:06 04/01/94]
  7. 0R: net33: @8 [22:53 04/01/94]
  8. ┌────────────────────────────────────────────────────────────────────────────┐
  9. │ Mod Name: AST002.423                    Mod Author: Asterius,              │
  10. │                                                     Master of Thought      │
  11. │ Difficulty: Easy, but tricky!           Date: 4/1/94                       │
  12. │ WWIV Version: 4.23 and up!                                                 │
  13. │ Description: This mod lets you put the notes next to people's names in     │
  14. │  emails and posts!                                                         │
  15. │ Files Affected: MSGBASE.C, VARS.H (Sorry!)                                 │
  16. │ MOD's Borrowed to Make This One: BJ002.423, ZEEK0001.423                   │
  17. └────────────────────────────────────────────────────────────────────────────┘
  18. ╔════════════════════════════════════════════════════════════════════════════╗
  19. ║   This mod is copyright 1994, 1995 by Asterius, Master of Thought and is   ║
  20. ║   distributed as freeware.  Permission is granted to distribute and post   ║
  21. ║   this mod on BBS systems and online services, provided no alterations     ║
  22. ║   are made (removal of message headers/taglines allowed).  This mod may    ║
  23. ║   contain some parts of WWIV source code, which is copyright 1988-1994 by  ║
  24. ║   Wayne Bell and licensed only to registered users of WWIV.  Use of WWIV   ║
  25. ║   source without registration constitutes a license violation and could    ║
  26. ║   lead to legal prosecution  and certain doom.                             ║
  27. ║                                                                            ║
  28. ║   Shareware distributors and CD-ROM publishers may not distribute this mod ║
  29. ║   without express written permission of the Author or WWIV Software        ║
  30. ║   Services.  Distribution should be to Registered WWIV sysops only.        ║
  31. ╚════════════════════════════════════════════════════════════════════════════╝
  32.  
  33. STEP 1:
  34.  do {
  35.    backup(wwiv.source);
  36.   } while (!hangup)
  37.  
  38. STEP 2:
  39.  do {
  40.    backup(wwiv.source);
  41.   } while (!hangup)
  42.  
  43. STEP 3:
  44.  READ through the mod COMPLETELY before you install it!  Don't say I didn't
  45.  warn you!
  46.  
  47. STEP 4:
  48.  Open VARS.H and search for "nete[5]".  Make the following changes:
  49.  
  50.       dlfn[81],edlfn[81], nete[5], rank[50]; /* Add rank[50] */
  51.  
  52. Save it! You're done with VARS.H!
  53.  
  54. STEP 5:
  55.  Open up MSGBASE.C.
  56.  Put this in MSGBASE.C above "void inmsg(blah..blah)"
  57. /* START BLOCK COPY */
  58. void rank_titles(void)
  59. {
  60.  if (thisuser.sl==255)
  61.   sprintf(rank,"3[1SysOp3]");
  62.  if (thisuser.sl<=254 && thisuser.sl>=250)
  63.   sprintf(rank,"3[1Co-SysOp3]");
  64.  if (thisuser.sl<250 && thisuser.sl>=40)        
  65.   sprintf(rank,"3[1V.I.P. User3]");
  66.  if (thisuser.sl<40 && thisuser.sl>=30)        
  67.   sprintf(rank,"3[1Visiting SysOp3]");
  68.  if (thisuser.sl<30 && thisuser.sl>=20)        
  69.   sprintf(rank,"3[1Regular User3]");
  70.  if (thisuser.sl<20 && thisuser.sl>=10)         
  71.   sprintf(rank,"3[1Unvalidated User3]");
  72.  if (thisuser.sl<10 && thisuser.sl>=2)          
  73.   sprintf(rank,"3[1Reject of the Board3]");
  74.  if (thisuser.sl==1)          
  75.   sprintf(rank,"3[1Blacklisted User3]");
  76.  if (thisuser.sl==0)                            
  77.   sprintf(rank,"3[6*User on Probation*3]");
  78. }
  79.     
  80. STEP 6:
  81.  Stay in MSGBASE.C
  82.  Change this:
  83.  
  84.     l1=0;
  85.     if (real_name)
  86.       addline(b,thisuser.realname,&l1);
  87.     else
  88.       addline(b,nam1(&thisuser,usernum,net_sysnum),&l1);
  89.     time(&ll);
  90.     strcpy(s,ctime(&ll));
  91.     s[strlen(s)-1]=0;
  92.     addline(b,s,&l1);
  93.     if (irt[0]) {
  94.       sprintf(s,"%s%s",get_string(940),irt);
  95.       addline(b,s,&l1);
  96.       if (irt_name[0]) {
  97.         sprintf(s,"%s%s",get_string(941),irt_name);
  98.         addline(b,s,&l1);
  99.       }
  100.       addline(b,"",&l1);
  101.     }
  102.  
  103.  To this:
  104.     
  105.     l1=0;
  106.     if (real_name) {
  107.       strcpy(s,thisuser.realname,&l1);
  108.     } else {
  109.       strcpy(s,nam1(&thisuser,usernum,net_sysnum));
  110.         if (thisuser.sl>=200) {
  111.           if (usernum==1)
  112.             strcat(s," 5-=3[1The 6Mighty 1SysOp3]5=-");
  113.           if (usernum==2)
  114.             strcat(s," 5-=3[1Avatar of the 6Tie3]5=-");
  115.           if (usernum==6)
  116.             strcat(s," 5-=3[1The 5Gal 1in Charge3]5=-");
  117.         } 
  118.         if ((usernum!=1) && (usernum!=2) && (usernum!=6)) {
  119.           if (strlen(thisuser.note)>5) {
  120.             strcat(s," 5-=3[1");
  121.             strcat(s,thisuser.note);
  122.             strcat(s,"3]5=-");
  123.           }
  124.           if (strlen(thisuser.note)<=5) {
  125.             rank_titles();
  126.               strcat(s," 5-=");
  127.               strcat(s,rank);
  128.               strcat(s,"5=-");
  129.           }
  130.         }
  131.       addline(b,s,&l1);
  132.     }
  133.     time(&ll);
  134.     strcpy(s,ctime(&ll));
  135.  
  136.  
  137. Step 7: 
  138.  You're going to have to do the whole thing anyway, so MAKE FCNS, and then
  139.  MAKE the whole sucker.  Good luck, and may the force be with you!
  140.  
  141.  
  142. -=AUTHOR'S NOTE=-
  143. I take NO responsibilty for this mod.  I stole most of it from the two
  144. mods listed in the box above.  If you like it, or don't like it, find the
  145. original mods and email their authors.
  146.  
  147. -=AUTHOR'S NOTE 2=-
  148. IMPORTANT: Feel free to change the ranks and note information, simply by
  149. replacing the information in the brackets.  To add color to your names in
  150. dos's EDIT program, type CTRL-P, and then CTRL-C to get your little 'WWIV
  151. Heart Codes', which are followed by a number.
  152. 1
  153. 27Sven's Palace of Pleasure9∙5(410)628-75309∙324 Hours/7 Days a week!
  154. 32WoMbAtNET @1239∙3AlterNETive @41159∙4PlaNET @41079∙7DigiNET @89∙
  155. 4
  156.