Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. public static void update() {
  2. int line = 28554;
  3. for (String string : strings) {
  4. Client.sendString(string, line);
  5. line += 5;
  6. }
  7. Client.sendString(HITSPLAT + "", 28555);
  8. Client.sendString(CONTEXT_MENU + "", 28560);
  9. Client.sendString(prefix(HP_BAR), 28565);
  10. Client.sendString(prefix(DAMAGE_MULTIPLIER), 28570);
  11. Client.sendString(prefix(STATUS_ORB), 28575);
  12. Client.sendString(prefix(WIDGET), 28580);
  13. Client.sendString(prefix(ENTITY_FEED), 28585);
  14. Client.sendString(prefix(ATTACK_PRIORITY), 28590);
  15. Client.sendString(prefix(MINIMAP_RANK), 28595);
  16. Client.sendString(prefix(MOVING_TEXTURE), 28600);
  17. Client.sendString(prefix(ROOF), 28605);
  18. // Client.sendString(prefix(MOVING_TEXTURE), 28620);
  19. // Client.sendString("@gre@" + getMenu(Configuration.menuData), 28575);
  20. // Client.sendString(prefix(Configuration.menuHovers), 28600);
  21. // Client.sendString(prefix(Configuration.enableTimeStamps), 28625);
  22. // Client.sendString(prefix(Configuration.lowMemory), 28630);
  23. // Client.sendString(prefix(Configuration.enableMinimapRights), 28635);
  24. // Client.sendString("", 28640);
  25. }
  26.  
  27. public static boolean click(Client client, int button) {
  28. System.out.println("[SETTINGS] " + button);
  29. switch (button) {
  30.  
  31. /* Transparent Side Panel */
  32. case 28216:
  33. if (Client.frameMode == Client.ScreenMode.FIXED) {
  34. client.pushMessage("You can't do this while in fixed mode!", 0, "");
  35. } else {
  36. Client.transparentTabArea = !Client.transparentTabArea;
  37. }
  38. break;
  39.  
  40. /* Transparent Chatbox */
  41. case 28219:
  42. if (Client.frameMode == Client.ScreenMode.FIXED) {
  43. client.pushMessage("You can't do this while in fixed mode!", 0, "");
  44. } else {
  45. Client.changeChatArea = !Client.changeChatArea;
  46. }
  47. break;
  48.  
  49. /* Side-stones Arrangement */
  50. case 28222:
  51. if (Client.frameMode == Client.ScreenMode.FIXED) {
  52. client.pushMessage("You can't do this while in fixed mode!", 0, "");
  53. } else {
  54. Client.changeTabArea = !Client.changeTabArea;
  55. }
  56. break;
  57.  
  58. case 28507:
  59. defaultValues();
  60. update();
  61. break;
  62.  
  63. case 28551:
  64. int option = HITSPLAT;
  65.  
  66. if (option == 0)
  67. option = 1;
  68. else if (option == 1)
  69. option = 2;
  70. else if (option == 2)
  71. option = 0;
  72.  
  73. HITSPLAT = option;
  74. update();
  75. return true;
  76.  
  77. case 28556:
  78. option = CONTEXT_MENU;
  79.  
  80. if (option == 0)
  81. option = 1;
  82. else if (option == 1)
  83. option = 2;
  84. else if (option == 2)
  85. option = 0;
  86.  
  87. CONTEXT_MENU = option;
  88. update();
  89. return true;
  90.  
  91. case 28561:
  92. HP_BAR = !HP_BAR;
  93. update();
  94. return true;
  95.  
  96. case 28566:
  97. DAMAGE_MULTIPLIER = !DAMAGE_MULTIPLIER;
  98. update();
  99. return true;
  100.  
  101. case 28571:
  102. STATUS_ORB = !STATUS_ORB;
  103. update();
  104. return true;
  105.  
  106. case 28576:
  107. WIDGET = !WIDGET;
  108. update();
  109. return true;
  110.  
  111. case 28581:
  112. ENTITY_FEED = !ENTITY_FEED;
  113. update();
  114. return true;
  115.  
  116. case 28586:
  117. ATTACK_PRIORITY = !ATTACK_PRIORITY;
  118. update();
  119. return true;
  120.  
  121. case 28591:
  122. MINIMAP_RANK = !MINIMAP_RANK;
  123. update();
  124. return true;
  125.  
  126. case 28596:
  127. MOVING_TEXTURE = !MOVING_TEXTURE;
  128. update();
  129. return true;
  130.  
  131. case 28601:
  132. ROOF = !ROOF;
  133. update();
  134. return true;
  135.  
  136. case 28606:
  137. update();
  138. return true;
  139.  
  140. case 28611:
  141. return true;
  142.  
  143. case 28616:
  144. return true;
  145.  
  146. case 28621:
  147. return true;
  148.  
  149. }
  150. return false;
  151. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement