Fix to the fix of added appearance message (#156)

This fixes a previous committed fix relating to the added appearance message.
This commit is contained in:
woahscam
2024-08-05 15:02:08 -04:00
committed by GitHub
parent 368d7aa3e0
commit 5146f19c59

View File

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