Page 7 of 39

Re: Rock5's Mail Mods

Posted: Mon Jan 17, 2011 7:38 am
by rock5
Like I said "what I'll do" is add that function. Haven't done it yet. Unfortunately it's not high in priority on my todo list. But it's a small job so I might do it soon anyway.

Actually I just did it. Download it and try it out. I ended up calling the new function 'SendInventoryItem'.

Re: Rock5's Mail Mods

Posted: Mon Jan 17, 2011 8:44 am
by hagenleu
Work perfectly.

With this function my pg can mail the necessary questitems (for this time two type) to other characters.
The only manual job that i have to do is to preconfigure the questitems to be sended in the right place in the bag (i.e. from 61 to 85 questitem1, from 91 to 115 questitem2).

Now i wonder if there is a way to make this automatically. Consider that in the inventory of the sender there are only questitem1 and questitem2, but "mixed".

Anyway tnx for the excellent job of the mail mods :)

I want to share my little script, its is limited only to 3 character, but it can be extended. Sry for the bad form.

Re: Rock5's Mail Mods

Posted: Mon Jan 17, 2011 6:29 pm
by rock5
How about

Code: Select all

UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("questitem1"))
UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("questitem2"))

Re: Rock5's Mail Mods

Posted: Wed Jan 19, 2011 11:22 am
by hagenleu
Even better......wow :)

Tnx for your help!

Re: Rock5's Mail Mods

Posted: Sat Jan 29, 2011 10:50 am
by jason404
I've tried sending monster cards but nothing happens. Can you even send monster cards?

Re: Rock5's Mail Mods

Posted: Sat Jan 29, 2011 10:15 pm
by lisa
jason404 wrote:I've tried sending monster cards but nothing happens. Can you even send monster cards?
Yes monster cards can be mailed, they can also be put on AH.

Re: Rock5's Mail Mods

Posted: Sun Jan 30, 2011 3:03 am
by rock5
jason404 wrote:I've tried sending monster cards but nothing happens. Can you even send monster cards?
Do you mean you weren't able to send using the mail userfunctions? What command did you use?

Re: Rock5's Mail Mods

Posted: Sun Jan 30, 2011 8:32 am
by jason404
This is what im using:

Code: Select all

UMM_SendByNameOrId("Wootpoon",{"Card - Angren Mosto"})

Re: Rock5's Mail Mods

Posted: Sun Jan 30, 2011 10:09 pm
by rock5
jason404 wrote:This is what im using:

Code: Select all

UMM_SendByNameOrId("Wootpoon",{"Card - Angren Mosto"})
'-' is a special charcter when it comes to pattern matching. You can replace it with a '.' which means 'any character'.

So try this

Code: Select all

UMM_SendByNameOrId("Wootpoon",{"Card . Angren Mosto"})

Re: Rock5's Mail Mods

Posted: Mon Jan 31, 2011 7:03 pm
by jason404
Thank you. Problem Solved.

Re: Rock5's Mail Mods

Posted: Mon Feb 21, 2011 11:29 am
by sdude13
Is there any way to send all the catched pet-eggs to a character ?
if there is an id for every egg class it should work i guess... but I have realy no clue ;)

Re: Rock5's Mail Mods

Posted: Mon Feb 21, 2011 6:02 pm
by rock5
sdude13 wrote:Is there any way to send all the catched pet-eggs to a character ?
if there is an id for every egg class it should work i guess... but I have realy no clue ;)
Send by partial pet name should work.

This should work.

Code: Select all

UMM_SendByNameOrId(_recipient, {"pet egg"})

Re: Rock5's Mail Mods

Posted: Sat Mar 05, 2011 3:54 am
by QnQuera
i have a problem with the mail mod .. please apologize my bad english iam german..

i use this mod and it works great in scripts and i love the fast deleting of items by normal using .. great work.. but since i installed the addon i cant send money manual to another char. I tried to hang an item AND the money but this doesnt work too. When i send only the item it works or sending money with UMM_SendMoney works also ..

Have anybody the same problem and maybe an idea what i can do? i need this function often but i dont like to switch again to the old version.. Thx a lot

Re: Rock5's Mail Mods

Posted: Sat Mar 05, 2011 4:20 am
by JackBlonder
I just tried on a german client and I can confirm this.

Re: Rock5's Mail Mods

Posted: Mon Mar 07, 2011 1:54 am
by MinMax
replace this sentence in the lua file:

UMMComposeConfirm:AddLine(string.format(UMM_COMPOSER_CONFIRM_TEXT2, recipient));

with:

UMM_COMPOSER_CONFIRM_TEXT1 = "Bist Du sicher diese Menge zu versenden ?";
UMM_COMPOSER_CONFIRM_TEXT2 = "und zwar an %s ?";
UMM_COMPOSER_CONFIRM_YES = "Ja";
UMM_COMPOSER_CONFIRM_NO = "Nein";

and it works.

Ps.
Not my work, i found it on curse. ( I like the paste&copy like Gutenberg ^^ )

Re: Rock5's Mail Mods

Posted: Mon Mar 07, 2011 6:25 am
by QnQuera
i found this "UMMComposeConfirm:AddLine(string.format(UMM_COMPOSER_CONFIRM_TEXT2, recipient));" in the compose.lua under the folder compose in the addon-folder. I replaced it with you friendly proposal but unfortunately it wasn't the solution. The money get not send still now :(

Any Ideas? I have now 3 scripts to send from the most frequent mailboxes my money to another char.. but is not really nice :(

Re: Rock5's Mail Mods

Posted: Sun Mar 27, 2011 5:26 am
by gloover
Hey guys, I have a problem to sent items AFTER I have taken some items/gold out of my mailbox - he's standing and do nothing.
If the mailbox is empty, there are no problems with sending money/items.

here is the segment of my script:

Code: Select all

<waypoints type="TRAVEL">
	<!-- #  1 --><waypoint x="31841" z="3494" y="1">	</waypoint>
	<!-- #  2 --><waypoint x="31837" z="3516" y="-3">	</waypoint>
	<!-- #  3 --><waypoint x="31784" z="3592" y="-15">	
		
		player:target_Object("Briefkasten",300);	
		sendMacro("ChoiceOption(1);"); yrest(2500);
		UMM_TakeMail();yrest(10000);
				
		UMM_SendMoney("Recipent", "all"); yrest (2000); 	
		
		UMM_SendByNameOrId("Recipent", {204792}); yrest (2000); 	
		UMM_SendByNameOrId("Recipent", {204791}); yrest (2000); 	
	</waypoint>
I've also tried to close the mailbox-frame and open again but without any effects:

Code: Select all

<waypoints type="TRAVEL">
	<!-- #  1 --><waypoint x="31841" z="3494" y="1">	</waypoint>
	<!-- #  2 --><waypoint x="31837" z="3516" y="-3">	</waypoint>
	<!-- #  3 --><waypoint x="31784" z="3592" y="-15">	
		
		player:target_Object("Briefkasten",300);	
		sendMacro("ChoiceOption(1);"); yrest(2500);
		UMM_TakeMail();yrest(10000);

                RoMScript("HideUIPanel(MailFrame)"); yrest(1000);
		player:target_Object("Briefkasten",300);	
		sendMacro("ChoiceOption(1);"); yrest(2500);

                UMM_SendMoney("Recipent", "all"); yrest (2000); 	
		UMM_SendByNameOrId("Recipent", {204792}); yrest (2000); 	
		UMM_SendByNameOrId("Recipent", {204791}); yrest (2000); 	
	</waypoint>
as I already told, there're no problems, when the mailbox contains no items, the script runs as follows:

Code: Select all

No mail to take
Sending money to Recipent
Sending items to Recipent
Items sent
That may some problem with UMM_TakeMail() function.

Does anyone know a solution?

Thx in advance!

Re: Rock5's Mail Mods

Posted: Sun Mar 27, 2011 7:15 am
by rock5
Looks like it can get stuck in a loop if you are able to collect all the mail within 2 seconds. I've added another check so it should always work now.

I also took the opportunity to fix UMM_SendByNameOrId to not require table brackets if sending only 1 item.


About your code;
1. 300ms is a bit short to wait for the mailbox dialog to open.
2. You don't have to wait 10 seconds after taking the mail. The 'take mail' function wont return control until it has finished collecting.
3. You can merge your 2 items sends

Code: Select all

UMM_SendByNameOrId("Recipent", {204791,204792}); yrest (2000); 

4. You don't need to close and reopen the mailbox.

Hope that helps.

Re: Rock5's Mail Mods

Posted: Mon Mar 28, 2011 8:34 am
by gloover
Thx for the answer, Rock. My Mistake - Your addon works fine! I'm using a self-modified UMM with improved (accelerated) attachment management and gold-send-function, so after some hours of "failure-research", I did notify the absence of this function

Code: Select all

function UMMInboxTOCButtonTemplate_OnLeave(this)
  getglobal(this:GetName().."Hover"):Hide();
end
in my UMM inbox.lu - it caused a loop, so the bot could not jump to the next function.

BTW, Rock, is it possible to check, if a new mail is incomin during a game time and send the bot to take the mail out of mailbox?

Re: Rock5's Mail Mods

Posted: Mon Mar 28, 2011 6:24 pm
by rock5
Probably. I don't know if there is any game function that tells you if you have mail but you could have an addon that intercepts mails and shows your mail number, such as xbar and find the variable where it keeps the number of mails.