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 >
Text File  |  1992-12-01  |  1KB  |  47 lines

  1.      In keeping with my basic philosophy in life this is another KISS mod.
  2. (For the uninformed that means Keep It Simple, Stupid.)  It goes entirely
  3. into BBSUTL.C and that is the only module you have to recompile (assuming
  4. you keep your .OBJ files).
  5.  
  6.      First, put the following line into your includes at the beginning of
  7. the module:
  8.  
  9. #include <dos.h>
  10.  
  11.      Second, search for 'void logon()' and add the following line right
  12. after the opening {:
  13.  
  14.    struct date today;
  15.  
  16.      In the next line add the ,rw[81], so the line looks like this:
  17.  
  18.    char s[81],s1[81],s2[81],rw[81],*ss;
  19.  
  20.      Next add the following code just before the initial logon user stats
  21. display:
  22.  
  23.    getdate(&today);
  24.    if ((thisuser.month == today.da_mon) && (thisuser.day == today.da_day)) {
  25.       nl();
  26.       sprintf(rw,"           Happy Birthday %s !",thisuser.name);
  27.       prt(3,rw);
  28.       nl();
  29.       sprintf(rw,"You have an extra 60 minutes for this Day!","");
  30.       nl();
  31.       prt(5,rw);
  32.       nl();
  33.       if (thisuser.ontoday == 1) {
  34.          thisuser.extratime += 60.0 * 60.;
  35.          tleft(0);
  36.          thisuser.gold += 100.;
  37.          thisuser.uk += 171.;
  38.          nl();
  39.          prt(5,"An extra 100 Gold Pieces, and an extra 512K download credit!");
  40.          nl();
  41.       }
  42.       nl();
  43.       prt(5,"We here at The HomErOOm BBS hope your SPECIAL day is a GREAT ONE!");
  44.       nl();
  45.       pausescr();
  46.    }
  47.