Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/30/14, 02:41 PM   #1
Teli
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 19
Mail Attachments show as nil until clicked on

I"m having trouble getting the mail attachment item info. I found that if I have not clicked on the mail item I'm unable to get the attachment information. Is seems to save the information when you log in even after a reload it it remembers the attachment.

So if I first log in and run this script after opening the mailbox I will get a bunch of nil responses and one correct one from the currently selected mail item

Lua Code:
  1. function PS:Test()
  2.     PS.GetMailInfo()
  3.     for k, v in pairs(PS.mailInfo) do
  4.          d(v.attachId)
  5.     end
  6. end

but if I click on every mail item and run the code again it will populate all the item ID. Is there a way to simulate clicking on each mail item or another way to get all of the attachment information without having to click on each one?
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Mail Attachments show as nil until clicked on


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