Planning Bots
Planning Bots
Hi, is there a way i can planning my bots in this maner?
account 1, char 1, waypoint_file_x
account 1, char 3, waypoint_file_y
account 1, char 1, {waypoint_file_z, waypoint_file_a}
account 2, char 1, waypoint_file_x
...
..
I think it could be posible, but dont know how.
I know loginxml and relog function but i think i need something more for that.
Thanks a lot.
Sorry for my english.
account 1, char 1, waypoint_file_x
account 1, char 3, waypoint_file_y
account 1, char 1, {waypoint_file_z, waypoint_file_a}
account 2, char 1, waypoint_file_x
...
..
I think it could be posible, but dont know how.
I know loginxml and relog function but i think i need something more for that.
Thanks a lot.
Sorry for my english.
Re: Planning Bots
do you use the same profile for each character or do they all use their own profiles?
If they use their own profiles then in the profile onload tell it to start the WP for that character.
In your relog use setcharlist on each WP and it should just go through them all 1 by 1. Make sure to use the loadProfile() so the onload is definately done after character change.
If they all use the same profile then in the onload do a name check loading the WP depending on name.
If they use their own profiles then in the profile onload tell it to start the WP for that character.
In your relog use setcharlist on each WP and it should just go through them all 1 by 1. Make sure to use the loadProfile() so the onload is definately done after character change.
If they all use the same profile then in the onload do a name check loading the WP depending on name.
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: Planning Bots
I have specific profiles for the chars and general WP's
I try to planning easy the bots so the idea of put a general WP in the onload for the char limit me only to that wp each time.
The idea of charlist in each wp tell me that all chars must do that wp and at finish then other wp, but i want a more flexible way.
i could be something like to execute manual:
rom/bot.lua account1 char1 wp_x
rom/bot lua account1 char1 wp_y
rom/bot lua account2 char1 wp_x
....
but auto... XD
Edit.
I supose the idea is to execute this steps:
changeChar();
loadProfile();
loadPaths();
for each one.
But what i dont know is how to automatic launch the second and more executions when a WP finish without put into each WP another WP to continue via loadPaths();
I hope you understand me.
Thanks a lot.
Sorry for my english
I try to planning easy the bots so the idea of put a general WP in the onload for the char limit me only to that wp each time.
The idea of charlist in each wp tell me that all chars must do that wp and at finish then other wp, but i want a more flexible way.
i could be something like to execute manual:
rom/bot.lua account1 char1 wp_x
rom/bot lua account1 char1 wp_y
rom/bot lua account2 char1 wp_x
....
but auto... XD
Edit.
I supose the idea is to execute this steps:
changeChar();
loadProfile();
loadPaths();
for each one.
But what i dont know is how to automatic launch the second and more executions when a WP finish without put into each WP another WP to continue via loadPaths();
I hope you understand me.
Thanks a lot.
Sorry for my english
Re: Planning Bots
you can add something like this for each character, maybe a bit longer but i think safer :
Code: Select all
if player.Name == "previouscharactername" then
SetCharList(CharList); yrest(2000);
LoginNextChar();
loadProfile("characteryouwanttoload"); yrest(1000);
loadPaths("Wpyouwanttoloadnext");
else
end
Re: Planning Bots
i cant see how to keep the index along the executions with that method.
I am going to try this:
1. I will use a file for the configuration of the sequence of executions (sequence.lua)
2. I will use a specific profile for bot sequences. (sequence.xml). In this profile, in onload section i will read the lua file and generate a tmp file in which a will write the sequence again minus the first one. And also make the first iteration (ChangeChar, loadprofile, loadpath). I think this part is makeable (?).
3. This part is the problem i suspect. In the logout function of the player.lua i will check if tmp file exist. In that case i will read first iteration of file (remember that is the original minus first iteration) and take the params. Regenerate the tmp file minus the first line again and launch (Changechar, loadprofile, loadpath). This part will be executed at the end of every iteration, launching the next one.
its a crazy idea?
According to third point, it will be very usefull an onlogout section in profile files (is it difficult to implement?). Also it will be very usefull for debug, log and stats at the end of every bot execution.
Thanks
Sorry for my english.
I am going to try this:
1. I will use a file for the configuration of the sequence of executions (sequence.lua)
2. I will use a specific profile for bot sequences. (sequence.xml). In this profile, in onload section i will read the lua file and generate a tmp file in which a will write the sequence again minus the first one. And also make the first iteration (ChangeChar, loadprofile, loadpath). I think this part is makeable (?).
3. This part is the problem i suspect. In the logout function of the player.lua i will check if tmp file exist. In that case i will read first iteration of file (remember that is the original minus first iteration) and take the params. Regenerate the tmp file minus the first line again and launch (Changechar, loadprofile, loadpath). This part will be executed at the end of every iteration, launching the next one.
its a crazy idea?
According to third point, it will be very usefull an onlogout section in profile files (is it difficult to implement?). Also it will be very usefull for debug, log and stats at the end of every bot execution.
Thanks
Sorry for my english.
Last edited by guzanit on Thu Aug 23, 2012 3:01 am, edited 1 time in total.
Re: Planning Bots
If you are making a profile for each "session" (for all chars) to do certain things then it is as I said, just add in to the onload code to launch which WP you want.lisa wrote:If they all use the same profile then in the onload do a name check loading the WP depending on name.
Code: Select all
<onLoad><![CDATA[
if player.Name == "someone" then
loadPaths("someWPname");
elseif player.Name == "someoneelse" then
loadPaths("someotherWPname");
end
]]></onLoad>
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: Planning Bots
Uff.
1. I see i cant explain it well....
2. or my reduced knows about rom limit me to understand your answers.
I can not load a wp (in the onload section of the profile) based on charname because the wp to load may be different at each iteration. (Ej: first do "butterflies.xml" them "fromXavieratoVaranas.xml" them "survival.xml" them "cot-tele.xml" them.....).
This could be an example "plan":
As you can see the same char can load different wp at each iteration
Thanks for help
Sorry for my english.
1. I see i cant explain it well....
2. or my reduced knows about rom limit me to understand your answers.
They do not use the same profile every character have its own profile. ( i have been thinking make only one by per class combination, but it is another issue).lisa wrote:If they all use the same profile then in the onload do a name check loading the WP depending on name.
As i said, i have one profile for char, but not for every planned iteration (session). These profiles are statics. Other words each char always load the same profile all the time (until the end of the world).If you are making a profile for each "session" (for all chars) to do certain things then it is as I said, just add in to the onload code to launch which WP you want.
Code: Select all
<onLoad><![CDATA[ if player.Name == "someone" then loadPaths("someWPname"); elseif player.Name == "someoneelse" then loadPaths("someotherWPname"); end ]]></onLoad>
I can not load a wp (in the onload section of the profile) based on charname because the wp to load may be different at each iteration. (Ej: first do "butterflies.xml" them "fromXavieratoVaranas.xml" them "survival.xml" them "cot-tele.xml" them.....).
This could be an example "plan":
Code: Select all
account=1 char=1 wp=butterflies
account=2 char=3 wp=butterflies
account=1 char=1 wp=fromXavieratoVaranas
account=1 char=1 wp=cot-tele
account=2 char=3 wp=fromXavieratoVaranas
account=2 char=3 wp=At
Thanks for help
Sorry for my english.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 1 guest