CraftEndedEvent
Defined in: server/api.d.ts:3466
A batch or workpiece that is over, for any reason. A table kept for the next batch is not closed by this.
Properties
Section titled “Properties”kind:
"alchemy"|"smithing"
Defined in: server/api.d.ts:3470
Which craft.
outcome
Section titled “outcome”outcome:
"failed"|"cancelled"|"success"
Defined in: server/api.d.ts:3490
How it ended.
reason
Section titled “reason”reason:
string
Defined in: server/api.d.ts:3495
Empty for a completed batch or a successful workpiece. craftingFailed for a broken workpiece; cancelled for normal native or script cancellation; interrupted for unexpected native teardown; clientError for alchemy adapter errors. Other reasons: craftingCompletingRejected, disconnected, timeout, contextInvalidated, and for smithing abandoned, abandonTooLate, invalidQuality, inventoryUnavailable. See CraftRefundProposal.
refunded
Section titled “refunded”refunded:
InventoryUnit[]
Defined in: server/api.d.ts:3500
The inventory rows ingredients went back to. Alchemy: wholly unmilled bowl, mortar and herb groups come back; everything else put on the table was spent. Smithing: a failed workpiece spends half of each divisible material, rounded down, and a coin decides a single unit; the rest comes back. A full refund requested through craftingRefunding returns all remaining original materials instead.
session
Section titled “session”session:
string
Defined in: server/api.d.ts:3475
The session id.
station
Section titled “station”station:
string
Defined in: server/api.d.ts:3480
Station id.
virtualWorld
Section titled “virtualWorld”virtualWorld:
number
Defined in: server/api.d.ts:3485
The station’s virtual world.