home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / NI-014.ZIP / NI-014.424 < prev   
Encoding:
Text File  |  1995-07-11  |  11.6 KB  |  414 lines

  1. Johnny Five #26 @15301
  2. Fri Jul 07 13:25: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-014.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-05-95                    and many others       │
  11. │                                                                           │
  12. │ Files Affected: MMENU.C, DEFAULTS.C, [XFER.C, XFEROVL.C] []=Optional      │
  13. │                                                                           │
  14. │ Description:  Sapper's old 4.23 defaults mod. Originally by Dr. Dream     │
  15. │ Master updated for 4.24                                                   │
  16. ╘═══════════════════════════════════════════════════════════════════════════╛
  17. Notes:
  18.  
  19. I fixed a few of the features and updated it for v4.24
  20.  
  21.  
  22.  
  23.  
  24. = Already there
  25. + add
  26. - Remove
  27. * change
  28.  
  29.  
  30. Step 1: B(ack).U(p).Y(our).S(ource).
  31.  
  32. Step 2: Go to DEFAULTS.C and replace void print_cur_stat(void) with the one
  33.           below and be sure to add the void name_change(void) also.
  34.  
  35. /* ──═══BEGIN BLOCK COPY════── */
  36.  
  37. void print_cur_stat(void)
  38. {
  39.   char s[81],s1[81];
  40.   userrec ur;
  41.  
  42.   outchr(12);
  43.   existprint("DEFMENU");
  44.  
  45.      goxy(12,2);
  46.      npr ("%s",thisuser.name);
  47.      goxy(58,2);
  48.      npr ("%d X %d",thisuser.screenchars, thisuser.screenlines);
  49.      goxy(12,3);
  50.      npr ("%s",thisuser.realname);
  51.      goxy(58,3);
  52.      npr ("%s",(thisuser.sysstatus & sysstatus_ansi)?
  53.           ((thisuser.sysstatus & sysstatus_color)? "Color":"Monochrome"):
  54.           "No ANSI");
  55.      goxy(12,4);
  56.      npr("%s",thisuser.street);
  57.      goxy(58,4);
  58.      npr("%s",(thisuser.sysstatus & sysstatus_pause_on_page)?"Yes":"No");
  59.      goxy(12,5);
  60.      npr("%s, %s  %s",thisuser.city,thisuser.state,thisuser.zipcode);
  61.      goxy(58,5);
  62.      npr("%s",(thisuser.sysstatus & sysstatus_expert)?"On":"Off");
  63.      goxy(12,6);
  64.      npr("%s",thisuser.phone);
  65.      if (thisuser.defprot)
  66.           strcpy(s1,prot_name(thisuser.defprot));
  67.             else
  68.           strcpy(s1,"None");
  69.      goxy(58,6);
  70.      npr("%s",s1);
  71.      goxy(12,7);
  72.      npr("%s",thisuser.dataphone);
  73.      goxy(58,7);
  74.      npr("%s",(thisuser.sysstatus & sysstatus_nscan_file_system)?"Yes":"No");
  75.      goxy(12,8);
  76.      npr("%s",ctypes[thisuser.comp_type]);
  77.      goxy(58,8);
  78.      npr("%d",thisuser.num_extended,thisuser.num_extended==1?"":"s");
  79.      goxy(12,9);
  80.           if ((thisuser.forwardsys==0) && (thisuser.forwardusr==0)) 
  81.           npr("Normal"); 
  82.            else {
  83.           if (thisuser.forwardsys) 
  84.           npr("%s #%u @%u",net_networks[thisuser.net_num].name,
  85.           thisuser.forwardusr,thisuser.forwardsys);
  86.           else {
  87.           if (thisuser.forwardusr==65535) 
  88.           npr("Closed");
  89.           else {
  90.           read_user(thisuser.forwardusr,&ur);
  91.           if (ur.inact & inact_deleted) {
  92.           thisuser.forwardusr=0;
  93.           npr("Normal");
  94.           } else
  95.           npr("%s",nam(&ur,thisuser.forwardusr));
  96.            }
  97.           }
  98.          }
  99.      goxy(58,9);
  100.      npr("%s",(thisuser.sysstatus & sysstatus_no_tag)?"Off":"On");
  101.      goxy(12,10);
  102.      npr("%-27.27s",
  103.           ((thisuser.defed) && (thisuser.defed<=numed))?
  104.           editors[thisuser.defed-1].description:"None",s);
  105.      goxy(58,10);
  106.      if (thisuser.wwiv_regnum)
  107.      npr("%ld",thisuser.wwiv_regnum);
  108.        else 
  109.      npr("None"); 
  110.      goxy(12,11);
  111.      npr("%s",(thisuser.sysstatus & sysstatus_conference)?"On":"Off");
  112.      goxy(58,11);
  113.      npr("%d",thisuser.optional_val);
  114.      goxy(23,16);
  115.      npr("4%s0",thisuser.note);
  116.      nl();
  117.      nl();
  118.      nl();
  119.      nl();
  120. }
  121.  
  122. void name_change(int usernum)
  123. {
  124.   char s[30],t[81];
  125.   userrec u;
  126.  
  127.   read_user(usernum,&u);
  128.   nl();
  129.   npr(get_string(521));
  130.   input(s,30);
  131.   nl();
  132.   if (s[0]) {
  133.     if (finduser(s)<1) {
  134.       dsr(u.name);
  135.       sprintf(t,"7   $*$ %s Changed Alias to: %s"0,u.name,s);
  136.       sl1(0,t);
  137.       pl(t);
  138.       strcpy(u.name,s);
  139.       isr(usernum,u.name);
  140.       write_user(usernum,&u);
  141.       topscreen();
  142.     }
  143.     else
  144.       pl(get_string(522));
  145.   }
  146.   else
  147.     pl(" 6* Alias not changed *0 ");
  148. }
  149.  
  150. /* ──═══END BLOCK COPY════── */
  151.  
  152.  
  153.  
  154. Step 3: Now still in DEFAULTS.C, look for void defaults(void) 
  155.           and replace it with this one.
  156.  
  157. /* ──═══BEGIN BLOCK COPY════── */
  158.  
  159. void defaults(void)
  160. {
  161.   int i,i1,i2,done;
  162.   char s[81],s1[81],s2[81],ch;
  163.  
  164.   done=0;
  165.   do {
  166.     print_cur_stat();
  167.     tleft(1);
  168.     if (hangup)
  169.       return;
  170.     nl();
  171.     helpl=4;
  172.     prt(2,get_string(477));
  173.     ch=onek("Q?123456789ABCDEFGHIJKLMNOUZ");  //Added Z for Asylum's List 
  174.     switch(ch) {
  175.     case 'Q':
  176.      done=1;
  177.      break;
  178.     case '?':
  179.      print_cur_stat();
  180.      break;
  181.     case '1':
  182.      npr("1.  %s\r\n",thisuser.name);
  183.      npr("2.  %s\r\n",thisuser.realname);
  184.      pl(get_string(429));
  185.      mpl(1);
  186.      ch=onek("Q12");
  187.      switch(ch) {
  188.           case 'Q':
  189.           break;
  190.           case '1':
  191.           name_change(usernum);
  192.           break;
  193.           case '2':
  194.           input_realname();  //added it incase someone
  195.           break;             //gets married and wants to change it
  196.           }
  197.      break;
  198.     case '2': 
  199.      npr("1.  %s\r\n",thisuser.street); 
  200.      npr("2.  %s\r\n",thisuser.city); 
  201.      npr("3.  %s\r\n",thisuser.state); 
  202.      npr("4.  %s\r\n",thisuser.country); 
  203.      npr("5.  %s\r\n",thisuser.zipcode); 
  204.      pl(get_string(429));                   //modify this string to say 
  205.                                             //"Change which? (#, Q-quit)
  206.      mpl(1);
  207.      ch=onek("Q12345");
  208.      switch(ch) {
  209.           case 'Q':
  210.           break;
  211.           case '1':
  212.           input_street();
  213.           break;
  214.           case '2':
  215.           input_city();
  216.           break;
  217.           case '3':
  218.           input_state();
  219.           break;
  220.           case '4':
  221.           input_country();
  222.           break;
  223.           case '5':
  224.           input_zipcode();
  225.           break;
  226.           }
  227.      break;
  228.     case '3':
  229.      input_phone();
  230.      break;
  231.     case '4':
  232.      input_dataphone();
  233.      break;
  234.     case '5':
  235.      input_comptype();
  236.      break;
  237.     case '6':
  238.      modify_mailbox();
  239.      break;
  240.     case '7':
  241.      select_editor();
  242.      break;
  243.     case '8':
  244.      if (thisuser.sysstatus & sysstatus_conference)
  245.          thisuser.sysstatus ^= sysstatus_conference;
  246.      nl();
  247.      prt(5,get_string(1152));
  248.      if (yn())
  249.      thisuser.sysstatus |= sysstatus_conference;
  250.      changedsl();
  251.      break;
  252.     case '9':
  253.      input_screensize();
  254.      break;
  255.     case 'A':
  256.      input_ansistat();
  257.      if (thisuser.sysstatus & sysstatus_extra_color)
  258.          thisuser.sysstatus ^= sysstatus_extra_color;
  259.      nl();
  260.      prt(5,get_string(480));
  261.      if (yn())
  262.      thisuser.sysstatus |= sysstatus_extra_color;
  263.      break;
  264.     case 'B':
  265.      thisuser.sysstatus ^= sysstatus_pause_on_page;
  266.      break;
  267.     case 'C':
  268.      thisuser.sysstatus ^= sysstatus_expert;
  269.      break;
  270.     case 'D':
  271.      nl();
  272.      pl(get_string(570));
  273.      nl();
  274.      helpl=40;
  275.      i=get_protocol(xf_down);
  276.      if (i>=0)
  277.      thisuser.defprot=i;
  278.      break;
  279.     case 'E':
  280.      nl();
  281.      pl(get_string(811));
  282.      outstr(get_string(812));
  283.      if (thisuser.sysstatus & sysstatus_nscan_file_system)
  284.          thisuser.sysstatus -= sysstatus_nscan_file_system;
  285.      if (yn())
  286.           thisuser.sysstatus += sysstatus_nscan_file_system;
  287.      break;
  288.     case 'F':
  289.      nl();
  290.      pl(get_string(813));
  291.      pl(get_string(814));
  292.      outstr(get_string(815));
  293.      pln(thisuser.num_extended);
  294.      prt(5,"? ");
  295.      helpl=41;
  296.      input(s,3);
  297.      if (s[0]) {
  298.        i=atoi(s);
  299.        if ((i>=0) && (i<=10))
  300.          thisuser.num_extended=i;
  301.      }
  302.      break;
  303.     case 'G':
  304.      thisuser.sysstatus ^= sysstatus_no_tag;
  305.      break;
  306.     case 'H':
  307.      enter_regnum();
  308.      break;
  309.     case 'I':
  310.      optional_lines();
  311.      break;
  312.     case 'J':
  313.      config_qscan();
  314.      break;
  315.     case 'K':
  316.      input_pw1();
  317.      break;
  318.     case 'L':
  319.      helpl=24;
  320.      config_nscan();
  321.      break;
  322.     case 'M':
  323.      make_macros();
  324.      break;
  325.     case 'N':
  326.      change_colors();
  327.      break;
  328.     case 'O':
  329.      if (num_languages>1)
  330.        input_language();
  331.      break;
  332.     case 'U':
  333.       usernote();
  334.       break;
  335.       case 'Z':                                 //Asylum's List Files +
  336.          if(ok_listplus())                      //same
  337.            config_file_list();                  //same
  338.          break;                                 //same
  339.     }
  340.   } while ((!done) && (!hangup));
  341. }
  342.  
  343. void usernote(void)
  344. {
  345. char ro[81];
  346.  
  347.      nl();
  348.      pl(get_string(273));
  349.      npr(" : ");
  350.      mpl(40);
  351.      inli(thisuser.note,ro,40,1);
  352.      topscreen();
  353. }
  354.  
  355. /* ──═══END BLOCK COPY════── */
  356.  
  357. NOTE:  Ensure you put the void usernote(void) in also.
  358.  
  359. Step 4: Open XFEROVL.C and remove the whole void XFER_DEFAULTS(VOID).
  360.          This is purely optional.  If you want to leave it alone then do so.
  361.  
  362. Step 5: If you don't do STEP 4 then disregard this as well.
  363.          Open MMENU.C and remove the "case 'T'" code in void dlmainmenu(void).
  364.          If you've overlayed then you'll know where it is :)
  365.  
  366. ==     case 'S':
  367. ==       searchall();
  368. ==       break;
  369. --      case 'T':
  370. --        helpl=32;
  371. --        xfer_defaults();
  372. --        break;
  373. ==     case 'U':
  374. ==       helpl=17;
  375.  
  376. Step 6: Type MAKE FCNS (easiest way) and then recompile. That should do it.
  377.  
  378. Here's the .ANS and .MSG files
  379.  
  380. section 1 of 1 of file defaults.zip  < uuencode 5.32 by R.E.M. >
  381.  
  382. begin 644 defaults.zip
  383. M4$L#!!0````(`(YXY1[-%J#,K`$``&T$```+````1$5&345.52Y!3E.%DTUO
  384. MFT`00.^1\@NXC-2S*V,6.RZ'*H&D=6NP%=>)5$XK/"$KL2S:7=0FO[X+054&
  385. M7/6R&J$W;[Z$EW]>/7OY(@P3+Y]'?A0LI-]%02@_@I?[\KH2W+@H8/*3`]>Q
  386. M"Q=R39A#H1%K.(A7A`&]O(`^7,I[Y!5,!-?O!:YJQ/SN6[",6"@S%P018_+0
  387. M4W[$5G+CY5VJ8UG$YEV!WK.@C5AMI[5N"+/GK4$86AXW&PO[,A7$1'#[NT%7
  388. M)E6G=]/V7$"X!R4*G+@2VHQ65A6J\O(P)BI&L(1;/FWKEAZJM6IV*'@-B=#$
  389. M%1(N5K*9NNY&(UK-(4%3Z(:.N"1<RL69VWXAS)VH$'[PLA1U25TK6O,DK-)C
  390. MUU?"/#YN'N`>2_@`H]5?C6:LGW#BVA!FUUBA:JA$C>:O:[!]F]A$V6J$;&:Z
  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$5&345.52Y!3E-02P$"%``4````"`#\NU`>QK>!KP\"``"]`P``"P``
  408. M```````!`"````#5`0``1$5&345.52Y-4T=02P4&``````(``@!R````#00`
  409. #````
  410. `
  411. end
  412. sum -r/size 24952/1647 section (from "begin" to "end")
  413. sum -r/size 2593/1173 entire input file
  414.