m
Move page script moved page API GetInboxItem to WoW:API GetInboxItem without leaving a redirect
(upgraded deprecated template) |
m (Move page script moved page API GetInboxItem to WoW:API GetInboxItem without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Retrieve details about an item from a mail. | Retrieve details about an item from a mail. | ||
name, itemTexture, count, quality, canUse = GetInboxItem(index) | name, itemTexture, count, quality, canUse = GetInboxItem(index, itemIndex) | ||
== Parameters == | == Parameters == | ||
=== Arguments === | === Arguments === | ||
:(index) | :(index, itemIndex) | ||
:;index : Integer - The index of the message to get information from. | :;index : Integer - The index of the message to get information from. | ||
:;itemIndex : Integer - The index of the item (1-ATTACHMENTS_MAX_RECEIVE(16)) | |||
=== Returns === | === Returns === | ||
:name, itemTexture, count, quality, canUse | :name, itemTexture, count, quality, canUse | ||
| Line 27: | Line 29: | ||
inbox_text = GetInboxText(inbox_item_index); | inbox_text = GetInboxText(inbox_item_index); | ||
-- Get the Attachment Description Text | -- Get the Attachment Description Text | ||
inbox_item = GetInboxItem(inbox_item_index); | inbox_item = GetInboxItem(inbox_item_index, 1); | ||
if (inbox_text ~= nil) then | if (inbox_text ~= nil) then | ||
-- Print the message text | -- Print the message text | ||
| Line 36: | Line 38: | ||
-- Print the attachment description | -- Print the attachment description | ||
DEFAULT_CHAT_FRAME:AddMessage("Inbox Item: " | DEFAULT_CHAT_FRAME:AddMessage("Inbox Item: " | ||
.. GetInboxItem(inbox_item_index), 1, 1, 1); | .. GetInboxItem(inbox_item_index, 1), 1, 1, 1); | ||
end | end | ||
end | end | ||
end | end | ||
<!-- end code --> | <!-- end code --> | ||
- | |||
==Details== | |||
: As of 2.3.3 this function is bugged and the quality is always set to -1. | |||
__NOTOC__ | __NOTOC__ | ||