View Single Post
Old 04-25-2002, 06:00 PM   #7
Sevoric
Member
 
Join Date: Apr 2002
Posts: 41
Sevoric is on a distinguished road
ok, heres the stuff around save.c:193

[code]
if ( IS_SET( sysdata.save_flags, SV_BACKUP ) ||
( IS_SET( sysdata.save_flags, SV_QUITBACKUP ) && quitting_char == ch ))
{
sprintf( strback,"%s%c/%s",BACKUP_DIR,tolower(ch->pcdata->filename[0]),
capitalize( ch->pcdata->filename ) );
RENAME( strsave, strback );
}
[/quote]

That all is for auto-backup of pfiles.

Here is stuff around save.c:260

[code]
fwrite_char( ch, fp );
if ( ch->morph )
fwrite_morph_data ( ch, fp );
if ( ch->first_carrying )
fwrite_obj( ch, ch->last_carrying, fp, 0, OS_CARRY );

if ( sysdata.save_pets && ch->pcdata->pet )
fwrite_mobile( fp, ch->pcdata->pet );
if ( ch->comments ) /* comments */
fwrite_comments( ch, fp ); /* comments */
fprintf( fp, "#END\n" );
ferr = ferror(fp);
fclose( fp );
if (ferr)
{
perror(strsave);
bug("Error writing temp file for %s -- not copying", strsave);
}
else
RENAME(TEMP_FILE, strsave);
}

re_equip_char( ch );

quitting_char = NULL;
saving_char = NULL;
return;
}
[/quote]

this part is for immortal statues, levels, vnums, ect according to Thoric's comments.
Sevoric is offline   Reply With Quote