home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / MAINPRMT.MOD < prev    next >
Text File  |  1992-01-29  |  3KB  |  95 lines

  1.                            NEW MAIN MENU PROMPT
  2.               By The Captain of the White Star Line (@2370)
  3.  
  4. This is a simple modification that will make your main prompt look like:
  5.  
  6. Time Left: 04:15:15                 {Editor's note: These lines appeared in
  7. [Local Message Area]                 color in the original mod printing -wh}
  8. [1] [News from the SysOps]:
  9.  
  10. When the user is logged to a network message area, the second line will say
  11. [Network Message Area]              {So did this one. -wh}
  12. instead. As you can see, it helps the user to know when he is on a network
  13. message sub or a local sub.
  14.  
  15. It would be easiest to just block-copy the following code into BBS.C,
  16. replacing the current main prompt code.
  17.  
  18. In BBS.C. (void mainmenu).....     
  19.  
  20.   if ((sysstatus_expert & thisuser.sysstatus)==0)   /* Existing Line */
  21.     printmenu(0);                                   /*       "       */
  22.   nl();
  23.   nl();
  24.   tleft(1);
  25.   prt(0,"Time Left");                               /* Begin Mod */
  26.   prt(2,": ");
  27.   ansic(0);
  28.   print("",ctim(nsl()),"");
  29.   s1[0]=0;
  30.   if (usub[cursub].subnum==-1) {
  31.     cursub=0;
  32.     if (usub[cursub].subnum==-1) {
  33.       strcpy(s1,"[] No Subs Available :");
  34.     }                 
  35.   }
  36. if (s1[0]==0) {
  37.   prt(2,"[");
  38.   if (subboards[usub[cursub].subnum].type)
  39.     prt(5,"Network");
  40.   else prt(5,"Local");
  41.   prt(5," Message Area");
  42.   prt(2,"]");
  43.   nl();
  44.   prt(2,"[");
  45.   prt(3,usub[cursub].keys);
  46.   prt(2,"] [");
  47.   prt(1,subboards[usub[cursub].subnum].name);
  48.   prt(2,"]");
  49.   prt(0,": ");
  50. }                                               /* End Mod */
  51.  
  52.   helpl=1;                                      /* Existing Line */
  53.   s=mmkey(0);
  54.  
  55.  
  56. ------------------------------------------------------------------------------
  57.  
  58. This is the companion modification to the Main Menu mod. It will
  59. make the transfer system prompt match the format of the new main menu
  60. prompt.
  61.  
  62. In BBS.C (void dlmainmenu)...
  63.  
  64.   if ((sysstatus_expert & thisuser.sysstatus)==0)   /* Existing Line */
  65.     printmenu(3);                                   /*       "       */
  66.   nl();                                             /*       "       */
  67.   nl();                                             /*       "       */
  68.   tleft(1);                                         /*       "       */
  69.   prt(0,"Time Left");                               /*   Begin Mod   */
  70.   prt(2,": ");
  71.   ansic(0);
  72.   print("",ctim(nsl()),"");
  73.   s1[0]=0;
  74.   if (udir[curdir].subnum==-1) {
  75.     curdir=0;
  76.     if (udir[curdir].subnum==-1) {
  77.       strcpy(s1,"() No Dirs Available :");
  78.       curdloads=0;
  79.       return;
  80.     }
  81.   }
  82. if (s1[0]==0) {
  83.   prt(2,"[");
  84.   prt(5,"Transfer System");
  85.   prt(2,"]");
  86.   nl();
  87.   prt(2,"[");
  88.   prt(3,udir[curdir].keys);
  89.   prt(2,"] [");
  90.   prt(1,directories[udir[curdir].subnum].name);
  91.   prt(2,"]");
  92.   prt(0,": ");
  93. }                                                   /*    End Mod    */
  94.   helpl=2;                                          /* Existing Line */
  95.   s=mmkey(1);                                       /*       "       */