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

#641 Post by rock5 » Sat Aug 16, 2014 3:44 am

Ok didn't take much work.
addon_Rock5s_Mail_Functions.lua
Version 1.85 b1 - Better support for problem mailboxes.
(28.24 KiB) Downloaded 167 times
Please test it and let me know how it goes. If it still doesn't work please use rom/getid in MM (or doubleclick Get_Object_Id.bat file) to get the Id and Name of the mail boxes and post them here.
  • 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

#642 Post by Rickster » Sat Aug 16, 2014 7:30 am

[edit] oops, did not see your message before posting. I will test your version asap! I already worked out the IDs using a game addon to show the IDs when hovering objects with the mouse.

Hi Rock,

yes, they do not have a floating icon on top of them.

Maybe this helps and as far as I know:
Shown IDs for the mailboxes are: 110694, 110538,110793, 113136, 117407, 118688, 119274, 119538, 119944, 121485, 122097, 123006
All this IDs return the same name with GetIdName(), in the german client their names are "Postfach".
I hardly remember, but I think the Logar mailbox name is "Briefkasten".

At the moment I target the boxes by their names before using a mailfunction, just using one of the above IDs:

Code: Select all

player:target_Object(GetIdName(110694))
Ric

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

Re: Rock5's Mail Mods

#643 Post by Rickster » Sat Aug 16, 2014 12:50 pm

rock5 wrote:Ok didn't take much work. Please test it and let me know how it goes.
Works good. It opens the mailboxes in Hortek.

Thanks!

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#644 Post by Desmond » Sat Aug 16, 2014 5:16 pm

Does not send manastones why just goes to another character even though the code does not have a code transition

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

Re: Rock5's Mail Mods

#645 Post by Rickster » Sat Aug 16, 2014 5:30 pm

Sorry, I don´t understand what you mean.

Ric

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

Re: Rock5's Mail Mods

#646 Post by Rickster » Sat Aug 16, 2014 7:47 pm

Here are the next mailboxes that do not open ... sorry for that ;)

Its one in Dalanis I tried and this one is named "Briefkasten" in the german client.
IDs are: 112112, 112113, 112778, 114779, 116936, 118480, 118670

Greetz
Ric

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

Re: Rock5's Mail Mods

#647 Post by rock5 » Sun Aug 17, 2014 2:21 am

Desmond wrote:Does not send manastones why just goes to another character even though the code does not have a code transition
The mail functions sometimes reloads the same character or restarts the client to fix some problems, such as when you have sent the maximum number of mails. It does not change character.

How are you sending the mana stones? What command are you using? What language do you bot with?
Rickster wrote:Its one in Dalanis I tried and this one is named "Briefkasten" in the german client.
IDs are: 112112, 112113, 112778, 114779, 116936, 118480, 118670
That doesn't make sense because all the mailboxes in Dalanis have the floating mail icons above them. Which mailbox is it? Do you see the mail icon above it?
  • 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
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#648 Post by Desmond » Sun Aug 17, 2014 5:03 am

<!-- # 79 --><waypoint x="4573" z="-2179" y="103">
player:target_Object("Почтовый ящик");
player:update()
UMM_TakeMail ()
RoMScript("UMMFrame:Hide()")
Fusion_MakeMaxManaStones (10)
UMM_SendByNameOrId("Emilen","Purified Fusion Stone",10)
RoMScript("UMMFrame:Hide()")

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

Re: Rock5's Mail Mods

#649 Post by rock5 » Sun Aug 17, 2014 5:29 am

That's confusing. Are you playing in Russian or English?

If you are playing in Russian then it should be maybe

Code: Select all

UMM_SendByNameOrId("Emilen","Очищенный камень соединения",10)
And why are you sending Purified Fusion Stones? Did you mean to send the Mana Stones you just created? To send the Mana Stones you just created you could use

Code: Select all

UMM_SendByNameOrId("Emilen","Камень маны ур",10)
  • 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
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#650 Post by Desmond » Sun Aug 17, 2014 6:36 am

rock5 wrote:That's confusing. Are you playing in Russian or English?

If you are playing in Russian then it should be maybe

Code: Select all

UMM_SendByNameOrId("Emilen","Очищенный камень соединения",10)
And why are you sending Purified Fusion Stones? Did you mean to send the Mana Stones you just created? To send the Mana Stones you just created you could use

Code: Select all

UMM_SendByNameOrId("Emilen","Камень маны ур",10)
Yes, I used pure Russian client right now try

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#651 Post by Desmond » Sun Aug 17, 2014 6:58 am

Here error
Attachments
Here error
Here error

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#652 Post by Desmond » Sun Aug 17, 2014 6:59 am

all of the code
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="31965" z="3284" y="21"> </waypoint>
<!-- # 2 --><waypoint x="31955" z="3316" y="19"> </waypoint>
<!-- # 3 --><waypoint x="31924" z="3411" y="2"> </waypoint>
<!-- # 4 --><waypoint x="31897" z="3495" y="0"> </waypoint>
<!-- # 5 --><waypoint x="31839" z="3551" y="-11"> </waypoint>
<!-- # 6 --><waypoint x="31783" z="3603" y="-16">
player:target_Object("Почтовый ящик Острова Эльфов");
player:update()
UMM_TakeMail ()
inventory:useItem(203276);
</waypoint>
<!-- # 7 --><waypoint x="31729" z="3600" y="-16"> </waypoint>
<!-- # 8 --><waypoint x="31653" z="3595" y="-15"> </waypoint>
<!-- # 9 --><waypoint x="31502" z="3573" y="-8"> </waypoint>
<!-- # 10 --><waypoint x="31447" z="3525" y="1"> </waypoint>
<!-- # 11 --><waypoint x="31463" z="3452" y="23"> </waypoint>
<!-- # 12 --><waypoint x="31549" z="3336" y="43"> </waypoint>
<!-- # 13 --><waypoint x="31629" z="3271" y="43"> </waypoint>
<!-- # 14 --><waypoint x="31771" z="3183" y="43"> </waypoint>
<!-- # 15 --><waypoint x="31767" z="3104" y="45"> </waypoint>
<!-- # 16 --><waypoint x="31717" z="2970" y="45"> </waypoint>
<!-- # 17 --><waypoint x="31670" z="2844" y="45"> </waypoint>
<!-- # 18 --><waypoint x="31586" z="2668" y="33"> </waypoint>
<!-- # 19 --><waypoint x="31487" z="2585" y="36"> </waypoint>
<!-- # 20 --><waypoint x="31313" z="2447" y="50"> </waypoint>
<!-- # 21 --><waypoint x="31097" z="2331" y="104"> </waypoint>
<!-- # 22 --><waypoint x="30829" z="2275" y="107"> </waypoint>
<!-- # 23 --><waypoint x="30618" z="2214" y="91"> </waypoint>
<!-- # 24 --><waypoint x="30475" z="2173" y="60"> </waypoint>
<!-- # 25 --><waypoint x="30297" z="2237" y="45"> </waypoint>
<!-- # 26 --><waypoint x="30149" z="2335" y="38"> </waypoint>
<!-- # 27 --><waypoint x="29946" z="2534" y="23"> </waypoint>
<!-- # 28 --><waypoint x="29711" z="2798" y="-8"> </waypoint>
<!-- # 29 --><waypoint x="29628" z="2927" y="-13"> </waypoint>
<!-- # 30 --><waypoint x="29560" z="3112" y="-17"> </waypoint>
<!-- # 31 --><waypoint x="29488" z="3328" y="-4"> </waypoint>
<!-- # 32 --><waypoint x="29444" z="3462" y="8"> </waypoint>
<!-- # 33 --><waypoint x="29383" z="3649" y="14"> </waypoint>
<!-- # 34 --><waypoint x="29317" z="3850" y="12"> </waypoint>
<!-- # 35 --><waypoint x="29271" z="3972" y="29"> </waypoint>
<!-- # 36 --><waypoint x="29223" z="4089" y="37"> </waypoint>
<!-- # 37 --><waypoint x="29198" z="4152" y="26"> </waypoint>
<!-- # 38 --><waypoint x="29087" z="4366" y="24"> </waypoint>
<!-- # 39 --><waypoint x="28943" z="4521" y="22"> </waypoint>
<!-- # 40 --><waypoint x="28785" z="4638" y="11"> </waypoint>
<!-- # 41 --><waypoint x="28645" z="4698" y="36"> </waypoint>
<!-- # 42 --><waypoint x="28447" z="4767" y="14"> </waypoint>
<!-- # 43 --><waypoint x="28281" z="4662" y="18"> </waypoint>
<!-- # 44 --><waypoint x="28096" z="4508" y="51"> </waypoint>
<!-- # 45 --><waypoint x="27948" z="4405" y="75"> </waypoint>
<!-- # 46 --><waypoint x="27951" z="4310" y="100"> </waypoint>
<!-- # 47 --><waypoint x="28014" z="4196" y="139"> </waypoint>
<!-- # 48 --><waypoint x="28195" z="4073" y="152"> </waypoint>
<!-- # 49 --><waypoint x="28343" z="3916" y="210"> </waypoint>
<!-- # 50 --><waypoint x="28427" z="3720" y="256"> </waypoint>
<!-- # 51 --><waypoint x="28378" z="3534" y="303"> </waypoint>
<!-- # 52 --><waypoint x="28248" z="3477" y="335"> </waypoint>
<!-- # 53 --><waypoint x="28175" z="3441" y="335"> </waypoint>
<!-- # 54 --><waypoint x="28075" z="3433" y="333"> </waypoint>
<!-- # 55 --><waypoint x="27968" z="3427" y="333"> </waypoint>
<!-- # 56 --><waypoint x="27910" z="3417" y="333">
player:target_NPC("Сидкло");
sendMacro("ChoiceOption(1);");
waitForLoadingScreen();
</waypoint>
<!-- # 57 --><waypoint x="4458" z="-3584" y="81"> </waypoint>
<!-- # 58 --><waypoint x="4622" z="-3543" y="49"> </waypoint>
<!-- # 59 --><waypoint x="4848" z="-3556" y="49"> </waypoint>
<!-- # 60 --><waypoint x="4948" z="-3621" y="49"> </waypoint>
<!-- # 61 --><waypoint x="5061" z="-3715" y="49"> </waypoint>
<!-- # 62 --><waypoint x="5195" z="-3819" y="60"> </waypoint>
<!-- # 63 --><waypoint x="5269" z="-3896" y="60"> </waypoint>
<!-- # 64 --><waypoint x="5295" z="-3937" y="60"> </waypoint>
<!-- # 65 --><waypoint x="5251" z="-3990" y="60"> </waypoint>
<!-- # 66 --><waypoint x="5232" z="-4021" y="60"> </waypoint>
<!-- # 67 --><waypoint x="5275" z="-4071" y="65"> </waypoint>
<!-- # 68 --><waypoint x="5381" z="-4187" y="66"> </waypoint>
<!-- # 69 --><waypoint x="5477" z="-4300" y="61">
player:target_NPC("Леман");
sendMacro("ChoiceOption(1);");
sendMacro("ChoiceOption(1);");
sendMacro("ChoiceOption(1);");
sendMacro("ChoiceOption(1);");
</waypoint>
<!-- # 70 --><waypoint x="5524" z="-4376" y="65"> </waypoint>
<!-- # 71 --><waypoint x="5455" z="-4272" y="61"> </waypoint>
<!-- # 72 --><waypoint x="5393" z="-4201" y="65"> </waypoint>
<!-- # 73 --><waypoint x="5267" z="-4056" y="66"> </waypoint>
<!-- # 74 --><waypoint x="5228" z="-4006" y="60"> </waypoint>
<!-- # 75 --><waypoint x="5295" z="-3949" y="60"> </waypoint>
<!-- # 76 --><waypoint x="5283" z="-3901" y="60">
player:target_NPC("Лив");
sendMacro("ChoiceOption(2);");
waitForLoadingScreen();
</waypoint>
<!-- # 77 --><waypoint x="4660" z="-1977" y="104"> </waypoint>
<!-- # 78 --><waypoint x="4595" z="-2118" y="103"> </waypoint>
<!-- # 79 --><waypoint x="4573" z="-2179" y="103">
player:target_Object("Почтовый ящик");
player:update()
UMM_TakeMail ()
RoMScript("UMMFrame:Hide()")
Fusion_MakeMaxManaStones (10)
UMM_SendByNameOrId("Kllapank","Камень маны ур. 5",10)
RoMScript("UMMFrame:Hide()")
oadPaths(__WPL.FileName)
</waypoint>
</waypoints>

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

Re: Rock5's Mail Mods

#653 Post by rock5 » Sun Aug 17, 2014 9:22 am

Hm... I don't know. Try using the Id of "Камень маны ур. 5" instead of the name. I think it's 202844.

Code: Select all

UMM_SendByNameOrId("Kllapank",202844,10)
  • 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
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#654 Post by Desmond » Sun Aug 17, 2014 11:30 am

Rock5 thank you very much it works

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

Re: Rock5's Mail Mods

#655 Post by Rickster » Sun Aug 17, 2014 3:52 pm

rock5 wrote:
Rickster wrote:Its one in Dalanis I tried and this one is named "Briefkasten" in the german client.
IDs are: 112112, 112113, 112778, 114779, 116936, 118480, 118670
That doesn't make sense because all the mailboxes in Dalanis have the floating mail icons above them. Which mailbox is it? Do you see the mail icon above it?
Its the one in Dalanis Center, near the housmaid.
The error is reproduceable. A relog or a fresh startet client makes no difference, nor calling an UMM_ function from a waypoint or the commandline. The mailbox in Heffner, the one in Hortek near the housemaid and Varanas near auctionhouse also opens, but I did not test other ones.

Example:

Code: Select all

Command> UMM_DeleteEmptyMail()
Was unable to open mailbox. No mailbox, rented mailbox or convenient mailbox found
Command> UMM_TakeMail()
Was unable to open mailbox. No mailbox, rented mailbox or convenient mailbox found
Command>
Ric

[edit]
There is another mailbox in Hortek, its near the transport portal, it has no ID and no name and can not be opend by any UMM_ function AND it can not be targeted, because of a missing ID or name :o

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

Re: Rock5's Mail Mods

#656 Post by rock5 » Mon Aug 18, 2014 3:31 am

Rickster wrote:Its the one in Dalanis Center, near the housmaid.
The error is reproduceable.
It works fine for me.

Code: Select all

Command> UMM_DeleteEmptyMail()
We try to find NPC 114779:
We successfully target NPC Mailbox and try to open the dialog window.
Command> UMM_TakeMail()
No mail to take.
Try using rom/getid and see what Id and Name it comes up with.
Rickster wrote:[edit]
There is another mailbox in Hortek, its near the transport portal, it has no ID and no name and can not be opend
If it truly has no name then the changes I made to do name matches wont work. I'll have to revert to the way it was and keep adding exceptions. Again, please use rom/getid and see what Id it comes up with and if it has a name. I can't check it myself because I haven't been to the new continent and probably never will. :(
  • 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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#657 Post by rock5 » Mon Aug 18, 2014 7:48 am

Ok, I've been able to test the no name mailbox at hortek. The version of the mail functions I'm using now can handle it just fine as long as it's added to the exceptions as the id (123117) and not the name.

All we have left now is to figure out the problem you are having with the Dalanis box.

Here is a version that should work with the Hortek mailbox. It's basically the same as b1 but with the Hortek mailbox added.
Attachments
addon_Rock5s_Mail_Functions.lua
Version 1.85 b2
(28.49 KiB) Downloaded 146 times
  • 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

#658 Post by Rickster » Mon Aug 25, 2014 2:29 pm

Sorry for the late feedback. I can not reproduce the not working Dalanis Mailbox anymore, it works fine now!

Thanx and Greetz
Ric

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

Re: Rock5's Mail Mods

#659 Post by rock5 » Mon Aug 25, 2014 10:22 pm

Good. I'll update the first post soon.
  • 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

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Rock5's Mail Mods

#660 Post by noobbotter » Thu Aug 28, 2014 11:10 pm

I was running pretty much ok, but tried updating to the latest version of your mailmod functions, and now my script which was working good does this:

Moving to waypoint #1, (31766, 3606)
done 0 of 10 dailies.
We try to find NPC 112778:
We successfully target NPC Mailbox and try to open the dialog window.
No mail to take.
The game client did not crash.
2014-08-29 00:04:48 - S:\Program Files\micromacro\scripts\rom\/login.lua:75: [st
ring "..."]:41: attempt to call global 'UMM_openMailbox' (a nil value)

The part of code where that is occurring is right in this area:

Code: Select all

function Clearmail()
		UMM_openMailbox()
		yrest(1000);
		RoMScript("UMMMailManager:MassTagMails('Empty')")
		yrest(1000)
		RoMScript("UMMFrameTab1Tools:ButtonClick('Delete');")
		yrest(5000)
	end
that part of code I would run after getting mail just to try to ensure I delete empty mails and then close the mailbox window. Is there a new function in place of UMM_openMailbox() ?

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests