Quantcast Detect mail from ah - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-22-14, 03:27 AM   #1
Tntdruid
Premium Member
 
Tntdruid's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 54
Detect mail from ah

Hello,

first my code:

Lua Code:
  1. function Accountant_DetectAhMail()
  2.     local numItems = GetInboxNumItems()
  3.     local invoiceType = GetInboxInvoiceInfo(numItems)
  4.     if invoiceType == "seller" then
  5.     auditorMode = "AH";
  6.         else
  7.     auditorMode = "MAIL";
  8.     end
  9. end

I'm trying to Detect if the mail is from a succesfull auction, it never return the AH or MAIL, i'm still new to lua stuff, been looking at
http://wowprogramming.com/docs/api/GetInboxInvoiceInfo
http://wowprogramming.com/docs/api/GetInboxNumItems
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Detect mail from ah

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off