home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / CANARY08.ZIP / CANARY08.MOD next >
Encoding:
Text File  |  1995-07-07  |  3.6 KB  |  82 lines

  1. Canary Killjoy #1 @20755
  2. Sun Jul 02 23:51:00 1995
  3. ┌───────────────────────────────────────────────────────────────────────────┐
  4. │Mod Name: Canary08.Mod            Author: Canary Killjoy                   │
  5. │Difficulty:█▓▓▓▓▓▓▓ A newt could do it.   1@20755 WWiVLink                 │
  6. │WWIV Version: 4.24                        1@3605 IceNet                    │
  7. │Files affected: Bbsutl.C, Com.C           1@1 MeshLink                     │
  8. │7This is an upgrade from 4.23                                               │0
  9. │Description: This mod adds adds the option for random pauses, I saw it on  │
  10. │the Galifreyan Matrix BBS, and decided I wanted it.  I worked on it a while│
  11. │ago, but didn't quite get it, until today <silly me>.  Anyway, just use the│
  12. │miniesm to create to create "PAUSE.STR", and voila, however many different │
  13. │pauses you want.                                                           │
  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. Step 1.  Back up your source code. <it should work, but maybe your bbs doesn't
  37. like lots of nifty pauses>. This was tested on virgin source, so it shouldn't
  38. screw up unless it doesn't like one of your mods.
  39.  
  40. Step 2.
  41. Edit bbsutl.c and change the following:
  42.  
  43.   Search for "YES.STR"
  44. /*=*/  set_strings_fn(2, languagedir, "YES.STR", 0);
  45. /*=*/  set_strings_fn(3, languagedir, "NO.STR", 0);
  46. /*+*/  set_strings_fn(4, languagedir, "PAUSE.STR", 0);
  47.  
  48. and a few lines down,
  49.  
  50. /*=*/  strncpy(str_yes,get_string(1), sizeof(str_yes)-1);
  51. /*=*/  strncpy(str_no,get_string(2), sizeof(str_no)-1);
  52. /*=*/  strncpy(str_quit,get_string(929), sizeof(str_quit)-1);
  53. /*-*/  strncpy(str_pause,get_string(923), sizeof(str_pause)-1);
  54. /*+*/ strncpy(str_pause,getrandomstring(5), sizeof(str_pause)-1);
  55. /*=*/  str_yes[0]=upcase(str_yes[0]);
  56. /*=*/  str_no[0]=upcase(str_no[0]);
  57. /*=*/  str_quit[0]=upcase(str_quit[0]);
  58.  
  59.  
  60.  
  61. Step 3.
  62. Edit com.c
  63. Search for void pausescr(void), and change the following:
  64.  
  65. /*=*/  oiia=iia;
  66. /*=*/  setiia(0);
  67. /*=*/
  68.  
  69. /*=*/ ss=str_pause;
  70. /*+*/  strcpy(ss,getrandomstring(4));
  71. /*=*/  i2=i1=strlen(ss);
  72. /*=*/  for (i=0; i<i2; i++)
  73. /*=*/    if ((ss[i]==3) && (i1>1))
  74.  
  75. Step 4.
  76. Recompile, and voila.  Create your pause.str file with the miniesm.  If you
  77. like this mod, you can email me <but you probably won't <grin>>.
  78.  
  79. 2 __  __        __   __0
  80. 2|   |__| |\ | |__| |__) \/   1 WWiVnet 1@207550
  81. 2|__ |  | | \| |  | |  \ /     11@1 Meshlink0
  82.