WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Question about GetInboxInvoiceInfo() (https://www.wowinterface.com/forums/showthread.php?t=3556)

Dalomar 01-24-06 06:58 PM

Question about GetInboxInvoiceInfo()
 
I know the GetInboxInvoiceInfo function is new, but hopefully the concept of the problem I'm having is not. My problem is in Step 3 below

Step 1) Hook TakeInboxItem - when someone clicks on an item in their mail window to take the item into their bag - works fine

Step 2) Call GetInboxHeaderInfo - works fine, always pulls back the data

Step 3) If its an invoice, call GetInboxInvoiceInfo( ). It works sometimes, but other times it returns nil.

It ONLY happens on items that are still UNREAD, and it only happens sometimes. Once they are read (the icon is greyish looking now, 3 day til expire), it ALWAYS works. It seems like a timing issue or something. I'm consulting the script in the blizzard MailFrame.lua file and theirs looks the same. Any help, advice, or ideas to try would be much appreciated.

Thanx for any insight or advice,

Dal

Lodran 02-28-06 03:54 PM

It's a cheesy hack if it works, but have you tried calling it a second time, if it returns nil?

Cirk 02-28-06 05:23 PM

On slow and laggy 'ol Doomhammer, you can see that it can take quite a while for the server to send the data for the invoice (same actually with sending the data for the text of the message) even though you can see the item/gold to click on it. And you can click on the item to "take" it long before the invoice contents shows up, although AFAIK you don't actually get the item until the data has arrived from the server first, and then the item is delivered to you (even if you clicked on it 5 minutes earlier).

So at the time you click on the item, the invoice data may not yet be available, but it should be available by the time the item is delivered from the inbox.

Hope that helps you get a handle on it :D

-- Cirk


All times are GMT -6. The time now is 09:31 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI