home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / SPV-064.ZIP / SPV-064.MOD < prev   
Encoding:
Text File  |  1995-06-13  |  5.7 KB  |  120 lines

  1. Papa Bear #1 @11579
  2. Sat Jun 10 23:14:48 1995
  3. 4Msg. Status:3▄ 16Please reply!00
  4. 3 ▀▀▀▀▀▀▀▀▀▀▀▀0
  5.  
  6. ┌────────────────────────────A CEREBRUM release!─────────────────────────────┐
  7. │ Mod Name: SPV-064.MOD      Mod Authors: Pâpâ ßêâr (11579.wwivnet)          │
  8. │ Difficulty: ▓░░░░░░░░░     First ----- [06/11/95]                          │
  9. │ WWIV Version: 4.24         Last ------ [00/00/00]                          │
  10. │ Files Affected: LILO.C DEFAULTS.C VARDEC.H                                 │
  11. │ Description: Set up a way to access QWK during logon, with toggleable ON / │
  12. │OFF in the defaults.                                                        │
  13. ╞═────────────────────────────────────═╤═───────────────────────────────────═╡
  14. │ StarPort Valhalla [   ]   -     ASV 28.8kbps  Home of the SPV mod series!  │
  15. └─────────────────────────────────────═╧═────────────────────────────────────┘
  16.  
  17.                      >>> OFFICIAL WWIV SUPPORT SITE! <<<
  18.  
  19.  Word of Warning:  You installed it, you're responsible! Make back-ups BEFORE
  20.  attempting to install this modification!  Read all text before beginning.
  21. ─────────────────────────────────────────────────────────────────────────────
  22.  LEGEND:
  23.  ==  Original Code [use this to search on]
  24.  ++  Add this Line [mods ALWAYS add stuff, don't they?]
  25.  -+  Change this Line [I usually comment these lines]
  26. ...  Skipping down  few lines to save bandwidth
  27. ─────────────────────────────────────────────────────────────────────────────
  28.  LONG DESCRIPTION: Had this for quite some time.  Thought since that there
  29. was an empty bitfield in the QWK portion of the userrec, I'd use it for this
  30. purpose.  It'll ask the user if they want to access the QWK portion of your
  31. BBS during the logon procedures.  Users can toggle this option ON/OFF in the
  32. defaults.
  33. ─────────────────────────────────────────────────────────────────────────────
  34. STEP 1:  Open LILO.C and add this code in void logon(void)
  35.  
  36. ==    create_chain_file();
  37. ==    rsm(usernum,&thisuser,1);
  38. // START SPV-064 BLOCK COPY
  39.     if (thisuser.qwk_auto) {
  40.       nl();
  41.       npr("9Use QWK offline mail system? 5(1Y5/1N5)2:0 ");
  42.       if (yn())
  43.         qwk_menu();
  44.     }
  45. // END SPV-064 BLOCK COPY
  46. ==    if (thisuser.waiting) {
  47. ==          if (menu_on()) {
  48. ==        printmenu(324);
  49. ─────────────────────────────────────────────────────────────────────────────
  50. STEP 2: In DEFAULTS.C,  void print_cur_stat(void), add these lines:
  51.  
  52. ==   if (rip) {
  53. ==     ansic_x(1); outstr(get_string(1494));
  54. ==     ansic_x(2); pl((thisuser.sysstatus & sysstatus_disable_rip)?
  55. ==                   str_no:str_yes);
  56. ==   }
  57. ++   ansic_x(1); outstr("!. QWK at Logon       : ");               // SPV-064
  58. ++   ansic_x(2); pl((thisuser.qwk_auto)?str_yes:str_no);           // SPV-064
  59. ==   ansic_x(1); pl(get_string(403));
  60. == }
  61. ─────────────────────────────────────────────────────────────────────────────
  62. STEP 3: Make these changes in DEFAULTS.C, void defaults(void):
  63.  
  64. ==    if (menu_on()) {
  65. -+      printmenu(316);                                      // SPV-064 NOTE1
  66. ==      if (thisuser.sysstatus & sysstatus_ansi)
  67. ==            comstr("|@AQ33X\r\r");
  68. . . . SKIPPING DOWN JUST A FEW LINES . . .
  69. ==      if ((thisuser.sysstatus & sysstatus_no_msgs)==0)
  70. ==            comstr("|@AQ5RX\r\r");
  71. -+      ch=onek("Q?123456789ABCWLMR!");                    // SPV-064 added !
  72. ==    } else if (okansi()) {
  73. -+      prt(2,get_string(477));                              // SPV-064 NOTE2
  74. -+      ch=onek("Q?123456789ABCWLMR!");                    // SPV-064 added !
  75. ==    } else {
  76. -+      prt(2,get_string(478));                              // SPV-064 NOTE2
  77. -+      ch=onek("Q?1234567BCWLMR!");                       // SPV-064 added !
  78. ==    }
  79. ==    if (menu_on()) {
  80. ==      comr("|*");
  81. ==      printmenu(319);
  82. ==    }
  83. ==    switch(ch) {
  84. ++      case '!':                                                  // SPV-064
  85. ++        thisuser.qwk_auto=!thisuser.qwk_auto;                    // SPV-064
  86. ++        break;                                                   // SPV-064
  87. ==      case 'Q':
  88. ==        if (menu_on())
  89.  
  90. NOTE1: Use a good RIP editor, and edit entry number 316 in the MENUSSOF.MSG
  91.        file in the GFILES directory -- add the ! as an option.
  92.  
  93. NOTE2: in string numbers 477 and 478 in BBS.STR, add ! as an option.
  94. ─────────────────────────────────────────────────────────────────────────────
  95. STEP 4: In VARDEC.H, modify this line:
  96.  
  97. ==    unsigned int qwk_dontscanfiles : 1;
  98. ==    unsigned int qwk_keep_routing : 1;
  99. -+    unsigned int qwk_auto         : 1;           // SPV-064 addded qwk_auto
  100. ==    unsigned int qwk_protocol : 4;
  101. ─────────────────────────────────────────────────────────────────────────────
  102. STEP 5: Recompile this beast.
  103. ─────────────────────────────────────────────────────────────────────────────
  104. STEP 6: E-Mail me and tell me ya love it! :)
  105. ─────────────────────────────────────────────────────────────────────────────
  106.    This mod is copyright 1993,1994 by Tracy Baker, aka Papa Bear, and is
  107. distributed as freeware.  Permission is granted to distribute and post this
  108.   mod on BBS systems and online services, provided no alterations are made
  109.  (removal of message headers/taglines allowed).  This mod may contain some
  110.  parts of WWIV source code, which is copyright 1988-1994 by Wayne Bell and
  111.    licensed only to registered users of WWIV.  Use of WWIV source without
  112.     registration constitutes a license violation and could lead to legal
  113.                        prosecution and certain doom.
  114.   Shareware distributors and CD-ROM publishers may not distribute this mod
  115. without express written permission of the Author or WWIV Software Services.
  116.  
  117. 7-9=1*6>2Pâpâ ßêâr6<1*9=7-0
  118. ---
  119. 7Slugs sauté: An hors of a different d'oeuvre.
  120.