home *** CD-ROM | disk | FTP | other *** search
- Johnny Five #26 @15301
- Fri Jul 07 13:25: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-014.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-05-95 and many others │
- │ │
- │ Files Affected: MMENU.C, DEFAULTS.C, [XFER.C, XFEROVL.C] []=Optional │
- │ │
- │ Description: Sapper's old 4.23 defaults mod. Originally by Dr. Dream │
- │ Master updated for 4.24 │
- ╘═══════════════════════════════════════════════════════════════════════════╛
- Notes:
-
- I fixed a few of the features and updated it for v4.24
-
-
-
-
- = Already there
- + add
- - Remove
- * change
-
-
- Step 1: B(ack).U(p).Y(our).S(ource).
-
- Step 2: Go to DEFAULTS.C and replace void print_cur_stat(void) with the one
- below and be sure to add the void name_change(void) also.
-
- /* ──═══BEGIN BLOCK COPY════── */
-
- void print_cur_stat(void)
- {
- char s[81],s1[81];
- userrec ur;
-
- outchr(12);
- existprint("DEFMENU");
-
- goxy(12,2);
- npr ("%s",thisuser.name);
- goxy(58,2);
- npr ("%d X %d",thisuser.screenchars, thisuser.screenlines);
- goxy(12,3);
- npr ("%s",thisuser.realname);
- goxy(58,3);
- npr ("%s",(thisuser.sysstatus & sysstatus_ansi)?
- ((thisuser.sysstatus & sysstatus_color)? "Color":"Monochrome"):
- "No ANSI");
- goxy(12,4);
- npr("%s",thisuser.street);
- goxy(58,4);
- npr("%s",(thisuser.sysstatus & sysstatus_pause_on_page)?"Yes":"No");
- goxy(12,5);
- npr("%s, %s %s",thisuser.city,thisuser.state,thisuser.zipcode);
- goxy(58,5);
- npr("%s",(thisuser.sysstatus & sysstatus_expert)?"On":"Off");
- goxy(12,6);
- npr("%s",thisuser.phone);
- if (thisuser.defprot)
- strcpy(s1,prot_name(thisuser.defprot));
- else
- strcpy(s1,"None");
- goxy(58,6);
- npr("%s",s1);
- goxy(12,7);
- npr("%s",thisuser.dataphone);
- goxy(58,7);
- npr("%s",(thisuser.sysstatus & sysstatus_nscan_file_system)?"Yes":"No");
- goxy(12,8);
- npr("%s",ctypes[thisuser.comp_type]);
- goxy(58,8);
- npr("%d",thisuser.num_extended,thisuser.num_extended==1?"":"s");
- goxy(12,9);
- if ((thisuser.forwardsys==0) && (thisuser.forwardusr==0))
- npr("Normal");
- else {
- if (thisuser.forwardsys)
- npr("%s #%u @%u",net_networks[thisuser.net_num].name,
- thisuser.forwardusr,thisuser.forwardsys);
- else {
- if (thisuser.forwardusr==65535)
- npr("Closed");
- else {
- read_user(thisuser.forwardusr,&ur);
- if (ur.inact & inact_deleted) {
- thisuser.forwardusr=0;
- npr("Normal");
- } else
- npr("%s",nam(&ur,thisuser.forwardusr));
- }
- }
- }
- goxy(58,9);
- npr("%s",(thisuser.sysstatus & sysstatus_no_tag)?"Off":"On");
- goxy(12,10);
- npr("%-27.27s",
- ((thisuser.defed) && (thisuser.defed<=numed))?
- editors[thisuser.defed-1].description:"None",s);
- goxy(58,10);
- if (thisuser.wwiv_regnum)
- npr("%ld",thisuser.wwiv_regnum);
- else
- npr("None");
- goxy(12,11);
- npr("%s",(thisuser.sysstatus & sysstatus_conference)?"On":"Off");
- goxy(58,11);
- npr("%d",thisuser.optional_val);
- goxy(23,16);
- npr("4%s0",thisuser.note);
- nl();
- nl();
- nl();
- nl();
- }
-
- void name_change(int usernum)
- {
- char s[30],t[81];
- userrec u;
-
- read_user(usernum,&u);
- nl();
- npr(get_string(521));
- input(s,30);
- nl();
- if (s[0]) {
- if (finduser(s)<1) {
- dsr(u.name);
- sprintf(t,"7 $*$ %s Changed Alias to: %s"0,u.name,s);
- sl1(0,t);
- pl(t);
- strcpy(u.name,s);
- isr(usernum,u.name);
- write_user(usernum,&u);
- topscreen();
- }
- else
- pl(get_string(522));
- }
- else
- pl(" 6* Alias not changed *0 ");
- }
-
- /* ──═══END BLOCK COPY════── */
-
-
-
- Step 3: Now still in DEFAULTS.C, look for void defaults(void)
- and replace it with this one.
-
- /* ──═══BEGIN BLOCK COPY════── */
-
- void defaults(void)
- {
- int i,i1,i2,done;
- char s[81],s1[81],s2[81],ch;
-
- done=0;
- do {
- print_cur_stat();
- tleft(1);
- if (hangup)
- return;
- nl();
- helpl=4;
- prt(2,get_string(477));
- ch=onek("Q?123456789ABCDEFGHIJKLMNOUZ"); //Added Z for Asylum's List
- switch(ch) {
- case 'Q':
- done=1;
- break;
- case '?':
- print_cur_stat();
- break;
- case '1':
- npr("1. %s\r\n",thisuser.name);
- npr("2. %s\r\n",thisuser.realname);
- pl(get_string(429));
- mpl(1);
- ch=onek("Q12");
- switch(ch) {
- case 'Q':
- break;
- case '1':
- name_change(usernum);
- break;
- case '2':
- input_realname(); //added it incase someone
- break; //gets married and wants to change it
- }
- break;
- case '2':
- npr("1. %s\r\n",thisuser.street);
- npr("2. %s\r\n",thisuser.city);
- npr("3. %s\r\n",thisuser.state);
- npr("4. %s\r\n",thisuser.country);
- npr("5. %s\r\n",thisuser.zipcode);
- pl(get_string(429)); //modify this string to say
- //"Change which? (#, Q-quit)
- mpl(1);
- ch=onek("Q12345");
- switch(ch) {
- case 'Q':
- break;
- case '1':
- input_street();
- break;
- case '2':
- input_city();
- break;
- case '3':
- input_state();
- break;
- case '4':
- input_country();
- break;
- case '5':
- input_zipcode();
- break;
- }
- break;
- case '3':
- input_phone();
- break;
- case '4':
- input_dataphone();
- break;
- case '5':
- input_comptype();
- break;
- case '6':
- modify_mailbox();
- break;
- case '7':
- select_editor();
- break;
- case '8':
- if (thisuser.sysstatus & sysstatus_conference)
- thisuser.sysstatus ^= sysstatus_conference;
- nl();
- prt(5,get_string(1152));
- if (yn())
- thisuser.sysstatus |= sysstatus_conference;
- changedsl();
- break;
- case '9':
- input_screensize();
- break;
- case 'A':
- input_ansistat();
- if (thisuser.sysstatus & sysstatus_extra_color)
- thisuser.sysstatus ^= sysstatus_extra_color;
- nl();
- prt(5,get_string(480));
- if (yn())
- thisuser.sysstatus |= sysstatus_extra_color;
- break;
- case 'B':
- thisuser.sysstatus ^= sysstatus_pause_on_page;
- break;
- case 'C':
- thisuser.sysstatus ^= sysstatus_expert;
- break;
- case 'D':
- nl();
- pl(get_string(570));
- nl();
- helpl=40;
- i=get_protocol(xf_down);
- if (i>=0)
- thisuser.defprot=i;
- break;
- case 'E':
- nl();
- pl(get_string(811));
- outstr(get_string(812));
- if (thisuser.sysstatus & sysstatus_nscan_file_system)
- thisuser.sysstatus -= sysstatus_nscan_file_system;
- if (yn())
- thisuser.sysstatus += sysstatus_nscan_file_system;
- break;
- case 'F':
- nl();
- pl(get_string(813));
- pl(get_string(814));
- outstr(get_string(815));
- pln(thisuser.num_extended);
- prt(5,"? ");
- helpl=41;
- input(s,3);
- if (s[0]) {
- i=atoi(s);
- if ((i>=0) && (i<=10))
- thisuser.num_extended=i;
- }
- break;
- case 'G':
- thisuser.sysstatus ^= sysstatus_no_tag;
- break;
- case 'H':
- enter_regnum();
- break;
- case 'I':
- optional_lines();
- break;
- case 'J':
- config_qscan();
- break;
- case 'K':
- input_pw1();
- break;
- case 'L':
- helpl=24;
- config_nscan();
- break;
- case 'M':
- make_macros();
- break;
- case 'N':
- change_colors();
- break;
- case 'O':
- if (num_languages>1)
- input_language();
- break;
- case 'U':
- usernote();
- break;
- case 'Z': //Asylum's List Files +
- if(ok_listplus()) //same
- config_file_list(); //same
- break; //same
- }
- } while ((!done) && (!hangup));
- }
-
- void usernote(void)
- {
- char ro[81];
-
- nl();
- pl(get_string(273));
- npr(" : ");
- mpl(40);
- inli(thisuser.note,ro,40,1);
- topscreen();
- }
-
- /* ──═══END BLOCK COPY════── */
-
- NOTE: Ensure you put the void usernote(void) in also.
-
- Step 4: Open XFEROVL.C and remove the whole void XFER_DEFAULTS(VOID).
- This is purely optional. If you want to leave it alone then do so.
-
- Step 5: If you don't do STEP 4 then disregard this as well.
- Open MMENU.C and remove the "case 'T'" code in void dlmainmenu(void).
- If you've overlayed then you'll know where it is :)
-
- == case 'S':
- == searchall();
- == break;
- -- case 'T':
- -- helpl=32;
- -- xfer_defaults();
- -- break;
- == case 'U':
- == helpl=17;
-
- Step 6: Type MAKE FCNS (easiest way) and then recompile. That should do it.
-
- Here's the .ANS and .MSG files
-
- section 1 of 1 of file defaults.zip < uuencode 5.32 by R.E.M. >
-
- begin 644 defaults.zip
- M4$L#!!0````(`(YXY1[-%J#,K`$``&T$```+````1$5&345.52Y!3E.%DTUO
- MFT`00.^1\@NXC-2S*V,6.RZ'*H&D=6NP%=>)5$XK/"$KL2S:7=0FO[X+054&
- M7/6R&J$W;[Z$EW]>/7OY(@P3+Y]'?A0LI-]%02@_@I?[\KH2W+@H8/*3`]>Q
- M"Q=R39A#H1%K.(A7A`&]O(`^7,I[Y!5,!-?O!:YJQ/SN6[",6"@S%P018_+0
- M4W[$5G+CY5VJ8UG$YEV!WK.@C5AMI[5N"+/GK4$86AXW&PO[,A7$1'#[NT%7
- M)E6G=]/V7$"X!R4*G+@2VHQ65A6J\O(P)BI&L(1;/FWKEAZJM6IV*'@-B=#$
- M%1(N5K*9NNY&(UK-(4%3Z(:.N"1<RL69VWXAS)VH$'[PLA1U25TK6O,DK-)C
- MUU?"/#YN'N`>2_@`H]5?C6:LGW#BVA!FUUBA:JA$C>:O:[!]F]A$V6J$;&:Z
- M!3\I#2D:PTN$&VY</O1IWVG:,Z\=L.?&_%+Z-*BW_U>[^V'A=B$Z\:!.2=JQ
- M.7&+D/)"*S.(LW/%8U4I;=P*@K<5[,Y!6_>V;I9!=#S''`UJR)3%M_]D-K`_
- M_S'-5A@+^ZHUT)W?-3"7EQ=_`%!+`P04````"`#\NU`>QK>!KP\"``"]`P``
- M"P```$1%1DU%3E4N35-'=5-=;]HP%'V/E/]PI#ZLDT@4*!`::=HHT(T6`DL&
- M_7AS@PN60AS9CEC[9_97=PTMVQC<!RN^/O?<<X^=NH]N+IA&A+0[G0X2'(U+
- M'VFF."^0BE<.0G<"W*/1=!TZ36*+B7`C.:[DAE#_1Y<:Q>EPOX_0D[E4KM,@
- M:J.,S8S%(A;&<JR?N/JW_LK'E%6:O^N(\,#UMGM/F!=;/<C%*WOB9F7DIJCA
- M]@%H-L*@CO,9>CX&/TM.;<9RL=4_*5SGPL=<BHS3MA4TO+!]Z;6"X.)0>I]:
- M*VED)O,WZ8^>I5F[3M-'GQF&=X:+T`N#1OV084##5T9Z:<8*](6*$$O7:?GD
- MP;K<N=GLM/OW#1R):ZO=*(8^UYDJ"1T@%X6=ONUCS$1N&:ZEVC"U@)%D8Y+(
- M).8&9W5\(7^_^K@6.<</MER*8ODV?4B\"V$DJ;F[$W/[#<_#+Z%7:U9\T.BM
- MR!Q\\^EX.$?"ESC#;M*P%;I.Q\HOGKFR=#@90Q^3T@A9[$1;^:[C.C>[:K&L
- M%$?L:>O,LU08<ZW9DN.*:0+CEF`K5E!BRK3>2+5PG=&)4C*69S2/L(7`V,>L
- M7###R:-,2;(KWI-MWYX^H7BRAXUHK4B-Z\SVN9GFBJZ/:(_$G\-/2%_TI(1W
- M\*I=Y_%O^2.A#:9YI;<WI*TS??[,JMQHG,?5]C^@T4;<&*YJ^%S#]TJ8CX@L
- M\C=02P$"%``4````"`".>.4>S1:@S*P!``!M!```"P`````````!`"``````
- M````1$5&345.52Y!3E-02P$"%``4````"`#\NU`>QK>!KP\"``"]`P``"P``
- M```````!`"````#5`0``1$5&345.52Y-4T=02P4&``````(``@!R````#00`
- #````
- `
- end
- sum -r/size 24952/1647 section (from "begin" to "end")
- sum -r/size 2593/1173 entire input file
-