WoW:API GetTradeTargetItemInfo: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API GetTradeTargetItemInfo to API GetTradeTargetItemInfo without leaving a redirect) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | |||
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> | <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> | ||
Line 5: | Line 5: | ||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
name, texture, quantity, quality, | name, texture, quantity, quality, isUsable, enchant = GetTradeTargetItemInfo(index) | ||
== Parameters == | == Parameters == | ||
Line 17: | Line 17: | ||
;''Returns'' | ;''Returns'' | ||
<!-- List each return value, together with its type --> | <!-- List each return value, together with its type --> | ||
:name, texture, quantity, quality, | :name, texture, quantity, quality, isUsable, enchant | ||
:;name : String - Name of the item | :;name : String - Name of the item | ||
Line 23: | Line 23: | ||
:;quantity : Numeric - Returns how many is in the stack | :;quantity : Numeric - Returns how many is in the stack | ||
:;quality : Numeric - The item's quality (0-6) | :;quality : Numeric - The item's quality (0-6) | ||
:;? | :;?isUsable : Numeric - 1 if the player can use this item, nil otherwise | ||
:; | :;enchant : String - enchant being applied (no trade slot) | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
Latest revision as of 04:46, 15 August 2023
← WoW API < GetTradeTargetItemInfo
Returns information about items in the target's trade window.
name, texture, quantity, quality, isUsable, enchant = GetTradeTargetItemInfo(index)
Parameters[edit]
Arguments[edit]
- (index)
- index
- Numeric - the slot (1-7) to retrieve info from
Returns[edit]
- Returns
- name, texture, quantity, quality, isUsable, enchant
- name
- String - Name of the item
- texture
- String - Name of the item's texture
- quantity
- Numeric - Returns how many is in the stack
- quality
- Numeric - The item's quality (0-6)
- ?isUsable
- Numeric - 1 if the player can use this item, nil otherwise
- enchant
- String - enchant being applied (no trade slot)