WoW:API GetCraftReagentInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(intial creation)
 
m (Move page script moved page API GetCraftReagentInfo to API GetCraftReagentInfo without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{removedapi|3.0|Crafting API was absorbed into [[World of Warcraft API#TradeSkill Functions|Tradeskill API]].}}
{{wowapi}}
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.  
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.  


Line 14: Line 16:
:;texturePath : Path to the required item texture. ie, "Interface\Icons\INV_Enchant_ShardBrilliantLarge"
:;texturePath : Path to the required item texture. ie, "Interface\Icons\INV_Enchant_ShardBrilliantLarge"
:; numRequired : Numeric. Number of total required reagents.
:; numRequired : Numeric. Number of total required reagents.
:; numHave : Numeric. Number of total requires reagents that the user has on them currently.
:; numHave : Numeric. Number of total required reagents that the user has on them currently.
 
== Details ==
 
 
----
__NOTOC__
{{WoW API}}

Latest revision as of 04:45, 15 August 2023

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.
n
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.