Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int onLoop()
- throws InterruptedException
- {
- Entity trapUnset = closestObject(new int[] { this.TRAP_UNSET });
- Entity trapCaught = closestObject(new int[] { this.TRAP_CAUGHT });
- Entity rope = closestGroundItemForName(new String[] { this.ROPE });
- Entity net = closestGroundItemForName(new String[] { this.NET });
- Player player = myPlayer();
- if (currentTab() != Tab.INVENTORY) {
- openTab(Tab.INVENTORY);
- }
- if (this.client.getInventory().contains(this.RED_SALADMANDER)) {
- this.status = "Releasing salamander";
- this.client.getInventory().interactWithName(this.RED_SALADMANDER, "Release");
- } else if ((this.client.getInventory().isFull()) && (!this.client.getInventory().contains(this.RED_SALADMANDER))) {
- this.status = "Dropping items";
- this.client.getInventory().dropAllExcept(this.dontDrop);
- }
- if ((rope != null) &&
- (!player.isAnimating()) && (!player.isMoving())) {
- if (rope.isVisible()) {
- this.status = "Pickup up rope";
- rope.interact("Take");
- sleep(random(700, 900));
- } else {
- this.client.moveCameraToEntity(rope);
- }
- }
- if ((net != null) &&
- (!player.isAnimating()) && (!player.isMoving())) {
- if (net.isVisible()) {
- this.status = "Pickup up net";
- net.interact("Take");
- sleep(random(700, 900));
- } else {
- this.client.moveCameraToEntity(net);
- }
- }
- if ((trapUnset != null) &&
- (trapUnset.isInArea(this.redSalamanderArea)) &&
- (this.client.getInventory().getAmount(this.ROPE) >= 1L) &&
- (this.client.getInventory().getAmount(this.NET) >= 1L) &&
- (!player.isAnimating()) && (!player.isMoving())) {
- if (trapUnset.isVisible()) {
- this.status = "Setting trap";
- trapUnset.interact("Set-Trap");
- sleep(random(700, 900));
- } else {
- this.client.moveCameraToEntity(trapUnset);
- }
- }
- if ((trapCaught != null) &&
- (trapCaught.isInArea(this.redSalamanderArea)) &&
- (!player.isAnimating()) && (!player.isMoving())) {
- if (trapCaught.isVisible()) {
- this.status = "Checking trap";
- trapCaught.interact("Check");
- sleep(random(700, 900));
- } else {
- this.client.moveCameraToEntity(trapCaught);
- }
- }
- if ((this.client.getRunEnergy() == 100) && (this.run == "False")) {
- this.status = "Toggling running";
- this.settingsTab.open();
- random(199, 246);
- setRunning(true);
- this.run = "True";
- }
- if (this.run == "True") {
- int runInt = random(1, 70);
- if (this.client.getRunEnergy() == runInt) {
- this.run = "False";
- }
- }
- AntiBan();
- return random(500, 650);
- }
Advertisement
Add Comment
Please, Sign In to add comment