First I'll explain that this is designed to be activated while already in the game. You initialize the bot while in a bottable character (with blank macro set up) and it automatically logs into the account specified. You do need to have the Autologin revisited version of Autologin installed and have the password you'll be using for all the accounts in the local variable for the password under 'accountlogin.lua'. I'll reccomend against changing the variable to a global and changing it from the bot, if you don't know why then just DON'T do it. I still consider this to be incomplete as you can only start from the account desired instead of also the character you want.
Requirements:
1. Again, you need to have Autologin revisited installed and the password configured.
2. This will all be run from the initial profile. I currently don't know the code to update character class so I don't have it in here. If you're going to be changing classes (and need properly working combat skills) you'll need to find a way to update the bot's class info after character changing is complete.
3. Passwords - All accounts being used must have the same password unless you're taking the dangerous road of a global variable for your password. Passwords will not be changed from the bot with this method, instead it will read what you set in the local variable of accountlogin.lua and alter the account name from the bot.
This is NOT a final version. Though for my purposes it is complete there are a lot of uses and functions I'd still like to get from it.
First, add this code to the onLoad section of the profile you'll be using for the characters changing the "Account#s" for your account names:
Code: Select all
CurrentAccNum = 1
CharacterNumber = 1
fastLoginAccNames={"Account1","Account2","Account3","Account4","Account5"}
sendMacro("}fastLoginUser=\"" .. fastLoginAccNames[CurrentAccNum] .. "\";a={");
yrest(100);
sendMacro("}fastLoginTriedOnce=false;a={");
yrest(100);
sendMacro("}fastLoginChrSel=" .. CharacterNumber .. ";a={");
yrest(100);
sendMacro("}fastLoginLoggedIn=false;a={");
yrest(100);
sendMacro("}fastLoginAutoEnter=true;a={");
yrest(100);
sendMacro("}fastLoginAutoLogin=true;a={");
yrest(100);
sendMacro("}fastLoginRelog=true;a={");
yrest(100);
sendMacro("}fastLoginNoZoom=true;a={");
yrest(100);
sendMacro("CharacterSelect_Exit();");
Code: Select all
if conditionMet then
printf("Character %d of account %s has completed task!\n", CharacterNumber, fastLoginAccNames[CurrentAccNum]);
CharacterNumber = CharacterNumber + 1
if( CharacterNumber > 8 ) then
CurrentAccNum = CurrentAccNum + 1
if( fastLoginAccNames[CurrentAccNum] == nil ) then
sendMacro("AccountLogin_Exit();");
else
CharacterNumber = 1
sendMacro("}fastLoginUser=\"" .. fastLoginAccNames[CurrentAccNum] .. "\";a={");
yrest(100);
sendMacro("}fastLoginChrSel=" .. CharacterNumber .. ";a={");
yrest(100);
sendMacro("}fastLoginTriedOnce=false;a={");
yrest(100);
sendMacro("}fastLoginLoggedIn=false;a={");
yrest(100);
sendMacro("CharacterSelect_Exit();");
end
else
sendMacro("}LoginNextToon=true;a={");
yrest(500);
sendMacro("Logout();");
yrest(60000);
end
end
Method to choose which character you start with.
Updating character class info after character change.
Varibale skill info for skill levelup between different characters and classes.
Can't remember the rest >.<
Also, if we do find a way to choose which character from the list is chosen I wanted to make an add-on where you can one-click character swap between characters and accounts. But since this is a botting forum that'll be secondary.
I'll be working for the next 10 hours (and probably other stuff after that) so please feel free to post changes and suggestions. I want this to be usable by as many people as possible.
Updated: Thu Jul 08, 2010 7:33 pm CST