home *** CD-ROM | disk | FTP | other *** search
- Johnny Five #26 @15301
- Fri Jul 07 13:27:02 1995
- ╒NI Header (c)══════════════════════════════════════════════════════════════╕
- │ 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 │
- ╞═══════════════════════════════════════════════════════════════════════════╡
- │ Mod Name : NI-015.424 Author: Johnny Five 1 @1 ExcelNet │
- │ 1 @9403 CCNet │
- │ Difficulty: Can you say "Block Copy"? 1 @205 SteelNet │
- │ 1 @9411 TFAlink │
- │ Version : 4.24 Date: 07-06-95 and many others │
- │ │
- │ Files Affected: MSGBASE.C │
- │ │
- │ Description: Blaxthos' old 4.23 mod to give users visible registration │
- │ levels/ranks! Updated for 4.24 │
- ╘═══════════════════════════════════════════════════════════════════════════╛
-
-
- Long Description:
- This mod will give your users access levels like in WildCat!.
- It doesn't even modify the user records (yaay!); it does modify VARS.H
- so you'll have to recompile.
-
- Notes:
- You'll need to change the security levels to whatever you would like
- to use (see note in mod).
-
-
- = Already there
- + add
- - Remove
- * change
-
-
- Step 1: B(ack) U(p) Y(our) S(ource)
-
-
- Step 2: Load VARS.H and search for "nete[5]". Make the following changes:
-
- = ver_no2[51],wwiv_net_no[20], xdate[9], *xenviron[50],
- * dlfn[81],edlfn[81], nete[5], irt_sub[81], rank[50]; /* Add rank[50] */
- =
- = __EXTRN__ unsigned char actsl, andwith, checksum;
-
- Save/close VARS.H.
-
- Step 3: Load BBS.C and search for "print_net_listing(0)". Add the following:
-
- = print_net_listing(0);
- + if (strcmp(s,"RANK")==0) {
- + rank_em();
- + nl();
- + npr("9Your User Status is: 2%s",rank);
- + nl();
- +}
- =if (strcmp(s,"QSCAN")==0) {
-
- Save/close BBS.C.
-
- Step 4: Load LILO.C and search for "useron=1;". Add the following:
-
- = hangup=1;
- = return;
- =}
- +rank_em(); /* Added by NI-015.424 */
- =useron=1;
- =write_inst(INST_LOC_LOGON,0,INST_FLAGS_ONLINE);
-
- Search for "pl(nam(&thisuser,usernum));" a little further down. Add this:
-
- =pl(nam(&thisuser,usernum));
- +npr("9Access0............ 2%s\n\r",rank); /* Add me */
- =outstr(get_string(363)); npr("%d\r\n", (int) ((nsl()+30)/60.0));
-
- Save/close LILO.C.
-
- Step 5: Load COM.C and add the following function at the end:
-
- ------------------------------------------------------------------------
- /* NI-015.424 block begin */
- void rank_em(void)
- {
- if (thisuser.sl==255)
- sprintf(rank,"System Operator");
- if (thisuser.sl<=254 && thisuser.sl>=200)
- sprintf(rank,"Assistant System Operator");
- if (thisuser.sl<200 && thisuser.sl>=175) /* Customize SL's */
- sprintf(rank,"1Level 5 9[8V.I.P. User9]");
- if (thisuser.sl<175 && thisuser.sl>=150) /* Customize SL's */
- sprintf(rank,"1Level 4 9[8Registered User9]");
- if (thisuser.sl<150 && thisuser.sl>=100) /* Customize SL's */
- sprintf(rank,"1Level 3 9[8Registered User9]");
- if (thisuser.sl<100 && thisuser.sl>=75) /* Customize SL's */
- sprintf(rank,"1Level 2 9[8Registered User9]");
- if (thisuser.sl<75 && thisuser.sl>=50) /* Customize SL's */
- sprintf(rank,"1Level 1 9[8Registered User9]");
- if (thisuser.sl<50 && thisuser.sl>=25) /* Customize SL's */
- sprintf(rank,"1Level 0 9[8Unregistered User9]");
- if (thisuser.sl==20) /* Customize SL's */
- sprintf(rank,"9*5User on Probation9*");
- if (thisuser.sl==10) /* Customize SL's */
- sprintf(rank,"7New User");
- if (thisuser.sl<10) /* Customize SL's */
- sprintf(rank,"6<*> SUSPENDED USER <*>");
- }
- /* NI-015.424 block end */
- ------------------------------------------------------------------------
-
- Save/close COM.C.
-
-