Rock5's Mail Mods
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Only post additional bot resources here. Please do not ask unrelated questions.
Re: Rock5's Mail Mods
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'.
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
Re: Rock5's Mail Mods
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.
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 247 times
Re: Rock5's Mail Mods
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
Re: Rock5's Mail Mods
Even better......wow
Tnx for your help!
Tnx for your help!
Re: Rock5's Mail Mods
I've tried sending monster cards but nothing happens. Can you even send monster cards?
Re: Rock5's Mail Mods
Yes monster cards can be mailed, they can also be put on AH.jason404 wrote:I've tried sending monster cards but nothing happens. Can you even send monster cards?
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Rock5's Mail Mods
Do you mean you weren't able to send using the mail userfunctions? What command did you use?jason404 wrote:I've tried sending monster cards but nothing happens. Can you even send monster cards?
- 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
Re: Rock5's Mail Mods
This is what im using:
Code: Select all
UMM_SendByNameOrId("Wootpoon",{"Card - Angren Mosto"})
Re: Rock5's Mail Mods
'-' is a special charcter when it comes to pattern matching. You can replace it with a '.' which means 'any character'.jason404 wrote:This is what im using:
Code: Select all
UMM_SendByNameOrId("Wootpoon",{"Card - Angren Mosto"})
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
Re: Rock5's Mail Mods
Thank you. Problem Solved.
Re: Rock5's Mail Mods
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
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
Send by partial pet name should work.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
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
Re: Rock5's Mail Mods
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
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
-
- Posts: 99
- Joined: Sat Dec 18, 2010 6:55 am
Re: Rock5's Mail Mods
I just tried on a german client and I can confirm this.
Re: Rock5's Mail Mods
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© like Gutenberg ^^ )
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© like Gutenberg ^^ )
Re: Rock5's Mail Mods
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
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
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:
I've also tried to close the mailbox-frame and open again but without any effects:
as I already told, there're no problems, when the mailbox contains no items, the script runs as follows:
That may some problem with UMM_TakeMail() function.
Does anyone know a solution?
Thx in advance!
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>
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>
Code: Select all
No mail to take
Sending money to Recipent
Sending items to Recipent
Items sent
Does anyone know a solution?
Thx in advance!
Re: Rock5's Mail Mods
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
4. You don't need to close and reopen the mailbox.
Hope that helps.
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
Re: Rock5's Mail Mods
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
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?
Code: Select all
function UMMInboxTOCButtonTemplate_OnLeave(this)
getglobal(this:GetName().."Hover"):Hide();
end
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
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
Who is online
Users browsing this forum: No registered users and 0 guests