Page 1 of 1

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

Posted: Tue Nov 23, 2010 12:55 am
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.

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

Posted: Tue Nov 23, 2010 2:58 am
by swietlowka
omg, gr8 news!
shame it wasn't before i created 3 acc of 8 chars each ;P

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

Posted: Wed Nov 24, 2010 6:26 am
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 -.-

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

Posted: Wed Nov 24, 2010 3:28 pm
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?

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

Posted: Wed Nov 24, 2010 8:07 pm
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?

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

Posted: Wed Nov 24, 2010 8:18 pm
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.

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

Posted: Wed Nov 24, 2010 8:55 pm
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.

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

Posted: Thu Nov 25, 2010 9:14 am
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.