From 368d7aa3e053e8601c541b926c371c2c7b8cdd80 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sat, 27 Jul 2024 11:19:01 -0300 Subject: [PATCH] Fix text messages --- src/transmog_scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transmog_scripts.cpp b/src/transmog_scripts.cpp index 7221994..91699fc 100644 --- a/src/transmog_scripts.cpp +++ b/src/transmog_scripts.cpp @@ -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); }