Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

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?
Enum.CraftingOrderType
Value Field Description
0 Public
1 Guild
2 Personal
Enum.CraftingOrderDuration
Value Field Description
0 Short
1 Medium
2 Long
RegularReagentInfo
Field Type Description
itemID number
quantity number
CraftingReagentInfo
Field Type Description
itemID number
dataSlotIndex number
quantity number

Example[]

Posts a public work order for Inv 10 engineering manufacturedparts spring uprez [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)
Advertisement