PDA

View Full Version : WoW mail


dredd
08-14-2004, 12:22 PM
What about a "You've got Mail" icon whenever there is mail in your inbox ?

Veyn
08-16-2004, 09:58 PM
This sounds like a Blizzard thing. /suggest it as it's a good idea!

Maybe Cosmos could do it for now? hrm

sarf
08-17-2004, 10:42 AM
This may be possible, depending on whether the MAIL_INBOX_UPDATE event is fired off whenever new mail is received. If someone could replace the following piece of code in MailFrame.lua (starting at line 30) : elseif ( event == "MAIL_INBOX_UPDATE" ) then
InboxFrame_Update();
OpenMail_Update();with elseif ( event == "MAIL_INBOX_UPDATE" ) then
InboxFrame_Update();
OpenMail_Update();
Print("You've got mail!");
Then, all you need to do is go get a message and you should get the nice message. Unfortunately, MAIL_INBOX_UPDATE will most likely be called very very often when you have the mail frames visible, which is why I'd suggest having a state variable present (a variable which keeps track of the visibility of the mail frames).

Please post back with the results of this test. I can whip up the frame state code if necessary, but I first want to know if the event gets fired when you actually get mail. Well, either that or I want to get a nice invite mail from Blizzard. :)

Sarf
---
It's not easy to do nothing. You never know when you're done!