-----------------------------------------------------------------------------------
fastLogin aka. loginxml
- Based on version v4.01.1608 of Fastlogin found at this link by os008. Visit this page for more information.
http://board.eu.runesofmagic.gameforge. ... adID=44199
- This addon simplifies logging in to Runes of Magic with convenient buttons on the login screen to log in to preset accounts.
It also has some automation features to auto log in into accounts and characters and some features to help with botting.
- 1. Extract the "Loginxml" folder into the "../Runes of Magic/Interface" folder. It does NOT go into the addons folder. The resulting folder should look like this "../Runes of Magic/Interface/Loginxml".
2. Edit "accountlogin.lua" and add the account names, passwords, servers and labels you wish to use. There is a handy "button map" included to show you where the buttons will appear around the "Log In" button. If a buttons "UserName" equals "" and "Label" equals "" then that button will not be shown.
3. Edit "logindialog.lua" and add the corresponding secondary passwords. Make sure they match up with the account numbers in accountlogin.lua.
4. Restart the Runes of Magic client for the changes to take effect.
That's all you need to setup to use it for botting. You can change the settings at the top of "accountlogin.lua" to affect your manual play. There is a description near each option. They should not effect botting.
- Developers can now use a debug console at the Login and Character Selection screens by pressing the 'Tilde' key (~). You can use the console to enter commands and print variables.
- Users can now use a convenient and more powerful print command 'pr'. What makes it more powerful is it can print out tables and comma separated values and in any combination. Eg. Note: You need to use this function to print when using the console but it also works with the in game chat box.
Code: Select all
/script pr("val = ", val , "atable = ", atable)
userfunction_LoginNextChar.lua
- This userfunction includes a number of useful functions in relation to changing character using 'fastLogin'.
- Just install the 'userfunction_LoginNextChar.lua' file into the 'rom/userfunctions' folder.
Function List:
ChangeChar
- You can use "ChangeChar" function to change to a specific character on a specific account or with no arguments, it logs into the next character.
- Syntax:
- ChangeChar(characterindex, account, channel)
- characterindex - The character in the character selection screen. Values from 1 to 8 or "current" to log back into the same character.
account - The account number or name you want to login into as setup at the top of "accountlogin.lua".
channel - The channel you want to log into.
- If 'characterindex' is ommitted then it will log into the next character in the same account.
If 'account' is ommitted then it will log into the character specified on the same account.
If 'channel' is ommitted then it will log into the channel specified in the setting at the top of accountlogin.lua.
Code: Select all
RoMScript("ChangeChar()") -- Log into next character RoMScript("ChangeChar('current')") -- Log off then back into the same character RoMScript("ChangeChar(2,4)") -- Change to 2nd character on 4th account. RoMScript("ChangeChar(5,nil,2)") -- Change to 5th character on the same account using channel 2
- This will log into the next character in the character list specified by the user, (see 'SetCharList' below). It will cycle through every account and character in the list. The list has to be declared before using this function. When it reaches the last character in the list, it will stop. It accepts no arguments. eg.
Code: Select all
LoginNextChar()
- Use this function to specify your character list. It accepts a table as an argument. Here is an example of the correct format. For clarity it covers multiple lines. You could do it on 1 line but I recommend you do it like this to reduce errors.
Note that account 2 has no characters specified. When no characters are specified then it will go through all the characters in that account.
Code: Select all
SetCharList({ {account=2 , chars= {}}, {account=6 , chars= {1,3,5,6,8}}, {account=5 , chars= {2,3,4,6,7}}, })
As of version 1.40 you can also use groups of accounts so that you can set one group for each client you run.In this example you would have 2 clients running, 1 to do accounts 2 and 6 and the other to do accounts 5 and 7. Each client will stop when they reach the end of their own lists.Code: Select all
SetCharList({{ {account=2 , chars= {}}, {account=6 , chars= {1,3,5,6,8}}, },{ {account=5 , chars= {2,3,4,6,7}}, {account=7 , chars= {2,3,5,6,8}}, }})
- Use this function to set what channel it will log into when you relog with ChangeChar or LoginNextChar.
Code: Select all
SetChannelForLogin(2) -- Next login will log into channel 2 SetChannelForLogin("next") -- Next login will log into current channel + 1. Or channel 1 if already at last channel. SetChannelForLogin("random") -- Next login will log into a random channel. It is limited by the number of channels available.
- Similar to 'ChangeChar' but restarts the client before logging in. You shouldn't need to use this. You can setup ChangeChar/LoginNextChar to automatically restart after a certain number of character changes. See 'SetRestartClientSettings". Requires the 'login' userfunction http://www.solarstrike.net/phpBB3/viewt ... 043#p48043.
- Syntax:
- ChangeCharRestart(characterindex, account, client)
- characterindex & account - Same as ChangeChar.
client - Name of client shortcut. See userfunction_login.lua instructions at the above link for more information.
- Sets the settings needed to have ChangeChar/LoginNextChar automatically restart the client after a certain number of character loads. Requires the 'login' userfunction http://www.solarstrike.net/phpBB3/viewt ... 043#p48043.
- Syntax:
- SetRestartClientSettings(frequency, client)
- frequency - After how many character loads do you want to restart the client. If set to 0 (default) it does not restart the client. Note: for it to keep proper count of the number of character loads it is recommended you update to the latest fastLogin which includes a counterbut is not required. It will just loose count if the bot is restarted.
client - Name of client shortcut. See userfunction_login.lua instructions at the above link for more information.
- For those users who want to start a new chain of waypoints after completing a character list, this function tells you if you are on the last character so you can, for example, load the first character in a new list and start a new waypoint file.
- Syntax:
- IsLastChar(override)
- override - Allowed values are "LoginNextChar", "ChangeChar" or nil. By default, if no CharList is specified, then this function returns true if you are on the last character of the current account, otherwise it will return true if you are on the last character of the CharList. 'override' allows you to force it to check one or the other. Eg. if CharList still has values from a previous waypoint file but you are useing ChangeChar now, you can force this function to only check if on the last character of this account.
Code: Select all
function relog() -- 2 CharLists for 2 clients running at the same time SetCharList({{ {account=2 , chars= {}}, {account=6 , chars= {1,3,5,6,8}}, },{ {account=5 , chars= {2,3,4,6,7}}, {account=7 , chars= {2,3,5,6,8}}, }}) -- My game crashes after reloging 7 times so make it restart the game every 7 relogs. SetRestartClientSettings(7, "rom4u") -- After finishing this script do dailies but have each client do different dailies. if IsLastChar() then if getAcc() == 6 then -- End of first CharList ChangeChar(1,2) -- First char of first list. loadProfile() loadPaths("daily1") else -- end of second CharList ChangeChar(2,5) -- First char of second list. loadProfile() loadpaths("daily2") end else -- It's not the last character so continue with the list and reload this file. LoginNextChar() loadProfile() loadPaths(__WPL.FileName) end end
- os008 for the original fastLogin.
swietlowka for the login buttons.
MiesterMan for the ChangeChar function.
Bot_romka for auto race/class, namegen idea and skipping dialogs.
And everyone else who has contributed.