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.
Post Reply
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#121 Post by rock5 » Mon Jan 17, 2011 7:38 am

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

hagenleu
Posts: 28
Joined: Sun Jan 02, 2011 11:20 am

Re: Rock5's Mail Mods

#122 Post by hagenleu » Mon Jan 17, 2011 8:44 am

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.
Attachments
mail2toons.xml
(663 Bytes) Downloaded 225 times

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

Re: Rock5's Mail Mods

#123 Post by rock5 » Mon Jan 17, 2011 6:29 pm

How about

Code: Select all

UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("questitem1"))
UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("questitem2"))
  • 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

hagenleu
Posts: 28
Joined: Sun Jan 02, 2011 11:20 am

Re: Rock5's Mail Mods

#124 Post by hagenleu » Wed Jan 19, 2011 11:22 am

Even better......wow :)

Tnx for your help!

jason404
Posts: 29
Joined: Fri Feb 19, 2010 10:11 am

Re: Rock5's Mail Mods

#125 Post by jason404 » Sat Jan 29, 2011 10:50 am

I've tried sending monster cards but nothing happens. Can you even send monster cards?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Mail Mods

#126 Post by lisa » Sat Jan 29, 2011 10:15 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

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

Re: Rock5's Mail Mods

#127 Post by rock5 » Sun Jan 30, 2011 3:03 am

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?
  • 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

jason404
Posts: 29
Joined: Fri Feb 19, 2010 10:11 am

Re: Rock5's Mail Mods

#128 Post by jason404 » Sun Jan 30, 2011 8:32 am

This is what im using:

Code: Select all

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

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

Re: Rock5's Mail Mods

#129 Post by rock5 » Sun Jan 30, 2011 10:09 pm

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"})
  • 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

jason404
Posts: 29
Joined: Fri Feb 19, 2010 10:11 am

Re: Rock5's Mail Mods

#130 Post by jason404 » Mon Jan 31, 2011 7:03 pm

Thank you. Problem Solved.

sdude13
Posts: 76
Joined: Thu Aug 19, 2010 9:36 am

Re: Rock5's Mail Mods

#131 Post by sdude13 » Mon Feb 21, 2011 11:29 am

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 ;)

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

Re: Rock5's Mail Mods

#132 Post by rock5 » Mon Feb 21, 2011 6:02 pm

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"})
  • 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

QnQuera
Posts: 2
Joined: Sat Mar 05, 2011 3:30 am

Re: Rock5's Mail Mods

#133 Post by QnQuera » Sat Mar 05, 2011 3:54 am

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

JackBlonder
Posts: 99
Joined: Sat Dec 18, 2010 6:55 am

Re: Rock5's Mail Mods

#134 Post by JackBlonder » Sat Mar 05, 2011 4:20 am

I just tried on a german client and I can confirm this.

MinMax
Posts: 46
Joined: Mon Dec 21, 2009 6:45 am

Re: Rock5's Mail Mods

#135 Post by MinMax » Mon Mar 07, 2011 1:54 am

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 ^^ )

QnQuera
Posts: 2
Joined: Sat Mar 05, 2011 3:30 am

Re: Rock5's Mail Mods

#136 Post by QnQuera » Mon Mar 07, 2011 6:25 am

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 :(

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Rock5's Mail Mods

#137 Post by gloover » Sun Mar 27, 2011 5:26 am

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!

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

Re: Rock5's Mail Mods

#138 Post by rock5 » Sun Mar 27, 2011 7:15 am

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

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Rock5's Mail Mods

#139 Post by gloover » Mon Mar 28, 2011 8:34 am

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?

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

Re: Rock5's Mail Mods

#140 Post by rock5 » Mon Mar 28, 2011 6:24 pm

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.
  • 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: Bing [Bot] and 2 guests