Rock5's Mail Mods

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#361 Post by rock5 » Tue Nov 20, 2012 3:31 am

It's not necessary for the userfunction to do that. Just do

Code: Select all

UMM_SendMoney("recipient", inventory.Money - 1000)
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Budzer
Posts: 99
Joined: Fri Sep 23, 2011 12:44 am

Re: Rock5's Mail Mods

#362 Post by Budzer » Tue Nov 20, 2012 3:33 am

OK thanks a lot ;) Find a way to not need it before, but now probably will get back to my old plan :P

delay84
Posts: 8
Joined: Fri Jul 20, 2012 12:34 pm

Re: Rock5's Mail Mods

#363 Post by delay84 » Tue Nov 20, 2012 10:39 am

Thank you very much. Works great now :-)

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Rock5's Mail Mods

#364 Post by Ego95 » Tue Nov 20, 2012 7:34 pm

Ohhps, yes...error messages
I totaly forgot them :D
Now UltimateMailMod works fine

Thanks :)

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Rock5's Mail Mods

#365 Post by Cindy » Tue Nov 27, 2012 2:13 am

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?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#366 Post by rock5 » Tue Nov 27, 2012 4:30 am

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()
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Alexxx
Posts: 2
Joined: Sat Dec 01, 2012 2:19 am

Re: Rock5's Mail Mods

#367 Post by Alexxx » Sat Dec 01, 2012 2:34 am

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#368 Post by rock5 » Sat Dec 01, 2012 3:12 am

Aren't they bound?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Alexxx
Posts: 2
Joined: Sat Dec 01, 2012 2:19 am

Re: Rock5's Mail Mods

#369 Post by Alexxx » Sat Dec 01, 2012 1:27 pm

They cannot be sold. They are not bound though. I am able to send them manually.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#370 Post by rock5 » Sun Dec 02, 2012 1:43 am

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
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Rock5's Mail Mods

#371 Post by Cindy » Mon Dec 03, 2012 8:55 pm

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...

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#372 Post by rock5 » Tue Dec 04, 2012 1:21 am

Maybe it's a language issue. What language do you play in?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

Re: Rock5's Mail Mods

#373 Post by Rickster » Wed Dec 05, 2012 6:56 pm

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#374 Post by rock5 » Thu Dec 06, 2012 2:28 am

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

Re: Rock5's Mail Mods

#375 Post by Rickster » Thu Dec 06, 2012 2:46 am

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!

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#376 Post by rock5 » Thu Dec 06, 2012 3:26 am

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

minhtien86
Posts: 31
Joined: Sat Mar 17, 2012 1:14 am

Re: Rock5's Mail Mods

#377 Post by minhtien86 » Sat Dec 08, 2012 2:48 am

how do i send to a char list? i want to send item to many chars . Anyone help?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#378 Post by rock5 » Sat Dec 08, 2012 3:01 am

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?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

minhtien86
Posts: 31
Joined: Sat Mar 17, 2012 1:14 am

Re: Rock5's Mail Mods

#379 Post by minhtien86 » Sat Dec 08, 2012 3:03 am

i want to send x amount of items to each character , i want do this for make mana stone

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#380 Post by rock5 » Sat Dec 08, 2012 3:24 am

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest