API:RefundSpecialtyPoints
From RoR Wiki
UI Lua API · Career functions
Version: WAR 1.4.8
Asks the server to refund all of the player's spent specialisation (mastery) points.
RefundSpecialtyPoints()
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 specialisation training window calls it from the confirmation dialog, after checking the price with GameData.Player.GetSpecialtyRefundCost.
Errors
None.
Example
From ea_interactionwindow/source/interactionspecialtytraining.lua:
DialogManager.MakeTwoButtonDialog( GetStringFormatFromTable("TrainingStrings", StringTables.Training.TEXT_RESPEC_CONFIRMATION, { MoneyFrame.FormatMoneyString (respecCost) }),
GetString(StringTables.Default.LABEL_YES), RefundSpecialtyPoints,
GetString(StringTables.Default.LABEL_NO) )
