home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / NI-015.ZIP / NI-015.MOD < prev   
Encoding:
Text File  |  1995-07-10  |  4.1 KB  |  111 lines

  1. Johnny Five #26 @15301
  2. Fri Jul 07 13:27:02 1995
  3. ╒NI Header (c)══════════════════════════════════════════════════════════════╕
  4. │       N O V A   I N D U S T R I E S  B B S  9 0 4 - 2 6 0 - 2 3 9 4       │
  5. ╞═══════════════════════════════════════════════════════════════════════════╡
  6. │ Mod Name  : NI-015.424          Author: Johnny Five 1 @1 ExcelNet         │
  7. │                                                     1 @9403 CCNet         │
  8. │ Difficulty: Can you say "Block Copy"?               1 @205 SteelNet       │
  9. │                                                     1 @9411 TFAlink       │
  10. │ Version   : 4.24  Date: 07-06-95                    and many others       │
  11. │                                                                           │
  12. │ Files Affected: MSGBASE.C                                                 │
  13. │                                                                           │
  14. │ Description:  Blaxthos' old 4.23 mod to give users visible registration   │
  15. │ levels/ranks!   Updated for 4.24                                          │
  16. ╘═══════════════════════════════════════════════════════════════════════════╛
  17.  
  18.  
  19. Long Description:
  20.   This mod will give your users access levels like in WildCat!.
  21. It doesn't even modify the user records (yaay!); it does modify VARS.H
  22. so you'll have to recompile.
  23.  
  24. Notes:
  25.   You'll need to change the security levels to whatever you would like
  26. to use (see note in mod).
  27.  
  28.  
  29. = Already there
  30. + add
  31. - Remove
  32. * change
  33.  
  34.  
  35. Step 1: B(ack) U(p) Y(our) S(ource)
  36.  
  37.  
  38. Step 2: Load VARS.H and search for "nete[5]".  Make the following changes:
  39.  
  40. =         ver_no2[51],wwiv_net_no[20], xdate[9], *xenviron[50],
  41. *           dlfn[81],edlfn[81], nete[5], irt_sub[81], rank[50]; /* Add rank[50] */
  42. =    
  43. =         __EXTRN__ unsigned char actsl, andwith, checksum;
  44.  
  45. Save/close VARS.H.
  46.  
  47. Step 3: Load BBS.C and search for "print_net_listing(0)".  Add the following:
  48.  
  49. =  print_net_listing(0);
  50. + if (strcmp(s,"RANK")==0) {
  51. +  rank_em();
  52. +  nl();
  53. +  npr("9Your User Status is: 2%s",rank);
  54. +  nl();
  55. +}
  56. =if (strcmp(s,"QSCAN")==0) {
  57.  
  58. Save/close BBS.C.
  59.  
  60. Step 4: Load LILO.C and search for "useron=1;".  Add the following:
  61.  
  62. =  hangup=1;
  63. =  return;
  64. =}
  65. +rank_em();     /* Added by NI-015.424 */
  66. =useron=1;
  67. =write_inst(INST_LOC_LOGON,0,INST_FLAGS_ONLINE);
  68.  
  69. Search for "pl(nam(&thisuser,usernum));" a little further down.  Add this:
  70.  
  71. =pl(nam(&thisuser,usernum));
  72. +npr("9Access0............ 2%s\n\r",rank);  /* Add me */
  73. =outstr(get_string(363)); npr("%d\r\n", (int) ((nsl()+30)/60.0));
  74.  
  75. Save/close LILO.C.
  76.  
  77. Step 5: Load COM.C and add the following function at the end:
  78.  
  79. ------------------------------------------------------------------------
  80. /* NI-015.424 block begin */
  81. void rank_em(void)
  82. {
  83.  if (thisuser.sl==255)
  84.   sprintf(rank,"System Operator");
  85.  if (thisuser.sl<=254 && thisuser.sl>=200)
  86.   sprintf(rank,"Assistant System Operator");
  87.  if (thisuser.sl<200 && thisuser.sl>=175)        /* Customize SL's */
  88.   sprintf(rank,"1Level 5 9[8V.I.P. User9]");
  89.  if (thisuser.sl<175 && thisuser.sl>=150)        /* Customize SL's */
  90.   sprintf(rank,"1Level 4 9[8Registered User9]");
  91.  if (thisuser.sl<150 && thisuser.sl>=100)        /* Customize SL's */
  92.   sprintf(rank,"1Level 3 9[8Registered User9]");
  93.  if (thisuser.sl<100 && thisuser.sl>=75)         /* Customize SL's */
  94.   sprintf(rank,"1Level 2 9[8Registered User9]");
  95.  if (thisuser.sl<75 && thisuser.sl>=50)          /* Customize SL's */
  96.   sprintf(rank,"1Level 1 9[8Registered User9]");
  97.  if (thisuser.sl<50 && thisuser.sl>=25)          /* Customize SL's */
  98.   sprintf(rank,"1Level 0 9[8Unregistered User9]");
  99.  if (thisuser.sl==20)                            /* Customize SL's */
  100.   sprintf(rank,"9*5User on Probation9*");
  101.  if (thisuser.sl==10)                            /* Customize SL's */
  102.   sprintf(rank,"7New User");
  103.  if (thisuser.sl<10)                             /* Customize SL's */
  104.   sprintf(rank,"6<*> SUSPENDED USER <*>");
  105. }
  106. /* NI-015.424 block end */
  107. ------------------------------------------------------------------------
  108.  
  109. Save/close COM.C.
  110.  
  111.