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 >
Text File  |  1993-12-13  |  5KB  |  122 lines

  1.  ╔═[Virtuality Software]═════════════════════════════════[WWIV Modification]═╗
  2.  ║                                                                           ║
  3.  ║ Mod Name       : VSM-0002.423       Mod Author     : Diver Dan            ║
  4.  ║ Difficulty     : Simple             Net Addresses  : CommLink   #1@1      ║
  5.  ║ Mod Version    : 1.0                                 WoMbAtNeT  #1@28531  ║
  6.  ║ WWIV Version   : 4.23 / 4.22                                              ║
  7.  ║ Date Released  : 11 DEC 1993                                              ║
  8.  ║                                                                           ║
  9.  ║ Files Modified : BBS.C  MISCCMD.C  FCNS.H                                 ║
  10.  ║                                                                           ║
  11.  ║                                                                           ║
  12.  ║ Description    : Allow users to send each other pre-defined SSMs.         ║
  13.  ║                                                                           ║
  14.  ║                                                                           ║
  15.  ║ Symbol Key     : [==] Existing Code   [++] Add This    [--] Delete This   ║
  16.  ║                  [**] Modify This     [VSN-xx]  See Note Number xx        ║
  17.  ╚═══════════════════════════════════════════════════════════════════════════╝
  18.  
  19. STEP ONE: Open BBS.C and search for "if (strcmp(s,"/E")==0)".
  20.  
  21. STEP TWO: Add code as indicated:
  22.  
  23. [==] if (strcmp(s,"/E")==0)
  24. [==]   slash_e();
  25. [++] if (strcmp(s,"/M")==0)
  26. [++]    mail_room();
  27. [==]  if (strcmp(s,"/N")==0)
  28. [==]    nscan(cursub);
  29.  
  30. STEP THREE: Open MISCCMD.C and add the following function at the end of the
  31.             file.
  32.  
  33. void mail_room(void) /* [VSN-01] */
  34. {
  35.     char ch,s[81],message[81];
  36.     userrec u;
  37.     int i, flag;
  38.  
  39.     outchr(12);
  40.     pl("                      Digital Illusions - Message Center");
  41.     pl("                      ----------------------------------");
  42.     pl("                               [1] Love Note");
  43.     pl("                               [2] Sympathy Note");
  44.     pl("                               [3] Friendly Note");
  45.     pl("                               [4] Hate Note");
  46.     pl("                               [5] Enter your own custom note");
  47.     pl("                               [Q] Quit");
  48.     nl();
  49.     npr("[Command[> ");
  50.     ch=onek("12345Q");
  51.     switch(ch) {
  52.          case '1':
  53.               strcpy(message,"You are my joy and happiness.  I love you.  From: ");
  54.               strcat(message,thisuser.name);
  55.               flag=1;
  56.               break;
  57.          case '2':
  58.               strcpy(message,"Best wishes in your time of sorrow.  From: ");
  59.               strcat(message,thisuser.name);
  60.               flag=1;
  61.               break;
  62.          case '3':
  63.               strcpy(message,"Hi there...just a sending a friendly hello.  From: ");
  64.               strcat(message,thisuser.name);
  65.               flag=1;
  66.               break;
  67.          case '4':
  68.               strcpy(message,"May you rot in the depths of Hades.  From: ");
  69.               strcat(message,thisuser.name);
  70.               flag=1;
  71.               break;
  72.          case '5':
  73.               prt(7,"Enter Your Note (MAX 60 Chars.): ");
  74.               inputl(message,61);
  75.               strcat(message," From: ");
  76.               strcat(message,thisuser.name);
  77.               flag=1;
  78.               break;
  79.          case 'Q':
  80.               flag=0;
  81.               break;
  82. }
  83.     if (flag==1) {
  84.               prt(7,get_string(268));
  85.               input(s,sizeof(u.name)-1);
  86.               i=finduser1(s);
  87.               if (i>0) {
  88.                    ssm(i,0,message);
  89.                    pl("Message Sent.");
  90.               }
  91.       }
  92. }
  93.  
  94.  
  95.  
  96. STEP FOUR: Either "MAKE FCNS" from the command line, or add
  97.            "void mail_room(void);" to the MISCCMD.C prototype block in FCNS.H
  98.            and recompile.
  99.  
  100. [VSN-01]:  You will need to alter some of the strings to reflect your board
  101.            and your personal message preferences.  I would also consider
  102.            adding color codes, which I purposly ommited to make customization
  103.            easier.
  104.  
  105. Disclaimer: Any damages resulting from the use of this mod is the
  106.             responsibility of the SysOp who installs it.  Diver Dan
  107.             and Virtuality Software are NOT responsible for any damages
  108.             incurred by the use of this mod.
  109.  
  110.  
  111. Questions/Comments/Complaints:  You may contact me at any of the network
  112.                                 addresses listed above, or at the board
  113.                                 listed below.
  114.  
  115. Virtuality Software Mods are orginated and distributed from:
  116.  
  117.                         Aquabase Epsilon
  118.                         12-14.4k Baud
  119.                         24 Hours / 7 Days
  120.                         (410) 356-0978
  121.                         WWIV 4.23 Registered / Modified
  122.