mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 02:52:26 +00:00
More logging [skip ci]
This commit is contained in:
parent
b97696a8c0
commit
1f928cd161
@ -68,7 +68,15 @@ void LoginServer::ProcessUsertoWorldReqLeg(uint16_t opcode, EQ::Net::Packet &p)
|
|||||||
uint32 id = database.GetAccountIDFromLSID("eqemu", utwr->lsaccountid);
|
uint32 id = database.GetAccountIDFromLSID("eqemu", utwr->lsaccountid);
|
||||||
int16 status = database.CheckStatus(id);
|
int16 status = database.CheckStatus(id);
|
||||||
|
|
||||||
LogDebug("[ProcessUsertoWorldReqLeg] id [{}] status [{}] account_id [{}]", id, status, utwr->lsaccountid);
|
LogDebug(
|
||||||
|
"[ProcessUsertoWorldReqLeg] id [{}] status [{}] account_id [{}] world_id [{}] from_id [{}] to_id [{}]",
|
||||||
|
id,
|
||||||
|
status,
|
||||||
|
utwr->lsaccountid,
|
||||||
|
utwr->worldid,
|
||||||
|
utwr->FromID,
|
||||||
|
utwr->ToID
|
||||||
|
);
|
||||||
|
|
||||||
ServerPacket outpack;
|
ServerPacket outpack;
|
||||||
outpack.opcode = ServerOP_UsertoWorldResp;
|
outpack.opcode = ServerOP_UsertoWorldResp;
|
||||||
@ -82,9 +90,9 @@ void LoginServer::ProcessUsertoWorldReqLeg(uint16_t opcode, EQ::Net::Packet &p)
|
|||||||
utwrs->worldid = utwr->worldid;
|
utwrs->worldid = utwr->worldid;
|
||||||
utwrs->response = UserToWorldStatusSuccess;
|
utwrs->response = UserToWorldStatusSuccess;
|
||||||
|
|
||||||
if (Config->Locked == true)
|
if (Config->Locked) {
|
||||||
{
|
|
||||||
if (status < 100) {
|
if (status < 100) {
|
||||||
|
LogDebug("[ProcessUsertoWorldReqLeg] Server locked and status is not high enough for account_id [{0}]", utwr->lsaccountid);
|
||||||
utwrs->response = UserToWorldStatusWorldUnavail;
|
utwrs->response = UserToWorldStatusWorldUnavail;
|
||||||
SendPacket(&outpack);
|
SendPacket(&outpack);
|
||||||
return;
|
return;
|
||||||
@ -92,19 +100,22 @@ void LoginServer::ProcessUsertoWorldReqLeg(uint16_t opcode, EQ::Net::Packet &p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32 x = Config->MaxClients;
|
int32 x = Config->MaxClients;
|
||||||
if ((int32)numplayers >= x && x != -1 && x != 255 && status < 80) {
|
if ((int32) numplayers >= x && x != -1 && x != 255 && status < 80) {
|
||||||
|
LogDebug("[ProcessUsertoWorldReqLeg] World at capacity account_id [{0}]", utwr->lsaccountid);
|
||||||
utwrs->response = UserToWorldStatusWorldAtCapacity;
|
utwrs->response = UserToWorldStatusWorldAtCapacity;
|
||||||
SendPacket(&outpack);
|
SendPacket(&outpack);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status == -1) {
|
if (status == -1) {
|
||||||
|
LogDebug("[ProcessUsertoWorldReqLeg] User suspended account_id [{0}]", utwr->lsaccountid);
|
||||||
utwrs->response = UserToWorldStatusSuspended;
|
utwrs->response = UserToWorldStatusSuspended;
|
||||||
SendPacket(&outpack);
|
SendPacket(&outpack);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status == -2) {
|
if (status == -2) {
|
||||||
|
LogDebug("[ProcessUsertoWorldReqLeg] User banned account_id [{0}]", utwr->lsaccountid);
|
||||||
utwrs->response = UserToWorldStatusBanned;
|
utwrs->response = UserToWorldStatusBanned;
|
||||||
SendPacket(&outpack);
|
SendPacket(&outpack);
|
||||||
return;
|
return;
|
||||||
@ -112,6 +123,7 @@ void LoginServer::ProcessUsertoWorldReqLeg(uint16_t opcode, EQ::Net::Packet &p)
|
|||||||
|
|
||||||
if (RuleB(World, EnforceCharacterLimitAtLogin)) {
|
if (RuleB(World, EnforceCharacterLimitAtLogin)) {
|
||||||
if (client_list.IsAccountInGame(utwr->lsaccountid)) {
|
if (client_list.IsAccountInGame(utwr->lsaccountid)) {
|
||||||
|
LogDebug("[ProcessUsertoWorldReqLeg] User already online account_id [{0}]", utwr->lsaccountid);
|
||||||
utwrs->response = UserToWorldStatusAlreadyOnline;
|
utwrs->response = UserToWorldStatusAlreadyOnline;
|
||||||
SendPacket(&outpack);
|
SendPacket(&outpack);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user