Why am I releasing this?
Because I was asked by a few people and I saw a thread asking about it.
What is autosave?
Helps prevent roll back but I MUST tell you this is a temp soultion but it will work. For a true system preventing rollbacks update whatever gets changed on the character as it happens.
Is this code any good?
Scrap newestcoserver and all it's codes. However this code is good but is being used on a shit source.
Get to the codes?
Okay
Okay so goto Program.cs and define
Code:
DateTime LastSave;
Code:
Console.WriteLine("Server is ready for connections.");
Code:
LastSave = DateTime.Now;
Code:
#region Autosave if (DateTime.Now > Lastsave.AddMinutes(3)) { foreach (Game.Character client in World.H_Chars.Values) { Lastsave = DateTime.Now; //Whatever you have for your save code } } #endregion