home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
SPV-060.MOD
< prev
next >
Wrap
Text File
|
1995-05-14
|
7KB
|
204 lines
Papa Bear #1 @11579
7Friday1, 7May 121, 71995 2126:208 pm
0R 34 05/13 09:41 WWIVnet 4001->4000
0R 34 05/11 11:30 WWIVnet 11579->4001
0R 34 05/12 12:25 WWIVnet ->11579
4Msg. Status:9▄ 5Please reply!
9 ▀▀▀▀▀▀▀▀▀▀▀▀
┌────────────────────────────A CEREBRUM release!─────────────────────────────┐
│ Mod Name: SPV-060.MOD Mod Authors: Pâpâ ßêâr (11579.wwivnet) │
│ Difficulty: ▓░░░░░░░░░ First ----- [05/12/95] (15061.wwivlink) │
│ WWIV Version: 4.23 Last ------ [05/12/95] (2.sexnet) (11.norcalnet)│
│ Files Affected: DEFAULTS.C {FCNS.H} (5079.icenet) │
│ Description: Gives the ability to view and edit macros in their "real" form│
│without those annoying ^P codes and stuff... │
╞═────────────────────────────────────═╤═───────────────────────────────────═╡
│ StarPort Valhalla [510]522-3583 ASV 28.8kbps Home of the SPV mod series! │
└─────────────────────────────────────═╧═────────────────────────────────────┘
Word of Warning: You installed it, you're responsible! Make back-ups BEFORE
attempting to install this modification! Read all text before beginning.
─────────────────────────────────────────────────────────────────────────────
LEGEND:
== Original Code [use this to search on]
++ Add this Line [mods ALWAYS add stuff, don't they?]
─────────────────────────────────────────────────────────────────────────────
LONG DESCRIPTION: I had 1/2 this installed in UEDIT2. Due to popular
demand, I've made this a mod for total replacement of the current macro
functions, both for UEDIT2, "non-UEDIT2" BBS's, and your users.
Macros will be display just as if you had used them in a message. When
building them, they are displayed the same -- just as if you had entered them
in a message. The only difference is carriage returns, which are displayed
as grey |'s
─────────────────────────────────────────────────────────────────────────────
STEP 1: Remove, or comment out, *ALL* of these functions and their associated
coding, located in DEFAULTS.C:
void list_macro(unsigned char *s)
void make_macros(void)
─────────────────────────────────────────────────────────────────────────────
STEP 2: Now block copy in these functions to the end of DEFAULTS.C:
// SPV-060 BLOCK START
void make_macros(void)
{
char stemp[161],ch;
unsigned char Done=0;
do {
outchr(12);
pl("4Macro A:0");
list_macro(&thisuser.macros[2][0]);
nl();
pl("4Macro D:0");
list_macro(&thisuser.macros[0][0]);
nl();
pl("4Macro F:0");
list_macro(&thisuser.macros[1][0]);
nln(2);
npr("5Please select a macro to edit (A, D, F) or 6Q5 to quit: 0");
ch=onek("QADF");
stemp[0]=0;
switch (ch) {
case 'A':
strcpy(stemp,MacroEdit());
if (stemp[0]) {
memset(&thisuser.macros[2][0],0,80);
strcpy(&thisuser.macros[2][0],stemp);
}
break;
case 'D':
strcpy(stemp,MacroEdit());
if (stemp[0]) {
memset(&thisuser.macros[0][0],0,80);
strcpy(&thisuser.macros[0][0],stemp);
}
break;
case 'F':
strcpy(stemp,MacroEdit());
if (stemp[0]) {
memset(&thisuser.macros[1][0],0,80);
strcpy(&thisuser.macros[1][0],stemp);
}
break;
case 'Q':
Done=1;
break;
}
} while ((!Done) && (!hangup));
}
void list_macro(unsigned char *s)
{
int i=0;
while ((i<80) && (s[i]!=0)) {
if (s[i]>=32)
outchr(s[i]);
else
ansic(s[++i]-48);
++i;
}
nl();
}
// SPV-060 BLOCK END
─────────────────────────────────────────────────────────────────────────────
STEP 3: Do this step if you *do not* have PBCOMMON.C installed. Copy this
entire function to the end of DEFAULTS.C:
char *MacroEdit(void)
{
char s[81];
unsigned char tempmac[81],ch,ch1;
int i,done1,i1=0,i2=5;
s[0]=0;
done1=i=i1=0;
nl();
pl("9Enter macro now, 2809 characters, press 1CTRL-Z9 when done.0");
nl();
okskey=0;
ansic(i2);
do {
ch1=getkey();
if (ch1==26)
done1=1;
else
if (ch1==8) {
if (i>0) {
i--;
backspace();
if (tempmac[i]<32)
backspace();
}
} else {
if (ch1>=32) {
tempmac[i++]=ch1;
if (i1==0)
outchr(ch1);
else if (i1==1) {
i2=ch1-48;
ansic(i2);
i1=0;
}
} else {
tempmac[i++]=ch1;
if (ch1+64=='M') {
ansic(0);
outchr('|');
ansic(i2);
}
if (ch1+64=='P')
i1=1;
}
}
if (i>=78)
done1=1;
} while ((!done1) && (!hangup));
okskey=1;
tempmac[i]=0;
nln(2);
npr("1Is this okay?0 ");
if (yn())
strcpy(s,tempmac);
return(s);
}
─────────────────────────────────────────────────────────────────────────────
STEP 4: Do this step if you *do not* have PBCOMMON.C installed. Prototype
the above function in FCNS.H:
== void enter_regnum(void);
== void defaults(void);
++ char *MacroEdit(void);
==
== /* File: diredit.c */
== void dirdata(int n, char *s);
─────────────────────────────────────────────────────────────────────────────
STEP 5: Recompile!
─────────────────────────────────────────────────────────────────────────────
Okay, I hope you like this one... It's not fancy, but it does make making
macros a lot easier. E-Mail me if you use this.
I'll be moving in about 2 weeks. The BBS *may* stay up for another 2 weeks
after than -- we'll see. Until I get re-setup, have fun with the mods! If
you have problems, hold on to any questions you have starting, oh, about May
28th or so until I get back online.
This mod is copyright 1993,1994 by Tracy Baker, aka Papa Bear, and is
distributed as freeware. Permission is granted to distribute and post this
mod on BBS systems and online services, provided no alterations are made
(removal of message headers/taglines allowed). This mod may contain some
parts of WWIV source code, which is copyright 1988-1994 by Wayne Bell and
licensed only to registered users of WWIV. Use of WWIV source without
registration constitutes a license violation and could lead to legal
prosecution and certain doom.
Shareware distributors and CD-ROM publishers may not distribute this mod
without express written permission of the Author or WWIV Software Services.
1-7=3*6>2Pâpâ ßêâr6<3*7=1-0
8311579.wwivnet1· 2 ╪╫9≡8║7⌐¬4¥5╓╥╖1· · 2▒1 · 2▒ 3(510)522-35831 ·
732.sexnet 1∙ 6 ·0░░▒▒▓▓6∞0▓▒░6·2 StarPort ▒ ▒ 2 ▒1 ·2▒ ▒ ▒1 ·2 ▒ ▒1 ·2▒ ▒ 1·
6315061.wwivlink 0 ████1 · . 2 ▒ ▒ ▒ ▒ ▒1 · 2▒▒▒ ▒ ▒ ▒ ▒ ▒ ▒
535079.icenet 1. . 0 │└6·0└6· 1 ∙ 2 ▒ ▒ ▒ ▒▒▒ ▒ ▒ ▒1 ·2 ▒ ▒▒▒ ▒▒▒ ▒1 ∙ 2▒
---
3This tagline no verb.