Page 19 of 39

Re: Rock5's Mail Mods

Posted: Tue Nov 20, 2012 3:31 am
by rock5
It's not necessary for the userfunction to do that. Just do

Code: Select all

UMM_SendMoney("recipient", inventory.Money - 1000)

Re: Rock5's Mail Mods

Posted: Tue Nov 20, 2012 3:33 am
by Budzer
OK thanks a lot ;) Find a way to not need it before, but now probably will get back to my old plan :P

Re: Rock5's Mail Mods

Posted: Tue Nov 20, 2012 10:39 am
by delay84
Thank you very much. Works great now :-)

Re: Rock5's Mail Mods

Posted: Tue Nov 20, 2012 7:34 pm
by Ego95
Ohhps, yes...error messages
I totaly forgot them :D
Now UltimateMailMod works fine

Thanks :)

Re: Rock5's Mail Mods

Posted: Tue Nov 27, 2012 2:13 am
by Cindy
I finally got to this, and have a problem. When I get the mail, it won't delete the empties.

Code: Select all

	Fusion_MakeMaxManaStones(9) -- Make tier 9 stones
	sendMacro("CloseAllWindows()");
	
	repeat		
		UMM_TakeMail()
		Fusion_MakeMaxManaStones(9) -- Make tier 9 stones
		yrest(500)		
		if mailcount == 30 then
			--...close then open mail again
			sendMacro("CloseAllWindows()");
			inventory:update();
			player:target_Object(112778); yrest(1000); -- mailbox
		end
	until mailcount ~= 30		
	UMM_TakeMail()	
	sendMacro("CloseAllWindows()");
	player:sleep()
Any ideas what am I missing?

Re: Rock5's Mail Mods

Posted: Tue Nov 27, 2012 4:30 am
by rock5
Normally you would have the option "Delete mails when done taking" checked in UMM and it will delete the mail after taking the items. So check that first.

But UMM has no feature to delete already empty mail. So if you get any mail that doesn't have anything attached or any failure happens when taking mail that leaves you with empty mail, then it will never delete those mails automatically. You will have to do them manually and hope it doesn't happen very often. It's easy enough to do, just click "Empty" and then "Delete".

Now, I see errors in your code.

Firstly you don't need to open the mailbox anymore. It should do it itself.

Secondly, you use a variable "mailcount" but you don't assign any values to it. So you may have to open the mailbox after all to get the mailcount. Try

Code: Select all

	Fusion_MakeMaxManaStones(9) -- Make tier 9 stones
	local mailcount
	repeat	
		sendMacro("CloseAllWindows()");
		player:target_Object(112778); yrest(1000); -- mailbox
		mailcount = RoMScript("UMMMailManager.MailCount") 
		
		UMM_TakeMail()
		Fusion_MakeMaxManaStones(9) -- Make tier 9 stones
		yrest(500)		
	until mailcount ~= 30		
	sendMacro("CloseAllWindows()");
	player:sleep()

Re: Rock5's Mail Mods

Posted: Sat Dec 01, 2012 2:34 am
by Alexxx
I have tried multiple of your mailing functions, but I have been unable to send Moonlight Pearls, Nightmare essence, Wisdom cores, or Magic Fortune Grass by mail. The error I always seem to get is "Nothing to send."

Code: Select all

UMM_SendByNameOrId("Char",{"206592","Nightmare Essence","Wisdom Core","206590"})
The idea is to try to allow a character to run through andor's training and then walk to the mail box and mail what they got.

This is not urgent or anything...worst case scenario I do it by hand =P. I am just wondering if perhaps the mailing addon doesn't recognize them and they can never be mailed? Or if I am just writing the code wrong?

I'd also like to express my gratitude to both Lisa and you. Your guides and explanations all over this forum have helped so much. I (like so many anonymous others) truly appreciate it. =D

Re: Rock5's Mail Mods

Posted: Sat Dec 01, 2012 3:12 am
by rock5
Aren't they bound?

Re: Rock5's Mail Mods

Posted: Sat Dec 01, 2012 1:27 pm
by Alexxx
They cannot be sold. They are not bound though. I am able to send them manually.

Re: Rock5's Mail Mods

Posted: Sun Dec 02, 2012 1:43 am
by rock5
I have Pearls that I can test with. Using the name instead of the id worked. Using the id without quotes worked. Using the id with quotes doesn't work. I should probably add support for that but at the moment it doesn't work. I don't have any "Nightmare Essence" or "Wisdom Core" so I can't test them. They are definitely spelt correctly.

Try setting the debug to see why it isn't sending. To set the debug change line 245 of addons_Rock5s_Mail_Functions.lua to

Code: Select all

local debugfilter = true

Re: Rock5's Mail Mods

Posted: Mon Dec 03, 2012 8:55 pm
by Cindy
Alexxx wrote:I have tried multiple of your mailing functions, but I have been unable to send Moonlight Pearls, Nightmare essence, Wisdom cores, or Magic Fortune Grass by mail. The error I always seem to get is "Nothing to send."

Code: Select all

UMM_SendByNameOrId("Char",{"206592","Nightmare Essence","Wisdom Core","206590"})
It's interesting that these are the ones I can't donate either...

Re: Rock5's Mail Mods

Posted: Tue Dec 04, 2012 1:21 am
by rock5
Maybe it's a language issue. What language do you play in?

Re: Rock5's Mail Mods

Posted: Wed Dec 05, 2012 6:56 pm
by Rickster
Hi,

I just switched from v.1.71 to 1.80 an have some probs. 1.71 worked fine and I did not make any changes to any wp file except not targeting the mailbox anymore, before using it.

When using a mailbox the first time with for example:

Code: Select all

UMM_SendByNameOrId("charname"),{"itemname1","itemname2"})
it prints out the following in the MM window for each bag slot which is not empty:

Code: Select all

Sending items by name or id.

 Steintotemfragm slot114  Bound
 30-Tage-Vertrag slot115  Bound
 Zertifikat: Der slot116  Bound
 Medaille der Ru slot117  Bound
    Phiriusmarke slot118  Bound
    Phiriusmarke slot119  Bound
    Phiriusmarke slot120  Bound
[..]
and then sends the mail. Is there a way to not show this (i think its a) search?

When using the mailbox a second time or another mailbox somewhere else i get the on screen message, that execution is not possible, and that the postbox interface should be closed first.
but the interface is not open, at least it is not visible to me ;)

i have to close and reopen the game client, just going to login screen does not help, to open the mailbox again.

i switched back to 1.71 and everything works fine there.

Ric

Re: Rock5's Mail Mods

Posted: Thu Dec 06, 2012 2:28 am
by rock5
Rickster wrote:it prints out the following in the MM window for each bag slot which is not empty:
Sorry I forgot to switch the debug off. Change line 245 of addon_Rock5s_Mail_mod.lua to

Code: Select all

	local debugfilter = false
Rickster wrote:When using the mailbox a second time or another mailbox somewhere else i get the on screen message, that execution is not possible, and that the postbox interface should be closed first.
but the interface is not open, at least it is not visible to me ;)
If you leave the mailbox open then change character then it will have that problem. It's always been that way. Make sure you close the mailbox before relogging.

If you forget to close it and then have this problem, you can fix it by doing

Code: Select all

/script MailFrame:Show()
Then you can close that mailbox and it should work again.

Re: Rock5's Mail Mods

Posted: Thu Dec 06, 2012 2:46 am
by Rickster
rock5 wrote:If you leave the mailbox open then change character then it will have that problem. It's always been that way. Make sure you close the mailbox before relogging.
That could have been the problem. I am changing char, right after checking mail ...
Thanks!

Re: Rock5's Mail Mods

Posted: Thu Dec 06, 2012 3:26 am
by rock5
Just add a

Code: Select all

RoMScript("MailFrame:Hide()")
after you finish with the mail. I don't do it as part of the functions because you can do multiple mail functions without closing the mailbox. If I closed the mailbox at the end of the functions, they would have to open the mailbox for each function, which would waste time.

Re: Rock5's Mail Mods

Posted: Sat Dec 08, 2012 2:48 am
by minhtien86
how do i send to a char list? i want to send item to many chars . Anyone help?

Re: Rock5's Mail Mods

Posted: Sat Dec 08, 2012 3:01 am
by rock5
minhtien86 wrote:how do i send to a char list? i want to send item to many chars . Anyone help?
First you need to explain a bit more. Do you want to send x amount of items to each character or do you want to send certain items to one character and other items to other characters?

Re: Rock5's Mail Mods

Posted: Sat Dec 08, 2012 3:03 am
by minhtien86
i want to send x amount of items to each character , i want do this for make mana stone

Re: Rock5's Mail Mods

Posted: Sat Dec 08, 2012 3:24 am
by rock5
So something like

Code: Select all

chars = {"name1","name2","name3"}
for k,recipient in pairs(chars) do
    UMM_SendByNameOrId(recipient , "Random Fusion Stone", 9)
end
Of course it becomes more difficult if you have to buy and then send.