home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
EATME.MOD
< prev
next >
Wrap
Text File
|
1990-05-03
|
6KB
|
195 lines
Crystal Shard #51 @8876
Sun Apr 29 09:51:39 1990
(*)-(*)=> Originating from The Ward, Southern Ca. <=(*)-(*)
/*****************************\
| Spinning Cursor mod v1.1b |
| >>---> Crystal Shard <---<< |
| 04/28/90 |
| (Old EATME mod) |
| (by ROB MILLER) |
| (and SCHITZO) |
\*****************************/
New Version -
There were some errors in my first release. I think they should be fixed
by now. If you have any problems, drop a line.
Note by C. Lord Shard -
Thank Rob and Schitzo for the main body of the source code. What I did
was slow down the spinning cursor and change the default so you get that
famous spinning cursor!
Disclaimer -
*** This mod has not actually been tested yet! *** Therefore, I claim
no form of responsibility whatsoever, stated or implied, to this mod.
If your brand new 300 megabyte hard drive melts to slag or your modem
explodes into a million bits of silicon in your face, it's not my fault.
Hey, go bug Rob or Schitzo! Hehehe...
/************************************************************************/
/* This mod to a mod enables the user to edit the "eatme" prompt. */
/* At the main user the user would type /C and it'll allow him to */
/* Change the eatme cursor. And it will stay around for the next user */
/* to see, until someone changes it. A few notes: 1] You can change */
/* the defaults.. it doesn't matter, also when you shrink to dos, it */
/* will go back to the default settings. Uhm.. for those of you who */
/* have not yet installed it- This mod makes certain strings, such as */
/* the "Saving..." go back over it self in a neato pattern.. Try it */
/* I am sure you'll like it! */
/************************************************************************/
/***********************/
/* Key */
/* */
/* = Existing Line */
/* + Add Line */
/* */
/* @ My Additions */
/***********************/
Load up BBS.C and right after the #includes... do this:
= #include <dos.h>
= #include <alloc.h>
= #include <time.h>
@+ char eat[10], eat1[10], eat2[10], eat3[10];
@+ int eati=0;
= unsigned _stklen=15360;
Then add this to any file, I added it to BBS.C - doesn't really make
a difference. Just be sure to add it before, or after another function
NOT in the midst of one! :)
void hangon(int x) {
int i;
switch(x) {
case 2400:
x=1000;
break;
case 1200:
x=500;
break;
case 300:
x=75;
break;
default:
x=1500;
break;
}
for (i=0; i<x; i++);
}
void eatme(int l) {
/* l = strlen(s) */
int i;
int j;
if(!eati) {
strcpy(eat,"|");
strcpy(eat1,"\");
strcpy(eat2,"-");
strcpy(eat3,"/");
}
delay(250);
for (i=l; i>0; i--) {
for (j=0; j<9; j++) {
hangon(atoi(curspeed));
hangon(0);
switch(j) {
case 0:
outstr(eat);
break;
case 2:
outstr(eat1);
break;
case 4:
outstr(eat2);
break;
case 6:
outstr(eat3);
break;
case 9:
outstr("\b");
break;
default:
outstr("\b \b");
break;
}
}
}
}
Next we go down to void mainmenu() and...
if (strcmp(s,"/O")==0) /* Existing Code... */
hangup=1; /* || */
if (strcmp(s,"/E")==0) /* || */
slash_e(); /* \/ */
if (strcmp(s,"/C")==0) { /** Then add all of this ... **/
sprintf(s,"Current setting: %s%s%s%s",eat,eat1,eat2,eat3,eat4);
prt(1,s); nl();
prt(5,"Change it? ");
if(yn()) {
eati=1;
prt(1,"Enter first character ");
mpl(1);
inputl(eat,1); nl();
if(eat[0]) nl();
else strcpy(eat,"|");
prt(1,"Enter second character ");
mpl(1);
inputl(eat1,1); nl();
if(eat1[0]) nl();
else strcpy(eat1,"\");
prt(1,"Enter third character ");
mpl(1);
inputl(eat2,1); nl();
if(eat2[0]) nl();
else strcpy(eat2,"-");
prt(1,"Enter fourth character ");
mpl(1);
inputl(eat3,1); nl();
if(eat3[0]) nl();
else strcpy(eat3,"/");
nl();
prt(3,"And away we go!"); eatme(15);
}
nl();
}
/* The rest is existing code */
if (strcmp(s,"/N")==0)
nscan(cursub);
...
Now all you have to do is USE it! So the most popular place to use it
is in the message base part, where it says Saving.. that is shown below
To use it in other places just put eatme(int) where int is however many
spaces you want it to "Eat"..
In MSGBASE.C...
= outstr("Saving...");
+ eatme(9);
= if (fsed) {
= i5=open(fnx,O_RDONLY | O_BINARY);
Now press F9 and go chug 10 gallons 'o ale or empty you swimming pool with a
fork while you wait for WWIV to recompile, unless you got a '386. If so, just
blink your eyes, and you're done! Hope you enjoy, and if you see me on a BBS,
stop and say,
"Hi there, C. Lord Shard,
Crystal Lord,
C. Lord Shard,
Sealord Shard!"
Amber #1200@1 The Ward! #51@8876