home *** CD-ROM | disk | FTP | other *** search
- Apollo #1 @11138
- Sun Jun 25 22:39:30 1995
- ┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
- │ Mod Name: Edit05.424 Mod Authors: Editor 149 │
- │ Difficulty: ██▒▒▒▒▒▒▒▒(2.0/10) @11138.WWIVNet │
- │ WWIV Version: v4.24 @2939 TERRANet, IceNet, SierraLink │
- │ Date: 06/19/95 @2938 CyberNet │
- │ Files Affected: COM.C, BBSUTIL.C │
- │ Description: Random NonAnimated Pauses │
- └─────────────────────────────────────────────────────────────────────────┘
-
- Copyright Disclaimer:
- (c) 1995 Editor a.k.a #149@Retreat of the Gods (209) 537-2808
- This mod is written for use by REGISTERED WWIV SysOps, as they are the only
- ones who should have the source code. SysOps may freely upload this mod to
- any BBS or online service provided it is not edited in any way except to
- remove messge headers and/or taglines. Shareware CDROM vendors are prohibited
- from distributing this mod without EXPRESS WRITTEN CONSENT from the author &
- Wayne Bell, Author of WWIV BBS Software.
- Parts of the code shown in this mod are:
- Copyright (C) 1988-1993 by Wayne Bell.
-
- BACKUP your source
-
- LEGEND:
- = Old code, Search for this
- + New code, Add this
- - Remove or comment out this
- ... Go down several lines in the same function
-
- Open: COM.C
- Find: void pausescr(void)
- = return;
- =
- = oiia=iia;
- = setiia(0);
- =
- + if(num_strings(5)) /* Edit05.424 */
- + ss=getrandomstring(5); /* Edit05.424 */
- + else /* Edit05.424 */
- = ss=str_pause;
- = i2=i1=strlen(ss);
- = for (i=0; i<i2; i++)
-
- Open: BBSUTIL.C
- Find: int set_language_1(int n)
- = return(fail);
- =
- = set_strings_fn(2, languagedir, "YES.STR", 0);
- = set_strings_fn(3, languagedir, "NO.STR", 0);
- + set_strings_fn(5, languagedir, "PAUSE.STR", 0);
- + /* Edit05.424 */
- =
- = strncpy(str_yes,get_string(1), sizeof(str_yes)-1);
- = strncpy(str_no,get_string(2), sizeof(str_no)-1);
- = strncpy(str_quit,get_string(929), sizeof(str_quit)-1);
-
- Using your favorite string editor, make a PAUSE.STR file for each language
- where you want random pauses, and put it in the language directory.
-
- PS: you can get random YES & NO strings by creating YES.STR & NO.STR for
- each language and put them in those language directories.
-
-
- Done.
-
- Save, Recompile and run.
- As you can see, it's very easy and you only have to change one file!
-
- Editor
-