Advertisement
kolton

Untitled

Dec 5th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     case 10: // Login Error (this is a fatal error, so stop)
  2.         var i,
  3.             string = "",
  4.             control = getControl(4, 199, 377, 402, 140),
  5.             text = control.getText();
  6.        
  7.         if (text) {
  8.             for (i = 0; i < text.length; i += 1) {
  9.                 string += text[i];
  10.                
  11.                 if (i !== text.length - 1) {
  12.                     string += " ";
  13.                 }
  14.             }
  15.            
  16.             switch (string) {
  17.             case getLocaleString(5199):
  18.                 D2Bot.updateStatus("Disabled CDKey");
  19.                 D2Bot.printToConsole("Disabled CDKey");
  20.                 D2Bot.restart(true);
  21.                
  22.                 break;
  23.             }
  24.         }
  25.        
  26.         D2Bot.updateStatus("Failed Login");
  27.         break;
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement