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

  1. Apollo #1 @11138
  2. Fri Jun 30 19:30:44 1995
  3. ┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
  4. │ Mod Name: Edit05a.424   Mod Authors: Editor 149                         │
  5. │ Difficulty: ██▒▒▒▒▒▒▒▒(2.0/10)       @11138.WWIVNet                     │
  6. │ WWIV Version: v4.24                  @2939 TERRANet, IceNet, SierraLink │
  7. │ Date: 06/19/95  Rev.A: 06/30/95      @2938 CyberNet                     │
  8. │ Files Affected: COM.C, BBSUTIL.C                                        │
  9. │ Description: Random NonAnimated Pauses                                  │
  10. └─────────────────────────────────────────────────────────────────────────┘
  11.  
  12. Revision: A
  13.   Changed a line to fix dissagreements that online programs and external
  14. events had with this mod
  15.  
  16. Copyright Disclaimer:
  17. (c) 1995 Editor a.k.a #149@Retreat of the Gods  (209) 537-2808
  18. This mod is written for use by REGISTERED WWIV SysOps, as they are the only
  19. ones who should have the source code.  SysOps may freely upload this mod to
  20. any BBS or online service provided it is not edited in any way except to
  21. remove messge headers and/or taglines.  Shareware CDROM vendors are prohibited
  22. from distributing this mod without EXPRESS WRITTEN CONSENT from the author &
  23. Wayne Bell, Author of WWIV BBS Software.
  24. Parts of the code shown in this mod are:
  25.                 Copyright (C) 1988-1993 by Wayne Bell.
  26.  
  27. BACKUP your source
  28.  
  29. LEGEND:
  30. =   Old code, Search for this
  31. +   New code, Add this
  32. -   Remove or comment out this
  33. ... Go down several lines in the same function
  34.  
  35. Open: COM.C
  36. Find: void pausescr(void)
  37. =   return;
  38. =
  39. = oiia=iia;
  40. = setiia(0);
  41. =
  42. + if(num_strings(5) && !in_extern)    /* Edit05.424 */ /* << Changed line */
  43. +   ss=getrandomstring(5);            /* Edit05.424 */
  44. + else                                /* Edit05.424 */
  45. =   ss=str_pause;
  46. = i2=i1=strlen(ss);
  47. = for (i=0; i<i2; i++)
  48.  
  49. Open: BBSUTIL.C
  50. Find: int set_language_1(int n)
  51. =   return(fail);
  52. =
  53. = set_strings_fn(2, languagedir, "YES.STR", 0);
  54. = set_strings_fn(3, languagedir, "NO.STR", 0);
  55. + set_strings_fn(5, languagedir, "PAUSE.STR", 0);
  56. +                                     /* Edit05.424 */
  57. =
  58. = strncpy(str_yes,get_string(1), sizeof(str_yes)-1);
  59. = strncpy(str_no,get_string(2), sizeof(str_no)-1);
  60. = strncpy(str_quit,get_string(929), sizeof(str_quit)-1);
  61.  
  62. Using your favorite string editor, make a PAUSE.STR file for each language
  63. where you want random pauses, and put it in the language directory.
  64.  
  65. PS: you can get random YES & NO strings by creating YES.STR & NO.STR for
  66. each language and put them in those language directories.
  67.  
  68.  
  69. Done.
  70.  
  71. Save, Recompile and run.
  72. As you can see, it's very easy and you only have to change one file!
  73.  
  74. Editor
  75.