home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
B-DAY.MOD
< prev
next >
Wrap
Text File
|
1992-12-01
|
1KB
|
47 lines
In keeping with my basic philosophy in life this is another KISS mod.
(For the uninformed that means Keep It Simple, Stupid.) It goes entirely
into BBSUTL.C and that is the only module you have to recompile (assuming
you keep your .OBJ files).
First, put the following line into your includes at the beginning of
the module:
#include <dos.h>
Second, search for 'void logon()' and add the following line right
after the opening {:
struct date today;
In the next line add the ,rw[81], so the line looks like this:
char s[81],s1[81],s2[81],rw[81],*ss;
Next add the following code just before the initial logon user stats
display:
getdate(&today);
if ((thisuser.month == today.da_mon) && (thisuser.day == today.da_day)) {
nl();
sprintf(rw," Happy Birthday %s !",thisuser.name);
prt(3,rw);
nl();
sprintf(rw,"You have an extra 60 minutes for this Day!","");
nl();
prt(5,rw);
nl();
if (thisuser.ontoday == 1) {
thisuser.extratime += 60.0 * 60.;
tleft(0);
thisuser.gold += 100.;
thisuser.uk += 171.;
nl();
prt(5,"An extra 100 Gold Pieces, and an extra 512K download credit!");
nl();
}
nl();
prt(5,"We here at The HomErOOm BBS hope your SPECIAL day is a GREAT ONE!");
nl();
pausescr();
}