Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:RefundSpecialtyPoints

From RoR Wiki
Revision as of 19:47, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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) )

See also