blahs44

Untitled

Oct 6th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. public int onLoop()
  2. throws InterruptedException
  3. {
  4. Entity trapUnset = closestObject(new int[] { this.TRAP_UNSET });
  5. Entity trapCaught = closestObject(new int[] { this.TRAP_CAUGHT });
  6. Entity rope = closestGroundItemForName(new String[] { this.ROPE });
  7. Entity net = closestGroundItemForName(new String[] { this.NET });
  8. Player player = myPlayer();
  9.  
  10. if (currentTab() != Tab.INVENTORY) {
  11. openTab(Tab.INVENTORY);
  12. }
  13.  
  14. if (this.client.getInventory().contains(this.RED_SALADMANDER)) {
  15. this.status = "Releasing salamander";
  16. this.client.getInventory().interactWithName(this.RED_SALADMANDER, "Release");
  17. } else if ((this.client.getInventory().isFull()) && (!this.client.getInventory().contains(this.RED_SALADMANDER))) {
  18. this.status = "Dropping items";
  19. this.client.getInventory().dropAllExcept(this.dontDrop);
  20. }
  21.  
  22. if ((rope != null) &&
  23. (!player.isAnimating()) && (!player.isMoving())) {
  24. if (rope.isVisible()) {
  25. this.status = "Pickup up rope";
  26. rope.interact("Take");
  27. sleep(random(700, 900));
  28. } else {
  29. this.client.moveCameraToEntity(rope);
  30. }
  31.  
  32. }
  33.  
  34. if ((net != null) &&
  35. (!player.isAnimating()) && (!player.isMoving())) {
  36. if (net.isVisible()) {
  37. this.status = "Pickup up net";
  38. net.interact("Take");
  39. sleep(random(700, 900));
  40. } else {
  41. this.client.moveCameraToEntity(net);
  42. }
  43.  
  44. }
  45.  
  46. if ((trapUnset != null) &&
  47. (trapUnset.isInArea(this.redSalamanderArea)) &&
  48. (this.client.getInventory().getAmount(this.ROPE) >= 1L) &&
  49. (this.client.getInventory().getAmount(this.NET) >= 1L) &&
  50. (!player.isAnimating()) && (!player.isMoving())) {
  51. if (trapUnset.isVisible()) {
  52. this.status = "Setting trap";
  53. trapUnset.interact("Set-Trap");
  54. sleep(random(700, 900));
  55. } else {
  56. this.client.moveCameraToEntity(trapUnset);
  57. }
  58.  
  59. }
  60.  
  61. if ((trapCaught != null) &&
  62. (trapCaught.isInArea(this.redSalamanderArea)) &&
  63. (!player.isAnimating()) && (!player.isMoving())) {
  64. if (trapCaught.isVisible()) {
  65. this.status = "Checking trap";
  66. trapCaught.interact("Check");
  67. sleep(random(700, 900));
  68. } else {
  69. this.client.moveCameraToEntity(trapCaught);
  70. }
  71.  
  72. }
  73.  
  74. if ((this.client.getRunEnergy() == 100) && (this.run == "False")) {
  75. this.status = "Toggling running";
  76. this.settingsTab.open();
  77. random(199, 246);
  78. setRunning(true);
  79. this.run = "True";
  80. }
  81.  
  82. if (this.run == "True") {
  83. int runInt = random(1, 70);
  84. if (this.client.getRunEnergy() == runInt) {
  85. this.run = "False";
  86. }
  87. }
  88.  
  89. AntiBan();
  90.  
  91. return random(500, 650);
  92. }
Advertisement
Add Comment
Please, Sign In to add comment