home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / APOLLO24.423 < prev    next >
Text File  |  1993-12-23  |  4KB  |  108 lines

  1. Apollo24.423
  2. ``/┤PΘ££Θ`` WWIVnet #1 AT 2938
  3. Sat Dec 18 08:09:31 1993
  4. 0R: net33: @4136 (via @1) [11:44 12/23/93]
  5. 0R: net33: @1 (via @4120) [07:02 12/23/93]
  6. 0R: net33: @4120 [06:19 12/23/93]
  7. 0R: net33: @4062 (via @4064) [05:11 12/23/93]
  8. 0R: net33: @4064 (via @1040) [01:18 12/23/93]
  9. 0R: net33: @1040 (via @2050) [00:38 12/23/93]
  10. 0R: net34: @2050 [22:46 12/22/93]
  11. 0R: net34: @2050 (via @1040) [03:58 12/20/93]
  12. 0R: net34: @2050 (via @1040) [14:41 12/19/93]
  13. 0R: net33: @1040 (via @1042) [15:27 12/19/93]
  14. 0R: net33: @1042 (via @2914) [13:06 12/19/93]
  15. 0R: net33: @2914 (via @2938) [22:47 12/18/93]
  16. 0R: net33: @2938 [08:19 12/18/93]
  17. ┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
  18. │ Mod Name: Apollo24.423  Mod Authors: Apollo  1@92938 WWIVNet & BRNet    │
  19. │ Difficulty: ██▒▒▒▒▒▒▒▒               1@2939 TARDIS,TERRA,ICE & Mas Nets │
  20. │ WWIV Version: v4.23            Date: 12/09/93                           │
  21. │ Files Affected: BBSUTIL1.C                                              │
  22. │ SysOp (SL=255) in different color.                                      │
  23. └─────────────────────────────────────────────────────────────────────────┘
  24.  
  25. Special Thanks to the writer of DARYL002.422 whose MOD locked up my
  26. computer and forced me to write this one.
  27.  
  28. Real Thanks to the writer of DAWG16.MOD.  His code allows for the showing
  29. of SL=255 chains in different color. His MOD was well written, and worked
  30. the second time.
  31.  
  32. With the advent of 4.23, my chains already apperar boxed, so this one now
  33. adds my Executive Deversions header, and makes the SL=255 chains appear
  34. in a different color.
  35.  
  36. LEGEND:
  37. = old code, Search for this
  38. + new code
  39. - Remove or comment out this line
  40. > Modified From Virgin Code
  41.  
  42. #include <witty disclaimer>
  43.  
  44. BACKUP your Source
  45.  
  46. Load up: BBSOVL1.C
  47. Find: void show_chains(int *mapp, int *map)
  48. =  userrec u;
  49. =
  50. =  abort=0;
  51. =  nl();
  52. +  sprintf(s,"  %d┌────═══│4Executive Diversions%d│═══── ∙∙ ─ ∙∙  ∙",
  53. +      FRAME,FRAME);                                     /* Apollo24.423 */
  54. +  pla(s,&abort);                                        /* Apollo24.423 */
  55. =  strcpy(s,get_string(1045));
  56. =  sprintf(s1,"%-42.42s2",get_string(1046));
  57. =  strcat(s,s1);
  58. .
  59. .
  60. .
  61. =  for (i=0; (i<*mapp) && (!abort) && (!hangup); i++) {
  62. =    strcat(s,". ");
  63. =    if (okansi()) {
  64. =      read_user(chains_reg[map[i]].regby[0],&u);
  65. +                                                  /* Begin Apollo24.423 */
  66. +      if (chains[map[i]].sl==255)
  67. +        sprintf(s,
  68. +              " %d║1%3d%d║2%-41s%d║%d%-21s%d║2%5d%d║",
  69. +              FRAME, i+1, FRAME, chains[map[i]].description,
  70. +              FRAME, (chains_reg[map[i]].regby[0])?2:3,
  71. +              (chains_reg[map[i]].regby[0]) ? u.name : get_string(315),
  72. +              FRAME, chains_reg[map[i]].usage, FRAME );
  73. +      else
  74. +                                                    /* End Apollo24.423 */
  75. =        sprintf(s,
  76. =            " %d║5%3d%d║1%-41s%d║%d%-21s%d║1%5d%d║",
  77. =            FRAME, i+1, FRAME, chains[map[i]].description,
  78. =            FRAME, (chains_reg[map[i]].regby[0])?2:3,
  79. =            (chains_reg[map[i]].regby[0]) ? u.name : get_string(315),
  80. =            FRAME, chains_reg[map[i]].usage, FRAME );
  81. =      pla(s,&abort);
  82. .
  83. .
  84. .
  85. =    } else {
  86. =      read_user(chains_reg[map[i]].regby[0],&u);
  87. +                                                  /* Begin Apollo24.423 */
  88. +      if (chains[map[i]].sl==255)
  89. +        sprintf(s," +%3d+%-41.41s+%-21.21s+%5d+",
  90. +          i+1,chains[map[i]].description,
  91. +          (chains_reg[map[i]].regby[0]) ? u.name : get_string(315),
  92. +          chains_reg[map[i]].usage);
  93. +      else
  94. +                                                    /* End Apollo24.423 */
  95. =      sprintf(s," |%3d|%-41.41s|%-21.21s|%5d|",
  96. =        i+1,chains[map[i]].description,
  97. =        (chains_reg[map[i]].regby[0]) ? u.name : get_string(315),
  98. =        chains_reg[map[i]].usage);
  99. =      pla(s,&abort);
  100.  
  101.  
  102. done.
  103.  
  104. Save, Recompile and run.
  105. As you can see, It's not too bad!
  106.  
  107. ---- /┤PΘ££Θ   (8{[}  <-- Bald Vampire W/Glasses & Facial Hair (me)
  108.