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
emmanuel04
Posts: 30
Joined: Wed Jun 01, 2011 6:07 am

Re: Rock5's Mail Mods

#301 Post by emmanuel04 » Thu Jan 26, 2012 12:32 pm

I use xbar and a Macro

Code: Select all

/Script OpenMail();
thats also opens it

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

Re: Rock5's Mail Mods

#302 Post by lisa » Thu Jan 26, 2012 6:59 pm

with bot use

Code: Select all

RoMScript("OpenMail()")
and then try using Rock's mail function.
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

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

Re: Rock5's Mail Mods

#303 Post by Rickster » Thu Feb 02, 2012 10:48 pm

i have a script, which checks for new mail, then does some farming stuff, dealing with quests etc, then returns to the mailbox to check for new mails again. after that it is switching char and doing all over again.

in some rare cases, sometimes at the first mailboxcheck, other times at the second check, sometimes never and othertime at every mailboxcheck i get this error message:

Code: Select all

- ...ts/rom/userfunctions/addon_Rock5s_Mail_Functions.lua:66: The UMM
l interface needs to be open first before using the UMM_TakeMail() function.
the bot exits at this point.

i am using this to open the mailbox

Code: Select all

		player:target_Object(112778); yrest(3000); -- mailbox
		sendMacro("ChoiceOption(1);"); yrest(1000);
		UMM_TakeMail ();
sometimes the mail window opens, other times it does not.

mail mod version is 1.72
any ideas, whats going wrong there?

thanx
ric

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

Re: Rock5's Mail Mods

#304 Post by rock5 » Fri Feb 03, 2012 2:08 am

Where does it fail? Does it say that it found the target and will try and open it? Does it open the dialog?

You could try;

Code: Select all

repeat
     player:target_Object(112778); yrest(1000); -- mailbox
until RoMScript("SpeakFrame:IsVisible()")
repeat
     sendMacro("ChoiceOption(1);"); yrest(1000);
until RoMScript("MailFrame:IsVisible()")
UMM_TakeMail ();
  • 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

#305 Post by Rickster » Fri Feb 03, 2012 5:48 am

It seems, that the mailbox does not get targeted, because the speak frame does not open.

i did not know how to check if some frames/dialogues are visible.

i will give your code a try and report, whats happening :)

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Rock5's Mail Mods

#306 Post by Germangold » Fri Feb 03, 2012 9:08 am

you should Set the corresponding waypoint where to aim the Mailbox exactly where it located

i got hung up some times at elven irland > there is a bench right next to the mailbox and my mailing failed and mm quit with a similar error

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

Re: Rock5's Mail Mods

#307 Post by Rickster » Fri Feb 03, 2012 10:29 pm

running rocks code now works for about one day without any issues when taking mail. it has never done this before :)

i had this probs at all mailboxes, not a special one, not at special locations.

by now everything is running fine with it :)

User avatar
nerf
Posts: 88
Joined: Thu Jan 27, 2011 10:44 am

Re: Rock5's Mail Mods

#308 Post by nerf » Sat Feb 25, 2012 12:45 am

my micromacro breaks after using this addon

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

Re: Rock5's Mail Mods

#309 Post by rock5 » Sat Feb 25, 2012 6:44 am

nerf wrote:my micromacro breaks after using this addon
Really? Interesting.
  • 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

#310 Post by Rickster » Sat Feb 25, 2012 11:04 am

nerf wrote:my micromacro breaks after using this addon
maybe you want to tell us something about the errors you get. that would make it much easier to give some help ... by now it is just ... "interesting" ;)

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

Re: Rock5's Mail Mods

#311 Post by sdude13 » Tue Feb 28, 2012 11:25 am

the functions do work nice, however, if a mailbox is full it keeps on wait and retry.
I have some farming bots that send tq to chars.
In the old version when the postbox of a recieving char was full it did send the rest to the next... this does not work anymore
because the addon thinks it's the "to much sent"-time problem.

example mail send function:

Code: Select all

UMM_SendAdvanced("XXXa",nil , 1, 60, 2000)
UMM_SendAdvanced("XXXb",nil , 1, 60, 2000)

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

Re: Rock5's Mail Mods

#312 Post by rock5 » Tue Feb 28, 2012 12:39 pm

That's not a problem I've ever had. That's why I didn't factor it in. The question is, how do you tell one from the other? How do you tell if it failed to send because of the "to much sent" problem or the mailbox is full?
  • 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
grande
Posts: 261
Joined: Tue Jun 28, 2011 4:46 pm

Re: Rock5's Mail Mods

#313 Post by grande » Sun Mar 25, 2012 12:43 pm

I figured this would be the best place to put this since it mostly deals with mail and uses r5's UMM functions. Please... please... please.. if this is posted somewhere else please let me know. I did some searches and the closest thing I could find didn't really work for what I wanted: send specific items to the next character on the account. So, that's basically what this WP does. I loosely gained some insight from other posts but again... none of them did what I needed. Hope this helps someone:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>

   --== User Option ==--
      startGMDetect()

	CharList = {
   		{account=11 , chars= {}},}

--   __WPL:setWaypointIndex(1);
</onLoad>

	<!-- #  1 --><waypoint x="xxxx" z="xxxx" y="xxx">	</waypoint>
	<!-- #  2 --><waypoint x="xxxx" z="xxxx" y="xxx">	</waypoint>
	<!-- #  3 --><waypoint x="xxxx" z="xxxx" y="xxx">	
	RoMScript("EquipItem(4);");   --this is where you unequip specific items
	yrest(800);
	RoMScript("EquipItem(5);");
	yrest(800);
	RoMScript("EquipItem(16);");
	yrest(800);
	RoMScript("EquipItem(17);");
	yrest(800);
	RoMScript("EquipItem(11);");
	yrest(800);
</waypoint>
	<!-- #  4 --><waypoint x="-7136" z="-3948" y="138">
			nameTable = {"YourToon1","YourToon2","YourToon3","YourToon4","YourToon5","YourToon6","YourToon7","YourToon8",}	
		repeat
		     player:target_Object("Mailbox"); yrest(1000); -- mailbox
		until RoMScript("SpeakFrame:IsVisible()")
		repeat
		     sendMacro("ChoiceOption(1);"); yrest(1000);
			until RoMScript("MailFrame:IsVisible()")

		        if player.Name == "YourToon1" then player.free_counter1 = player.free_counter1 + 2; 
			elseif player.Name == "YourToon2" then player.free_counter1 = player.free_counter1 + 3; 
			elseif player.Name == "YourToon3" then player.free_counter1 = player.free_counter1 + 4; 
			elseif player.Name == "YourToon4" then player.free_counter1 = player.free_counter1 + 5; 
			elseif player.Name == "YourToon5" then player.free_counter1 = player.free_counter1 + 6; 
			elseif player.Name == "YourToon6" then player.free_counter1 = player.free_counter1 + 7; 
			elseif player.Name == "YourToon7" then player.free_counter1 = player.free_counter1 + 8; 
			elseif player.Name == "YourToon8" then player.free_counter1 = player.free_counter1 + 1; end
			UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("Name of Your Item goes here"));
			yrest(300);	
			UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("Name of Your Item goes here"))
			yrest(300);
			UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("Name of Your Item goes here"))	
			yrest(300);
			UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("Name of Your Item goes here"))
			yrest(300);
			UMM_SendInventoryItem(nameTable[player.free_counter1],inventory:findItem("Name of Your Item goes here"))
			yrest(300);
			RoMScript("UMMFrame:Hide()");
			yrest(300);
</waypoint>
	<!-- #  5 --><waypoint x="-7136" z="-3948" y="138">
         local dqCount, dqPerDay = RoMScript("Daily_count()");
     if dqCount == 10 then
		SetCharList(CharList)
		yrest(500);
		RoMScript("}fastLoginRegSel=math.random(2) a={");
		yrest(500);
                LoginNextChar()
		yrest(500);
		loadProfile("Default")
		yrest(500);
                loadPaths("getmailANDreturntoGrind")
		yrest(500);
		end
</waypoint>
</waypoints>

Andy
Posts: 7
Joined: Mon May 21, 2012 3:19 am

Re: Rock5's Mail Mods

#314 Post by Andy » Mon May 28, 2012 1:13 pm

Really useful, but why is it waiting before sending? Is it really necessary? (It takes so much time)

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

Re: Rock5's Mail Mods

#315 Post by rock5 » Mon May 28, 2012 1:22 pm

I've been meaning to fix that. The reason it does it is because if you send more than 60 mails it starts to fail because there is a limit. It only starts waiting if it fails to send. If you restart the client then you can start sending again. I've been thinking of just making it relog instead of waiting but I just haven't got around to it.

I've been pretty busy on other projects but I'll look into it 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

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

Re: Rock5's Mail Mods

#316 Post by sdude13 » Tue Jun 12, 2012 10:32 am

just changing channel will reset the timer.. nicer than a full relog.

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

Re: Rock5's Mail Mods

#317 Post by rock5 » Tue Jun 12, 2012 3:50 pm

sdude13 wrote:just changing channel will reset the timer.. nicer than a full relog.
Ooh, that would be interresting. But then again, it's not a good enough solution. What happens in those locations where changing channel does nothing? Or how about those servers that only have 1 channel?
  • 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

dx876234
Posts: 188
Joined: Sat Jul 24, 2010 6:13 am

Re: Rock5's Mail Mods

#318 Post by dx876234 » Mon Jun 18, 2012 4:15 pm

Nice feature that it handles the mail sending issue but suddenly my distribution bot uses way to much time - is it possible to ask for an argument or global flag to turn it off and just return an error code or ex the number of mails sent? Well, just to turn it off would do wonders :)

I built a "relog character" around the mail functionality, takes some tens of seconds instead of a constant timeout of 300s per mail, kinda significant when sending 2k mails

regards
DX

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

Re: Rock5's Mail Mods

#319 Post by rock5 » Tue Jun 19, 2012 1:17 am

Yeah I've been meaning to fix it. Reloging in with the same character will allow it to continue sending. I've been pretty busy though. At the moment I'm trying to add code that finds the best place to cast clicktocast skills to hit the most mobs.

Actually this should be easy to fix. Where it pauses just make it relog instead. So maybe I'll fix this now. Hm... it would have to close then open the mailbox again. The UMM functions have never had to open the mailbox before. That could be a problem. I could have it just remember the id of the currently targeted object, hopefully it will be the mailbox, and use it to open the mailbox again after reloging. But how about those users who use convenient mailboxes?

This is probably why I never tackled this before. I'll do some thinking on 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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#320 Post by rock5 » Tue Jun 19, 2012 3:17 am

Well I was thinking that it could check if your current target could be a mailbox. If so then it relogs and tries to open it again, otherwise it just returns false and fails to send if the user is using a convenient mailbox but then I realised that some mailboxes require you to select an option from a dialog before opening. It's starting to get a bit complex.

The easiest solution is to just have the sending fail and allow the user to handle it but that, I think, would require too much programming know-how on the part of the user, especially when trying to send a set number of items and being interupted part way through.

Maybe it is ok to assume, if you have to select an option from a mailbox dialog, it will always be the first? There is the small risk the the object you are targeting is not a mailbox but instead some other npc and you just selected an unintended option but I think the risk is small. You would just have to be careful not to use a convenient mailbox just after talking to an npc.

Users of convenient mailboxes will need to use a bit more code to deal with failed sending but in the end most users use an actual mailbox and that is what these functions were intended for.
  • 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 0 guests