mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-06 18:42:27 +00:00
Convert Client unhandled incoming opcodes
This commit is contained in:
parent
648494ec16
commit
0641be187d
@ -3506,7 +3506,7 @@ void Mob::CommonDamage(Mob* attacker, int32 &damage, const uint16 spell_id, cons
|
|||||||
if (pet && !pet->IsFamiliar() && !pet->GetSpecialAbility(IMMUNE_AGGRO) && !pet->IsEngaged() && attacker && attacker != this && !attacker->IsCorpse())
|
if (pet && !pet->IsFamiliar() && !pet->GetSpecialAbility(IMMUNE_AGGRO) && !pet->IsEngaged() && attacker && attacker != this && !attacker->IsCorpse())
|
||||||
{
|
{
|
||||||
if (!pet->IsHeld()) {
|
if (!pet->IsHeld()) {
|
||||||
mlog(PETS__AGGRO, "Sending pet %s into battle due to attack.", pet->GetName());
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Aggro, "Sending pet %s into battle due to attack.", pet->GetName());
|
||||||
pet->AddToHateList(attacker, 1);
|
pet->AddToHateList(attacker, 1);
|
||||||
pet->SetTarget(attacker);
|
pet->SetTarget(attacker);
|
||||||
Message_StringID(10, PET_ATTACKING, pet->GetCleanName(), attacker->GetCleanName());
|
Message_StringID(10, PET_ATTACKING, pet->GetCleanName(), attacker->GetCleanName());
|
||||||
|
|||||||
@ -458,18 +458,20 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
|||||||
args.push_back(const_cast<EQApplicationPacket*>(app));
|
args.push_back(const_cast<EQApplicationPacket*>(app));
|
||||||
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args);
|
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args);
|
||||||
|
|
||||||
#if (EQDEBUG >= 10)
|
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
app->build_header_dump(buffer);
|
app->build_header_dump(buffer);
|
||||||
mlog(CLIENT__NET_ERR, "Unhandled incoming opcode: %s", buffer);
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Client_Server_Packet, "Unhandled incoming opcode: %s", buffer);
|
||||||
|
|
||||||
if(app->size < 1000)
|
if (logger.log_settings[EQEmuLogSys::Client_Server_Packet].log_to_console == 1){
|
||||||
DumpPacket(app, app->size);
|
if (app->size < 1000)
|
||||||
else{
|
DumpPacket(app, app->size);
|
||||||
std::cout << "Dump limited to 1000 characters:\n";
|
else{
|
||||||
DumpPacket(app, 1000);
|
std::cout << "Dump limited to 1000 characters:\n";
|
||||||
|
DumpPacket(app, 1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user