saving player gender

This commit is contained in:
AlessandroCH
2025-03-08 15:26:54 +01:00
parent 69d2dbaa0e
commit 5f488b67d9
4 changed files with 18 additions and 4 deletions

View File

@@ -65,9 +65,18 @@ namespace Campofinale.Packets.Cs
session.Disconnect();
return;
}
session.Load(account.id);
bool exist=session.Load(account.id);
rsp.Uid = ""+session.accountId;
if (!exist)
{
rsp.IsFirstLogin = true;
//session.gender = Gender.GenInvalid;
//session.Send(ScMsgId.ScLogin, rsp);
//session.Send(new PacketScSyncBaseData(session));
//return;
}
session.Send(ScMsgId.ScLogin, rsp);
}

View File

@@ -20,7 +20,7 @@ namespace Campofinale.Packets.Sc
Level = client.level,
Exp=client.xp,
RoleName = client.nickname,
Gender = Gender.GenFemale,
Gender = client.gender,
ShortId="1",
};