API:GetHeraldryResetCost
From RoR Wiki
UI Lua API · Guild functions
Version: WAR 1.4.8
Returns the cost of resetting the guild heraldry.
cost = GetHeraldryResetCost()
Arguments
None.
Returns
- cost
number– The cost, as a money amount.
Details
- The value is stored by the client; the function does not contact the server.
- ResetGuildHeraldry compares the player's money with this same value before sending the reset.
Errors
None.
Example
From default/ea_guildwindow/source/guildwindowtabrewards.lua:
local heraldryCost = GetHeraldryResetCost()
-- Create Confirmation Dialog
local dialogText = GetFormatStringFromTable( "guildstrings", StringTables.Guild.DIALOG_CONFIRM_RESET_HERALDRY, { MoneyFrame.FormatMoneyString (heraldryCost, false, true) } )
