home *** CD-ROM | disk | FTP | other *** search
- Canary Killjoy #1 @20755
- Sun Jul 02 23:51:00 1995
- ┌───────────────────────────────────────────────────────────────────────────┐
- │Mod Name: Canary08.Mod Author: Canary Killjoy │
- │Difficulty:█▓▓▓▓▓▓▓ A newt could do it. 1@20755 WWiVLink │
- │WWIV Version: 4.24 1@3605 IceNet │
- │Files affected: Bbsutl.C, Com.C 1@1 MeshLink │
- │7This is an upgrade from 4.23 │0
- │Description: This mod adds adds the option for random pauses, I saw it on │
- │the Galifreyan Matrix BBS, and decided I wanted it. I worked on it a while│
- │ago, but didn't quite get it, until today <silly me>. Anyway, just use the│
- │miniesm to create to create "PAUSE.STR", and voila, however many different │
- │pauses you want. │
- └───────────────────────────────────────────────────────────────────────────┘
- ╔════════════════════════════════════════════════════════════════════════════╗
- ║ This mod is copyright 1995, Gwen Kirchner aka Canary Killjoy and is ║
- ║ distributed as freeware. Permission is granted to distribute and post ║
- ║ this mod on BBS systems and online services, provided no alterations ║
- ║ are made (removal of message headers/taglines allowed). This mod may ║
- ║ contain some parts of WWIV source code, which is copyright 1988-1994 by ║
- ║ Wayne Bell and licensed only to registered users of WWIV. Use of WWIV ║
- ║ source without registration constitutes a license violation and could ║
- ║ lead to legal prosecution and certain doom. ║
- ║ ║
- ║ Shareware distributors and CD-ROM publishers may not distribute this mod ║
- ║ without express written permission of the Author or WWIV Software ║
- ║ Services. ║
- ╚════════════════════════════════════════════════════════════════════════════╝
-
- Index
- /*=*/ leave as is
- /*+*/ add this line
- /*&*/ change this line accordingly
- /*-*/ remove this line
-
- Step 1. Back up your source code. <it should work, but maybe your bbs doesn't
- like lots of nifty pauses>. This was tested on virgin source, so it shouldn't
- screw up unless it doesn't like one of your mods.
-
- Step 2.
- Edit bbsutl.c and change the following:
-
- Search for "YES.STR"
- /*=*/ set_strings_fn(2, languagedir, "YES.STR", 0);
- /*=*/ set_strings_fn(3, languagedir, "NO.STR", 0);
- /*+*/ set_strings_fn(4, languagedir, "PAUSE.STR", 0);
-
- and a few lines down,
-
- /*=*/ 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);
- /*-*/ strncpy(str_pause,get_string(923), sizeof(str_pause)-1);
- /*+*/ strncpy(str_pause,getrandomstring(5), sizeof(str_pause)-1);
- /*=*/ str_yes[0]=upcase(str_yes[0]);
- /*=*/ str_no[0]=upcase(str_no[0]);
- /*=*/ str_quit[0]=upcase(str_quit[0]);
-
-
-
- Step 3.
- Edit com.c
- Search for void pausescr(void), and change the following:
-
- /*=*/ oiia=iia;
- /*=*/ setiia(0);
- /*=*/
-
- /*=*/ ss=str_pause;
- /*+*/ strcpy(ss,getrandomstring(4));
- /*=*/ i2=i1=strlen(ss);
- /*=*/ for (i=0; i<i2; i++)
- /*=*/ if ((ss[i]==3) && (i1>1))
-
- Step 4.
- Recompile, and voila. Create your pause.str file with the miniesm. If you
- like this mod, you can email me <but you probably won't <grin>>.
-
- 2 __ __ __ __0
- 2| |__| |\ | |__| |__) \/ 1 WWiVnet 1@207550
- 2|__ | | | \| | | | \ / 11@1 Meshlink0
-