Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 10: // Login Error (this is a fatal error, so stop)
- var i,
- string = "",
- control = getControl(4, 199, 377, 402, 140),
- text = control.getText();
- if (text) {
- for (i = 0; i < text.length; i += 1) {
- string += text[i];
- if (i !== text.length - 1) {
- string += " ";
- }
- }
- switch (string) {
- case getLocaleString(5199):
- D2Bot.updateStatus("Disabled CDKey");
- D2Bot.printToConsole("Disabled CDKey");
- D2Bot.restart(true);
- break;
- }
- }
- D2Bot.updateStatus("Failed Login");
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement