API:ConfirmedTransferGuild
From RoR Wiki
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
&transferguildto 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
...
