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

Send Mail

Status
Not open for further replies.

cerebrallolzy

New Member
Joined
Nov 4, 2014
Messages
7
Reaction score
0
Forgive me if there is a thread on this already, but I was looking through the API (I'm getting Archebuddy when ever the payment gets sorted) and I saw no send mail function. I see receive mail, but that is it. I have looked over the forums for anything on the topic but I couldn't find anything on it.
 
Can someone plz post an example for the sendmail, I'm also having a bit difficult with the List <Item>, how do I set items and quantity.
 
Code:
List<Item> mailitems = new List<Item>();
{ //here we add all instances of itemname we possess, to the mail. Use a copy (or a function containing) this block for every different items
	List<Item> Inventory = getInvItems("itemname");
	foreach (Item item in Inventory)
	{
			if (mailitems.Count > 8)
					break;
			mailitems.Add(item);
	}
}
SendMail("whoevername", "mailtitle", "mailtext", true, 0, mailitems);

This is pretty basic, but should get the job done just fine
 
Code:
List<Item> mailitems = new List<Item>();
{ //here we add all instances of itemname we possess, to the mail. Use a copy (or a function containing) this block for every different items
	List<Item> Inventory = getInvItems("itemname");
	foreach (Item item in Inventory)
	{
			if (mailitems.Count > 8)
					break;
			mailitems.Add(item);
	}
}
SendMail("whoevername", "mailtitle", "mailtext", true, 0, mailitems);

This is pretty basic, but should get the job done just fine

Thank you man, it worked great, one thing I didnt understand was that break right in case of IF > 8.
 
Its just to avoid sending more than 9 items at once, altho technically the limit would be 10
 
Its just to avoid sending more than 9 items at once, altho technically the limit would be 10

Yeah, today had 9200 items in my bag, and it sent 9000, that and buyItems method are making my farming process even more fast.
 
Status
Not open for further replies.
Back
Top