wstring nMessageTex = packet.m_wsMessageText;
//g_Log.Add(Blue, L"packet.m_wsMessageText %s", packet.m_wsMessageText);
if (nMessageTex.find(L"ClassID") != -1 && g_Config.g_RuEngShiftClickItemShow)
{
wstring sItemid= Parser::ParseOptionString(nMessageTex, L"ClassID");
wstringstream nStream(sItemid);
int32_t nItemID;
while (nStream >> nItemID)
{
if (nItemID > 0 && nItemID < 65535)
{
if (ClientItemInfo* nClientItemInfo = g_ClientDataParser.GetClientItemInfo(nItemID))
{
if (User* pUser = socket->GetUser())
{
map<uint8_t, wstring>::iterator Iter = nClientItemInfo->m_ItemNames.find(pUser->pSD->m_lang);
if (Iter != nClientItemInfo->m_ItemNames.end())
{
wstring nItemName = Iter->second;
nMessageTex = nMessageTex.substr(0, nMessageTex.find(L"Title"));
nMessageTex = nMessageTex + L"Title=\u001b" + nItemName + L"\u001b\b";
//g_Log.Add(Blue, L"nMessageTex %s", nMessageTex.c_str());
}
}
}
}
}
wchar_t* nWMessageTex = _wcsdup(nMessageTex.c_str());
serializer.S(nWMessageTex);