Removed link because its probably a bad idea.
(I couldn't figure out how to make a patch file from this, its in two diff SVN's)
- Code: Select all
if (ch.Race == (byte)eRace.AlbionMinotaur || ch.Race == (byte)eRace.MidgardMinotaur || ch.Race == (byte)eRace.HiberniaMinotaur)
{
if(ch.Gender != 0)
{
if (log.IsWarnEnabled)
log.Warn("Wrong gender for minotaur race: " + ch.Realm);
if (ServerProperties.Properties.BAN_HACKERS)
{
DBBannedAccount b = new DBBannedAccount();
b.Author = "SERVER";
b.Account = ch.AccountName;
b.DateBan = DateTime.Now;
b.Type = "A";
b.Reason = String.Format("Auto-ban InvalidGender '{0}' on invalid minotaur. Account '{1}'", GameServer.Database.Escape(ch.Name), GameServer.Database.Escape(ch.AccountName));
GameServer.Database.AddObject(b);
GameServer.Database.SaveObject(b);
GameServer.Instance.LogCheatAction(string.Format(b.Reason + ". Client Account: {0}, DB Account: {1}", ch.AccountName, ch.AccountName));
}
valid = false;
}
}
Put it anywhere in the try section with the other checks in the file
GameServer/packets/Client/168/CharacterCreateRequestHandler
Its in the character valid check.
- Code: Select all
public static bool IsCharacterValid(DOLCharacters ch)
Updated post thanks to
[20:24] <@Tolakram> gender in db is 0=male, 1=female enum is 0=neutral, 1=male, 2=female. DOL code is awesometastic