Page 1 of 1

Run WaypointFile2 after WaypointFile1

Posted: Sun Apr 07, 2013 12:06 pm
by Edamh
I want to run chars through Andor Training Ground AND Course of Terror. Currently, I have two separate waypoint files that I call independently. I'd like to chain/link the two waypoint files so that after running all the selected chars through WP1, WP2 is then loaded and again all chars are run through WP2. Is that possible?

I currently have "When_Finished" to "charlist" in WP1 so that all the selected chars are iterated through WP1. What would I set in the "When_Finished" variable so that when the last character in the charlist in WP1 is finished, WP2 is then loaded?

Or should I just have one large WP that combines all the waypoints from both WP files?

Thanks.

Re: Run WaypointFile2 after WaypointFile1

Posted: Sun Apr 07, 2013 1:17 pm
by rock5
I've though about adding that functionality but opted not to, it adds complexity that is not necessary. It's easy enough to start the second WP manually after the first one is finished. Usually, though, you can chain the 2 WPs so that each character does both WPs before loading the next character. It's preferable, too, because it has been shown that you can only change characters a certain number of times before the game crashes, so you should be trying to reduce the number of times you change character.

Re: Run WaypointFile2 after WaypointFile1

Posted: Sun Apr 07, 2013 4:02 pm
by kenzu38
I think you just have to customize your CoT script a bit. Look for these lines in CoT waypoint:

Code: Select all

		elseif When_Finished == "charlist" then
			SetCharList(CharList)
			LoginNextChar()
			loadPaths(__WPL.FileName);
and then change it to this:

Code: Select all

		elseif When_Finished == "charlist" then
			SetCharList(CharList)
accnum = RoMScript("LogID")
charnum = RoMScript("CHARACTER_SELECT.selectedIndex")
firstcharinlist = CharList[1]["chars"][1] or 1
lastcharinlist = CharList[1]["chars"][#"chars"] or 8
if charnum == lastcharinlist then
ChangeChar(firstcharinlist, accnum)
waitForLoadingScreen()
loadPaths("WP2")
else
			LoginNextChar()
			loadPaths(__WPL.FileName)
end
I think the above should work. Although, only if you are working with one account, it would be a bit more complicated if your charlist consists of multiple accounts.

EDIT: I think this should work for multiple accounts:

Code: Select all

		elseif When_Finished == "charlist" then
			SetCharList(CharList)
accnum = RoMScript("LogID")
charnum = RoMScript("CHARACTER_SELECT.selectedIndex")
firstcharinlist = CharList[1]["chars"][1] or 1
lastcharinlist = CharList[#CharList]["chars"][#"chars"] or 8
firstaccinlist = CharList[1]["account"]
lastaccinlist = CharList[#CharList]["account"]
if charnum == lastcharinlist and accnum ==  lastaccinlist then
ChangeChar(firstcharinlist, firstaccinlist)
waitForLoadingScreen()
loadPaths("WP2")
else
			LoginNextChar()
			loadPaths(__WPL.FileName)
end
These codes are untested though. Just trying to help. And you'll need a bit more fixing if you have a nested charlist.

Also, just a reminder, you have to make sure that you start the bot using your first char in the account so that all chars get to do CoT.

EDIT: polished the code a bit. Didn't take into account that some people might not have the first char as first in their list.

Re: Run WaypointFile2 after WaypointFile1

Posted: Sun Apr 07, 2013 5:56 pm
by lisa
rock5 wrote:Usually, though, you can chain the 2 WPs so that each character does both WPs before loading the next character. It's preferable, too, because it has been shown that you can only change characters a certain number of times before the game crashes, so you should be trying to reduce the number of times you change character.
That is exactly what I do and I just do 1 account at a time, any more than that and I get crashes.
So 8 chars through the 2 games then start a new client and do the next account.

Re: Run WaypointFile2 after WaypointFile1

Posted: Sun Apr 07, 2013 11:58 pm
by rock5
I used to be able to just manage 2 account with 7 alts each, so 14.