WoW:API GetCraftSpellFocus: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
Takes <index> as an argument, but seems to always return nil.
''CatalystName, 1'' GetCraftSpellFocus(''index'')


=== Arguments ===
:;index : Numeric - 1 to [[API GetNumCrafts|GetNumCrafts()]]
=== Returns ===
When called while the enchanting screen is open, this function returns which rod is required, if any. I don't know whether this function also applies to other types of crafts or spells.
Returns two values when a rod is required: a string that contains the name of the rod, and the number "1". I don't know what the "1" means.
Returns nil if no rods are required.


----
----
{{WoW API}}
{{WoW API}}

Revision as of 11:35, 24 March 2006

CatalystName, 1 GetCraftSpellFocus(index)

Arguments

index
Numeric - 1 to GetNumCrafts()

Returns

When called while the enchanting screen is open, this function returns which rod is required, if any. I don't know whether this function also applies to other types of crafts or spells.

Returns two values when a rod is required: a string that contains the name of the rod, and the number "1". I don't know what the "1" means.

Returns nil if no rods are required.


Template:WoW API