home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
RESBANK.MOD
< prev
next >
Wrap
Text File
|
1990-08-31
|
5KB
|
111 lines
Killer #1 @7318
Thu Aug 16 15:56:38 1990
-= Restrict Users from the Bank and Casino =-
-= and Gold Check before entering the Casino =-
* by Killer 1@7318 WWIVnet *
(RESBANK.MOD)
What this mod/idea will do is restrict users that abuse Goose's Bank and
Casino. Yes,.. There are some out there that take advantage of this great
feature that me Buddy Goose 1@7312 wrote for WWIV. (Thanks Goose) I found
this was alittle easier than writing up something for an AR. Since keeping
track of an AR mod add is a problem at times. So I thought I write this up.
I've also added an extra in this for users whos gold is less than 1 peice,
so they cant get back in and win gold or trade time for gold. Let em find
some other way to gain some back. (Like Posting a message or uploading)
- equals designated code where as + equals added or modified code.
[STEP 1]
Load up VARDEC.H and add a new restrict. BECAREFUL here! Since you need to
make sure there isnt a #define using the same bit. If ya dont know what bit
means. I think its time to look it up. Dont you? Anyways. Check to make sure
there is nothing defined as 0x8000 in your #define restrict. If so,use some-
thing other than whats being used. Such as 0x1000;0x2000 etc.
- #define restrict_net 0x0200
- #define restrict_upload 0x0400
+ #define restrict_bank 0x8000 /* mod add restrict KoL */
+ #define restrict_string "LCMA*PEVKNU $" /* mod change restrict. add $ */
- /* userrec.sysstatus */
- #define sysstatus_ansi 0x0001
- #define sysstatus_color 0x0002
Save VARDEC.H and move on.
[STEP 2]
Now load up Extrn.C and search for void tzbank() and search down a few lines
to add the "ok" in the int i,f; statement. Add where stated in the rest of the
code shown below.
- void tzbank() /* mod - add entire void */
- {
- char s[81],s1[81],s2[81],buf[12];
+ int i,f,ok; /* mod change restrict KoL */
- float l;
+ if (thisuser.restrict & restrict_bank) { /* mod add restrict KoL */
+ ok=0; /* mod add restrict KoL */
+ printfile("restrict.msg"); /* mod add restrict KoL */
+ return; /* mod add restrict KoL */
+ } /* mod add restrict KoL */
- if (thisuser.sl<=10) {
- prt(1,"Sorry, but your Security Level is too low to enter the bank.
Please try"); nl(); /* truncated line */
- prt(1,"again after you have been validated."); nl();
- nl();
- return;
- }
+ if (thisuser.gold<=0) { /* mod add gold check KoL */
+ printfile("casbank.msg"); /* mod add gold check KoL */
+ return; /* mod add gold check KoL */
+ } /* mod add gold check KoL */
+ if (ok) { /* mod add restrict KoL */
- strcpy(s1,"TZCASINO.EXE");
- if (!exist(s1)) {
- nl();
- prt(3,"Sorry, the casino is currently closed."); nl();
- } else {
[STEP 3]
Now scan down to the end of the file and add the end declariation
- } else
- thisuser.extratime-=l;
- } else
- thisuser.extratime+=l;
- }
- }
- } /* end of tz bank and casino */
+ } /* mod add restrict KoL */
Welp,.. there ya go. Now Slam the F9 key and tear it up. You'll need to
recompile the whole board since the change to the VARDEC.H file. Bummer huh?
Hey... if ya have problem users out there and ya cant stop them from abusing
Goose's Time Bank And Casino. (Which more Releases are on thier way with new
ideas,and features. Believe your going to love em) This will help ya solve
that problem. Remember to make the files in your GFILES directory called....
"RESBANK.MSG" and "CASBANK.MSG". Edit it the way you wish stating why you
gave the restriction and reason why they cant get in if thier gold is lower
than 1 piece.
Hope ya like the mod/idea. If any problems occur. Check over your work first.
Also look for the Truncated Line that was to long to fit in 80 columns.
If problem still occur? Write your congressman. Or IRAQ.
6KILLER0
6Killers Law BBS 2703-590-89820
71@7318 WWIVNET0
3BETA TEST Site for 2G0OO2SE's 11@7312 Mods0