Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:EndItemEnhancement

From RoR Wiki

UI Lua API · ItemEnhancement functions
Version: WAR 1.4.8

Tells the server that the player stops enhancing the current item.

EndItemEnhancement()

Arguments

None.

Returns

Nothing.

Details

  • Only does something while the client has an enhancement session marked as open (set by BeginItemEnhancement). In that case it sends an "end enhancement" request and clears the mark.
  • Calling it again, or after FuseItemEnhancements, sends nothing. This makes it safe to call from a window's hide handler.
  • If one of the player's state flags blocks item enhancement, no request is sent and a built-in error message is printed to the Chat log instead. The mark is still cleared.
  • Arguments are not checked; anything passed is ignored.

Errors

None.

Example

From default/ea_itemenhancementwindow/source/itemenhancementwindow.lua:

function ItemEnhancementWindow.OnHidden()
    WindowUtils.OnHidden()
    EndItemEnhancement()
end

See also