Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support for changing your password and sending the request for email change and password reset during login. * Account Manager form will appear when an account logon or other account entry error occurs, allowing the user to fix the issue or perform another account action, just like a real Battle.net client. The bot no longer disconnects from Battle.net on all account errors, unless told to. - This Account Manager can be accessed from Bot -> Account Manager. - It supports (re)connecting to return to the account entry state in order to fulfill requests. - If the window is closed when in the account entry state, the bot will disconnect. - [CLIENT] ManageOnAccountError=True|False =True [defualt]: is this behavior, and =False: causes the bot to disconnect on account errors, as before. - [CLIENT] AutoAccountAction=True|False =True [default]: The bot will try to log in automatically. This state is set when you save the Settings (implies you want to use the Settings U & P automatically). =False: The bot will bring up the Account Manager when it enters or re-enters account logon state (i.e. on "account exists" error). This state is set when you do an action from the Account Manager. - [CLIENT] AccountMode=Logon|Create|ChangePass|ResetPass|ChangeEmail =Logon [default]: The bot will attempt to log on using Username and Password. On fail, the bot will switch to Create mode (and "do action"). =Create: The bot will attempt to create an account using Username and Password. On success, the bot will switch to Logon mode (and "do action"). =ChangePass: The bot will attempt to change the password of Username from Password to NewPassword. On success, the bot will save Password=NewPassword and clear NewPassword. On success, the bot will switch to Logon mode (and "do action"). =ResetPass: The bot will request a reset password email using Username and RegisterEmailDefault. On successful send, the bot will switch to Logon mode, but will "await action". =ChangeEmail: The bot will request to change the account email using Username and RegisterEmailDefault to RegisterEmailChange. On successful send, the bot will save RegisterEmailDefault=RegisterEmailChange and clear RegisterEmailChange. On successful send, the bot will switch to Logon mode, but will "await action". On all other failures, the bot will "await action" and not change mode. When the bot "awaits action" above, it will either show the Account Manager or disconnect, depending on ManageOnAccountError. When the bot is to "do action" above, it will either do the action if the settings are set, or open the Account Manager to that page, depending on AutoAccountAction. - [CLIENT] NewPassword= RegisterEmailChange= These two settings are used to save the "change to" of the values in the new modes. * Account lock timeouts apply to password change requests and are handled by the Account Manager system. * Account success and error messages are all handled through Event_LogonEvent(). As such, SID_AUTH_* logon responses are all interpreted together. Legacy response codes are re-distributed to the SID_AUTH_* values for that event only. * clsNLS (scripting: CreateNLS(U, P)) has been improved and recieved many fixes so that change requests actually work correctly. Many function and property names have been changed, and calling properties without initializing Username and Password now result in failure/empty values instead of attempting to initialize.
- Loading branch information