Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:SendCloseCrafting

From RoR Wiki

UI Lua API · Crafting functions
Version: WAR 1.4.8

Tells the server that the player has closed a crafting window for a trade skill.

SendCloseCrafting(tradeSkill)

Arguments

tradeSkill
number – A GameData.TradeSkills value. The stock UI uses APOTHECARY (4) and TALISMAN (5).

Returns

Nothing.

Details

  • For trade skills 4 and 5 the client sends a crafting "close" request for that skill. For any other value it sends the same message type without the crafting command.
  • The function needs at least one argument and only reads the last one.

Errors

None besides the generic Invalid Parameters message when the argument is missing or not a number.

Example

From default/ea_craftingwindow/source/talismanmakingwindow.lua:

SendCloseCrafting( GameData.TradeSkills.TALISMAN )

From default/ea_craftingwindow/source/apothecarywindow.lua:

SendCloseCrafting( GameData.TradeSkills.APOTHECARY )

See also