home *** CD-ROM | disk | FTP | other *** search
- Godarky #1 @12108
- Thu Jun 15 18:24:27 1995
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name : GOD02A.MOD Mod Author: Godarky │
- │ Difficulty : ██████▒▒▒▒(EASY) 1@12108 WWIVnet │
- │ WWIV Version : 4.24 1@5305 ICEnet │
- │ Mod Date : 06/15/95 1@12 ULTRAnet │
- │ Files Affected: MMENU.C FCNS.H MENUS.MSG MENUSANS.MSG 1@507 InfiNet │
- │ Description : Ask to go to CD-Rom door or regular transfer area, Access │
- │ is regulated by both DAR and DSL (Adult and Non Adult regulated) │
- └──┬─────────────────────────────────────────────────────────────────────────┘
- │This mod was ORIGINALLY written by REDMAN 1@1300(WWIVnet) for WWIV v4.23.
- │While some of the existing code in this mod was *his*, I did some
- │rewriting to make it more how I wanted it, as well as to make it work
- │with WWIV 4.24. Thus I have renamed it. And am releasing it for the other
- │people out there who would like to use this mod with 4.24.
-
-
- KEY
- ----------------
- = Existing Code
- + Add Code
- - Cut Out Code
- =+ Modify Code
- ----------------
-
-
- !!!NOTE!!!
-
- This mod is *NOT* to be distributed on or as a part of ANY CD-ROM
- Collection. It is for REGISTERED owners of WWIV *ONLY*! And thus
- only REGISTERED owners should have access to this modification.
-
- -------------------
- Step 1: My system is different than yours. However, at the time this was
- written, my system was almost VIRGIN source code, and I can't really
- see any reason why this would not work on simmilair systems, since
- the code for it is primarily independant. This said, you should
- backup your source code before installing it, so you wont have to
- see how callous I can be when somone leaves me E-mail saying "Your
- mod screwed up my entire system". While this is an exaggeration,
- the mod in it's un-modified form is incapable of destroying your
- hard drive, I did say to back up the source, so any liability will
- be your own. Nuff Said!
-
-
- Step 2: Open up MMENU.C and add the following at the top of the file:
-
- = #include "vars.h"
- + #include <conio.h>
-
-
- Step 3: Go to void mainmenu(void). Search for case 'T' and add this one line.
-
- = case 'T':
- = if (syscfg.sysconfig & sysconfig_no_xfer) {
- = nl();
- = pl(get_string(30));
- = nl();
- = break;
- = }
- = if ((udir[0].subnum==-1) && (okconf(&thisuser))) {
- = for (curconfdir=0;
- = (curconfdir<dirconfnum) &&
- = (uconfdir[curconfdir].confnum!=-1);
- = curconfdir++) {
- = setuconf(CONF_DIRS, curconfdir, -1);
- = if (udir[0].subnum!=-1)
- = break;
- = }
- = }
- = if (udir[0].subnum!=-1) {
- = write_inst(INST_LOC_XFER,udir[curdir].subnum,INST_FLAGS_NONE);
- = curdloads=1;
- = play_sdf(get_string(1037),0);
- = if (existprint(get_string(1037)))
- = pausescr();
- + cdrom(); /* god02a.mod */
-
- Step 4: Insert this entire void right before void dlmainmenu(void)
-
- -S-T-A-R-T--B-L-O-C-K--C-O-P-Y--H-E-R-E-!-!-
-
- void cdrom(void)
- {
- char ch;
-
- if (((thisuser.dar) & 1) && (thisuser.dsl>=30)) {
- clrscr();
- printmenu(28);
- prt(7,"Your Choice is: ");
- ch=onek("ASR");
- switch(ch) {
- case 'A':
- sysoplog("2Ran Adult CD-COM0");
- extern_prog("ACDROM.BAT", EFLAG_SHRINK); /* See GodNote #1 at End */
- nl();
- nl();
- prt(7,"Returning You To The Treasonous Rendezvous Main-Menu");
- nl();
- pausescr();
- curdloads=0;
- break;
- case 'S':
- sysoplog("2Ran Shareware CD-COM0");
- extern_prog("CDROM.BAT", EFLAG_SHRINK); /* See GodNote #2 at End */
- nl();
- nl();
- prt(7,"Returning You To The Treasonous Rendezvous Main-Menu");
- nl();
- pausescr();
- curdloads=0;
- break;
- case 'R':
- sysoplog("2Transfer Area0");
- break;
- }
- } else {
- clrscr();
- printmenu(29);
- prt(7,"Your Choice is: ");
- ch=onek("12");
- switch(ch) {
- case '1':
- sysoplog("2Ran Shareware CD-COM0");
- extern_prog("CDROM.BAT", EFLAG_SHRINK); /* See GodNote #2 At End */
- nl();
- nl();
- prt(7,"Returning You To The Treasonous Rendezvous Main-Menu");
- nl();
- pausescr();
- curdloads=0;
- break;
- case '2':
- sysoplog("2Transfer Area0");
- break;
- }
- }
- }
-
- -E-N-D--B-L-O-C-K--C-O-P-Y--H-E-R-E-!-!---------
-
-
- Step 5: Leave editor and type MAKE FCNS from a dos prompt.
-
-
- Step 6: Recompile (Its a full recompile, since we had to do a MAKE FCNS.
- So if you are still using an old 8088, you may wanna go grab some
- dinner or catch a quick flick.
-
- Step 7: Cut out the 2 Menus below (together/one-cut) and past them to the
- to the end of your MENU.MSG & MENUANS.MSG files in your GFILE
- Sections. You don't have to use these menus. They are kinda plain,
- so you may wanna make your own. If you are lazy, and decide to use
- these, hopefully you wont be too lazy to change the BBS Names on
- the menus.
-
-
- -S-T-A-R-T--B-L-O-C-K--C-O-P-Y--B-E-L-O-W--T-H-I-S--L-I-N-E----------------
-
- `28 ======================= Adult CD-Rom Access Menu =====================
-
-
-
- 4╔════════════════════════════╗0
- 4║7T.R.BBS Adult Transfer Menu 4║0
- 4╠════════════════════════════╣0
- 4║7 2A7dult CD-ROMS 4║0
- 4║7 2S7hareWare CD-ROMS 4║0
- 4║7 2R7egular Hard Drive Files 4║0
- 4╠════════════════════════════╣0
- 4║7 Type the first letter of 4║0
- 4║7 the area that you want. 4║0
- 4╚════════════════════════════╝0
-
- `29 =================== Non Adult CD-Rom Access Menu ===================
-
-
- 4╔════════════════════════════╗0
- 4║1 T.R. BBS Transfer Menu 4║0
- 4╠════════════════════════════╣0
- 4║1 21 1ShareWare CD-ROMS 4║0
- 4║1 22 1Regular Hard Drive Files 4║0
- 4╠════════════════════════════╣0
- 4║1 Type the Number of the 4║0
- 4║1 area that you want. 4║0
- 4╚════════════════════════════╝0
-
- -E-N-D--B-L-O-C-K--C-O-P-Y--A-B-O-V-E--T-H-I-S--L-I-N-E--------------------
-
- Notes From Godarky on the mod:
-
- GodNote #1: Name the file on this line to the name of the BATCH file which
- runs your ADULT CD-ROM door.
-
- GodNote #2: Name the file on these lines to the name of the Batch file which
- runs your SHAREWARE CD-ROM door.
-
-
- Notes From RedMan on DAR's and DSL's which can be applied to this mod.
-
- Note 1:
- I use DAR A for Adult access (DAR 1) and DAR C for access to the CD-Roms
- (DAR 4). You can change these to wahtever you want. I also use an DSL
- to access the cd-roms. This can also be changed to what ever you want.
- I have it this way because I use donations to access CD-ROMS. This works
- great for my BBS.
- Note 2:
- I use the cd rom door called CDCOM so for the ADULT section I have the
- mod call up the adult cdcom section. ( I have two different sections
- one for adults and one for shareware. CDCOM works great with this setup.)
- You need to make a batch file with this name (or what ever you want) to
- call the adult cd rom door.
- Note 3:
- This is the batch file name for the shareware cd rom door. Make this batch
- file and use this name or you can change it to what you want.
- Note 4:
- If the user does not have an DAR of A and an DAR of C it will go here and
- check if the user has just a DAR of C with a DSL of at least 30. If the user
- matches this they get access to just the shareware cd roms. The DAR as well
- as the DSL are up to you.
- Note 5:
- If your access to CD ROMs are not regulated by DSL just remove the
- DSL section, like so:
- if (((thisuser.dar) & 1) && ((thisuser.dar) & 4) {
- Or if yuo only want a certian DSL of say just 30 to access as well as
- the dar's make the >=30 look like ==30, or whatever DSL you want.
- it would look like the following.
- if (((thisuser.dar) & 1) && ((thisuser.dar) & 4) && (thisuser.dsl==30)) {
- changed here ^
-
-
- Finale': If you liked this mod, please enjoy it. I don't find it necissary
- for you to write me and tell me that you are using it. It seems
- like a waste of bandwidth to me, since I would have done this
- rewrite anyhow for my own BBS. If you feel the need to write
- somone and let them know you are using this mod, write REDMAN
- and let him know that you are happy that he made the *MODEL* for
- me to base this mod on.
-
- Fine'
-