WoW:API GetCraftNumReagents: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:


:;numRequiredReagents : Integer. This is the number of required reagents for said craft. ie, 4 (for any craft that requires 4 reagents to perform...)
:;numRequiredReagents : Integer. This is the number of required reagents for said craft. ie, 4 (for any craft that requires 4 reagents to perform...)
== Details ==
----
__NOTOC__

Revision as of 20:16, 18 January 2008

WoW API < GetCraftNumReagents

This command tells the caller how many reagents are required for said craft.

numRequiredReagents = GetCraftNumReagents(index)

Parameters

Arguments

index
Numeric. Number from 1 to X, where X is the total number of possible crafts.

Returns

numRequiredReagents
Integer. This is the number of required reagents for said craft. ie, 4 (for any craft that requires 4 reagents to perform...)