loadpaths
Re: loadpaths
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
Re: loadpaths
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?
and here do i must change anything also "NextFileToLoad = "lyliya" -- File to load after changing charac"? ty
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
Re: loadpaths
with this configuration i have the same error
Re: loadpaths
Everything between "--[[" and "]]" is a comment and every line that starts with "--" is a comment. So all of this is a comment.
So set your character list in the first part.
The user options are between
and
Don't edit anything after that.
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}},
-- }Code: Select all
CharList = {
{account=1,chars={1,3}},
{account=3,chars={1}},
}Code: Select all
--=== User Options ===--Code: Select all
--====================--You were already told how to fix that.Supergala wrote:with this configuration i have the same error
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
Re: loadpaths
this is survival xml already add survivalnext.xml:
survivalnext have 2 section where i must add lyliya one in useroption:
and one after:
is ok or i wrong?
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")
endsurvivalnext 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.
--====================--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?
Re: loadpaths
I made the imortant part bigger and in bold for you.rock5 wrote: The user options are betweenandCode: Select all
--=== User Options ===--Don't edit anything after that.Code: Select all
--====================--
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: loadpaths
ty but still don't work..any character relog
Re: loadpaths
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
Re: loadpaths
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?
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?
Re: loadpaths
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