home *** CD-ROM | disk | FTP | other *** search
-
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name: DEMON01B.MOD Mod Author: CyberDemon │
- │ Difficulty: [■■■.......] (3 of 10) Date: 02/19/95 │
- │ WWIV Version: 4.24 Adapted From: A PCBoard PPE │
- │ Version: 2.0 - Updated and fixed for v4.24! │
- │ Files Affected: BBSOVL1.C, BBS.C, XFEROVL.C │
- │ │
- │ Description: This is an updated version of a YourInfo mod that I did a │
- │ while ago, it never really worked. Well, I finnaly got to │
- │ fixing it. Light Bars, and a Ton of Info... WWIV.INI... │
- └────────────────────────────────────────────────────────────────────────────┘
-
- Disclaimer: This mod is not going to be perfect. I am not 100% sure that it
- doesn't have bugs in it. I am sure it wont format the harddrive
- or anything( Unless someone else modified it too). But in any
- case, if you're scared this might srew something up; Dont put it
- in!
-
-
- ───(Step 1)────────────────────────────────────────────────────────────────────
-
- Load MMENU.C and replace case 'y' in function dlmainmenu() with this one:
-
- case 'Y':
- yourinfo();
- break;
-
-
- ───(Step 2)────────────────────────────────────────────────────────────────────
-
- Load MMENU.C and replace case 'y' in function dlmainmenu() with this one:
-
-
- ───(Step 3)────────────────────────────────────────────────────────────────────
-
- Load BBSOVL1.C and replace the function yourinfo with this:
-
- /* CyberDemon Block Copy START */
-
- char *info_menu [] =
- {
- "FiLeS STaTuS ",
- "MeSSaGe STaTuS ",
- "oTHeR iNFo ",
- "LeaVe "
- };
-
- void infomenu(int type, int pos)
- /* This function moves the cursor with the arrow keys */
- {
- switch (type) {
- case 0:
- setc(31);
- break;
- case 1:
- setc(1);
- break;
- }
- goxy(5,pos+4);
- outstr(info_menu[pos - 1]);
- }
-
-
- void clearbox (int X, int Y, int Length, int EndLine)
- {
- int i;
- ansic(0);
- goxy(X,Y);
- for (Y=Y;Y<EndLine;Y++) {
- for (i=0;i<Length;i++)
- npr(" ");
- goxy(X,Y);
- }
- }
-
- void yourstats(int s)
- {
- switch(s) {
- case 1:
- clearbox(31,5,40,15);
- goxy(31,5);
- npr("9Uploaded Bytes : 1%d",thisuser.uk);
- goxy(31,6);
- npr("9Uploaded Files : 1%d",thisuser.uploaded);
- goxy(31,7);
- npr("9Downloaded Bytes : 1%d",thisuser.dk);
- goxy(31,8);
- npr("9Downloaded Files : 1%d",thisuser.downloaded);
- goxy(31,9);
- npr("9U/L-D/L Ratio : 1%-5.3f",ratio());
- break;
- case 2:
- clearbox(31,5,40,15);
- goxy(31,5);
- npr("9Messages Read : 1%d",thisuser.msgread);
- goxy(31,6);
- npr("9Messages Written : 1%d",thisuser.msgpost);
- goxy(31,7);
- npr("9Messages Written on Net : 1%d",thisuser.postnet);
- goxy(31,8);
- npr("9Comments to Sysop : 1%d",thisuser.feedbacksent);
- goxy(31,9);
- npr("9Post/Call Ratio : 1%-5.3f",post_ratio());
- goxy(31,10);
- npr("9E-Mail Sent : 1%d",thisuser.emailsent);
- goxy(31,11);
- npr("9E-Mail Sent Over Net : 1%d",thisuser.emailnet);
- goxy(31,12);
- npr("9Mail Waiting : 1%d",thisuser.waiting);
- break;
- case 3:
- clearbox(31,5,40,15);
- goxy(31,5);
- npr("9Current Speed : 1%-19.19s",curspeed);
- goxy(31,6);
- npr("9First Time On : 1%s",thisuser.firston);
- goxy(31,7);
- npr("9Last Time On : 1%s",thisuser.laston);
- goxy(31,8);
- npr("9Security Level : 1%d",thisuser.sl);
- goxy(31,9);
- npr("9Download Security Level : 1%d",thisuser.dsl);
- goxy(31,10);
- npr("9Your User Note : 1%-19.19s",thisuser.note);
- goxy(31,11);
- npr("9Ass Hole Points : 1%d",thisuser.ass_pts);
- goxy(31,12);
- npr("9TimeBank Time : 1%d",thisuser.banktime);
- goxy(31,13);
- npr("9WWIV Reg. Number : 1%d",thisuser.wwiv_regnum);
- break;
- case 4:
- clearbox(31,5,40,15);
- goxy(31,5);
- outstr("7QuiT BaCK To WWiV");
- break;
- }
- }
-
- void yourinfo(void)
- {
- char ini[81],*ss;
- int pos=1, done=0;
- unsigned ch;
-
- if (ini_init("WWIV.INI", "WWIV", NULL)==0) {
- if ((ss=ini_get("SHORT_SYS_NAME", -1, NULL))!=NULL) {
- strcpy(ini, ss);
- }
- ini_done();
- }
- printfile("YOURINFO.ANS");
- setc(3);
- goxy(11,10); outstr(ini);
- goxy(11,11); outstr(syscfg.sysopname);
- goxy(11,12); outstr(date());
- goxy(11,13); outstr(ctim(nsl()));
- goxy(18,14); outstr("1"); //CHANGE THIS - Total Number Of Instances!!!
- goxy(18,15); npr("%d",instance);
- yourstats(1);
- infomenu(0, pos);
- do {
- ch=get_kb_event();
- switch (ch) {
- case COMMAND_UP:
- infomenu(1, pos);
- pos--;
- if (pos<1)
- pos=4;
- infomenu(0, pos);
- yourstats(pos);
- ch=-1;
- break;
- case COMMAND_DOWN:
- infomenu(1, pos);
- pos++;
- if (pos>4)
- pos=1;
- infomenu(0, pos);
- ch=-1;
- yourstats(pos);
- break;
- case EXECUTE:
- switch (pos) {
- case 4: CLS(); done=1; break;
- }
- }
- } while ((!done) && (!hangup));
- }
-
- /* CyberDemon Block Copy FINISH */
-
-
- ───(Step 4)────────────────────────────────────────────────────────────────────
-
- Load WWIV.INI and add this under [WWIV] :
-
- ; SHORT_SYS_NAME : Short System Name, Ex. The Humble Old Shack="THOS"
- ; you should keep the short system name under 15 chars.
- SHORT_SYS_NAME = WWIV BBS
-
-
- Add this file to your GFILES directory!
-
- section 1 of 1 of file yourinfo.ans < uuencode 5.32 by R.E.M. >
-
- begin 644 yourinfo.ans
- M&ULT,&T;6S)*&ULT,&T-"AM;,&W:&ULQ.S,V;<3$&ULP.S,V;<3$&ULQ.S,P
- M;<3$^?D@^2`@^AM;-3!#^B`@(/D@^?G$Q!M;,#LS-FW$Q!M;,6W$Q!M;,&V_
- M#0H;6S$[,S9MLQM;-S=#LPT*&ULP.S,V;;,@(!M;,3LS-VW:&ULP;<3$Q,0;
- M6S$[,S!MQ,3Y^2`@(/GYQ,3$&ULP;<3$Q,0;6S%MOR`@(-H;6S!MQ,3$Q!M;
- M,3L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