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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ The Save and Quit text
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Jokerjfu
(19 posts) Bio
|
Date
| Wed 04 Jul 2001 06:57 AM (UTC) |
Message
| You know when you type Save in your mud it says:
Saved...
where do I go to change that, and the part where when you quit it says:
All of a sudden things are not what they seem, a voice tells you
"We await your return, <name>"
or whatever it says you get the point, I just want to know where to go to change that | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 04 Jul 2001 09:25 PM (UTC) |
Message
| The way to find these things out for yourself is to use a program that will do "find in files". UltraEdit will do that, for example.
Also if you are using Cygwin, you can use grep, like this:
$ grep 'Saved\.\.\.' *.c
act_comm.c: send_to_char( "Saved...\n\r", ch );
I had to put backslashes in front of the dots because grep treats a dot as a wildcard.
As you can see the file to change is act_comm.c.
Similarly for the other message:
$ grep 'We await your return' *.c
act_comm.c: act( AT_SAY, "A strange voice says, 'We await your return, $n...'", ch, NULL, NULL, TO_CHAR );
Another approach is to look for the routine handler. For example "save" is handled by a function called "do_save". Looking for "do_save" I find this:
void do_save( CHAR_DATA *ch, char *argument )
{
if ( IS_NPC(ch) )
return;
if ( ch->level < 2 ) {
send_to_char_color
( "&BYou must be at least second level to save.\n\r", ch );
return;
}
WAIT_STATE( ch, 2 );
update_aris(ch);
save_char_obj( ch );
saving_char = NULL;
send_to_char( "Saved...\n\r", ch );
return;
}
|
- 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.
10,232 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top