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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

710 Part IV ■ <strong>Reference</strong>stationeryIcon—Path to an icon texture <strong>for</strong> the message (string)sender—Name <strong>of</strong> the message’s sender (string)subject—Subject text <strong>of</strong> the message (string)money—Amount <strong>of</strong> money attached to the message (in copper) (number)CODAmount—Cash-On-Delivery cost to take any items attached to the message(in copper) (number)daysLeft—Number <strong>of</strong> days remaining be<strong>for</strong>e the message is automaticallyreturned or deleted (number)itemCount—Number <strong>of</strong> item attachments to the message (number)wasRead—1 if the player has read the message; otherwise nil (1nil)wasReturned—1 if the message is a message that was sent by the playerto another character <strong>and</strong> returned by the recipient; otherwise nil (1nil)textCreated—1 if the player has saved a copy <strong>of</strong> the message text as an item;otherwise nil (1nil)canReply—1 if the player can reply to the message; otherwise nil (1nil)isGM—1 if the message is from a game master; otherwise nil (1nil)itemQuantity—Number <strong>of</strong> stacked items attached to the message if the messagehas one attachment; nil if the message has zero or multiple attachments(number)GetInboxInvoiceInfoReturns auction house invoice in<strong>for</strong>mation <strong>for</strong> a mail message.invoiceType, itemName, playerName, bid, buyout, deposit, consignment, imoneyDelay, etaHour, etaMin = GetInboxInvoiceInfo(index)Arguments:index—Index <strong>of</strong> the mail message in the inbox (between 1 <strong>and</strong>GetInboxNumItems()) (number)Returns:invoiceType—Type <strong>of</strong> invoice (string)buyer—Aninvoice<strong>for</strong>anitemtheplayerwonseller—Aninvoice<strong>for</strong>anitemtheplayersoldseller_temp_invoice—A temporary invoice <strong>for</strong> an item sold bythe player but <strong>for</strong> which payment has not yet been delivereditemName—Name <strong>of</strong> the item (string)playerName—Name <strong>of</strong> the player who bought or sold the item (string)bid—Amount <strong>of</strong> the winning bid or buyout (number)buyout—Amount <strong>of</strong> buyout (if the auction was bought out) (number)deposit—Amount <strong>of</strong> money paid in deposit (number)consignment—Amount withheld from the deposit by the auction house ascharge <strong>for</strong> running the auction (number)moneyDelay—Delay <strong>for</strong> delivery <strong>of</strong> payment on a temporary invoice (in minutes;generally 60) (number)etaHour—Hour portion (on a 24-hour clock) <strong>of</strong> the estimated time <strong>for</strong> delivery<strong>of</strong> payment on a temporary invoice (number)

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

Saved successfully!

Ooh no, something went wrong!