API:RMTPaidNameChange
From RoR Wiki
UI Lua API · Game functions
Version: WAR 1.4.8
Sends a paid character rename request to the server.
RMTPaidNameChange(newName)
Arguments
- newName
wstring– The requested new name.
Returns
Nothing.
Details
- The request contains the character slot stored by the client, the current name of the character in that slot, and
newName. The client does not check the name; the server accepts or rejects it. - It is used by the paid name change window in
interfacecore/source/pncwindow.lua. newNamemust be a wide string. A plain Lua string is rejected.- The function needs at least one argument and only reads the last one.
Errors
None besides the generic Invalid Parameters message when the argument is missing or not a wide string.
Example
From interfacecore/source/pncwindow.lua:
function PNCWindow.SendCharacterNameRequest()
-- Exit early if the name is empty
if( PNCWindowCharacterName.Text == "" )
then
return;
end
WindowSetShowing("PNCWindowCharacterNameMessages", false)
RMTPaidNameChange(PNCWindowCharacterName.Text)
PNCWindow.ToggleButtons(false)
end
