Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:SetGroupLootThreshold

From RoR Wiki

UI Lua API · Game functions
Version: WAR 1.4.8

Asks the server to change the loot rarity threshold of the player's group.

SetGroupLootThreshold(threshold)

Arguments

threshold
number – The new threshold, counting from 1. In the stock UI this is the index of the selected entry in the threshold combo box: 1 = All, 2 = Common, 3 = Uncommon, 4 = Rare, 5 = Very Rare, 6 = Artifact, 7 = None.

Returns

Nothing.

Details

  • The client subtracts 1 from threshold and sends it to the server as a group command. It does not check the value or whether the player is the group leader; the server decides.
  • The current threshold is published in GameData.Player.Group.Settings.lootThreshold; the stock UI uses it directly as the combo box index.
  • The function takes exactly one argument.

Errors

None besides the Invalid Parameters argument check.

Example

The combo box handler in ea_openpartywindow/source/openpartywindowtabmanage.lua:

function EA_Window_OpenPartyManage.OnLootThresholdSelChange( newThreshold )
    SetGroupLootThreshold( newThreshold )
end

See also