GetCraftReagentInfo

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

This command tells the caller which the name of the reagent, path to the used texture, number of required reagents, and number of said reagents that the caller currently has in their bags.

name, texturePath, numRequired, numHave = GetCraftReagentInfo(index, n)

Parameters

Arguments

index
number - starting at 1 going down to X number of possible crafts, where 1 is the top-most listed craft.
n
number - starting at 1 to X, where X is the total number of reagents said craft requires.

Returns

name
Name of the reagent required. ie, "Large Brilliant Shard"
texturePath
Path to the required item texture. ie, "Interface\Icons\INV_Enchant_ShardBrilliantLarge"
numRequired
Numeric. Number of total required reagents.
numHave
Numeric. Number of total required reagents that the user has on them currently.

Patch changes

Wrath-Logo-Small.png Patch 3.0.2 (2008-10-14): Removed.