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

  1. Canary Killjoy #1 @20755
  2. Sun Jul 02 23:47:55 1995
  3. 1  0──────────────────────────────────────────────────────────────────────────┐
  4. │Mod Name: Canary06.Mod            Author: Canary Killjoy 1@20755 WWIVnet   │
  5. │Difficulty:█▓▓▓▓▓▓▓                           1@1 Meshlink                 │
  6. │WWIV Version: 4.24                            1@3611 IceNet                │
  7. │Files affected: Bbsutl.C, Msgbase.C, Tedit.C                               │
  8. │7This mod is an upgrade from 4.23                                           0|
  9. |Description: This mod adds adds the option for random messages, when saving│
  10. │messages.  I saw a mod out there that did this, but I prefer having the    │
  11. │strings externalized, so I wrote a new one. Just use miniesm to create     │
  12. │"SAVE.STR", add as many strings as you want.  This mod has been tested on  │
  13. │virgin source and worked there.                                            │
  14. └───────────────────────────────────────────────────────────────────────────┘
  15. ╔════════════════════════════════════════════════════════════════════════════╗
  16. ║  This mod is copyright 1995, Gwen Kirchner aka Canary Killjoy and is       ║
  17. ║   distributed as freeware.  Permission is granted to distribute and post   ║
  18. ║   this mod on BBS systems and online services, provided no alterations     ║
  19. ║   are made (removal of message headers/taglines allowed).  This mod may    ║
  20. ║   contain some parts of WWIV source code, which is copyright 1988-1994 by  ║
  21. ║   Wayne Bell and licensed only to registered users of WWIV.  Use of WWIV   ║
  22. ║   source without registration constitutes a license violation and could    ║
  23. ║   lead to legal prosecution  and certain doom.                             ║
  24. ║                                                                            ║
  25. ║   Shareware distributors and CD-ROM publishers may not distribute this mod ║
  26. ║   without express written permission of the Author or WWIV Software        ║
  27. ║   Services.                                                                ║
  28. ╚════════════════════════════════════════════════════════════════════════════╝
  29.  
  30. Index
  31. /*=*/ leave as is
  32. /*+*/ add this line
  33. /*&*/ change this line accordingly
  34. /*-*/ remove this line
  35.  
  36.  
  37. Step 1: Back up your source.  This mod works on my source, but if it doesn't
  38. for you..I'd hate for you to have to remod your source.
  39.  
  40. Step 2:
  41.  Load up bbsutl.c, and add the  "Save.str".
  42. /*=*/  set_strings_fn(2, languagedir, "YES.STR", 0);
  43. /*=*/  set_strings_fn(3, languagedir, "NO.STR", 0);
  44. /*+*/  set_strings_fn(4, languagedir, "SAVE.STR", 0);
  45.  
  46. Step 3.
  47. Load up msgbase.c, and change the following:
  48.  
  49. /*=*/        *anony=0;
  50. /*=*/        break;
  51. /*=*/    }
  52. /*-*/    outstr(get_string(91));
  53. /*+*/    prt(0,getrandomstring(4));
  54. /*=*/    if (fsed) {
  55. /*=*/      i5=sh_open1(fnx,O_RDONLY | O_BINARY);
  56. /*=*/      l1=filelength(i5);
  57.  
  58. Step 4. Load up tedit.c and change the following:
  59.  
  60. /*=*/  struct line *l;
  61. /*=*/
  62. /*=*/  nl();
  63. /*-*/  pl(get_string(91));
  64. /*+*/  prt(0,getrandomstring(4));
  65. /*=*/  f=sh_open(s,O_RDWR | O_BINARY | O_CREAT | O_TRUNC, S_IREAD | S_IWRITE);
  66.  
  67. Step 5.  Use Miniesm to create any number of strings <Save.str>.
  68. Make sure you fill all the strings you have created with your new messages.
  69. It will look something like this:
  70. 5Recycling your data space...0 mail sent to Canary Killjoy.
  71.  
  72. Step 6.  Recompile your source.
  73.  
  74. If you're bored that day, and want something to do, feel free to email me and
  75. tell me what you thought of the mod.
  76. 2 __  __        __   __0
  77. 2|   |__| |\ | |__| |__) \/0
  78. 2|__ |  | | \| |  | |  \ /...tha's all folks.0
  79.               11@1 Meshlink0
  80.