12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27 ■ API <strong>Reference</strong> 953ConfirmationTakeInboxItemRetrieves an item attachment from a message in the player’s inbox (acceptingCOD charges if applicable).TakeInboxItem(mailID, attachmentIndex)Arguments:mailID—Index <strong>of</strong> a message in the player’s inbox (between 1 <strong>and</strong>GetInboxNumItems()) (number)attachmentIndex—Index <strong>of</strong> an attachment to the message (between1 <strong>and</strong> select(8,GetInboxHeaderInfo(mailID))) (number)TakeInboxMoneyRetrieves any money attached to a message in the player’s inbox.TakeInboxMoney(mailID)Arguments:mailID—Index <strong>of</strong> a message in the player’s inbox (between 1 <strong>and</strong>GetInboxNumItems()) (number)TakeInboxTextItemRequests a copy <strong>of</strong> a message’s body text as an item.TakeInboxTextItem(mailID)The text <strong>of</strong> an in-game mail can be retrieved as a readable ‘‘Plain Letter’’ itemto store in the player’s bags; this function sends a request to the server <strong>for</strong> thisitem, causing the st<strong>and</strong>ard inventory events to fire as the item is placed into theplayer’s inventory.Arguments:mailID—Index <strong>of</strong> a message in the player’s inbox (between 1 <strong>and</strong>GetInboxNumItems()) (number)TakeTaxiNodeEmbarks on a taxi flight to a given destination.TakeTaxiNode(index)Only has effect while interacting with a flight master (i.e. between theTAXIMAP_OPENED <strong>and</strong> TAXIMAP_CLOSED events).ProtectedProtectedProtectedArguments:index—Index <strong>of</strong> a flight point (between 1 <strong>and</strong> NumTaxiNodes())(number)TargetLastEnemyTargets the most recently targeted enemy unit.TargetLastFriendTargets the most recently targeted friendly unit.TargetLastTargetTargets the most recently targeted unit.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!