Ansi

Posted by Chris on Sun 15 Jul 2001 12:31 AM — 6 posts, 22,087 views.

#0
How do i make my start screen ansi?
And how can i change it so that before you enter the mud it will ask for Ansi(Y/N)??
Australia Forum Administrator #1
I presume you would want two screens, ANSI and non-ANSI. You could add another one to the help.are file. Eg. ANSIGREETING.

As for asking that question, you would want to change the "nanny" function.
#2
Uh,what and wheres the "nanny" function?
Australia Forum Administrator #3
In file comm.c
#4
There are 3 or 4 places where "nanny" stands,which should i change?
Australia Forum Administrator #5
There is only one nanny function. One other reference is the "function prototype" which declares what the function looks like. The other couple are where nanny is called.

I suggest that you get a good book on C programming, it is very difficult to teach C coding on a very large and complex program like a MUD server.

I can give hints about where to find things to change, but *how* to make the changes is outside of the scope of what I can do here, or I would be here all day.

The real nanny function start like this:


/*
* Deal with sockets that haven't logged in yet.
*/
void nanny( DESCRIPTOR_DATA *d, char *argument )
{
/* extern int lang_array[];
extern char *lang_names[];*/
char buf[MAX_STRING_LENGTH];
char arg[MAX_STRING_LENGTH];
CHAR_DATA *ch;
char *pwdnew;
char *p;
int iClass;
int iRace;
bool fOld, chk;

while ( isspace(*argument) )
argument++;

... and so on ...