home *** CD-ROM | disk | FTP | other *** search
- ``Jiff`` IceNET #4 AT 7668
- Sun Jun 18 00:13:38 1995
- ┌───────────────────────────────────────────┬────────────Cow Header (Moo)───┐
- │ Mod Name: JIFF-04.MOD The Author: Jiff │ 4@7668 IceNET 1@7604 Penguin │
- │ Difficulty: █▒▒▒▒▒▒▒▒▒ │ 1@1 CowLink 1@7666 GoldNET │
- │ WWIV Version: v4.24 Date: 06/17/95 │ 1@7669 ZeppNET 1@7666 RoadNET │
- │ Files Affected: COM.C GFILES.C │ 1@52 AstralNET │
- │ Description: Replacement for Gfiles. │ The Pinnacle (716) 646-3272 │
- └───────────────────────────────────────────┴───────────────────────────────┘
-
- This is the first G-Files mod I've seen for 4.24... This should be
- pretty simple, since all you do is copy and paste... I'd recomend changing
- the colours a little, but not too much or the JiffBar will look weird...
- For anyone who has non-ANSI users, this does do ANSI checks, and it
- should work fine for all... Just a simple, colourful, boxed-style G-files!
- Thanks to Spotnick for his LiteBar function that I edited to become
- JiffBar... As always, any problems aren't my fault, but I will help you if
- you need it... Please back up your source code now, before you try a tough
- mod... =)
-
- ─═[░▒▓Secret Codes!▓▒░]═─
- = means "This is stock code!"
- + means "Add me here please!"
- - means "Rip me out now!!!"
- % means "Change me to the line shown"
- $ means "Send Jiff Money!!!"
-
-
- ─═[Step 1]═─
- Open up COM.C and add this little function at the end... Feel free
- to use it in any modification you want, as long as Spotnick doesn't mind...
- Just mail me the mod (and say JiffBar is by me & Spotnick). It should work
- just like a pl with 'wings' or like:
-
- jiffbar("Your name is: %s",thisuser.name);
-
- /* Added for JIFF-04.MOD */
- void jiffbar(char *fmt, ...)
- {
- va_list ap;
- char s[512], s2[250];
-
- va_start(ap, fmt);
- vsprintf(s, fmt, ap);
- va_end(ap);
-
- if (okansi())
- {
- sprintf(s2,"7░░▒▒▓▓4 %s 7▓▓▒▒░░",stripcolors(s));
- pl(s2);
- } else
- pl(s);
- ansic(0);
- }
- /* Done adding for JIFF-04.MOD */
-
- Save up COM.C
-
- ─═[Step 2]═─
- Open up GFILES.C... This is where the rest of the mod goes...
-
- ─═[Step 3]═─
- Replace void list_sec and void list_gfiles with these:
-
- void list_sec(int *map, int nmap)
- {
- int i,abort;
- char s[81];
-
- abort=0;
- outchr(12);
- pla("",&abort);
- pla("",&abort);
- jiffbar("G-Files Sections Available on %s",syscfg.systemname);
- pla("",&abort);
- if (okansi()) {
- npr("7╒═══───∙·.\r\n");
- for (i=0; (i<nmap) && (!abort) && (!hangup); i++) {
- sprintf(s,"7│ 1%2d3.9 %s",i+1, gfilesec[map[i]].name);
- pla(s,&abort);
- }
- npr("7└──────∙∙··\r\n");
- } else {
- for (i=0; (i<nmap) && (!abort) && (!hangup); i++) {
- sprintf(s,"%2d. %s",i+1, gfilesec[map[i]].name);
- pla(s,&abort);
- }
- }
- }
-
- void list_gfiles(gfilerec *g, int nf)
- {
- int i,abort;
- char s[81];
-
- abort=0;
- outchr(12);
- pla("",&abort);
- pla("",&abort);
- jiffbar("G-Files In This Section");
- pla("",&abort);
- if (okansi()) {
- npr("7╒═══───∙·.\r\n");
- if ((nf==0) && (abort==0)) {
- pl("7│ 6No G-Files in This Section");
- }
- for (i=0; (i<nf) && (!abort) && (!hangup); i++) {
- sprintf(s,"7│ 1%2d3.9 %s",i+1, g[i].description);
- pla(s,&abort);
- }
- if ((!abort) && (cs())) {
- pl("7├───────∙∙··");
- pl("7│ 1A3.9 Add G-files");
- pl("7│ 1D3.9 Delete G-files");
- }
- if ((!abort) && (so())) {
- pl("7│ 1G3.9 G-file Editor");
- }
- pl("7└──────∙∙··");
- } else {
- if ((nf==0) && (abort==0)) {
- nl();
- pl(get_string(5));
- nl();
- }
- for (i=0; (i<nf) && (!abort) && (!hangup); i++) {
- sprintf(s,"%2d. %s",i+1, g[i].description);
- pla(s,&abort);
- }
- nl();
- if ((!abort) && (cs())) {
- pl(get_string(50));
- pl(get_string(51));
- nl();
- }
- }
- }
-
- ─═[Step 4]═─
- Go to void gfile_sec and do this:
-
- = return;
- = for (i=0; i<20; i++)
- = odc[i]=0;
- = for (i=1; i<=nf/10; i++)
- = odc[i-1]=i+'0';
- + } else if ((strcmp(ss,"G")==0) && (so())) {
- + write_inst(INST_LOC_GFILEEDIT,0,INST_FLAGS_NONE);
- + sysoplog(get_stringx(1,5));
- + gfileedit();
- = } else if ((strcmp(ss,"D")==0) && (cs())) {
- = nl();
- = prt(2,get_string(53));
-
-
- ─═[Step 5]═─
- Done! Make your BBS and e-mail me saying you used it, or need help!
- Rememeber, I am not responsable if this screws up something, but I will
- try to help you out...
-
- ─═[Jiff]═─
- ─═[Sysop ■ The Cow Pasture]═─
- ─═[Co-Sysop ■ The Pinnacle]═─
-
- JIFF-01 .MOD ■ Boxed DirEdit
- JIFF-02 .MOD ■ Boxed SubEdit
- JIFF-03 .MOD ■ Pending list at callout
- JIFF-04 .MOD ■ New G-Files
-