Guest User

Untitled

a guest
Jun 3rd, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. @author Arno <Arno_gerver@hotmail.com>
  2.  
  3. FIRST REPLACE YOUR LOGINBOX.PNG IN THE CACHE WITH THE NEW ONE.
  4.  
  5. Replace your DrawLoginScreen(boolean flag) with this:
  6.  
  7. /**
  8. * @author Arno <Arno_gerver@hotmail.com>
  9. * Made for: James Lipor
  10. */
  11.  
  12. private void drawLoginScreen(boolean flag)
  13. {
  14. //L++ = Rotates right
  15. //k1+ = rotates down
  16. resetImageProducers();
  17. aRSImageProducer_1109.initDrawingArea();
  18. aBackground_966.drawBackground(30, 0);
  19. char c = '\u0168';
  20. char c1 = '\310';
  21. if(loginScreenState == 0)
  22. {
  23. int l = c / 2 - 80;
  24. int k1 = c1 / 2 + 20;
  25. int i = c1 / 2 + 80;
  26. smallText.method382(0x75a9a9, c / 2, onDemandFetcher.statusString, i, true);
  27. /** @param X / Y debug
  28. *chatTextDrawingArea.method382(0xffff00, l +78, "Mouse X: " + super.mouseX + " , Mouse Y: " + super.mouseY, k1 + 50, true);
  29. */
  30. chatTextDrawingArea.method389
  31. (true, l-10/*X*/, 0xffffff, "" + myUsername + ((loginScreenCursorPos == 0) & (loopCycle % 40 < 20) ? "@whi@|" : ""), k1-52/*Y*/);
  32. chatTextDrawingArea.method389
  33. (true, l-10/*X*/, 0xffffff, "" + TextClass.passwordAsterisks(myPassword) + ((loginScreenCursorPos == 1) & (loopCycle % 40 < 20) ? "@whi@|" : ""),
  34. k1-12/*Y*/);
  35. chatTextDrawingArea.method382(16777215, l+50, loginMessage1, k1+20, true);
  36. chatTextDrawingArea.method382(16777215, l+50, loginMessage2, k1+30, true);
  37. }
  38. aRSImageProducer_1109.drawGraphics(171, super.graphics, 202);
  39. if(welcomeScreenRaised)
  40. {
  41. welcomeScreenRaised = false;
  42. aRSImageProducer_1107.drawGraphics(0, super.graphics, 128);
  43. aRSImageProducer_1108.drawGraphics(371, super.graphics, 202);
  44. aRSImageProducer_1112.drawGraphics(265, super.graphics, 0);
  45. aRSImageProducer_1113.drawGraphics(265, super.graphics, 562);
  46. aRSImageProducer_1114.drawGraphics(171, super.graphics, 128);
  47. aRSImageProducer_1115.drawGraphics(171, super.graphics, 562);
  48. }
  49. }
  50.  
  51. /*****************************************************************************************************/
  52.  
  53.  
  54.  
  55.  
  56.  
  57. AFTER THAT REPLACE YOUR private void processLoginScreenInput() WITH THIS:
  58.  
  59. private void processLoginScreenInput()
  60. {
  61. if(loginScreenState == 0)
  62. {
  63. int i = super.myWidth / 2 - 80;
  64. int l = super.myHeight / 2 + 20;
  65. l += 20;
  66. if(super.clickMode3 == 1 && super.saveClickX >= 263 && super.saveClickX <= 498 && super.saveClickY >= 217 && super.saveClickY <= 244)
  67. {
  68. loginScreenCursorPos = 0; //Account name typing
  69. }
  70. i = super.myWidth / 2 + 80;
  71. if(super.clickMode3 == 1 && super.saveClickX >= 263 && super.saveClickX <= 498 && super.saveClickY >= 262 && super.saveClickY <= 287)
  72. {
  73. loginMessage1 = "";
  74. loginScreenCursorPos = 1; //Password name typing
  75. }
  76. if(super.clickMode3 == 1 && super.saveClickX >= 446 && super.saveClickX <= 499
  77. && super.saveClickY >= 304 && super.saveClickY <= 320)
  78. { //LOGIN BUTTON
  79. if (myPassword.length() <= 0) {
  80. loginMessage1 = "Username or password is missing";
  81. return;
  82. }else
  83. if (myPassword.length() <= 0) {
  84. loginMessage1 = "Username or password is missing";
  85. return;
  86. }
  87. loginFailures = 0;
  88. loginMessage1 = "Logging in....";
  89. login(myUsername, myPassword, false);
  90. if(loggedIn)
  91. return;
  92.  
  93. }
  94. do
  95. {
  96. int l1 = readChar(-796);
  97. if(l1 == -1)
  98. break;
  99. boolean flag1 = false;
  100. for(int i2 = 0; i2 < validUserPassChars.length(); i2++)
  101. {
  102. if(l1 != validUserPassChars.charAt(i2))
  103. continue;
  104. flag1 = true;
  105. break;
  106. }
  107.  
  108. if(loginScreenCursorPos == 0)
  109. {
  110. if(l1 == 8 && myUsername.length() > 0)
  111. myUsername = myUsername.substring(0, myUsername.length() - 1);
  112. if(l1 == 9 || l1 == 10 || l1 == 13)
  113. loginScreenCursorPos = 1;
  114. if(flag1)
  115. myUsername += (char)l1;
  116. if(myUsername.length() > 20)
  117. myUsername = myUsername.substring(0, 20);
  118. } else
  119. if(loginScreenCursorPos == 1)
  120. {
  121. if(l1 == 8 && myPassword.length() > 0)
  122. myPassword = myPassword.substring(0, myPassword.length() - 1);
  123. if(l1 == 9 || l1 == 10 || l1 == 13)
  124. loginScreenCursorPos = 0;
  125. if(flag1)
  126. myPassword += (char)l1;
  127. if(myPassword.length() > 20)
  128. myPassword = myPassword.substring(0, 20);
  129. }
  130. } while(true);
  131. return;
  132. }
  133. }
  134.  
  135. And you should be good!
  136.  
  137. /Arno
Add Comment
Please, Sign In to add comment