API:RefundRenownPoints
From RoR Wiki
UI Lua API · Career functions
Version: WAR 1.4.8
Asks the server to refund all of the player's spent renown points.
RefundRenownPoints()
Arguments
None.
Returns
Nothing.
Details
- The client only sends the refund request. It does not check the price or the player's money; the server decides.
- Nothing is sent if the connection is not ready.
- The stock renown training window calls it from the confirmation dialog, after checking the price with GameData.Player.GetRenownRefundCost.
Errors
None.
Example
From ea_interactionwindow/source/interactionrenowntraining.lua:
DialogManager.MakeTwoButtonDialog( GetStringFormatFromTable("TrainingStrings", StringTables.Training.TEXT_RESPEC_CONFIRMATION, { MoneyFrame.FormatMoneyString (respecCost) }),
GetString(StringTables.Default.LABEL_YES), RefundRenownPoints,
GetString(StringTables.Default.LABEL_NO) )
