home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
VSM-0002.423
< prev
next >
Wrap
Text File
|
1993-12-13
|
5KB
|
122 lines
╔═[Virtuality Software]═════════════════════════════════[WWIV Modification]═╗
║ ║
║ Mod Name : VSM-0002.423 Mod Author : Diver Dan ║
║ Difficulty : Simple Net Addresses : CommLink #1@1 ║
║ Mod Version : 1.0 WoMbAtNeT #1@28531 ║
║ WWIV Version : 4.23 / 4.22 ║
║ Date Released : 11 DEC 1993 ║
║ ║
║ Files Modified : BBS.C MISCCMD.C FCNS.H ║
║ ║
║ ║
║ Description : Allow users to send each other pre-defined SSMs. ║
║ ║
║ ║
║ Symbol Key : [==] Existing Code [++] Add This [--] Delete This ║
║ [**] Modify This [VSN-xx] See Note Number xx ║
╚═══════════════════════════════════════════════════════════════════════════╝
STEP ONE: Open BBS.C and search for "if (strcmp(s,"/E")==0)".
STEP TWO: Add code as indicated:
[==] if (strcmp(s,"/E")==0)
[==] slash_e();
[++] if (strcmp(s,"/M")==0)
[++] mail_room();
[==] if (strcmp(s,"/N")==0)
[==] nscan(cursub);
STEP THREE: Open MISCCMD.C and add the following function at the end of the
file.
void mail_room(void) /* [VSN-01] */
{
char ch,s[81],message[81];
userrec u;
int i, flag;
outchr(12);
pl(" Digital Illusions - Message Center");
pl(" ----------------------------------");
pl(" [1] Love Note");
pl(" [2] Sympathy Note");
pl(" [3] Friendly Note");
pl(" [4] Hate Note");
pl(" [5] Enter your own custom note");
pl(" [Q] Quit");
nl();
npr("[Command[> ");
ch=onek("12345Q");
switch(ch) {
case '1':
strcpy(message,"You are my joy and happiness. I love you. From: ");
strcat(message,thisuser.name);
flag=1;
break;
case '2':
strcpy(message,"Best wishes in your time of sorrow. From: ");
strcat(message,thisuser.name);
flag=1;
break;
case '3':
strcpy(message,"Hi there...just a sending a friendly hello. From: ");
strcat(message,thisuser.name);
flag=1;
break;
case '4':
strcpy(message,"May you rot in the depths of Hades. From: ");
strcat(message,thisuser.name);
flag=1;
break;
case '5':
prt(7,"Enter Your Note (MAX 60 Chars.): ");
inputl(message,61);
strcat(message," From: ");
strcat(message,thisuser.name);
flag=1;
break;
case 'Q':
flag=0;
break;
}
if (flag==1) {
prt(7,get_string(268));
input(s,sizeof(u.name)-1);
i=finduser1(s);
if (i>0) {
ssm(i,0,message);
pl("Message Sent.");
}
}
}
STEP FOUR: Either "MAKE FCNS" from the command line, or add
"void mail_room(void);" to the MISCCMD.C prototype block in FCNS.H
and recompile.
[VSN-01]: You will need to alter some of the strings to reflect your board
and your personal message preferences. I would also consider
adding color codes, which I purposly ommited to make customization
easier.
Disclaimer: Any damages resulting from the use of this mod is the
responsibility of the SysOp who installs it. Diver Dan
and Virtuality Software are NOT responsible for any damages
incurred by the use of this mod.
Questions/Comments/Complaints: You may contact me at any of the network
addresses listed above, or at the board
listed below.
Virtuality Software Mods are orginated and distributed from:
Aquabase Epsilon
12-14.4k Baud
24 Hours / 7 Days
(410) 356-0978
WWIV 4.23 Registered / Modified