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:
function PS:Test() PS.GetMailInfo() for k, v in pairs(PS.mailInfo) do d(v.attachId) end 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?
|