The Save and Quit text

Posted by Jokerjfu on Wed 04 Jul 2001 06:57 AM — 2 posts, 12,605 views.

#0
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
Australia Forum Administrator #1
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;
}