home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / GAMEID.C < prev    next >
Text File  |  1990-10-12  |  1KB  |  46 lines

  1. Load up EXTRN.C and find:
  2.  
  3. int full_external(char *s, int ctc, int ccc)
  4.  
  5. Right after the { add this line:
  6.   char n[81]; int i;     /* GAMEID mod */
  7.  
  8. Now go down about 25 lines, you'll see a block of code that looks like:
  9.  
  10.   if ((screenlinest<=defscreenbottom) && (screenlinest>20)) {
  11.     screenbottom=screenlinest-1+topline;
  12.     cy=wherey();
  13.     cx=wherex();
  14.     xxx=cy-screenbottom+topline;
  15.     if (xxx>0) {
  16.       SCROLL_UP(topline,defscreenbottom,xxx);
  17.       movecsr(cx,screenbottom);
  18.     }
  19.   }
  20.  
  21. Add this code immediately afterward:
  22.  
  23. /* start GAMEID mod */
  24.   else if ((screenlinest>defscreenbottom-topline) && (incom)) {
  25.     screenbottom=23+topline;
  26.     cy=wherey();
  27.     cx=wherex();
  28.     xxx=cy-screenbottom+topline;
  29.     if (xxx>0) {
  30.       SCROLL_UP(topline,defscreenbottom,xxx);
  31.       movecsr(cx,screenbottom);
  32.     }
  33.   }
  34.  
  35.   n[0]=32;
  36.   n[1]=0x70;  /* 0x70 is the hexadecimal attribute for inverse, you can
  37.                  this to any other color that you like by changing it
  38.                  to another hex number between 0x00 and 0xFF. */
  39.   for (i=1; i<=strlen(thisuser.name); i++) {
  40.     n[i*2+1]=0x70; n[i*2]=thisuser.name[i-1];
  41.   }
  42.   n[strlen(thisuser.name)*2+2]=32;
  43.   n[strlen(thisuser.name)*2+3]=0x70;
  44.   puttext(1,25,strlen(thisuser.name)+2,25,n);
  45. /* end GAMEID mod */
  46.