Fandom

WoWWiki

API GetCraftReagentInfo

104,633pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetCraftReagentInfo

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 Edit

Arguments Edit

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

Returns Edit

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.

Also on Fandom

Random Wiki