C_CraftingOrders .PlaceNewOrder
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 10.0.2 |
Needs summary.
C_CraftingOrders.PlaceNewOrder(orderInfo)
Arguments
- orderInfo
- NewCraftingOrderInfo
Field | Type | Description |
---|---|---|
skillLineAbilityID | number | |
orderType | Enum.CraftingOrderType | |
orderDuration | Enum.CraftingOrderDuration | |
tipAmount | number | Commission amount in copper |
customerNotes | string | The note to the crafter |
reagentItems | RegularReagentInfo[] | Normal reagent items without any quality |
craftingReagentItems | CraftingReagentInfo[] | Reagent items that have a reagent quality |
minCraftingQualityID | number? | |
orderTarget | string? | The player name for a personal order |
recraftItem | string? |
Value | Field | Description |
---|---|---|
0 | Public | |
1 | Guild | |
2 | Personal |
Value | Field | Description |
---|---|---|
0 | Short | |
1 | Medium | |
2 | Long |
Field | Type | Description |
---|---|---|
itemID | number | |
quantity | number |
Field | Type | Description |
---|---|---|
itemID | number | |
dataSlotIndex | number | |
quantity | number |
Example
Posts a public work order for [Shock-Spring Coil] while providing all the materials.
local info = {
skillLineAbilityID = 47446, -- Shock-Spring Coil
orderType = Enum.CraftingOrderType.Public,
orderDuration = Enum.CraftingOrderDuration.Short,
tipAmount = 100,
customerNotes = "",
reagentItems = { -- leave this table empty to omit reagents
{
quantity = 2,
itemID = 190315, -- Rousing Earth
dataSlotIndex = 1,
},
},
craftingReagentItems = { -- leave this table empty to omit reagents
{
quantity = 6,
itemID = 198183, -- Handful of Serevite Bolts
dataSlotIndex = 1,
},
},
}
C_CraftingOrders.PlaceNewOrder(info)
Categories:
- API functions
- API namespaces/C CraftingOrders