Guest User

Untitled

a guest
Oct 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. package IntelligentBdk;
  2.  
  3. import com.rsbuddy.script.Manifest;
  4. import com.rsbuddy.script.*;
  5. import com.rsbuddy.script.methods.*;
  6. import com.rsbuddy.script.util.*;
  7. import com.rsbuddy.script.util.Timer;
  8. import com.rsbuddy.script.wrappers.*;
  9. import com.rsbuddy.script.task.LoopTask;
  10. import com.rsbuddy.script.util.Random;
  11.  
  12. @Manifest(
  13. name = "Shit.old.Isab",
  14. description = "Intelligent scripts antiban",
  15. authors = "Frazboyz",
  16. version = 0.1
  17. )
  18.  
  19. public class Isab extends LoopTask {
  20.  
  21. public static Timer AntiBan = new Timer(Random.nextInt(10000, 100000));
  22.  
  23. public boolean onStart() {
  24. getContainer().submit(new Isab());
  25. return true;
  26. }
  27.  
  28.  
  29. @Override
  30. public int loop() {
  31. int Rand1 = Random.nextInt(1, 2);
  32. int Rand2 = Random.nextInt(1, 2);
  33. if (Rand1 == 1 && Rand2 == 1 && !AntiBan.isRunning()) {
  34. MouseRandom();
  35. CameraRandom();
  36. AntiBan.reset();
  37. Extras.printLog("Time to next antiban:" + AntiBan.getRemaining() / 1000);
  38. } else if (Rand1 == 2 && Rand2 == 2 && !AntiBan.isRunning()) {
  39. CameraRandom();
  40. TabOpen();
  41. AntiBan.reset();
  42. } else if (Rand1 == 1 && Rand2 != 1 && !AntiBan.isRunning() || Rand1 == 2 && Rand2 != 2 && !AntiBan.isRunning()) {
  43. MouseRandom();
  44. AntiBan.reset();
  45. }
  46. return 100;
  47. }
  48.  
  49. public void MouseRandom() {
  50. int maxXOnScreen = (int) (Game.getCanvasSize().getWidth() - 15);
  51. int maxYOnScreen = (int) (Game.getCanvasSize().getHeight() - 15);
  52.  
  53. int randomNumber123 = Random.nextInt(1, 3);
  54. for (int i = 0; i < randomNumber123; i++) {
  55. if (i == randomNumber123 - 1) {
  56. Mouse.move(Random.nextInt(15, maxXOnScreen), Random.nextInt(15, maxYOnScreen));
  57. sleep(Random.nextInt(50, 300));
  58. } else {
  59. Mouse.move(Random.nextInt(15, maxXOnScreen), Random.nextInt(15, maxYOnScreen));
  60. sleep(Random.nextInt(50, 150));
  61. }
  62. }
  63. }
  64.  
  65. public void CameraRandom() {
  66. int i = Camera.getCompassAngle();
  67. Camera.setCompassAngle(Random.nextInt(0, 360));
  68. }
  69.  
  70. public void TabOpen() {
  71. if (Game.getCurrentTab() != Game.TAB_STATS) {
  72. Game.openTab(Game.TAB_STATS);
  73. } else if (Game.getCurrentTab() == Game.TAB_STATS) {
  74. int i = Random.nextInt(1, 3);
  75. CheckExp(i);
  76. }
  77. }
  78.  
  79. public void CheckExp(int Xp) {
  80. if (Xp == 1) {
  81. Skills.hover(Skills.ATTACK);
  82. } else if (Xp == 2) {
  83. Skills.hover(Skills.RANGE);
  84. } else if (Xp == 3) {
  85. Skills.hover(Skills.FISHING);
  86. }
  87. }
  88.  
  89. public class Extras extends ActiveScript {
  90.  
  91. void printLog(String Message) {
  92. try {
  93. log(Message);
  94. } catch (Exception e) {
  95. log("Error in logging Method AntiBan");
  96. }
  97. }
  98.  
  99. public void Wait(int Millis, int Millis1) {
  100. try {
  101. sleep(Millis, Millis1);
  102. } catch (Exception e) {
  103. log("Error in sleeping Method AntiBan");
  104. }
  105. }
  106.  
  107. public int loop() {
  108.  
  109. return 1;
  110. }
  111. }
  112.  
  113.  
  114. }
Add Comment
Please, Sign In to add comment