home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / BEAM203.MOD < prev    next >
Text File  |  1995-06-29  |  8KB  |  183 lines

  1. Beamer #1 @3459
  2. Thu Jun 29 19:02:51 1995
  3. ╔═══════════════════════════════════════════════════════════════════════════╗
  4. ║ Mod Name:    :  BEAM203.MOD                                               ║
  5. ║ Difficulty   :  ▓░░░░░░░░░                                                ║
  6. ║ WWIV Version :  4.24                                                      ║
  7. ║ Version Date :  06/29/95                                                  ║
  8. ║ Description  :  This will add extended computer types to your users field ║
  9. ╚═══════════════════════════════════════════════════════════════════════════╝
  10.  
  11. ┌───────────────────────────────────────────────────────────────────────────┐
  12. │ Legend:                                                                   │
  13. │                                                                           │
  14. │  - Commeny out or delete                                                  │
  15. │  + Add this                                                               │
  16. │  = Leave alone                                                            │
  17. │  @ Change this                                                            │
  18. └───────────────────────────────────────────────────────────────────────────┘
  19.  
  20. ┌───────────────────────────────────────────────────────────────────────────┐
  21. │ NOTE:                                                                     │
  22. │                                                                           │
  23. │ This idea originated from PBUEDIT2 and SPV-038K.MOD (UEDIT2) for 4.23.    │
  24. │ DON'T forget to make the PBU.CT if you are using PBUEDIT2 like the docs   │
  25. │ tells you to.                                                             │
  26. │                                                                           │
  27. └───────────────────────────────────────────────────────────────────────────┘
  28.  
  29. ──────────────────────────────────────────────────────────────────────────────
  30. Step 0:   Dahhhhh!!!
  31. ──────────────────────────────────────────────────────────────────────────────
  32.  
  33. ──────────────────────────────────────────────────────────────────────────────
  34. Step 1:   Open up VARS.H and change the following to the top...
  35.       Change this to look like the following, adding in the computer
  36.       types listed...
  37. ──────────────────────────────────────────────────────────────────────────────
  38.  
  39. char *ctypes[] = {
  40.   "8088",
  41.   "8086",
  42.   "286",
  43.   "386SX",
  44.   "386DX",
  45.   "486SX",
  46.   "486DX",
  47.   "486DX2",
  48.   "486DX4",
  49.   "Pentium",
  50.   "IBM PS/1",
  51.   "IBM PS/2",
  52.   "Apple II",
  53.   "Apple //c",
  54.   "Apple //e",
  55.   "MacIntosh",
  56.   "Quadra",
  57.   "VIC 20",
  58.   "C= 64",
  59.   "C= 128",
  60.   "Amiga",
  61.   "PowerPC",
  62.   "DEC Alpha",
  63.   "Sparc",
  64.   "NEXTStep",
  65.   "Z80-CP/M",
  66.   "Atari",
  67.   "Coleco",
  68.   "Timex",
  69.   "Other",
  70.   0L,
  71. };
  72.  
  73.  
  74. ──────────────────────────────────────────────────────────────────────────────
  75. Step 2:   Open up NEWUSER.C and block copy the new void below inplace of
  76.       the original one....
  77. ──────────────────────────────────────────────────────────────────────────────
  78.  
  79. void input_comptype(void)
  80. {
  81.   int i,ok,ct;
  82.   char c[5];
  83.  
  84.   do {
  85.    noabort("COMPUTER.ANS");
  86.    goxy(2,2);
  87.    prt(4," Please Choose A Computer Type: ");
  88.    mpl(2);
  89.    input(c,2);
  90.    ct=atoi(c);
  91.  
  92.    ok=1;
  93.    if ((ct<1) || (ct>i))
  94.      ok=0;
  95.  
  96.   } while ((!ok) && (!hangup));
  97.   thisuser.comp_type=ct-1;
  98.   if (hangup)
  99.     thisuser.comp_type=0;
  100. }
  101.  
  102.      Now, in LILO.C, add these lines:
  103.  
  104. ──────────────────────────────────────────────────────────────────────────────
  105. Step 3:   Now, in LILO.C, add these lines:
  106. ──────────────────────────────────────────────────────────────────────────────
  107.  
  108.  
  109. =      if (!thisuser.zipcode[0])
  110. =        input_zipcode();
  111. +      if (thisuser.comp_type<0) {
  112. +        nl();
  113. +        pl(get_stringx(6,91));//Sorry for the inconvenience, but we're re-compili
  114. ng a list
  115. +        pl(get_stringx(6,92));//of our users' computer types. Please select a new
  116.  computer
  117. +        nl();
  118. +        pausescr();
  119. +        input_comptype();
  120. +        CLS();
  121. +      }
  122. =      if (!thisuser.dataphone[0]) {
  123.  
  124.  
  125. ──────────────────────────────────────────────────────────────────────────────
  126. Step 4:   Now block copy this ANSI to your GFILES dir and name it
  127.       COMPUTER.ANS
  128. ──────────────────────────────────────────────────────────────────────────────
  129.  
  130. ------------------------- BEGIN BLOCK COPY OF COMPUTER.ANS -------------------
  131. ┌────────────────────────────────────────────────────────
  132. 6m[ Direction Box ]───
  133. │                                                                    
  134.         
  135. ─────────────────────────────────────────────────────────────
  136. ───────────────┘
  137.  
  138.  
  139. C■■┌────────┐C▐
  140. 0;47m■■┌─────────┐C■■7;4
  141. 0m▌┌─────────
  142. C8088    │C▐
  143. 11IBM PS/1 │C
  144. 21Amiga    
  145. C8086    │C▐
  146. 12IBM PS/2 │C
  147. 22PowerPC  
  148. C286     │C▐
  149. 13Apple II │C
  150. 23DEC Alpha
  151. C386SX   │C▐
  152. 14Apple IIc│C
  153. 24SPARC    
  154. C386DX   │C▐
  155. 15Apple IIe│C
  156. 25NEXTStep 
  157. C486SX   │C▐
  158. 16MacIntosh│C
  159. 26Z80-CP/M 
  160. C486DX   │C▐
  161. 17Quadra   │C
  162. 27Atari    
  163. C486DX2  │C▐
  164. 18VIC 20   │C
  165. 28Coleco   
  166. C486DX4  │C▐
  167. 19C= 64    │C
  168. 29Timex    
  169. C10Pentium │C▐
  170. 20C= 128   │C
  171. 30Other    
  172. C■■────────┘C▐
  173. 0;47m■■─────────┘C■■7;4
  174. 0m▌─────────┘
  175. ------------------------- END BLOCK COPY OF COMPUTER.ANS ---------------------
  176.  
  177. ─────────────────────────────────────────────────────────────────────────────
  178. Step 5:   Save, Compile, and Enjoy!
  179. ──────────────────────────────────────────────────────────────────────────────
  180.  
  181.                 After Dark BBs
  182.                 (314) 946-1730
  183.