home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / COLRTITL.MOD < prev    next >
Text File  |  1990-04-05  |  2KB  |  76 lines

  1. Medicine Man #1 @2101
  2. Mon Apr 02 14:36:24 1990
  3. /*****************************************************************************
  4.  
  5.             Color Titles For Msgs & Email
  6.             By: Lt. Hytiek #1@3504
  7.                 The Morgue BBS
  8.                 305-435-8810
  9.  
  10.     This mod took me about 30 seconds to figure out, and will take you
  11.     about 30 seconds to implant within your source code.  First, load
  12.     up your MSGBASE.C file, and search for 'void inmsg' go down till
  13.     you reach the code below... and follow the steps...
  14.  
  15.     Also...  If you are using the CUSS MOD, the users will NOT be able
  16.     to cuss within the titles!  To use the color within the titles...
  17.     Just act like you are typing a msg, (^P#).
  18.  
  19. *****************************************************************************/
  20.  
  21.                     == Original Code
  22.                     -- Code to delete
  23.                     ++ Code to add
  24.  
  25.  
  26. ==  for (i=0; i<maxli; i++)
  27. ==    lin[i*LEN]=0;
  28. ==  ro[0]=0;
  29. ==}
  30.  
  31. ==nl();
  32. ==helpl=6;
  33. ==if (okansi()) {
  34. ==  outstr("\x1b[2J");
  35. ==  prt(2,"Title: ");
  36. --  mpl(60);             /* Delete this line */
  37. --  inputl(title,60);    /* Delete this line */
  38. ++  inli(title,ro,70,1); /* Add this line */
  39.  
  40. ==} else {
  41. ==  outstr("\x1b[2J");
  42. ==  pl("       (---=----=----=----=----=----=----=----=----=----=----=----)");
  43. ==  outstr("Title: ");
  44. --  inputl(title,60);    /* Delete this line */
  45. ++  inli(title,ro,70,1); /* Add this line */
  46. ==}
  47.  
  48. /***************************************************************************
  49. Now search down to this section of code:
  50. ***************************************************************************/
  51.  
  52. ==      if (stricmp(s,"/TI")==0) {
  53. ==      savel=0;
  54. ==      helpl=26;
  55. ==      if (okansi()) {
  56. ==        prt(2,"Title: ");
  57. --        mpl(60);              /* Delete this line */
  58. --        inputl(title,60);     /* Delete this line */
  59. ++        inli(title,ro,70,1);  /* Add this line */
  60. ==      } else {
  61. ==        pl("       (---=----=----=----=----=----=----=----=----=----=----=----)");
  62. ==        outstr("Title: ");
  63. --        inputl(title,60);     /* Delete this line */
  64. ++        inli(title,ro,70,1);  /* Add this line */
  65. ==      }
  66. ==      pl("Continue...");
  67. ==      nl();
  68.  
  69.  
  70. /***************************************************************************
  71.  
  72.     Thats it!  Your done...  Told ya it was simple...  If you enjoy
  73.     this mod, then contact 1@3504 that you're using it.  Hopefully
  74.     you won't find ANY bugs...  Well. Take care and have fun!
  75.  
  76. **************************************************************************