home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / EDIT05.ZIP / EDIT05.MOD next >
Encoding:
Text File  |  1995-06-30  |  2.5 KB  |  71 lines

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