add (db\gm cmd): CM DB Logging\GM CM Display

added counter measure report type in database
added new row when using .anticheat player to show deployed counter measures on player as some countermeasures will not count the actual cheat count in the db
This commit is contained in:
M'Dic
2023-04-05 16:53:21 -04:00
parent 1adf8f352e
commit 9e81a435d4
5 changed files with 62 additions and 16 deletions

View File

@@ -227,6 +227,7 @@ public:
uint32 antiknockback_reports = sAnticheatMgr->GetTypeReports(guid, 11);
uint32 no_fall_damage_reports = sAnticheatMgr->GetTypeReports(guid, 12);
uint32 op_ack_reports = sAnticheatMgr->GetTypeReports(guid, 13);
uint32 counter_measures_reports = sAnticheatMgr->GetTypeReports(guid, 14);
Player* playerTarget = player->GetConnectedPlayer();
uint32 latency = 0;
@@ -288,6 +289,7 @@ public:
{
handler->PSendSysMessage("|cffff0000Macro Requiring Lua Unlock Detected: |cffffff00No");
}
handler->PSendSysMessage("|cffff0000Counter Measures Deployed: |cffffff00%u", counter_measures_reports);
handler->PSendSysMessage("|cffff0000Average: |cffffff00%f |cffff0000Total Reports: |cffffff00%u ", average, total_reports);
handler->PSendSysMessage("|cffff0000Speed Reports: |cffffff00%u |cffff0000Fly Reports: |cffffff00%u |cffff0000Jump Reports: |cffffff00%u ", speed_reports, fly_reports, jump_reports);
handler->PSendSysMessage("|cffff0000Walk On Water Reports:|cffffff00 %u |cffff0000Teleport To Plane Reports: |cffffff00%u", waterwalk_reports, teleportplane_reports);
@@ -354,6 +356,7 @@ public:
{
handler->PSendSysMessage("Macro Requiring Lua Unlock Detected: No");
}
handler->PSendSysMessage("Counter Measures Deployed: %u", counter_measures_reports);
handler->PSendSysMessage("Average: %f || Total Reports: %u ", average, total_reports);
handler->PSendSysMessage("Speed Reports: %u || Fly Reports: %u || Jump Reports: %u ", speed_reports, fly_reports, jump_reports);
handler->PSendSysMessage("Walk On Water Reports: %u || Teleport To Plane Reports: %u", waterwalk_reports, teleportplane_reports);