Well, some of you people may saw my other one for CoEmu.Nano...
i saw some people posting, i will make this for 5165, so.. i made it instead of you people
1. goto your OldCODB\Users\Characters folder, and create folder: 'kills'
2. add this to Database
public static void SaveNewKOs(Game.Character C)
{
if (File.Exists(@"C:\OldCODB\Users\Characters\kills\" + C.Name + ".chr"))
{
FileStream FS = new FileStream(@"C:\OldCODB\Users\Characters\kills\" + C.Name + ".chr", FileMode.Open);
BinaryWriter BR = new BinaryWriter(FS);
BR.Write(C.KOs);
BR.Flush();
BR.Close();
} else {
FileStream FC = new FileStream(@"C:\OldCODB\Users\Characters\kills\" + C.Name + ".chr", FileMode.Create);
FC.Close();
}
}
public static void LoadNewKOs(Game.Character C)
{
if (File.Exists(@"C:\OldCODB\Users\Characters\kills\" + C.Name + ".chr"))
{
FileStream FS = new FileStream(@"C:\OldCODB\Users\Characters\kills\" + C.Name + ".chr", FileMode.Open);
BinaryReader BR = new BinaryReader(FS);
C.KOs = BR.ReadInt32();
Console.WriteLine(C.Name + " Has " + C.KOs + " total kills");
BR.Close();
FS.Close();
}
}
3. search for ' Attacker.IncreaseExp(Exp, false); ' in Mob.cs should be around line 341
4. replace with
Database.LoadNewKOs(Attacker);
Attacker.IncreaseExp(Exp, false);
Attacker.KOs++;
Database.SaveNewKOs(Attacker);
5. add this at ' public class Character ' in characters.cs
guess that should do it, if you find another way to load the KOs, PM me, or post it here.
right now, its loading, and saving at one time when you kill a MOB
i will add this later:
Kill count for each mob, like birdmen, cow, pheasants, w/e
If it doesn't work, just say so.. ill check what i missed.
Sorry bad english, im dutch