Skip to content

In-game chat -> chat name for each CHAR [Feature request] #1438

@GladieUO

Description

@GladieUO

Right now, you should be able to choose your own account chat name, and thats it for all chars.
No idea how OSI works, but wouldnt it be better to have the static chat name as a name of each char on the account?

If my chat name is empty, I wasnt able to get the option to pick my name, this line isnt called. addChatSystemMessage(CHATCMD_SetChatName);

if (!m_fUseNewChatSystem && GetAccount()->m_sChatName.IsEmpty())
	{
		if ((pszName == nullptr) || (pszName[0] == 0))
		{
			addChatSystemMessage(CHATCMD_SetChatName);
			return;
		}

		tchar szChatName[ MAX_NAME_SIZE * 2 + 2 ];
		CvtNETUTF16ToSystem( szChatName, sizeof(szChatName), pszName, 128 );

		if (!CChat::IsValidName(szChatName, true) || g_Accounts.Account_FindChat(szChatName)) // Check for legal name, duplicates, etc
		{
			addChatSystemMessage(CHATCMD_SetChatName);
			return;
		}
		GetAccount()->m_sChatName = szChatName;
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions