What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Request] Auto Mail opener

IShaunYI

Member
Joined
Sep 24, 2014
Messages
57
Reaction score
0
much needed for all the auction house snipers.

can someone make a plug in that can open all the mail and recieve the attachements inside, delete the mail and then continue to the next page..

rinse and repeat ?

would be awesome, and mega time saving :)
 
The following goes through all your mails, opens them, takes the gold & items out and then deletes the mail.

Code:
using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;

namespace RelogNamespace
{
    public class RelogClass : Core
    {                         
        public void PluginRun()
        {    
	    GetOwlItems();
        }

        private void getOwlItems(){       
            RequestMailList();
            foreach (Mail m in getMails())
            {
                m.OpenMail();
                if (!m.isSent)
                {
                    m.ReceiveGoldFromMail();
                    foreach (Item item in m.getItems()){
                        if(checkItemNeeded(item)){
                            m.ReceiveItemFromMail(item);
                        }
                    }
                    m.DeleteMail();
                }
                Thread.Sleep(1000);
            }
        }
    }
}
 
Last edited:
Back
Top