View Single Post
Old 09-06-2006, 07:07 AM   #1
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 62
Posts: 4,537
void main()
{
object oPlayer= GetLastPCRested();
if(GetLastRestEventType() == REST_EVENTTYPE_REST_FINISHED)
{
//ExportAllCharacters();
ExportSingleCharacter( oPlayer );
SendMessageToPC( oPlayer, "Character saved." );

}
}

Put this in the module onrest event, and it will overwrite the char file when the char rests in game. I know I've lost up to 6 hours of work by not logging out to save the char, mostly because I'm used to chars being saved on rest in my other server.
__________________
To those we have lost; May your spirits fly free.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote