home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / SPV0028.423 < prev    next >
Text File  |  1994-01-03  |  4KB  |  104 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name: SPV-028.MOD      Mod Authors: Pâpâ ßêâr (1@5079 WWIV/IceNET)     │
  3. │ Difficulty: ▓░░░░░░░░░     [12/27/93]             (1@5050 SEX/JAMDnet)     │
  4. │ WWIV Version: 4.23                                 (1@15061 WWIVlink)      │
  5. │ Files Affected: MSGBASE.C                            (1@18 CARDNet)        │
  6. │ Description: Replaces the bland RE: and BY: line with a nice colored box   │
  7. │ and shadow.  Small reply [not] requested as well.                          │
  8. ╞═────────────────────────────────────═╤═───────────────────────────────────═╡
  9. │ StarPort Valhalla [510]522-3583 ASV 14.4kbps  Home of the SPV mod series!  │
  10. ╘═────────────────────────────────────═╧═───────────────────────────────────═╛
  11.  Word of Warning:  You installed it, you're responsible! Make back-ups BEFORE
  12.  attempting to install this modification!  Read all text before beginning.
  13. -----------------------------------------------------------------------------
  14.  LEGEND:
  15.  ==  Original Code [use this to search on]
  16.  ++  Add this Line [mods ALWAYS add stuff, don't they?]
  17.  --  Delete this Line [or comment out, its not needed]
  18. -----------------------------------------------------------------------------
  19.  LONG DESCRIPTION: Simple I've been using this for quite some time.  I've
  20. recently had some people ask me if I'd mak a mod of it and post it.  Okay,
  21. here it is!
  22.  Mind you, this code is BASED on some really old pieces that I had that did
  23. similar things.
  24. -----------------------------------------------------------------------------
  25. STEP 1: Open MSGBASE.C, and go to the function: void inmsg(...)
  26.  
  27. ADD THIS VARIABLE DECLARATION:
  28.  
  29. ==  char s[181],s1[181],ro[81],fnx[81],chx,*ss,*ss1, fn1[81], fn2[81],*nd;
  30. ++  char reply[81];                                                // SPV-028
  31. ==  int maxli,curli,done,save,savel,i,i1,i2,i3,i4,i5,setanon,oiia;
  32. -----------------------------------------------------------------------------
  33. STEP 2: Further down, same function: [they're ALL in the same function]:
  34.  
  35. ==    case anony_real_name:
  36. ==      real_name=1;
  37. ==      *anony=0;
  38. ==      break;
  39. ==    }
  40. // SPV-028 MOD BLACK INSTERT START
  41. ++    nl();
  42. ++      prt(5,"Do you want a reply? ");
  43. ++    if (ny())
  44. ++        strcpy(reply,"Please reply!");
  45. ++    else
  46. ++        strcpy(reply,"Reply not necessary!");
  47. ++    nl();
  48. // SPV-028 MOD BLACK INSTERT END
  49. ==    if (fsed) {
  50. ==    i5=sh_open1(fnx,O_RDONLY | O_BINARY);
  51. ==    l1=filelength(i5);
  52. -----------------------------------------------------------------------------
  53. STEP 3: Same function, a down a little more:
  54.  
  55. ==      addline(b,nam1(&thisuser,usernum,net_sysnum),&l1);
  56. ==    time(&ll);
  57. ==    s[strlen(s)-1]=0;
  58. ==    addline(b,s,&l1);
  59. // START SPV-028 MOD CHANGES/REPLACEMENT
  60. --    if (irt[0]) {
  61. --      sprintf(s,"%s%s",get_string(940),irt);
  62. --      addline(b,s,&l1);
  63. --      if (irt_name[0]) {
  64. --        sprintf(s,"%s%s",get_string(941),irt_name);
  65. --        addline(b,s,&l1);
  66. --      }
  67. --      addline(b,"",&l1);
  68. --    }
  69. ++      if (irt[0]) {
  70. ++        sprintf(s,"Responding :▄ %s",irt);
  71. ++        addline(b,s,&l1);
  72. ++        if (irt_name[0]) {
  73. ++          sprintf(s,"Written By :█ %s",irt_name);
  74. ++          addline(b,s,&l1);
  75. ++        }
  76. ++        sprintf(s,"Msg. Status:█ %s",reply);
  77. ++        s[thisuser.screenchars]=0;
  78. ++        addline(b,s,&l1);
  79. ++      } else {
  80. ++        sprintf(s,"Msg. Status:▄ %s",reply);
  81. ++        s[thisuser.screenchars]=0;
  82. ++        addline(b,s,&l1);
  83. ++      }
  84. ++      sprintf(s," ▀▀▀▀▀▀▀▀▀▀▀▀\r\n");
  85. ++      addline(b,s,&l1);
  86. // END SPV-028 MOD CHANGES/REPLACEMENT
  87. ==    if (fsed) {
  88. ==      ll=filelength(i5);
  89. ==      sh_read(i5, (void *) (& (b[l1]) ),ll);
  90. -----------------------------------------------------------------------------
  91.   Welppers, that SHOULD be it.  Not too tough.  I ripped this outta working
  92. 4.23 code, so if soomething ends up missing, please E-Mail me and we'll get
  93. it working for you.
  94.   Come to think of it, E-Mail me anyway!
  95.  
  96.                                -=*>Pâpâ ßêâr<*=-
  97.  
  98. StarPort Valhalla ASV 510-522-3583════════════════────────────────────────────
  99. ---
  100. Trial and error is still faster than .DOC.
  101.  
  102.  
  103.  
  104.