FLASH005.MOD-Simulates a multi-node system showing who's on. Josh Weide #267 @19911 Wednesday, March 24, 1993 10:38 pm ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mod Name: FLASH005.MOD Date: 3/24/93 ³ ³ Mod Author: Flashman #1 @9930 WWIVNet ³ ³ Difficulty: Practically installs itself. ³ ³ WWIV Version: 4.22 and probably several others ³ ³ Files Affected: lilo.c, msgbase.c, fcns.h ³ ³ Description: Makes users think that you've installed new phone lines by ³ ³ showing a phony node list with other users' names in it. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ I saw something similar to this not too long ago, but frankly, I like mine better. What it does is shows a list similar to what one would see on a multi-line board: A list of who's on each node and a stat or two about them. Here's a sample of what it would look like: 7You're connected to 5WWIVShare Node 2 7at 59600 bps7. 2Node User Online Speed 7ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 21 Moo Goo Gai Pan #16 14400/v.32bis 22 1Flashman #1 9600 23 5Waiting for call 24 Cornjob #8 2400 25 5Waiting for call It picks by random which users are online, on which node, their speed, which nodes are waiting for callers, and which node the current user is connected to. Spiffy, eh? And all it takes is a little block reading. Let's begin now, shall we? DISCLAIMER: Are you kidding? STEP ONE: Back up your source code just to be able to say you did. STEP TWO: Open msgbase.c and block read the following void in at the end of the file: void fakenodes(void) { int un,i,i1,i3; unsigned short i2; char s[80],s2[80]; userrec u; i=((rand() % 5)+1); npr("7You're connected to 5WWIVShare Node %d 7at 5%s bps7.\r\n",i,curspeed); nl(); prt(2,"Node # User Online Speed"); nl(); if (okansi()) prt(7,"ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ\r\n"); else pl("----------------------------------------------------------------"); for (i3=1; i3<6; i3++) { if (i3==i) { s[0]=0; sprintf(s2,"1%-25s %s",nam(&thisuser,usernum),curspeed); } else { i2=((rand() % status.users)+1); if ((i2==usernum) || ((rand() % 2)==1)) { strcpy(s2,"5Waiting for caller"); s[0]=0; } else { read_user(i2,&u); strcpy(s2,nam(&u,i2)); s[0]=0; switch(rand() % 6) { case 0: strcpy(s,"14400/v.32bis"); break; case 1: strcpy(s,"9600"); break; case 2: strcpy(s,"2400"); break; case 3: strcpy(s,"9600/v.32bis"); break; case 4: strcpy(s,"14400/v.42bis/MNP-5"); break; case 5: strcpy(s,"9600/v.42bis"); break; } } } npr("2%-4d %-25s %s\r\n",i3,s2,s); } } /* END OF BLOCK READ */ Save msgbase.c. STEP THREE: Load lilo.c and find void logon(void). Look for and add the following code. /* == */ signifies existing code and /* ++ */ signifies lines to add. /* == */ if (incom && live_user) { /* == */ i=printfile("LOGON"); /* == */ if ((!i) && (!(thisuser.sysstatus & sysstatus_pause_on_page))) /* == */ pausescr(); /* == */ } /* ++ */ nl(); /* ++ */ fakenodes(); /* == */ strcpy(xdate,date()); /* == */ if (strcmp(xdate,thisuser.laston)==0) /* == */ ++thisuser.ontoday; Save lilo.c. STEP FOUR: Either run MAKE FCNS or load fcns.h and add void fakenodes(void) to the end of the group for msgbase.c. STEP FIVE: Compile. That's it! All done! If you plan to extract and/or use this mod, hit 'A' right now and tell me so. I like to know how many people use my mods. Thanks. 7°±²Û1Flashman7Û²±°