Re: loadpaths
Posted: Fri Feb 21, 2014 1:23 am
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.
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>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").
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")
endCode: 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>
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
--====================--