home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
BEAM207.MOD
< prev
next >
Wrap
Text File
|
1995-07-16
|
9KB
|
302 lines
Beamer #1 @3459
Sun Jul 16 07:02:58 1995
╔═══════════════════════════════════════════════════════════════════════════╗
║ Mod Name: : BEAM207.MOD ║
║ Difficulty : ▓░░░░░░░░░ ║
║ WWIV Version : 4.24 ║
║ Version Date : 07/16/95 ║
║ Description : Adds an ANSI Matrix Time Bank. ║
║ Next version will contain a Gambling function from ║
║ SPV's Gambling MODs ║
╚═══════════════════════════════════════════════════════════════════════════╝
┌───────────────────────────────────────────────────────────────────────────┐
│ Legend: │
│ │
│ - Commeny out or delete │
│ + Add this │
│ = Leave alone │
│ @ Change this │
└───────────────────────────────────────────────────────────────────────────┘
┌───────────────────────────────────────────────────────────────────────────┐
│ NOTE: │
│ │
│ This is a COMMON2.2+ MOD... │
│ │
│ WATCH FOR LINE WRAPS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! │
└───────────────────────────────────────────────────────────────────────────┘
─────────────────────────────────────────────────────────────────────────────
Step 0: Dahhhhh!!!
─────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────
Step 1: If you do not have this yet, please add this to the end of
BBSOVL2.C
─────────────────────────────────────────────────────────────────────────────
void noabort(unsigned char *fn)
{
int oic;
if (using_modem) {
oic=incom;
incom=0;
dump();
}
existprint(fn);
if (using_modem) {
dump();
incom=oic;
}
}
──────────────────────────────────────────────────────────────────────────────
Step 2: Open up MISCCMD.C and replace 'void time_bank(void)' with the
following...
──────────────────────────────────────────────────────────────────────────────
char *time_str [] = {
"Deposit",
"Steal",
"Go Back",
};
void time_bank2(void)
{
char s[81];
int i,done;
double nsln;
showtextrec opt[TIMBK_OPTIONS];
varimenurec *menu=NULL, newmenu;
varimenuinfo info={HIGHLIGHT, UNHIGHLIGHT, UNHIGHLIGHT, HIGHLIGHT,
COMMON_FULL, 0, 0, 0, 0, 0};
for (i=0; i<TIMBK_OPTIONS; i++) {
// * NOTE *: edit the number 37 in the line below for menu column.
// edit the number 15 in the line below for menu top line.
// edit the number 7 in the line below for menu width.
build_showtextrec(&opt[i], 37, 15+i, 7, time_str[i], JUSTIFY_CENTER, ' ');
fillvarimenurec(&newmenu, &opt[i], SHOW_TEXT_TYPE, time_str[i][0],
time_str[i][0], COMMON_ACTIVE);
menu=addvarimenu(menu, &newmenu);
}
done=0;
topdata=0;
while((!done) && (!hangup)) {
CLS();
noabort("TIMEBANK");
goxy(24,17);
npr("6%-6d",thisuser.banktime);//Balance:
goxy(47,17);
npr("6%-6d",(int)(nsl()/60));//Time Left:
info.redraw=COMMON_FULL;
varimenu(menu, &info);
switch(info.event) {
case EXECUTE:
switch(info.returnvalue) {
case 'D':
goxy(1,2);
prt(4,"Give how much:0 ");
mpl2(3);
input(s,3);
i=atoi(s);
if (i>0) {
nsln=nsl();
if ((i+thisuser.banktime)>syscfg.sl[thisuser.sl].time_per_logon)
i=syscfg.sl[thisuser.sl].time_per_logon-thisuser.banktime;
if (i>(nsln/60.0))
i=(nsln/60.0);
thisuser.banktime+=i;
thisuser.extratime-=i*60.0;
tleft(0);
}
break;
case 'S':
goxy(59,2);
if (!thisuser.banktime)
break;
prt(4,"Steal how much:0 ");
mpl2(3);
input(s,3);
i=atoi(s);
if (i>0) {
nsln=nsl();
if (i>thisuser.banktime)
i=thisuser.banktime;
thisuser.banktime-=i;
thisuser.extratime+=(i*60.0);
tleft(0);
}
break;
case 'G':
CLS();
done=1;
break;
}
break;
case GET_OUT:
CLS();
done=1;
break;
}
}
killvarimenu(menu);
}
void time_bank(void)
{
char s[81],bc[11],c;
int i,done=0;
double nsln;
nl();
if (thisuser.sl<=syscfg.newusersl) {
ansic(6);
pl(get_string(981));
return;
}
if (thisuser.banktime>syscfg.sl[thisuser.sl].time_per_logon)
thisuser.banktime=syscfg.sl[thisuser.sl].time_per_logon;
if (menu_on()) {
rip_timebank();
return;
}
if (okansi()) {
time_bank2();
return;
}
strcpy(bc,get_string(983));
do {
outchr(12);
sprintf(s,"%c%s%c",bc[0],charstr(25,bc[4]),bc[1]);
prt(4,s); nl();
sprintf(s,"%c%-25.25s%c",bc[5],get_string(984),bc[5]);
prt(4,s); nl();
sprintf(s,"%c%s%c",bc[7],charstr(25,bc[4]),bc[9]);
prt(4,s); nl();
sprintf(s,"%c%-25.25s%c",bc[5],get_string(985),bc[5]);
prt(4,s); nl();
sprintf(s,"%c%-25.25s%c",bc[5],get_string(986),bc[5]);
prt(4,s); nl();
sprintf(s,"%c%-25.25s%c",bc[5],get_string(987),bc[5]);
prt(4,s); nl();
sprintf(s,"%c%s%c",bc[7],charstr(25,bc[4]),bc[9]);
prt(4,s); nl();
sprintf(s,"%c%-17.17s%-6d %c",bc[5],get_string(988),thisuser.banktime,bc[5]);
prt(4,s); nl();
sprintf(s,"%c%-17.17s%-6d %c",bc[5],get_string(1430),(int)(nsl()/60),bc[5]);
prt(4,s); nl();
sprintf(s,"%c%s%c",bc[2],charstr(25,bc[4]),bc[3]);
prt(4,s);
nln(2);
prt(1,get_string(989));
ansic(2);
c=onek("QDW");
switch(c) {
case 'D':
nl();
prt(1,get_string(990));
mpl(3);
input(s,3);
i=atoi(s);
if (i>0) {
nsln=nsl();
if ((i+thisuser.banktime)>syscfg.sl[thisuser.sl].time_per_logon)
i=syscfg.sl[thisuser.sl].time_per_logon-thisuser.banktime;
if (i>(nsln/60.0))
i=(nsln/60.0);
thisuser.banktime+=i;
thisuser.extratime-=i*60.0;
tleft(0);
}
break;
case 'W':
nl();
if (!thisuser.banktime)
break;
prt(1,get_string(991));
mpl(3);
input(s,3);
i=atoi(s);
if (i>0) {
nsln=nsl();
if (i>thisuser.banktime)
i=thisuser.banktime;
thisuser.banktime-=i;
thisuser.extratime+=(i*60.0);
tleft(0);
}
break;
case 'Q':
done=1;
break;
}
} while (!done && !hangup);
}
─────────────────────────────────────────────────────────────────────────────
Step 3: Then add this at the top of the file...
─────────────────────────────────────────────────────────────────────────────
= #define DOTS 5
= #define FRAME 7
+ #define TIMBK_OPTIONS 3
+
+ #define HIGHLIGHT 5 // HighLighted 1 DBLUE 2 GREEN 3 CYAN 4 DRED
+ #define UNHIGHLIGHT 31 // 31 Color Normal 5 PURPLE 6 BROWN 7 GRAY 8 DGRAY
─────────────────────────────────────────────────────────────────────────────
Step 4: UUDECODE the following file and unzip it,it contains
the Time Bank ANSI File, Then add it in the GFILES directory.
─────────────────────────────────────────────────────────────────────────────
section 1 of uuencode 5.10 of file timebank.zip by R.E.M.
begin 644 timebank.zip
M4$L#!!0````(`,(T\!X0#)N'H0$``#$,```,````5$E-14)!3DLN04Y3[58]
M;\(P$-TCY1>P^"<0BH0$&TRM.J(R,$4ME:K6#"W]7Y6<*0M8CI=V@+)4I'^$
ML3XGA22^)$K3CPP]%.(\[IW?(]'E6M-NF[:FG3.]L*W65%\Z([48.#0,RF-I
M6V@:AUKO.G2QP4E[T.W1R>3T@HQOZ(P,W?DM<>=79'S_^+#0V<G$Y)K$M2)5
M/$<&BRB0CT5$7LGM5NZ.F3A:AV/NR5+:(NP5(D&NCC+?9PJ'$U;\)4TJX-17
ME&]32"D]@UX%!:WJ!\PF$-[2I`).?47_-G_2YEK%,WS]N<UU6L474-"J\(SD
M;%M`DVI+P'P5-:>,1ARMP_G%?E@FZOA:V\([`WO22GTUOEOB#D)/7?KJ$,L*
M-IO61N(;*#<;:=P]C7J,D+V_)X2)_"0#;8;-D/,@4(<^>:L@"#;JV(D$RI?-
MZ'B,Q/.90X?NG3N_G/4/#Y)0?V]O%'K'%#WOG<^N%_U/#=_1WP0V!RJ[3F<D
M/)`@X@LT3P^[(*]#G["(MS'+L6*>;>67`_W()IQ+K4ER7I!6=4?4#S_,Y@4%
MC?KP@1'<MCX`4$L!`A0`%`````@`PC3P'A`,FX>A`0``,0P```P`````````
L`0`@`````````%1)345"04Y++D%.4U!+!08``````0`!`#H```#+`0``````
`
end
sum -r/size 6129/773 section (from "begin" to "end")
sum -r/size 35819/539 entire input file
─────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────
Step 5: Save, Make FCNS, Compile!
─────────────────────────────────────────────────────────────────────────────
After Dark BBs
(314) 946-1730