Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Ansi

Ansi

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Chris   (37 posts)  Bio
Date Sun 15 Jul 2001 12:31 AM (UTC)
Message
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)??
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 15 Jul 2001 01:29 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Chris   (37 posts)  Bio
Date Reply #2 on Sun 15 Jul 2001 04:13 PM (UTC)
Message
Uh,what and wheres the "nanny" function?
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 15 Jul 2001 11:51 PM (UTC)
Message
In file comm.c

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Chris   (37 posts)  Bio
Date Reply #4 on Mon 16 Jul 2001 12:32 AM (UTC)
Message
There are 3 or 4 places where "nanny" stands,which should i change?
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 16 Jul 2001 01:13 AM (UTC)
Message
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 ...


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,042 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.