Fix text messages

This commit is contained in:
Andrew
2024-07-27 11:19:01 -03:00
committed by GitHub
parent a8bef9cb9d
commit 368d7aa3e0

View File

@@ -891,7 +891,7 @@ private:
if (sT->AddCollectedAppearance(accountId, itemId))
{
if (showChatMessage)
ChatHandler(player->GetSession()).PSendSysMessage( R"(|c%s|Hitem:%u:0:0:0:0:0:0:0:0|h[%s]|h|r %s)", itemQuality.c_str(), itemId, itemName.c_str(), GetLocaleText(locale, "added_appearance"));
ChatHandler(player->GetSession()).PSendSysMessage( R"(|c{}|Hitem:{}:0:0:0:0:0:0:0:0|h[%s]|h|r {})", itemQuality.c_str(), itemId, itemName.c_str(), GetLocaleText(locale, "added_appearance"));
CharacterDatabase.Execute( "INSERT INTO custom_unlocked_appearances (account_id, item_template_id) VALUES ({}, {})", accountId, itemId);
}