loadpaths

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

Re: loadpaths

#21 Post by rock5 »

After you change character, if you want to start with lyliya again then you need to set NextFileToLoad="lyliya" in survivalnext otherwise it will skip 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
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#22 Post by Supergala »

ok i understand but anyone answer on my precisally question...i try to retry to ask:

do i must change character list in the first section or i must change also the other?

Code: Select all

	CharList = {
					{account=1,chars={1,3}},
					{account=3,chars={1}},
				}
--[[					{account=4,chars={2}},
					{account=5,chars={1}},
					{account=6,chars={1}},
		
		}]]
		-- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
		-- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?p=10350
		--		eg.
		--		CharList = {
		--			{account=4,chars={}},
		--			{account=8,chars={1}},
		--			{account=7,chars={1,2,5}},
		--		}
	NextFileToLoad = "lyliya" -- File to load after changing character.
	--====================--

	if When_Finished == "relog" then
		sendMacro("}LoginNextToon=true;a={")          
		sendMacro("Logout();");
		waitForLoadingScreen();
		loadProfile()
		loadPaths(NextFileToLoad);                            (---------------------change something here maybe?
	elseif When_Finished == "charlist" then
		SetCharList(CharList)
		LoginNextChar()
		loadProfile()
		loadPaths(NextFileToLoad); 
	elseif When_Finished == "end" then
			error("Ending script",2)
	else
		error("'When_Finished' option is invalid",0)
	end
</onLoad>


and here do i must change anything also "NextFileToLoad = "lyliya" -- File to load after changing charac"? ty
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#23 Post by Supergala »

with this configuration i have the same error
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: loadpaths

#24 Post by rock5 »

Everything between "--[[" and "]]" is a comment and every line that starts with "--" is a comment. So all of this is a comment.

Code: Select all

--[[               {account=4,chars={2}},
               {account=5,chars={1}},
               {account=6,chars={1}},
      
      }]]
      -- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
      -- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?p=10350
      --      eg.
      --      CharList = {
      --         {account=4,chars={}},
      --         {account=8,chars={1}},
      --         {account=7,chars={1,2,5}},
      --      }
So set your character list in the first part.

Code: Select all

   CharList = {
               {account=1,chars={1,3}},
               {account=3,chars={1}},
            }
The user options are between

Code: Select all

	--=== User Options ===--
and

Code: Select all

	--====================--
Don't edit anything after that.
Supergala wrote:with this configuration i have the same error
You were already told how to fix that.
rock5 wrote:2. Set survival to load survivalnext (by setting When_Finished to "survivalnext").
  • 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
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#25 Post by Supergala »

this is survival xml already add survivalnext.xml:

Code: Select all

	if RoMScript("GetNumSpeakOption()") > 0 then -- enter game
			sendMacro("ChoiceOption(1);");
			if not waitForLoadingScreen(30) then
				print("Failed to teleport into Survival")
				logentry = "Failed to teleport into Survival."
				checkRelog()
			end
		else
			print("This character already did Survival.")
			logentry = "Already did Survival."
			checkRelog()
	loadPaths("survivalnext.xml")
		end

survivalnext have 2 section where i must add lyliya one in useroption:

Code: Select all

	--=== User Options ===--
	When_Finished = "charlist"
		-- "end" to end script, "relog" to log next character, "charlist" to log next in 'charlist'.

	CharList = {
					{account=1,chars={1,3}},
					{account=3,chars={1}},
				}
--[[					{account=4,chars={2}},
					{account=5,chars={1}},
					{account=6,chars={1}},
		
		}]]
		-- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
		-- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?p=10350
		--		eg.
		--		CharList = {
		--			{account=4,chars={}},
		--			{account=8,chars={1}},
		--			{account=7,chars={1,2,5}},
		--		}
	NextFileToLoad = "lyliya" -- File to load after changing character.
	--====================--
and one after:

Code: Select all

if When_Finished == "relog" then
		sendMacro("}LoginNextToon=true;a={")
		sendMacro("Logout();");
		waitForLoadingScreen();
		loadProfile()
		loadPaths(NextFileToLoad);                        (--------------------HEREEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE?
	elseif When_Finished == "charlist" then
		SetCharList(CharList)
		LoginNextChar()
		loadProfile()
		loadPaths(NextFileToLoad);
	elseif When_Finished == "end" then
			error("Ending script",2)
	else
		error("'When_Finished' option is invalid",0)
	end
</onLoad>


is ok or i wrong?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: loadpaths

#26 Post by lisa »

rock5 wrote: The user options are between

Code: Select all

--=== User Options ===--
and

Code: Select all

 --====================--
Don't edit anything after that.
I made the imortant part bigger and in bold for you.
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
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#27 Post by Supergala »

ty but still don't work..any character relog
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: loadpaths

#28 Post by rock5 »

We usually try to help users to change their files instead of doing it for them because we want to help the users learn. But in your case I think it's impossible. It's already been 2 pages of posts trying to teach you how to just change some options and you still haven't got it. So here are the files done for you. You just need to check the character list in survivalnext. I used the one you posted previously.
Attachments
survivalR5onload.lua
(16.11 KiB) Downloaded 136 times
survivalnext.xml
(1.4 KiB) Downloaded 304 times
survivalR5.xml
(7.49 KiB) Downloaded 296 times
Lyliya.xml
(9.39 KiB) Downloaded 293 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
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#29 Post by Supergala »

thanks rocco but from what I see in your file there are many more differences than those that have been said in post.i'm sorry .
i try it but not work because each time when character start mm search character profile called as the same character name...probably there is a setting must be change for say to mm charge default profile ....healp?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: loadpaths

#30 Post by rock5 »

If you don't want to create a profile for each character then copy the profile default.xml and name it userdefault.xml. If a character doesn't have a profile then it will load userdefault.xml automatically.
  • 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
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#31 Post by Supergala »

i try ty
Post Reply