Guest User

Untitled

a guest
Feb 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. public int doAntiBan() {
  2. int event = random(1, 25);
  3. if (event <= 10) {
  4. antibanThread = new Thread(new AntiBanThread(), "antiban");
  5. antibanThread.start();
  6. return 1;
  7. }
  8. if (event == 11) {
  9. if (random(1, 2) == 2) {
  10. log("checking ep");
  11. game.openTab(1);
  12. sleep(100, 200);
  13. RSComponent skillChild = interfaces.getComponent(320);
  14. Rectangle bounds = new Rectangle(skillChild.getAbsoluteX(),
  15. skillChild.getAbsoluteY(), skillChild.getWidth(),
  16. skillChild.getHeight());
  17. mouse.move(random(bounds.x, bounds.x + bounds.width),
  18. random(bounds.y, bounds.y + bounds.height));
  19. sleep(1000, 2000);
  20. } else {
  21. log("check mage ep");
  22. game.openTab(1);
  23. skills.doHover(Skills.MAGIC);
  24. sleep(1000, 2000);
  25. }
  26. }
  27.  
  28. if (event == 12 || event == 13) {
  29. log("Moving mouse slightly");
  30. mouse.moveSlightly();
  31. sleep(300,600);
  32. mouse.moveSlightly();
  33. sleep(400,700);
  34. }
  35.  
  36. if (event == 14) {
  37. log("random tab");
  38. game.openTab(random(0, 15));
  39. mouse.move(random(550, 735), random(210, 465));
  40. sleep(random(700, 2000));
  41. }
  42.  
  43. if (event == 15) {
  44. log("opening friends tab");
  45. game.openTab(9);
  46. mouse.move(random(550, 735), random(210, 465));
  47. sleep(random(700, 2000));
  48. }
  49.  
  50. if (event == 16) {
  51. log("move mouse");
  52. mouse.move(random(1, game.getWidth()), random(1, game.getHeight()));
  53. sleep(1000, 1500);
  54. }
  55.  
  56. if (event == 18 || event == 19) {
  57. log("mouse off screen");
  58. mouse.moveOffScreen();
  59. sleep(3000, 6000);
  60. }
  61. if (event == 20 || event == 21) {
  62. log("opening iventory");
  63. game.openTab(4);
  64. sleep(750, 1300);
  65. }
  66.  
  67. /*if(event == 22)
  68. {
  69. RSInterface Notes = interfaces.get(34);
  70. if(game.getCurrentTab() != game.TAB_NOTES){
  71. game.openTab(game.TAB_NOTES);
  72. sleep(300,700);
  73. }
  74. mouse.click(Notes.getComponent(3).getLocation(), true);
  75. sleep(600, 800);
  76. keyboard.sendText(null, true);
  77.  
  78. }*/
  79.  
  80. if(event == 23)
  81. {
  82. RSPlayer[] p = players.getAll();
  83. RSPlayer player = p[random(0,p.length)];
  84. if(player != null)
  85. {
  86. mouse.click(player.getScreenLocation(),false);
  87. sleep(700,1300);
  88. }
  89. }
  90.  
  91. if(event == 24)
  92. {
  93. sleep(5000,36421);
  94. }
  95. return random(100, 200);
  96.  
  97. }
Add Comment
Please, Sign In to add comment