loadpaths

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

loadpaths

#1 Post by Supergala »

guys i have an xml for do lyliya event and i'd like when i finish this minigame try to do another minigames automatically used loadpaths function but i have an error in mm :

"you have to specify either a waypoint pathor a return path to use the function loadpaths"
i understand what happen but i don't understand why mm donì't work...this is a waypoint section:

Code: Select all

			mainroutine()
		else
			flyoff()
			
		end
	else
		flyoff()
		loadPaths(survivalR5)
	end
	
	
	flyoff()
	
	repeat
		yrest(100)
	until player:target_NPC(120993);
	sendMacro("ChoiceOption(1);");
	waitForLoadingScreen(30);
	repeat
		yrest(100)
	until player:target_NPC(120992) or  player:target_NPC(120993);
	if(movehammer)then
		movetoBag()
	loadPaths(survivalR5)
	end
</onload>
</waypoints>
survival r5 is another minigame near this...can you help me guys? ty
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: loadpaths

#2 Post by rock5 »

loadPaths(survivalR5) treats survival5 as a variable. As a variable it equals nil. loadPaths expects a string with the name of the file to be loaded, eg.

Code: Select all

loadPaths("survivalR5")
  • 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

#3 Post by Supergala »

this is a real lyliya.xml and survivalR5.xml but there are an error inside(check also mm error....i'd like to know how only do lyliya minigame and after go to next called "survivalR5" can you help pls?
i see the return path inside but i don't have any,i'm interested only do lyliya,do survial and stop ty
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: loadpaths

#4 Post by rock5 »

You forgot to say what the error is.
  • 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

#5 Post by Supergala »

if you check survival xml maybe you can find a section called return path but i don't have any xml with this name....idk if this is a prob ,if inside it's all ok i have an error in mm as a picture
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: loadpaths

#6 Post by lisa »

looking at the pic the issue is in survivalr5 and since I know that WP works fine I can only assume you have changed something incorrectly, like the charlist and such.

Maybe just download the WP again and try to again.
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

#7 Post by Supergala »

ok but if i only want marge the 2 waypoint lyliya e survival what do i must do?ty.i use loadpaths but don't works
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: loadpaths

#8 Post by lisa »

As I though the issue in the survivalr5 you posted is in the charlist, who would have thought.....'

you have

Code: Select all

		--		CharList = {
            {account=1 , chars= {1,3}},
			{account=2 , chars= {1}},
			{account=3 , chars= {1}},
			{account=4 , chars= {2}},
			{account=6 , chars= {1}},
		--		}
get rid of those --

So it looks like this.

Code: Select all

				CharList = {
            {account=1 , chars= {1,3}},
			{account=2 , chars= {1}},
			{account=3 , chars= {1}},
			{account=4 , chars= {2}},
			{account=6 , chars= {1}},
				}
because you have it set
When_Finished = "end"
then the table is never used so there is no need to change it in anyway.
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

#9 Post by Supergala »

now work but i don't understand why don'y switch account for repeat all mini:(,and i have another problem,when finish first mini player go to second npc but i must confirm for do this,how can i delete this function of confirm?ty lisa
User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: loadpaths

#10 Post by Bill D Cat »

The only time I have seen it pause for confirmation is when your backpack space is almost full. Some of the mimi games give quite a bit of loot, so you need to have enough room for all of it.

I think some of the file have an option where you can define the threshold at which it pauses, or a way to disable the check completely.
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#11 Post by Supergala »

ty ....now i need to log all account in sequence...i use this function but don't work
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: loadpaths

#12 Post by rock5 »

If you want to do lyliya and then survival and you want to go through lots of characters then you can't use the charlist in survival. You can either change character or load a different waypoint file, not both at the same time. You can use another file, though, called survivalnext.xml. The job of this file is just to change character and then load the first file in your sequence of files.

So this is what you so;
  • 1. Set lyliya to load survival which it sounds like you already done.
    2. Set survival to load survivalnext (by setting When_Finished to "survivalnext").
    3. Then, in survivalnext, set your character list and set When_Finished to "charlist" and set NextFileToLoad to "lyliya"
  • 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

#13 Post by Supergala »

in survival next i change only first section of charlist is it ok?ty rocco
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#14 Post by Supergala »

i have this error
noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: loadpaths

#15 Post by noobbotter »

The CharList section of survivalnext looks ok. However, it looks like line 27 is

Code: Select all

NextFileToLoad = "survivalr5" -- File to load after changing character.
I don't know if that is case sensitive and maybe it should be

Code: Select all

NextFileToLoad = "survivalR5" -- File to load after changing character.
However, your execution never got to that point. When it completed the Survival minigame it simply ended because in your survivalR5.xml you still have When_Finished = "end" on line 7. Change that to When_Finished = "survivalnext" and it should work for you.

Also, I see you have loadPaths("survivalnext.xml") on line 196. You should probably pull that out because the checkRelog() function on line 195 should take care of that once you fix the When_Finished variable. FYI, that particular part is only for if the character running this script already did survival for that day.
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#16 Post by Supergala »

there are 2 section in survivalnext with "nextfile load":

Code: Select all

		-- 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);
	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)

which do i must i chenge?ty
noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: loadpaths

#17 Post by noobbotter »

This is the only line there that you should need to change:

Code: Select all

NextFileToLoad = "lyliya" -- File to load after changing character.
As I mentioned in my previous post, your survivalnext looked right except you needed to capitalize the R in "survivalR5".
Supergala
Posts: 504
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: loadpaths

#18 Post by Supergala »

ok i change only this line in NextFileToLoad = "survivalR5" -- File to load after changing character. tomorrow i try ty
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: loadpaths

#19 Post by lisa »

capitalise isn't the issue as it can be lower case and still work.

This.
noobbotter wrote: However, your execution never got to that point. When it completed the Survival minigame it simply ended because in your survivalR5.xml you still have When_Finished = "end" on line 7. Change that to When_Finished = "survivalnext" and it should work for you.
Except you probably want.

Code: Select all

When_Finished         = "charlist"
The image you posted says that the WP file ended the script which is exactly what you have it set to do.
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

#20 Post by Supergala »

survival next is set as follow where i change only character list in the first section..is it right?ty lisa

Code: Select all

	--=== Rock5's survivalnext ===--
	--===     Version 1.2      ===--

	--=== 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}},
				}                                                                                  (-------------------------I CHANGE THIS ONLY WITH MY ACCOUNT LIST
--[[					{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}},                                  (--------------------------------------------NEED TO CHANGE THIS TOO?
		--			{account=7,chars={1,2,5}},
		--		}
	NextFileToLoad = "survivalR5" -- File to load after changing character.
	--====================--

	if When_Finished == "relog" then
		sendMacro("}LoginNextToon=true;a={")
		sendMacro("Logout();");
		waitForLoadingScreen();
		loadProfile()
		loadPaths(NextFileToLoad);
	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>
</waypoints>
Post Reply