WoW:API TakeInboxItem: Difference between revisions

no edit summary
(warning that TakeInboxItem() is only a request to do so, and might fail.)
No edit summary
Line 6: Line 6:
----
----


TakeInboxItem(index)
TakeInboxItem(index, itemIndex)


index - the index of the mailbox message you want to take the item attachment from.
index - the index of the mailbox message you want to take the item attachment from.
itemIndex - The index of the item to take (1-ATTACHMENTS_MAX_RECEIVE(16))


''Returns''
''Returns''
Line 19: Line 22:
----
----
<pre>
<pre>
TakeInboxItem(1)
TakeInboxItem(1, 1)
</pre>
</pre>


Would attempt to take the attachment from the first message in the Inbox and place it in the next available container slot.
Would attempt to take the attachment from the first message in the Inbox and place it in the next available container slot.
Anonymous user