Maintenance for the week of December 16:
• PC/Mac: No maintenance – December 16
• NA megaservers for patch maintenance – December 17, 4:00AM EST (9:00 UTC) - 12:00PM EST (17:00 UTC)
• EU megaservers for patch maintenance – December 17, 9:00 UTC (4:00AM EST) - 17:00 UTC (12:00PM EST)
The issues on the North American megaservers have been resolved at this time. If you continue to experience difficulties at login, please restart your client. Thank you for your patience!

Mail Tracker?

imperialyap_ESO
Hi everyone,

Those familiar with the API system, is it possible to create an add-on that tracks mail received, and exports the sender's username and mail content such as gold attached or uploaded to an XML file or similar? Just wondering if it's doable.
  • wookiefriseur
    wookiefriseur
    ✭✭✭✭
    Don't know enough about the API.. but maybe this helps a bit:

    I would try to look at Wykkyd's Mailbox for inspiration. Some of the variables you're looking for should be in there. The export could be done in SavedVariables as lua and you should be able to parse the result.

    Good luck with your project.

    Edit: If you need someone to send you mails with gold attached to test your addon I could help with that (EU-Server)
    Edited by wookiefriseur on August 26, 2014 3:11PM
  • imperialyap_ESO
    Thanks for the suggestion about Wykkyd's Mailbox, gonna have a look over that. Also Ill keep your name noted, as that sounds like a plan.
  • TheLab
    TheLab
    MailR
    http://www.esoui.com/downloads/info226-MailR.html

    tracks stuff, but cant export
  • Wykkyd
    Wykkyd
    ✭✭✭✭✭
    You can't export via Lua. You can push data into SavedVariables and that's it. All other I/O functions and cross-application commands typically found in Lua are not made available via ESO's Lua handler. The commands do nothing at all, or if you're lucky might give you an error.

    You could write a desktop utility that parses the data out of your SavedVariable file FOR the user and creates a CSV. But the user would have to be willing to have your utility run on their system. If you do this I'd suggest an un-compiled script like .vbs or .bat, since those are easy to sniff for viruses and easier for end users to inspect if they're paranoid.
  • SirAndy
    SirAndy
    ✭✭✭✭✭
    ✭✭✭✭✭
    Wykkyd wrote: »
    You can't export via Lua. You can push data into SavedVariables and that's it. All other I/O functions and cross-application commands typically found in Lua are not made available via ESO's Lua handler. The commands do nothing at all, or if you're lucky might give you an error.
    Did they remove the function to write to the chat log?

    I haven't played with the API in a long time but in the early days of the API, i used the chat log to dump text into a file.
    idea.gif
Sign In or Register to comment.