mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
refactor(Core/Chat): PSendSysMessage to fmt (#19449)
* refactor(Core/Chat): PSendSysMessage to `fmt`
This commit is contained in:
@@ -140,7 +140,7 @@ public:
|
||||
/// @todo is it really necessary to add both the real and DB table guid here ?
|
||||
sObjectMgr->AddGameobjectToGrid(guidLow, sObjectMgr->GetGameObjectData(guidLow));
|
||||
|
||||
handler->PSendSysMessage(LANG_GAMEOBJECT_ADD, uint32(objectId), objectInfo->name.c_str(), guidLow, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
|
||||
handler->PSendSysMessage(LANG_GAMEOBJECT_ADD, uint32(objectId), objectInfo->name, guidLow, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ public:
|
||||
|
||||
GameObject* target = handler->GetObjectFromPlayerMapByDbGuid(guidLow);
|
||||
|
||||
handler->PSendSysMessage(LANG_GAMEOBJECT_DETAIL, guidLow, objectInfo->name.c_str(), guidLow, id, x, y, z, mapId, o, phase);
|
||||
handler->PSendSysMessage(LANG_GAMEOBJECT_DETAIL, guidLow, objectInfo->name, guidLow, id, x, y, z, mapId, o, phase);
|
||||
|
||||
if (target)
|
||||
{
|
||||
@@ -277,7 +277,7 @@ public:
|
||||
std::string curRespawnDelayStr = secsToTimeString(curRespawnDelay, true);
|
||||
std::string defRespawnDelayStr = secsToTimeString(target->GetRespawnDelay(), true);
|
||||
|
||||
handler->PSendSysMessage(LANG_COMMAND_RAWPAWNTIMES, defRespawnDelayStr.c_str(), curRespawnDelayStr.c_str());
|
||||
handler->PSendSysMessage(LANG_COMMAND_RAWPAWNTIMES, defRespawnDelayStr, curRespawnDelayStr);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -298,7 +298,7 @@ public:
|
||||
Unit* owner = ObjectAccessor::GetUnit(*handler->GetSession()->GetPlayer(), ownerGuid);
|
||||
if (!owner || !ownerGuid.IsPlayer())
|
||||
{
|
||||
handler->SendErrorMessage(LANG_COMMAND_DELOBJREFERCREATURE, ownerGuid.GetCounter(), object->GetSpawnId());
|
||||
handler->SendErrorMessage(LANG_COMMAND_DELOBJREFERCREATURE, ownerGuid.ToString(), object->GetSpawnId());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
handler->PSendSysMessage(LANG_COMMAND_TURNOBJMESSAGE, object->GetSpawnId(), object->GetGOInfo()->name.c_str(), object->GetSpawnId());
|
||||
handler->PSendSysMessage(LANG_COMMAND_TURNOBJMESSAGE, object->GetSpawnId(), object->GetGOInfo()->name, object->GetSpawnId());
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -403,7 +403,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
handler->PSendSysMessage(LANG_COMMAND_MOVEOBJMESSAGE, object->GetSpawnId(), object->GetGOInfo()->name.c_str(), object->GetSpawnId());
|
||||
handler->PSendSysMessage(LANG_COMMAND_MOVEOBJMESSAGE, object->GetSpawnId(), object->GetGOInfo()->name, object->GetSpawnId());
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -467,7 +467,7 @@ public:
|
||||
if (!gameObjectInfo)
|
||||
continue;
|
||||
|
||||
handler->PSendSysMessage(LANG_GO_LIST_CHAT, guid, entry, guid, gameObjectInfo->name.c_str(), x, y, z, mapId, "", "");
|
||||
handler->PSendSysMessage(LANG_GO_LIST_CHAT, guid, entry, guid, gameObjectInfo->name, x, y, z, mapId, "", "");
|
||||
|
||||
++count;
|
||||
} while (result->NextRow());
|
||||
@@ -522,21 +522,21 @@ public:
|
||||
|
||||
handler->PSendSysMessage(LANG_GOINFO_ENTRY, entry);
|
||||
if (gameObject)
|
||||
handler->PSendSysMessage("GUID: %u", gameObject->GetGUID().GetCounter());
|
||||
handler->PSendSysMessage("GUID: {}", gameObject->GetGUID().ToString());
|
||||
handler->PSendSysMessage(LANG_GOINFO_TYPE, type);
|
||||
handler->PSendSysMessage(LANG_GOINFO_LOOTID, lootId);
|
||||
handler->PSendSysMessage(LANG_GOINFO_DISPLAYID, displayId);
|
||||
if (gameObject)
|
||||
{
|
||||
handler->PSendSysMessage("LootMode: %u", gameObject->GetLootMode());
|
||||
handler->PSendSysMessage("LootState: %u", gameObject->getLootState());
|
||||
handler->PSendSysMessage("GOState: %u", gameObject->GetGoState());
|
||||
handler->PSendSysMessage("PhaseMask: %u", gameObject->GetPhaseMask());
|
||||
handler->PSendSysMessage("IsLootEmpty: %u", gameObject->loot.empty());
|
||||
handler->PSendSysMessage("IsLootLooted: %u", gameObject->loot.isLooted());
|
||||
handler->PSendSysMessage("LootMode: {}", gameObject->GetLootMode());
|
||||
handler->PSendSysMessage("LootState: {}", gameObject->getLootState());
|
||||
handler->PSendSysMessage("GOState: {}", gameObject->GetGoState());
|
||||
handler->PSendSysMessage("PhaseMask: {}", gameObject->GetPhaseMask());
|
||||
handler->PSendSysMessage("IsLootEmpty: {}", gameObject->loot.empty());
|
||||
handler->PSendSysMessage("IsLootLooted: {}", gameObject->loot.isLooted());
|
||||
}
|
||||
|
||||
handler->PSendSysMessage(LANG_GOINFO_NAME, name.c_str());
|
||||
handler->PSendSysMessage(LANG_GOINFO_NAME, name);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -571,7 +571,7 @@ public:
|
||||
{
|
||||
object->SendCustomAnim(*objectState);
|
||||
}
|
||||
handler->PSendSysMessage("Set gobject type %d state %u", objectType, *objectState);
|
||||
handler->PSendSysMessage("Set gobject type {} state {}", objectType, *objectState);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user