Wowpedia

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

READ MORE

Wowpedia
Advertisement

Needs summary.

C_CraftingOrders.RequestCrafterOrders(request)

Arguments[]

request
CraftingOrderRequestInfo
Field Type Description
orderType Enum.CraftingOrderType
selectedSkillLineAbility number?
searchFavorites boolean
initialNonPublicSearch boolean
primarySort CraftingOrderSortInfo
secondarySort CraftingOrderSortInfo
forCrafter boolean
offset number
callback function : CraftingOrderRequestCallback Cancellable with C_FunctionContainers.CreateCallback
profession Enum.Profession?
Enum.CraftingOrderType
Value Field Description
0 Public
1 Guild
2 Personal
CraftingOrderSortInfo
Field Type Description
sortType Enum.CraftingOrderSortType
reversed boolean
Enum.CraftingOrderSortType
Value Field Description
0 ItemName
1 AveTip
2 MaxTip
3 Quantity
4 Reagents
5 Tip
6 TimeRemaining
7 Status
CraftingOrderRequestCallback
Param Type Description
1 result Enum.CraftingOrderResult🔗
2 orderType Enum.CraftingOrderType
3 displayBuckets boolean
4 expectMoreRows boolean
5 offset number
6 isSorted boolean
Enum.Profession
Value Field Description
0 FirstAid
1 Blacksmithing
2 Leatherworking
3 Alchemy
4 Herbalism
5 Cooking
6 Mining
7 Tailoring
8 Engineering
9 Enchanting
10 Fishing
11 Skinning
12 Jewelcrafting
13 Inscription
14 Archaeology

Details[]

Related API C_CraftingOrders.GetCrafterOrders
Related Events CRAFTINGORDERS_CAN_REQUEST

Example[]

local request = {
	orderType = Enum.CraftingOrderType.Public,
	searchFavorites = false,
	initialNonPublicSearch = false,
	primarySort = {
		sortType = Enum.CraftingOrderSortType.ItemName,
		reversed = false,
	},
	secondarySort = {
		sortType = Enum.CraftingOrderSortType.MaxTip,
		reversed = false,
	},
	forCrafter = true,
	offset = 0,
	profession = Enum.Profession.Blacksmithing,
	callback = C_FunctionContainers.CreateCallback(function(...)
		print(...)
	end),
}

C_CraftingOrders.RequestCrafterOrders(request)
--request.callback:Cancel()
Advertisement