mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
[Logging] Remove function prefixes (#2766)
This commit is contained in:
+35
-35
@@ -3955,14 +3955,14 @@ void Client::Handle_OP_Buff(const EQApplicationPacket *app)
|
||||
*/
|
||||
if (app->size != sizeof(SpellBuffPacket_Struct))
|
||||
{
|
||||
LogError("[Client::Handle_OP_Buff] Size mismatch in OP_Buff. expected [{}] got [{}]", sizeof(SpellBuffPacket_Struct), app->size);
|
||||
LogError("Size mismatch in OP_Buff. expected [{}] got [{}]", sizeof(SpellBuffPacket_Struct), app->size);
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
|
||||
SpellBuffPacket_Struct* sbf = (SpellBuffPacket_Struct*)app->pBuffer;
|
||||
uint32 spid = sbf->buff.spellid;
|
||||
LogSpells("[Client::Handle_OP_Buff] Client requested that buff with spell id [{}] be canceled", spid);
|
||||
LogSpells("Client requested that buff with spell id [{}] be canceled", spid);
|
||||
|
||||
//something about IsDetrimentalSpell() crashes this portion of code..
|
||||
//tbh we shouldn't use it anyway since this is a simple red vs blue buff check and
|
||||
@@ -4126,7 +4126,7 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app)
|
||||
|
||||
m_TargetRing = glm::vec3(castspell->x_pos, castspell->y_pos, castspell->z_pos);
|
||||
|
||||
LogSpells("[Client::Handle_OP_CastSpell] OP CastSpell: slot [{}] spell [{}] target [{}] inv [{}]", castspell->slot, castspell->spell_id, castspell->target_id, (unsigned long)castspell->inventoryslot);
|
||||
LogSpells("OP CastSpell: slot [{}] spell [{}] target [{}] inv [{}]", castspell->slot, castspell->spell_id, castspell->target_id, (unsigned long)castspell->inventoryslot);
|
||||
CastingSlot slot = static_cast<CastingSlot>(castspell->slot);
|
||||
|
||||
/* Memorized Spell */
|
||||
@@ -4226,7 +4226,7 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app)
|
||||
/* Discipline -- older clients use the same slot as items, but we translate to it's own */
|
||||
else if (slot == CastingSlot::Discipline) {
|
||||
if (!UseDiscipline(castspell->spell_id, castspell->target_id)) {
|
||||
LogSpells("[Client::Handle_OP_CastSpell] Unknown ability being used by [{}] spell being cast is: [{}]\n", GetName(), castspell->spell_id);
|
||||
LogSpells("Unknown ability being used by [{}] spell being cast is: [{}]\n", GetName(), castspell->spell_id);
|
||||
InterruptSpell(castspell->spell_id);
|
||||
return;
|
||||
}
|
||||
@@ -8764,7 +8764,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
using EQ::spells::CastingSlot;
|
||||
if (app->size != sizeof(ItemVerifyRequest_Struct))
|
||||
{
|
||||
LogError("[Client::Handle_OP_ItemVerifyRequest] OP size error: OP_ItemVerifyRequest expected:[{}] got:[{}]", sizeof(ItemVerifyRequest_Struct), app->size);
|
||||
LogError("OP size error: OP_ItemVerifyRequest expected:[{}] got:[{}]", sizeof(ItemVerifyRequest_Struct), app->size);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -8793,7 +8793,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
}
|
||||
|
||||
if (slot_id < 0) {
|
||||
LogDebug("[Client::Handle_OP_ItemVerifyRequest] Unknown slot being used by [{}] slot being used is [{}]", GetName(), request->slot);
|
||||
LogDebug("Unknown slot being used by [{}] slot being used is [{}]", GetName(), request->slot);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -8854,7 +8854,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
if (spell_id > 0 && (spells[spell_id].target_type == ST_Pet || spells[spell_id].target_type == ST_SummonedPet))
|
||||
target_id = GetPetID();
|
||||
|
||||
LogDebug("[Client::Handle_OP_ItemVerifyRequest] OP ItemVerifyRequest: spell=[{}] target=[{}] inv=[{}]", spell_id, target_id, slot_id);
|
||||
LogDebug("OP ItemVerifyRequest: spell=[{}] target=[{}] inv=[{}]", spell_id, target_id, slot_id);
|
||||
|
||||
if (m_inv.SupportsClickCasting(slot_id) || ((item->ItemType == EQ::item::ItemTypePotion || item->PotionBelt) && m_inv.SupportsPotionBeltCasting(slot_id))) // sanity check
|
||||
{
|
||||
@@ -8892,7 +8892,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
|
||||
if ((spell_id <= 0) && (item->ItemType != EQ::item::ItemTypeFood && item->ItemType != EQ::item::ItemTypeDrink && item->ItemType != EQ::item::ItemTypeAlcohol && item->ItemType != EQ::item::ItemTypeSpell))
|
||||
{
|
||||
LogDebug("[Client::Handle_OP_ItemVerifyRequest] Item with no effect right clicked by [{}]", GetName());
|
||||
LogDebug("Item with no effect right clicked by [{}]", GetName());
|
||||
}
|
||||
else if (inst->IsClassCommon())
|
||||
{
|
||||
@@ -8953,7 +8953,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
SendItemRecastTimer(item->RecastType); //Problem: When you loot corpse, recast display is not present. This causes it to display again. Could not get to display when sending from looting.
|
||||
MessageString(Chat::Red, SPELL_RECAST);
|
||||
SendSpellBarEnable(item->Click.Effect);
|
||||
LogSpells("[Client::Handle_OP_ItemVerifyRequest] Casting of [{}] canceled: item spell reuse timer not expired", spell_id);
|
||||
LogSpells("Casting of [{}] canceled: item spell reuse timer not expired", spell_id);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -8995,7 +8995,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
if (augitem->RecastDelay > 0)
|
||||
{
|
||||
if (!GetPTimers().Expired(&database, (pTimerItemStart + augitem->RecastType), false)) {
|
||||
LogSpells("[Client::Handle_OP_ItemVerifyRequest] Casting of [{}] canceled: item spell reuse timer from augment not expired", spell_id);
|
||||
LogSpells("Casting of [{}] canceled: item spell reuse timer from augment not expired", spell_id);
|
||||
MessageString(Chat::Red, SPELL_RECAST);
|
||||
SendSpellBarEnable(augitem->Click.Effect);
|
||||
return;
|
||||
@@ -9033,12 +9033,12 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
||||
{
|
||||
if (item->ItemType != EQ::item::ItemTypeFood && item->ItemType != EQ::item::ItemTypeDrink && item->ItemType != EQ::item::ItemTypeAlcohol)
|
||||
{
|
||||
LogDebug("[Client::Handle_OP_ItemVerifyRequest] Error: unknown item->Click.Type ([{}])", item->Click.Type);
|
||||
LogDebug("Error: unknown item->Click.Type ([{}])", item->Click.Type);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LogDebug("[Client::Handle_OP_ItemVerifyRequest] Error: unknown item->Click.Type ([{}])", item->Click.Type);
|
||||
LogDebug("Error: unknown item->Click.Type ([{}])", item->Click.Type);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12270,7 +12270,7 @@ void Client::Handle_OP_RecipesSearch(const EQApplicationPacket *app)
|
||||
p_recipes_search_struct->query[55] = '\0'; //just to be sure.
|
||||
|
||||
LogTradeskills(
|
||||
"[Handle_OP_RecipesSearch] Requested search recipes for object_type [{}] some_id [{}]",
|
||||
"Requested search recipes for object_type [{}] some_id [{}]",
|
||||
p_recipes_search_struct->object_type,
|
||||
p_recipes_search_struct->some_id
|
||||
);
|
||||
@@ -14475,7 +14475,7 @@ void Client::Handle_OP_Trader(const EQApplicationPacket *app)
|
||||
{
|
||||
case BazaarTrader_EndTraderMode: {
|
||||
Trader_EndTrader();
|
||||
LogTrading("Client::Handle_OP_Trader: End Trader Session");
|
||||
LogTrading("End Trader Session");
|
||||
break;
|
||||
}
|
||||
case BazaarTrader_EndTransaction: {
|
||||
@@ -14484,16 +14484,16 @@ void Client::Handle_OP_Trader(const EQApplicationPacket *app)
|
||||
if (c)
|
||||
{
|
||||
c->WithCustomer(0);
|
||||
LogTrading("Client::Handle_OP_Trader: End Transaction");
|
||||
LogTrading("End Transaction");
|
||||
}
|
||||
else
|
||||
LogTrading("Client::Handle_OP_Trader: Null Client Pointer");
|
||||
LogTrading("Null Client Pointer");
|
||||
|
||||
break;
|
||||
}
|
||||
case BazaarTrader_ShowItems: {
|
||||
Trader_ShowItems();
|
||||
LogTrading("Client::Handle_OP_Trader: Show Trader Items");
|
||||
LogTrading("Show Trader Items");
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -14516,7 +14516,7 @@ void Client::Handle_OP_Trader(const EQApplicationPacket *app)
|
||||
{
|
||||
GetItems_Struct* gis = GetTraderItems();
|
||||
|
||||
LogTrading("Client::Handle_OP_Trader: Start Trader Mode");
|
||||
LogTrading("Start Trader Mode");
|
||||
// Verify there are no NODROP or items with a zero price
|
||||
bool TradeItemsValid = true;
|
||||
|
||||
@@ -14580,7 +14580,7 @@ void Client::Handle_OP_Trader(const EQApplicationPacket *app)
|
||||
}
|
||||
}
|
||||
else {
|
||||
LogTrading("Client::Handle_OP_Trader: Unknown TraderStruct code of: [{}]\n",
|
||||
LogTrading("Unknown TraderStruct code of: [{}]\n",
|
||||
ints->Code);
|
||||
|
||||
LogError("Unknown TraderStruct code of: [{}]\n", ints->Code);
|
||||
@@ -14590,18 +14590,18 @@ void Client::Handle_OP_Trader(const EQApplicationPacket *app)
|
||||
{
|
||||
TraderStatus_Struct* tss = (TraderStatus_Struct*)app->pBuffer;
|
||||
|
||||
LogTrading("Client::Handle_OP_Trader: Trader Status Code: [{}]", tss->Code);
|
||||
LogTrading("Trader Status Code: [{}]", tss->Code);
|
||||
|
||||
switch (tss->Code)
|
||||
{
|
||||
case BazaarTrader_EndTraderMode: {
|
||||
Trader_EndTrader();
|
||||
LogTrading("Client::Handle_OP_Trader: End Trader Session");
|
||||
LogTrading("End Trader Session");
|
||||
break;
|
||||
}
|
||||
case BazaarTrader_ShowItems: {
|
||||
Trader_ShowItems();
|
||||
LogTrading("Client::Handle_OP_Trader: Show Trader Items");
|
||||
LogTrading("Show Trader Items");
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -14614,7 +14614,7 @@ void Client::Handle_OP_Trader(const EQApplicationPacket *app)
|
||||
}
|
||||
else if (app->size == sizeof(TraderPriceUpdate_Struct))
|
||||
{
|
||||
LogTrading("Client::Handle_OP_Trader: Trader Price Update");
|
||||
LogTrading("Trader Price Update");
|
||||
HandleTraderPriceUpdate(app);
|
||||
}
|
||||
else {
|
||||
@@ -14815,18 +14815,18 @@ void Client::Handle_OP_TraderShop(const EQApplicationPacket *app)
|
||||
if (c)
|
||||
{
|
||||
c->WithCustomer(0);
|
||||
LogTrading("Client::Handle_OP_Trader: End Transaction - Code [{}]", Command);
|
||||
LogTrading("End Transaction - Code [{}]", Command);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogTrading("Client::Handle_OP_Trader: Null Client Pointer for Trader - Code [{}]", Command);
|
||||
LogTrading("Null Client Pointer for Trader - Code [{}]", Command);
|
||||
}
|
||||
EQApplicationPacket empty(OP_ShopEndConfirm);
|
||||
QueuePacket(&empty);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogTrading("Client::Handle_OP_Trader: Unhandled Code [{}]", Command);
|
||||
LogTrading("Unhandled Code [{}]", Command);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -15419,7 +15419,7 @@ void Client::Handle_OP_SharedTaskRemovePlayer(const EQApplicationPacket *app)
|
||||
auto *r = (SharedTaskRemovePlayer_Struct *) app->pBuffer;
|
||||
|
||||
LogTasks(
|
||||
"[Handle_OP_SharedTaskRemovePlayer] field1 [{}] field2 [{}] player_name [{}]",
|
||||
"field1 [{}] field2 [{}] player_name [{}]",
|
||||
r->field1,
|
||||
r->field2,
|
||||
r->player_name
|
||||
@@ -15441,7 +15441,7 @@ void Client::Handle_OP_SharedTaskRemovePlayer(const EQApplicationPacket *app)
|
||||
strn0cpy(rp->player_name, r->player_name, sizeof(r->player_name));
|
||||
|
||||
LogTasks(
|
||||
"[Handle_OP_SharedTaskRemovePlayer] source_character_id [{}] task_id [{}] player_name [{}]",
|
||||
"source_character_id [{}] task_id [{}] player_name [{}]",
|
||||
rp->source_character_id,
|
||||
rp->task_id,
|
||||
rp->player_name
|
||||
@@ -15466,7 +15466,7 @@ void Client::Handle_OP_SharedTaskAddPlayer(const EQApplicationPacket *app)
|
||||
auto *r = (SharedTaskAddPlayer_Struct *) app->pBuffer;
|
||||
|
||||
LogTasks(
|
||||
"[SharedTaskAddPlayer_Struct] field1 [{}] field2 [{}] player_name [{}]",
|
||||
"field1 [{}] field2 [{}] player_name [{}]",
|
||||
r->field1,
|
||||
r->field2,
|
||||
r->player_name
|
||||
@@ -15491,7 +15491,7 @@ void Client::Handle_OP_SharedTaskAddPlayer(const EQApplicationPacket *app)
|
||||
strn0cpy(rp->player_name, r->player_name, sizeof(r->player_name));
|
||||
|
||||
LogTasks(
|
||||
"[Handle_OP_SharedTaskRemovePlayer] source_character_id [{}] task_id [{}] player_name [{}]",
|
||||
"source_character_id [{}] task_id [{}] player_name [{}]",
|
||||
rp->source_character_id,
|
||||
rp->task_id,
|
||||
rp->player_name
|
||||
@@ -15516,7 +15516,7 @@ void Client::Handle_OP_SharedTaskMakeLeader(const EQApplicationPacket *app)
|
||||
|
||||
auto *r = (SharedTaskMakeLeader_Struct *) app->pBuffer;
|
||||
LogTasks(
|
||||
"[SharedTaskMakeLeader_Struct] field1 [{}] field2 [{}] player_name [{}]",
|
||||
"field1 [{}] field2 [{}] player_name [{}]",
|
||||
r->field1,
|
||||
r->field2,
|
||||
r->player_name
|
||||
@@ -15538,7 +15538,7 @@ void Client::Handle_OP_SharedTaskMakeLeader(const EQApplicationPacket *app)
|
||||
strn0cpy(rp->player_name, r->player_name, sizeof(r->player_name));
|
||||
|
||||
LogTasks(
|
||||
"[Handle_OP_SharedTaskRemovePlayer] source_character_id [{}] task_id [{}] player_name [{}]",
|
||||
"source_character_id [{}] task_id [{}] player_name [{}]",
|
||||
rp->source_character_id,
|
||||
rp->task_id,
|
||||
rp->player_name
|
||||
@@ -15563,7 +15563,7 @@ void Client::Handle_OP_SharedTaskInviteResponse(const EQApplicationPacket *app)
|
||||
|
||||
auto *r = (SharedTaskInviteResponse_Struct *) app->pBuffer;
|
||||
LogTasks(
|
||||
"[SharedTaskInviteResponse] unknown00 [{}] invite_id [{}] accepted [{}]",
|
||||
"unknown00 [{}] invite_id [{}] accepted [{}]",
|
||||
r->unknown00,
|
||||
r->invite_id,
|
||||
r->accepted
|
||||
@@ -15584,7 +15584,7 @@ void Client::Handle_OP_SharedTaskInviteResponse(const EQApplicationPacket *app)
|
||||
strn0cpy(c->player_name, GetName(), sizeof(c->player_name));
|
||||
|
||||
LogTasks(
|
||||
"[ServerOP_SharedTaskInviteAcceptedPlayer] source_character_id [{}] shared_task_id [{}]",
|
||||
"source_character_id [{}] shared_task_id [{}]",
|
||||
c->source_character_id,
|
||||
c->shared_task_id
|
||||
);
|
||||
@@ -15599,7 +15599,7 @@ void Client::Handle_OP_SharedTaskAccept(const EQApplicationPacket* app)
|
||||
auto buf = reinterpret_cast<SharedTaskAccept_Struct*>(app->pBuffer);
|
||||
|
||||
LogTasksDetail(
|
||||
"[OP_SharedTaskAccept] unknown00 [{}] unknown04 [{}] npc_entity_id [{}] task_id [{}]",
|
||||
"unknown00 [{}] unknown04 [{}] npc_entity_id [{}] task_id [{}]",
|
||||
buf->unknown00,
|
||||
buf->unknown04,
|
||||
buf->npc_entity_id,
|
||||
|
||||
Reference in New Issue
Block a user