The Macro key no longer needs to be set up manually!

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

The Macro key no longer needs to be set up manually!

#1 Post by rock5 »

I just thought I should give everyone the heads up, so you don't keep wasting time creating the ingame macro for your new characters.

As of revision 524 rombot now creates the ingame macro automatically. It also set up the action key. It is able to find previous macros so you can even move them around before starting your script and it will still use them. Also it will no longer accidentally over-write your other macros.

Please feel free to comment.
  • 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
swietlowka
Posts: 316
Joined: Wed Jun 16, 2010 8:16 am

Re: The Macro key no longer needs to be set up manually!

#2 Post by swietlowka »

omg, gr8 news!
shame it wasn't before i created 3 acc of 8 chars each ;P
Personalausweis
Posts: 73
Joined: Mon Aug 16, 2010 12:50 pm

Re: The Macro key no longer needs to be set up manually!

#3 Post by Personalausweis »

swietlowka wrote:omg, gr8 news!
shame it wasn't before i created 3 acc of 8 chars each ;P

/sign

me 8 accs -.-
User avatar
Giram
Posts: 191
Joined: Thu Aug 26, 2010 3:34 pm
Location: Finland

Re: The Macro key no longer needs to be set up manually!

#4 Post by Giram »

I have been using fastlogin to switch character after completing dailies. I tried how the bot makes the macro and left it running. When i came back to check it it was stuck on second character and trying to press the 5(?) key where the rombot places that macro. Other chars have macro placed on place 0.

Would it be better if bot would place macro to default slot that i think is 0 or could check if it's been placed to other slot?

Can bot it see slot from the profile for macro and place macro there?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: The Macro key no longer needs to be set up manually!

#5 Post by rock5 »

Giram wrote:I have been using fastlogin to switch character after completing dailies. I tried how the bot makes the macro and left it running. When i came back to check it it was stuck on second character and trying to press the 5(?) key where the rombot places that macro. Other chars have macro placed on place 0.

Would it be better if bot would place macro to default slot that i think is 0 or could check if it's been placed to other slot?

Can bot it see slot from the profile for macro and place macro there?
If it's a new character it should place it at the '0' position as specified in the profile. If there is already a action key pointing to the macro, it should use that. If position '0' is being used by something else then it will use the first free action key.

I guess the problem could be with the reloging. The macros are set when the bot is first started after all. Try running 'setupMacros()' after you load the new character. See if that works. Although I would have thought it would have been rerun anyway when you ran 'settings.loadProfile()'. Is 'settings.loadProfile()' part of your relog sequence?
  • 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
Giram
Posts: 191
Joined: Thu Aug 26, 2010 3:34 pm
Location: Finland

Re: The Macro key no longer needs to be set up manually!

#6 Post by Giram »

rock5 wrote:I guess the problem could be with the reloging. The macros are set when the bot is first started after all. Try running 'setupMacros()' after you load the new character. See if that works. Although I would have thought it would have been rerun anyway when you ran 'settings.loadProfile()'. Is 'settings.loadProfile()' part of your relog sequence?
No. It's not part of my sequence. I have it made like this:

Code: Select all

local dqCount, dqPerDay = RoMScript("Daily_count()"); 
		if dqCount == 10 then
			sendMacro("}LoginNextToon=true;a={")
			sendMacro("Logout();"); yrest(90000) -- wait 3m for next character to load
			printf("CharacterName = "..player.Name.."\n");
		else
			printf("CharacterName = "..player.Name.."\n");
		end
The print is just to point out what char is it running cause when it goes through all chars its more likely to crash and i don't need to go through all chars to see where it was.

All chars have similar settings and are just doing elf daily. That has been working for me.

So it could be that i just need to reinitialize the new character after it switches to another char if there is mixed settings on some chars.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: The Macro key no longer needs to be set up manually!

#7 Post by rock5 »

If all you are doing is dailies the try something like this

Code: Select all

local dqCount, dqPerDay = RoMScript("Daily_count()"); 
		if dqCount == 10 then
			sendMacro("}LoginNextToon=true;a={")
			sendMacro("Logout();");
			waitForLoadingScreen() -- wait Till loaded
			setupMacros() -- rechecks macros
		end
		printf("CharacterName = "..player.Name.."\n");
As well as the setupMacros function I've also added my waitForLoadingScreen function. Also, seeing as you print the name in either case, I put it outside the 'if' statement.
  • 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
Giram
Posts: 191
Joined: Thu Aug 26, 2010 3:34 pm
Location: Finland

Re: The Macro key no longer needs to be set up manually!

#8 Post by Giram »

Thank you Rock5.

I tried your code and it works now. First char had macro on place 5 and next have on 0. It reloads character and if much faster now cause it won't need to wait that fixed time after changing character.
Post Reply