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 >
Wrap
Text File
|
1990-10-12
|
1KB
|
46 lines
Load up EXTRN.C and find:
int full_external(char *s, int ctc, int ccc)
Right after the { add this line:
char n[81]; int i; /* GAMEID mod */
Now go down about 25 lines, you'll see a block of code that looks like:
if ((screenlinest<=defscreenbottom) && (screenlinest>20)) {
screenbottom=screenlinest-1+topline;
cy=wherey();
cx=wherex();
xxx=cy-screenbottom+topline;
if (xxx>0) {
SCROLL_UP(topline,defscreenbottom,xxx);
movecsr(cx,screenbottom);
}
}
Add this code immediately afterward:
/* start GAMEID mod */
else if ((screenlinest>defscreenbottom-topline) && (incom)) {
screenbottom=23+topline;
cy=wherey();
cx=wherex();
xxx=cy-screenbottom+topline;
if (xxx>0) {
SCROLL_UP(topline,defscreenbottom,xxx);
movecsr(cx,screenbottom);
}
}
n[0]=32;
n[1]=0x70; /* 0x70 is the hexadecimal attribute for inverse, you can
this to any other color that you like by changing it
to another hex number between 0x00 and 0xFF. */
for (i=1; i<=strlen(thisuser.name); i++) {
n[i*2+1]=0x70; n[i*2]=thisuser.name[i-1];
}
n[strlen(thisuser.name)*2+2]=32;
n[strlen(thisuser.name)*2+3]=0x70;
puttext(1,25,strlen(thisuser.name)+2,25,n);
/* end GAMEID mod */