API:GetGuildTacticsRespecCost
From RoR Wiki
UI Lua API · Guild functions
Version: WAR 1.4.8
Returns the cost of resetting (respeccing) the guild tactics.
cost = GetGuildTacticsRespecCost()
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.
- RespecGuildTactics compares the player's money with this same value before sending the respec.
Errors
None.
Example
From default/ea_guildwindow/source/guildrespectacticslist.lua:
local respecCost = GetGuildTacticsRespecCost()
-- Create Confirmation Dialog
local dialogText = GetFormatStringFromTable( "guildstrings", StringTables.Guild.DIALOG_CONFIRM_RESPEC_GUILD_TACTICS, { MoneyFrame.FormatMoneyString (respecCost, false, true) } )
