Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:ConfirmedTransferGuild

From RoR Wiki
Revision as of 19:41, 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 · Guild functions
Version: WAR 1.4.8

Sends the confirmation to start a guild transfer to the server.

ConfirmedTransferGuild()

Arguments

None.

Returns

Nothing.

Details

  • The client sends the text &transferguild to the server in a chat text message. There is no client-side check.
  • The function reads no arguments; any arguments passed are ignored.
  • The stock UI calls it only after the player has typed the confirmation word into the transfer confirmation window.

Errors

None.

Example

From default/ea_guildwindow/source/guildwindow.lua:

function GuildWindow.ConfirmTransferGuild()
    -- Ensure the player typed in YES
    if TransferGuildConfirmationWindowEdit.Text ~= L"" then
        local response = wstring.upper(TransferGuildConfirmationWindowEdit.Text)
        local bConfirmedTransferGuild = WStringsCompare(response, GetGuildString(StringTables.Guild.BUTTON_CONFIRM_TRANSFER_YES)) == 0
        if bConfirmedTransferGuild then
            ConfirmedTransferGuild()    -- Registered C function that sends the command to the server to begin transfering the guild
        end
        ...

See also