mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Consolidate EQEmuLogsys::Debug General calls into DebugCategory
This commit is contained in:
+80
-80
@@ -483,7 +483,7 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
||||
case CLIENT_LINKDEAD:
|
||||
break;
|
||||
default:
|
||||
logger.LogDebug(EQEmuLogSys::General, "Unknown client_state: %d\n", client_state);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Unknown client_state: %d\n", client_state);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1317,7 +1317,7 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
|
||||
ClientVersionBit = 0;
|
||||
|
||||
bool siv = m_inv.SetInventoryVersion(ClientVersion);
|
||||
logger.LogDebug(EQEmuLogSys::General, "%s inventory version to %s(%i)", (siv ? "Succeeded in setting" : "Failed to set"), EQClientVersionName(ClientVersion), ClientVersion);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "%s inventory version to %s(%i)", (siv ? "Succeeded in setting" : "Failed to set"), EQClientVersionName(ClientVersion), ClientVersion);
|
||||
|
||||
/* Antighost code
|
||||
tmp var is so the search doesnt find this object
|
||||
@@ -1940,7 +1940,7 @@ void Client::Handle_OP_AcceptNewTask(const EQApplicationPacket *app)
|
||||
{
|
||||
|
||||
if (app->size != sizeof(AcceptNewTask_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_AcceptNewTask expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_AcceptNewTask expected %i got %i",
|
||||
sizeof(AcceptNewTask_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -2280,7 +2280,7 @@ void Client::Handle_OP_AdventureMerchantSell(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(Adventure_Sell_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch on OP_AdventureMerchantSell: got %u expected %u",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch on OP_AdventureMerchantSell: got %u expected %u",
|
||||
app->size, sizeof(Adventure_Sell_Struct));
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -2994,7 +2994,7 @@ void Client::Handle_OP_ApplyPoison(const EQApplicationPacket *app)
|
||||
|
||||
DeleteItemInInventory(ApplyPoisonData->inventorySlot, 1, true);
|
||||
|
||||
logger.LogDebug(EQEmuLogSys::General, "Chance to Apply Poison was %f. Roll was %f. Result is %u.", SuccessChance, ChanceRoll, ApplyPoisonSuccessResult);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Chance to Apply Poison was %f. Roll was %f. Result is %u.", SuccessChance, ChanceRoll, ApplyPoisonSuccessResult);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3009,7 +3009,7 @@ void Client::Handle_OP_ApplyPoison(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_Assist(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(EntityId_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_Assist expected %i got %i", sizeof(EntityId_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_Assist expected %i got %i", sizeof(EntityId_Struct), app->size);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3039,7 +3039,7 @@ void Client::Handle_OP_Assist(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_AssistGroup(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(EntityId_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_AssistGroup expected %i got %i", sizeof(EntityId_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_AssistGroup expected %i got %i", sizeof(EntityId_Struct), app->size);
|
||||
return;
|
||||
}
|
||||
QueuePacket(app);
|
||||
@@ -3052,7 +3052,7 @@ void Client::Handle_OP_AugmentInfo(const EQApplicationPacket *app)
|
||||
// Some clients this seems to nuke the charm text (ex. Adventurer's Stone)
|
||||
|
||||
if (app->size != sizeof(AugmentInfo_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_AugmentInfo expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_AugmentInfo expected %i got %i",
|
||||
sizeof(AugmentInfo_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -3295,7 +3295,7 @@ void Client::Handle_OP_AutoAttack2(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_AutoFire(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(bool)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_AutoFire expected %i got %i", sizeof(bool), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_AutoFire expected %i got %i", sizeof(bool), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -3311,7 +3311,7 @@ void Client::Handle_OP_Bandolier(const EQApplicationPacket *app)
|
||||
// Although there are three different structs for OP_Bandolier, they are all the same size.
|
||||
//
|
||||
if (app->size != sizeof(BandolierCreate_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_Bandolier expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_Bandolier expected %i got %i",
|
||||
sizeof(BandolierCreate_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -3330,7 +3330,7 @@ void Client::Handle_OP_Bandolier(const EQApplicationPacket *app)
|
||||
SetBandolier(app);
|
||||
break;
|
||||
default:
|
||||
logger.LogDebug(EQEmuLogSys::General, "Uknown Bandolier action %i", bs->action);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Uknown Bandolier action %i", bs->action);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -3339,7 +3339,7 @@ void Client::Handle_OP_BankerChange(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(BankerChange_Struct) && app->size != 4) //Titanium only sends 4 Bytes for this
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_BankerChange expected %i got %i", sizeof(BankerChange_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_BankerChange expected %i got %i", sizeof(BankerChange_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -3424,7 +3424,7 @@ void Client::Handle_OP_Barter(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size < 4)
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "OP_Barter packet below minimum expected size. The packet was %i bytes.", app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "OP_Barter packet below minimum expected size. The packet was %i bytes.", app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -3730,7 +3730,7 @@ void Client::Handle_OP_Bind_Wound(const EQApplicationPacket *app)
|
||||
logger.Log(EQEmuLogSys::Error, "Bindwound on non-exsistant mob from %s", this->GetName());
|
||||
}
|
||||
else {
|
||||
logger.LogDebug(EQEmuLogSys::General, "BindWound in: to:\'%s\' from=\'%s\'", bindmob->GetName(), GetName());
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "BindWound in: to:\'%s\' from=\'%s\'", bindmob->GetName(), GetName());
|
||||
BindWound(bindmob, true);
|
||||
}
|
||||
return;
|
||||
@@ -3743,7 +3743,7 @@ void Client::Handle_OP_BlockedBuffs(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size != sizeof(BlockedBuffs_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_BlockedBuffs expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_BlockedBuffs expected %i got %i",
|
||||
sizeof(BlockedBuffs_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -3941,7 +3941,7 @@ void Client::Handle_OP_CancelTask(const EQApplicationPacket *app)
|
||||
{
|
||||
|
||||
if (app->size != sizeof(CancelTask_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_CancelTask expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_CancelTask expected %i got %i",
|
||||
sizeof(CancelTask_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -4006,16 +4006,16 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app)
|
||||
targetring_z = castspell->z_pos;
|
||||
|
||||
#ifdef _EQDEBUG
|
||||
logger.LogDebug(EQEmuLogSys::General, "cs_unknown2: %u %i", (uint8)castspell->cs_unknown[0], castspell->cs_unknown[0]);
|
||||
logger.LogDebug(EQEmuLogSys::General, "cs_unknown2: %u %i", (uint8)castspell->cs_unknown[1], castspell->cs_unknown[1]);
|
||||
logger.LogDebug(EQEmuLogSys::General, "cs_unknown2: %u %i", (uint8)castspell->cs_unknown[2], castspell->cs_unknown[2]);
|
||||
logger.LogDebug(EQEmuLogSys::General, "cs_unknown2: %u %i", (uint8)castspell->cs_unknown[3], castspell->cs_unknown[3]);
|
||||
logger.LogDebug(EQEmuLogSys::General, "cs_unknown2: 32 %p %u", &castspell->cs_unknown, *(uint32*)castspell->cs_unknown);
|
||||
logger.LogDebug(EQEmuLogSys::General, "cs_unknown2: 32 %p %i", &castspell->cs_unknown, *(uint32*)castspell->cs_unknown);
|
||||
logger.LogDebug(EQEmuLogSys::General, "cs_unknown2: 16 %p %u %u", &castspell->cs_unknown, *(uint16*)castspell->cs_unknown, *(uint16*)castspell->cs_unknown + sizeof(uint16));
|
||||
logger.LogDebug(EQEmuLogSys::General, "cs_unknown2: 16 %p %i %i", &castspell->cs_unknown, *(uint16*)castspell->cs_unknown, *(uint16*)castspell->cs_unknown + sizeof(uint16));
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "cs_unknown2: %u %i", (uint8)castspell->cs_unknown[0], castspell->cs_unknown[0]);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "cs_unknown2: %u %i", (uint8)castspell->cs_unknown[1], castspell->cs_unknown[1]);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "cs_unknown2: %u %i", (uint8)castspell->cs_unknown[2], castspell->cs_unknown[2]);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "cs_unknown2: %u %i", (uint8)castspell->cs_unknown[3], castspell->cs_unknown[3]);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "cs_unknown2: 32 %p %u", &castspell->cs_unknown, *(uint32*)castspell->cs_unknown);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "cs_unknown2: 32 %p %i", &castspell->cs_unknown, *(uint32*)castspell->cs_unknown);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "cs_unknown2: 16 %p %u %u", &castspell->cs_unknown, *(uint16*)castspell->cs_unknown, *(uint16*)castspell->cs_unknown + sizeof(uint16));
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "cs_unknown2: 16 %p %i %i", &castspell->cs_unknown, *(uint16*)castspell->cs_unknown, *(uint16*)castspell->cs_unknown + sizeof(uint16));
|
||||
#endif
|
||||
logger.LogDebug(EQEmuLogSys::General, "OP CastSpell: slot=%d, spell=%d, target=%d, inv=%lx", castspell->slot, castspell->spell_id, castspell->target_id, (unsigned long)castspell->inventoryslot);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "OP CastSpell: slot=%d, spell=%d, target=%d, inv=%lx", castspell->slot, castspell->spell_id, castspell->target_id, (unsigned long)castspell->inventoryslot);
|
||||
|
||||
std::cout << "OP_CastSpell " << castspell->slot << " spell " << castspell->spell_id << " inventory slot " << castspell->inventoryslot << "\n" << std::endl;
|
||||
|
||||
@@ -4047,7 +4047,7 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app)
|
||||
//discipline, using the item spell slot
|
||||
if (castspell->inventoryslot == INVALID_INDEX) {
|
||||
if (!UseDiscipline(castspell->spell_id, castspell->target_id)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Unknown ability being used by %s, spell being cast is: %i\n", GetName(), castspell->spell_id);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Unknown ability being used by %s, spell being cast is: %i\n", GetName(), castspell->spell_id);
|
||||
InterruptSpell(castspell->spell_id);
|
||||
}
|
||||
return;
|
||||
@@ -4190,7 +4190,7 @@ void Client::Handle_OP_ClearBlockedBuffs(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size != 1)
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_ClearBlockedBuffs expected 1 got %i", app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_ClearBlockedBuffs expected 1 got %i", app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
|
||||
@@ -4212,7 +4212,7 @@ void Client::Handle_OP_ClearNPCMarks(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size != 0)
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_ClearNPCMarks expected 0 got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_ClearNPCMarks expected 0 got %i",
|
||||
app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -4718,7 +4718,7 @@ void Client::Handle_OP_Consider(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(Consider_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in Consider expected %i got %i", sizeof(Consider_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in Consider expected %i got %i", sizeof(Consider_Struct), app->size);
|
||||
return;
|
||||
}
|
||||
Consider_Struct* conin = (Consider_Struct*)app->pBuffer;
|
||||
@@ -4812,7 +4812,7 @@ void Client::Handle_OP_ConsiderCorpse(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(Consider_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in Consider corpse expected %i got %i", sizeof(Consider_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in Consider corpse expected %i got %i", sizeof(Consider_Struct), app->size);
|
||||
return;
|
||||
}
|
||||
Consider_Struct* conin = (Consider_Struct*)app->pBuffer;
|
||||
@@ -5136,7 +5136,7 @@ void Client::Handle_OP_DelegateAbility(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size != sizeof(DelegateAbility_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_DelegateAbility expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_DelegateAbility expected %i got %i",
|
||||
sizeof(DelegateAbility_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -5311,7 +5311,7 @@ void Client::Handle_OP_DoGroupLeadershipAbility(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size != sizeof(DoGroupLeadershipAbility_Struct)) {
|
||||
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_DoGroupLeadershipAbility expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_DoGroupLeadershipAbility expected %i got %i",
|
||||
sizeof(DoGroupLeadershipAbility_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -5363,7 +5363,7 @@ void Client::Handle_OP_DoGroupLeadershipAbility(const EQApplicationPacket *app)
|
||||
}
|
||||
|
||||
default:
|
||||
logger.LogDebug(EQEmuLogSys::General, "Got unhandled OP_DoGroupLeadershipAbility Ability: %d Parameter: %d",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Got unhandled OP_DoGroupLeadershipAbility Ability: %d Parameter: %d",
|
||||
dglas->Ability, dglas->Parameter);
|
||||
break;
|
||||
}
|
||||
@@ -5927,7 +5927,7 @@ void Client::Handle_OP_GMEmoteZone(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_GMEndTraining(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(GMTrainEnd_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_GMEndTraining expected %i got %i", sizeof(GMTrainEnd_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_GMEndTraining expected %i got %i", sizeof(GMTrainEnd_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -6177,7 +6177,7 @@ void Client::Handle_OP_GMSearchCorpse(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size < sizeof(GMSearchCorpse_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "OP_GMSearchCorpse size lower than expected: got %u expected at least %u",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "OP_GMSearchCorpse size lower than expected: got %u expected at least %u",
|
||||
app->size, sizeof(GMSearchCorpse_Struct));
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -6300,7 +6300,7 @@ void Client::Handle_OP_GMToggle(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_GMTraining(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(GMTrainee_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_GMTraining expected %i got %i", sizeof(GMTrainee_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_GMTraining expected %i got %i", sizeof(GMTrainee_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -6311,7 +6311,7 @@ void Client::Handle_OP_GMTraining(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_GMTrainSkill(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(GMSkillChange_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_GMTrainSkill expected %i got %i", sizeof(GMSkillChange_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_GMTrainSkill expected %i got %i", sizeof(GMSkillChange_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -6445,7 +6445,7 @@ void Client::Handle_OP_GroupDisband(const EQApplicationPacket *app)
|
||||
return;
|
||||
}
|
||||
|
||||
logger.LogDebug(EQEmuLogSys::General, "Member Disband Request from %s\n", GetName());
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Member Disband Request from %s\n", GetName());
|
||||
|
||||
GroupGeneric_Struct* gd = (GroupGeneric_Struct*)app->pBuffer;
|
||||
|
||||
@@ -6725,7 +6725,7 @@ void Client::Handle_OP_GroupMakeLeader(const EQApplicationPacket *app)
|
||||
if (g->IsLeader(this))
|
||||
g->ChangeLeader(NewLeader);
|
||||
else {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Group /makeleader request originated from non-leader member: %s", GetName());
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Group /makeleader request originated from non-leader member: %s", GetName());
|
||||
DumpPacket(app);
|
||||
}
|
||||
}
|
||||
@@ -6816,7 +6816,7 @@ void Client::Handle_OP_GroupUpdate(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(GroupUpdate_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch on OP_GroupUpdate: got %u expected %u",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch on OP_GroupUpdate: got %u expected %u",
|
||||
app->size, sizeof(GroupUpdate_Struct));
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -6835,7 +6835,7 @@ void Client::Handle_OP_GroupUpdate(const EQApplicationPacket *app)
|
||||
if (group->IsLeader(this))
|
||||
group->ChangeLeader(newleader);
|
||||
else {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Group /makeleader request originated from non-leader member: %s", GetName());
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Group /makeleader request originated from non-leader member: %s", GetName());
|
||||
DumpPacket(app);
|
||||
}
|
||||
}
|
||||
@@ -6844,7 +6844,7 @@ void Client::Handle_OP_GroupUpdate(const EQApplicationPacket *app)
|
||||
|
||||
default:
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Received unhandled OP_GroupUpdate requesting action %u", gu->action);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Received unhandled OP_GroupUpdate requesting action %u", gu->action);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -7782,7 +7782,7 @@ void Client::Handle_OP_GuildStatus(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(GuildStatus_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_GuildStatus expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_GuildStatus expected %i got %i",
|
||||
sizeof(GuildStatus_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -7839,7 +7839,7 @@ void Client::Handle_OP_GuildUpdateURLAndChannel(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(GuildUpdateURLAndChannel_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_GuildUpdateURLAndChannel expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_GuildUpdateURLAndChannel expected %i got %i",
|
||||
sizeof(GuildUpdateURLAndChannel_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -7943,7 +7943,7 @@ void Client::Handle_OP_HideCorpse(const EQApplicationPacket *app)
|
||||
//
|
||||
if (app->size != sizeof(HideCorpse_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_HideCorpse expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_HideCorpse expected %i got %i",
|
||||
sizeof(HideCorpse_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -8449,7 +8449,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
}
|
||||
|
||||
if (slot_id < 0) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Unknown slot being used by %s, slot being used is: %i", GetName(), request->slot);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Unknown slot being used by %s, slot being used is: %i", GetName(), request->slot);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -8492,7 +8492,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
return;
|
||||
}
|
||||
|
||||
logger.LogDebug(EQEmuLogSys::General, "OP ItemVerifyRequest: spell=%i, target=%i, inv=%i", spell_id, target_id, slot_id);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "OP ItemVerifyRequest: spell=%i, target=%i, inv=%i", spell_id, target_id, slot_id);
|
||||
|
||||
if (m_inv.SupportsClickCasting(slot_id) || ((item->ItemType == ItemTypePotion || item->PotionBelt) && m_inv.SupportsPotionBeltCasting(slot_id))) // sanity check
|
||||
{
|
||||
@@ -8530,7 +8530,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
|
||||
if ((spell_id <= 0) && (item->ItemType != ItemTypeFood && item->ItemType != ItemTypeDrink && item->ItemType != ItemTypeAlcohol && item->ItemType != ItemTypeSpell))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Item with no effect right clicked by %s", GetName());
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Item with no effect right clicked by %s", GetName());
|
||||
}
|
||||
else if (inst->IsType(ItemClassCommon))
|
||||
{
|
||||
@@ -8603,7 +8603,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
{
|
||||
if (item->ItemType != ItemTypeFood && item->ItemType != ItemTypeDrink && item->ItemType != ItemTypeAlcohol)
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Error: unknown item->Click.Type (%i)", item->Click.Type);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Error: unknown item->Click.Type (%i)", item->Click.Type);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -8619,7 +8619,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
else if (item->ItemType == ItemTypeAlcohol)
|
||||
{
|
||||
#if EQDEBUG >= 1
|
||||
logger.LogDebug(EQEmuLogSys::General, "Drinking Alcohol from slot:%i", slot_id);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Drinking Alcohol from slot:%i", slot_id);
|
||||
#endif
|
||||
// This Seems to be handled in OP_DeleteItem handling
|
||||
//DeleteItemInInventory(slot_id, 1, false);
|
||||
@@ -8646,7 +8646,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Error: unknown item->Click.Type (%i)", item->Click.Type);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Error: unknown item->Click.Type (%i)", item->Click.Type);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8787,7 +8787,7 @@ void Client::Handle_OP_LDoNSenseTraps(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_LeadershipExpToggle(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != 1) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_LeadershipExpToggle expected %i got %i", 1, app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_LeadershipExpToggle expected %i got %i", 1, app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -9327,7 +9327,7 @@ void Client::Handle_OP_MercenaryCommand(const EQApplicationPacket *app)
|
||||
if (app->size != sizeof(MercenaryCommand_Struct))
|
||||
{
|
||||
Message(13, "Size mismatch in OP_MercenaryCommand expected %i got %i", sizeof(MercenaryCommand_Struct), app->size);
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_MercenaryCommand expected %i got %i", sizeof(MercenaryCommand_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_MercenaryCommand expected %i got %i", sizeof(MercenaryCommand_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -9384,7 +9384,7 @@ void Client::Handle_OP_MercenaryDataRequest(const EQApplicationPacket *app)
|
||||
// The payload is 4 bytes. The EntityID of the Mercenary Liason which are of class 71.
|
||||
if (app->size != sizeof(MercenaryMerchantShopRequest_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_MercenaryDataRequest expected 4 got %i", app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_MercenaryDataRequest expected 4 got %i", app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
|
||||
@@ -9519,7 +9519,7 @@ void Client::Handle_OP_MercenaryDataUpdateRequest(const EQApplicationPacket *app
|
||||
if (app->size != 0)
|
||||
{
|
||||
Message(13, "Size mismatch in OP_MercenaryDataUpdateRequest expected 0 got %i", app->size);
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_MercenaryDataUpdateRequest expected 0 got %i", app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_MercenaryDataUpdateRequest expected 0 got %i", app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -9539,7 +9539,7 @@ void Client::Handle_OP_MercenaryDismiss(const EQApplicationPacket *app)
|
||||
if (app->size > 1)
|
||||
{
|
||||
Message(13, "Size mismatch in OP_MercenaryDismiss expected 0 got %i", app->size);
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_MercenaryDismiss expected 0 got %i", app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_MercenaryDismiss expected 0 got %i", app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -9564,7 +9564,7 @@ void Client::Handle_OP_MercenaryHire(const EQApplicationPacket *app)
|
||||
// The payload is 16 bytes. First four bytes are the Merc ID (Template ID)
|
||||
if (app->size != sizeof(MercenaryMerchantRequest_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_MercenaryHire expected %i got %i", sizeof(MercenaryMerchantRequest_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_MercenaryHire expected %i got %i", sizeof(MercenaryMerchantRequest_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
|
||||
@@ -9636,7 +9636,7 @@ void Client::Handle_OP_MercenarySuspendRequest(const EQApplicationPacket *app)
|
||||
if (app->size != sizeof(SuspendMercenary_Struct))
|
||||
{
|
||||
Message(13, "Size mismatch in OP_MercenarySuspendRequest expected %i got %i", sizeof(SuspendMercenary_Struct), app->size);
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_MercenarySuspendRequest expected %i got %i", sizeof(SuspendMercenary_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_MercenarySuspendRequest expected %i got %i", sizeof(SuspendMercenary_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -9660,7 +9660,7 @@ void Client::Handle_OP_MercenaryTimerRequest(const EQApplicationPacket *app)
|
||||
if (app->size > 1)
|
||||
{
|
||||
Message(13, "Size mismatch in OP_MercenaryTimerRequest expected 0 got %i", app->size);
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_MercenaryTimerRequest expected 0 got %i", app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_MercenaryTimerRequest expected 0 got %i", app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -10516,7 +10516,7 @@ void Client::Handle_OP_PopupResponse(const EQApplicationPacket *app)
|
||||
{
|
||||
|
||||
if (app->size != sizeof(PopupResponse_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_PopupResponse expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_PopupResponse expected %i got %i",
|
||||
sizeof(PopupResponse_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -10551,7 +10551,7 @@ void Client::Handle_OP_PopupResponse(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_PotionBelt(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(MovePotionToBelt_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_PotionBelt expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_PotionBelt expected %i got %i",
|
||||
sizeof(MovePotionToBelt_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -10559,7 +10559,7 @@ void Client::Handle_OP_PotionBelt(const EQApplicationPacket *app)
|
||||
|
||||
MovePotionToBelt_Struct *mptbs = (MovePotionToBelt_Struct*)app->pBuffer;
|
||||
if(!EQEmu::ValueWithin(mptbs->SlotNumber, 0U, 3U)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Client::Handle_OP_PotionBelt mptbs->SlotNumber out of range.");
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Client::Handle_OP_PotionBelt mptbs->SlotNumber out of range.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -10582,7 +10582,7 @@ void Client::Handle_OP_PotionBelt(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_PurchaseLeadershipAA(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(uint32)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_LeadershipExpToggle expected %i got %i", 1, app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_LeadershipExpToggle expected %i got %i", 1, app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -10672,7 +10672,7 @@ void Client::Handle_OP_PVPLeaderBoardDetailsRequest(const EQApplicationPacket *a
|
||||
//
|
||||
if (app->size != sizeof(PVPLeaderBoardDetailsRequest_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_PVPLeaderBoardDetailsRequest expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_PVPLeaderBoardDetailsRequest expected %i got %i",
|
||||
sizeof(PVPLeaderBoardDetailsRequest_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -10699,7 +10699,7 @@ void Client::Handle_OP_PVPLeaderBoardRequest(const EQApplicationPacket *app)
|
||||
//
|
||||
if (app->size != sizeof(PVPLeaderBoardRequest_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_PVPLeaderBoardRequest expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_PVPLeaderBoardRequest expected %i got %i",
|
||||
sizeof(PVPLeaderBoardRequest_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -11385,7 +11385,7 @@ void Client::Handle_OP_RecipesFavorite(const EQApplicationPacket *app)
|
||||
|
||||
TradeskillFavorites_Struct* tsf = (TradeskillFavorites_Struct*)app->pBuffer;
|
||||
|
||||
logger.LogDebug(EQEmuLogSys::General, "Requested Favorites for: %d - %d\n", tsf->object_type, tsf->some_id);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Requested Favorites for: %d - %d\n", tsf->object_type, tsf->some_id);
|
||||
|
||||
// results show that object_type is combiner type
|
||||
// some_id = 0 if world combiner, item number otherwise
|
||||
@@ -11446,7 +11446,7 @@ void Client::Handle_OP_RecipesSearch(const EQApplicationPacket *app)
|
||||
rss->query[55] = '\0'; //just to be sure.
|
||||
|
||||
|
||||
logger.LogDebug(EQEmuLogSys::General, "Requested search recipes for: %d - %d\n", rss->object_type, rss->some_id);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Requested search recipes for: %d - %d\n", rss->object_type, rss->some_id);
|
||||
|
||||
// make where clause segment for container(s)
|
||||
char containers[30];
|
||||
@@ -11506,7 +11506,7 @@ void Client::Handle_OP_RemoveBlockedBuffs(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size != sizeof(BlockedBuffs_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_RemoveBlockedBuffs expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_RemoveBlockedBuffs expected %i got %i",
|
||||
sizeof(BlockedBuffs_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -11669,7 +11669,7 @@ void Client::Handle_OP_RespawnWindow(const EQApplicationPacket *app)
|
||||
//
|
||||
if (app->size != 4)
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_RespawnWindow expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_RespawnWindow expected %i got %i",
|
||||
4, app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -11720,7 +11720,7 @@ void Client::Handle_OP_Sacrifice(const EQApplicationPacket *app)
|
||||
{
|
||||
|
||||
if (app->size != sizeof(Sacrifice_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_Sacrifice expected %i got %i", sizeof(Sacrifice_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_Sacrifice expected %i got %i", sizeof(Sacrifice_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -11969,7 +11969,7 @@ void Client::Handle_OP_SetStartCity(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_SetTitle(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(SetTitle_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_SetTitle expected %i got %i", sizeof(SetTitle_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_SetTitle expected %i got %i", sizeof(SetTitle_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -12098,7 +12098,7 @@ void Client::Handle_OP_ShopPlayerBuy(const EQApplicationPacket *app)
|
||||
t1.start();
|
||||
Merchant_Sell_Struct* mp = (Merchant_Sell_Struct*)app->pBuffer;
|
||||
#if EQDEBUG >= 5
|
||||
logger.LogDebug(EQEmuLogSys::General, "%s, purchase item..", GetName());
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "%s, purchase item..", GetName());
|
||||
DumpPacket(app);
|
||||
#endif
|
||||
|
||||
@@ -12834,7 +12834,7 @@ void Client::Handle_OP_Surname(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != sizeof(Surname_Struct))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in Surname expected %i got %i", sizeof(Surname_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in Surname expected %i got %i", sizeof(Surname_Struct), app->size);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13149,7 +13149,7 @@ void Client::Handle_OP_TaskHistoryRequest(const EQApplicationPacket *app)
|
||||
{
|
||||
|
||||
if (app->size != sizeof(TaskHistoryRequest_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_TaskHistoryRequest expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_TaskHistoryRequest expected %i got %i",
|
||||
sizeof(TaskHistoryRequest_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
@@ -13691,7 +13691,7 @@ void Client::Handle_OP_Translocate(const EQApplicationPacket *app)
|
||||
{
|
||||
|
||||
if (app->size != sizeof(Translocate_Struct)) {
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_Translocate expected %i got %i", sizeof(Translocate_Struct), app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_Translocate expected %i got %i", sizeof(Translocate_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -13836,7 +13836,7 @@ void Client::Handle_OP_VetClaimRequest(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size < sizeof(VeteranClaimRequest))
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "OP_VetClaimRequest size lower than expected: got %u expected at least %u", app->size, sizeof(VeteranClaimRequest));
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "OP_VetClaimRequest size lower than expected: got %u expected at least %u", app->size, sizeof(VeteranClaimRequest));
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -13876,7 +13876,7 @@ void Client::Handle_OP_VoiceMacroIn(const EQApplicationPacket *app)
|
||||
|
||||
if (app->size != sizeof(VoiceMacroIn_Struct)) {
|
||||
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_VoiceMacroIn expected %i got %i",
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_VoiceMacroIn expected %i got %i",
|
||||
sizeof(VoiceMacroIn_Struct), app->size);
|
||||
|
||||
DumpPacket(app);
|
||||
@@ -13927,7 +13927,7 @@ void Client::Handle_OP_XTargetAutoAddHaters(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size != 1)
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_XTargetAutoAddHaters, expected 1, got %i", app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_XTargetAutoAddHaters, expected 1, got %i", app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -13939,7 +13939,7 @@ void Client::Handle_OP_XTargetRequest(const EQApplicationPacket *app)
|
||||
{
|
||||
if (app->size < 12)
|
||||
{
|
||||
logger.LogDebug(EQEmuLogSys::General, "Size mismatch in OP_XTargetRequest, expected at least 12, got %i", app->size);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Size mismatch in OP_XTargetRequest, expected at least 12, got %i", app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
@@ -14162,7 +14162,7 @@ void Client::Handle_OP_XTargetRequest(const EQApplicationPacket *app)
|
||||
}
|
||||
|
||||
default:
|
||||
logger.LogDebug(EQEmuLogSys::General, "Unhandled XTarget Type %i", Type);
|
||||
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Unhandled XTarget Type %i", Type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user