- summary: How many times to craft the current recipe in an open workshop (-1: until the resources run out).
- area: Game.Exchange
How many times to craft the current recipe in an open workshop (-1: until the resources run out).
Kind request · Area Game.Exchange
Set how many times the recipe in the workshop is crafted when you press craft
(ExchangeReadyRequest).
HOW TO SEND IT
1. Put the recipe in first (ExchangeSetCraftRecipeRequest).
2. Set ExchangeCraftCountRequest.count:
- N >= 1: craft N times. The craft window never sends less than 1 nor more than the
number of crafts your ingredients allow (it clamps the value to
[1, max craftable] before sending);
- -1: repeat until the resources run out. The smithmagic window's Merge all sends this.
3. Leave the other declared member (an enum) at 0: the client never writes it.
4. The server confirms the count; then send ExchangeReadyRequest to craft. A repeated
craft ends with ExchangeItemAutoCraftStoppedEvent.
When you may send it
- Requires
exchange_openinferred - Raised by: a user action: changing the craft quantity in the craft window (CraftUi.ChangeCraftQuantity: the +/- buttons, ctrl/shift for bigger steps, or typing in the quantity box), or Merge all in the smithmagic window (SmithMagicUi.ClickOnMergeAll) proven
Related messages
- You will then receive
ExchangeCraftCountModifiedEventobserved — about 30ms later with the count in force (100 after a Max click); 1 observation
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 2 | count | int32 | How many times to craft; -1 to repeat until the resources run out. The craft window sends 1 .. max craftable (clamped). SmithMagicUi's Merge all sends -1. | always |