home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
ECP201.MOD
< prev
next >
Wrap
Text File
|
1995-05-06
|
10KB
|
354 lines
Natas #2 @2741
Fri May 05 01:08:48 1995
0R 34 05/06 07:17 WWIVnet 4001->4000
0R 34 05/04 14:22 WWIVnet 2001->4001
0R 34 05/06 01:22 WWIVnet 2720->2001
0R 34 05/05 06:54 WWIVnet 2002->2720
0R 34 05/05 05:57 WWIVNET 2744->2002
0R 34 05/05 02:04 WWIVNet 2741->2744
0R 34 05/05 01:14 WWIVnet ->2741
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: EDCP01.Mod Mod Author: Natas 2@2741 WWIVNet │
│ Difficulty: [■■■.......] (3 of 10) Date: 05/04/95 │
│ Files Affected: COM.C Adapted From: A feature that I saw │
│ WWIV Version: 4.23 on another BBS │
│ Music Played: Metallica (Good for modding! <g>) software........ │
│ Short Desc. : Allow the use of the Arrow keys when prompted with a Yes/No │
│ question... Like in Obv/2 and ViSioN-X. │
│ │
└──────────────────────────────────────────────────────(c)─EDCP─Inc.─'95─────┘
╔════════════════════════════════════════════════════════════════════════════╗
║ This mod is copyright 1994, 1995 by Matt Neu, aka Natas, 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. Distribution should be to Registered WWIV sysops only. ║
║ ║
║ AKA: If you rip this mod off, you're a loser. And if you modify it, ║
║ give me AND WWIV Software Services some recognition!!! ║
╚════════════════════════════════════════════════════════════════════════════╝
Long Desc. : All this mod does is modify the standard yn()/ny() routines in
the stock BBS. It will print out a [Yes/No] box after a the
question and allow you to use the left and right arrow keys to
highlite back and forth between Yes or No. It is basically
just a graphical "enhancement" but it is still cool.. (:
It supports ANSi and Non-ANSi users. And I have TRIED to make
it as efficient as possible. I've seen this feature on alot
of other BBS softwares like Oblivion/2, V/2, and Vision-X. I
also have seen it on one WWIV board, but I have never seen a
mod released for it. So I took upon myself to write one for
it. (: The code SHOULD be bug free. I have tested it to the
extent of my debugging knowledge, but I'm not perfect! (: .
Welp.. On with the Mod...
KeY........
────────────────┐
++ Add a line │
== Existing line│
69 Cool...(: │
────────────────┘
Step - 0
─────────────
BACK UP YOUR SOURCE CODE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Step - 1
─────────────
Open up the file COM.C ... Add this groovy stuff at the top of the file.
++#define UP 72
++#define DOWN 80
++#define LEFT 75
++#define RIGHT 77
++#define ENTER 13 //Only add this line if you DO NOT have Asylum's
//Common Mod installed. Common already has a #define
//for ENTER
++#define FALSE 0
++#define TRUE 1
==#define frequency 500
Step - 2
─────────────
Still in COM.C, block copy this code AFTER static void print_yn(int i)
//Start Block Copy
unsigned char getlx()
{
unsigned char ch;
ch=getkey();
if (ch=='[') {
ch=getkey();
switch(ch) {
case 'A': /* Up */
return(UP);
case 'D': /* Left */
return(LEFT);
case 'B': /* Down */
return(DOWN);
case 'C': /* Right */
default:
return(RIGHT);
}
}
return(ch);
}
//End Block Copy!!!!!!
Step - 3
─────────────
Still in COM.C, replace int yn(void) and int ny(void) with the following
replacements.......
int yn(void)
{
char ch,ans;
int i,done=0,curans;
curans=1;
if (okansi())
npr("7[3Yes/4No7]");
else
npr("[Yes/NO]");
while (!done && !hangup) {
ch=getlx();
switch (ch) {
case '8':
case '4':
case UP:
case LEFT:
if (curans) {
for (i=0; i<8; i++) {
backspace();
}
if (okansi())
npr("7[4Yes3/No7]");
else
npr("[YES/No]");
}
curans=0;
break;
case '2':
case '6':
case DOWN:
case RIGHT:
if (!curans) {
for (i=0; i<8; i++) {
backspace();
}
if (okansi())
npr("7[3Yes/4No7]");
else
npr("[Yes/NO]");
}
curans=1;
break;
case 'Y':
case 'y':
if (curans) {
for (i=0; i<8; i++) {
backspace();
}
if (okansi())
npr("7[4Yes3/No7]");
else
npr("[YES/No]");
}
ans=TRUE;
done=1;
break;
case 'N':
case 'n':
if (!curans) {
for (i=0; i<8; i++) {
backspace();
}
if (okansi())
npr("7[3Yes/4No7]");
else
npr("[Yes/NO]");
}
ans=FALSE;
done=1;
break;
case ENTER:
switch(curans) {
case 0:
ans=TRUE;
break;
case 1:
ans=FALSE;
break;
}
nl();
done=1;
break;
}
}
return(ans);
}
int ny(void)
{
char ch,ans;
int i,done=0,curans;
curans=0;
if (okansi())
npr("7[4Yes3/No7]");
else
npr("[YES/No]");
while (!done && !hangup) {
ch=getlx();
switch (ch) {
case '8':
case '4':
case UP:
case LEFT:
if (curans) {
for (i=0; i<8; i++) {
backspace();
}
if (okansi())
npr("7[4Yes3/No7]");
else
npr("[YES/No]");
}
curans=0;
break;
case '2':
case '6':
case DOWN:
case RIGHT:
if (!curans) {
for (i=0; i<8; i++) {
backspace();
}
if (okansi())
npr("7[3Yes/4No7]");
else
npr("[Yes/NO]");
}
curans=1;
break;
case 'Y':
case 'y':
if (curans) {
for (i=0; i<8; i++) {
backspace();
}
if (okansi())
npr("7[4Yes3/No7]");
else
npr("[YES/No]");
}
ans=TRUE;
done=1;
break;
case 'N':
case 'n':
if (!curans) {
for (i=0; i<8; i++) {
backspace();
}
if (okansi())
npr("7[3Yes/4No7]");
else
npr("[Yes/NO]");
}
ans=FALSE;
done=1;
break;
case ENTER:
switch(curans) {
case 0:
ans=TRUE;
break;
case 1:
ans=FALSE;
break;
}
nl();
done=1;
break;
}
}
return(ans);
}
Step - 4
─────────────
MAKE FCNS.. (or just add unsigned char getlx(); to FCNS.H manually..)
A few quick notes.. I still think it was kind of pointless to basically
be using the same stuff in int yn AND int ny (considering it is so much
more code then the originals). Although, I had thought to just make it one
function but couldn't figure out a way without having to change EVERY call
to int yn and int ny throughout the code. Hopefully I will release an update
that will solve this "problem" .. (:
ThankZ to...
I'd like to thank Bast (I don't know his node #) for the getlx() function.
That was taken out of BAST010.MOD (The Litebar Login one). Full credit for
that goes to him.. Thanks Man .... (:
I'd like to thank Wayne Bell for the great software.. I mean hell, we could
all be running WILDCAT had it not been for Wayne and all those dedicated to
The WWIV Cause. Thanks Wayne!
I'd like to thank the Asylum Group and The French Mod Division. They have
both written alot of mods that have opened my eyes to alot of programming
stuff that I didn't understand. They've helped show all those other BBS
Softwares out there that us WWIV'ers can make our BBS's look just as spiffy
as theres (better IMHO) by going beyond the stock look. Plus, they just kick
ass.. 'Nuff Said.. (:
I know he'll probably never read this, but I'd like to thank Unca Scrooge.
He (although I doubt he knows it) helped inspire me slot to keep with WWIV
and write a few mods.. Although God only knows why he gave control of all
his WWIV stuff to Dale Cooper.
GreetZ goes to....
Ziroc.. For calling and testing out this mod remotely.. And for letting me
drink his pepsi, and smoke his cigarettes when I'm out.. (:
Hades.. For also calling and testing this out.. And buying me lunch today
at school.... GeeZe i was hungry.. heheheeh
All the WWIV SysOp's who've tried there damnedest to make this software the
BEST around... and succeeded!
A Fuck Off to...
All the little lamers who LOVE to rip-off mods and not give PROPER Credit
where proper credit is do.. You little freaks know who you are.. And if
you don't appreciate this message to 'ya.. . Good .. That was my intent.
If you use this mod, or see/find any bugs in it. Please send me some mail.
Thanks .. (:
Natas 2@2741 WWIVNet
────────
Mods by Evil Dance Cult Productions (EDCP)
────────────────────
Name Description
──────────────────────────────────────────────────────────────────────────────
EDCP01 .Mod │ Arrow key usage for the Yes/No prompts.
──────────────────────────────────────────────────────────────────────────────