Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:RMTPaidNameChange

From RoR Wiki
Revision as of 19:47, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
  • newName must 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