January 21, 20179 yr The idea is to get better exp so i can bot for less hours with better results since the bot has the capablities to do it just have to get the timing right and i trying to make it go into crafting when 1 trout or same enters the inv and after it comes out of crafting drop the one trout. the timing as far as sleep goes is going to be a bitch and ping is going to play apart in this i am just frustrated atm. public class main extends Script { @[member='Override'] public void onStart() { } @[member='Override'] public int onLoop() throws InterruptedException { switch (getState()) { case FISH: fishFly(); break; case CRAFT: craftLeather(); break; } return random(20, 42); } private void fish() throws InterruptedException { { if(!this.myPlayer().isAnimating() && this.inventory.contains(new String[]{"Fly fishing rod", "Feather"})) { NPC fishingSpot = (NPC)this.npcs.closest(true, new String[]{"Fishing Spot"}); if(fishingSpot != null) { this.status = "Catching Fish"; fishingSpot.interact(new String[]{"Lure"}); } else { } } private void craftLeather() throws InterruptedException { inventory.interact("Use", "Leather"); sleep(random(20, 20)); inventory.interact("Use", "Needle"); sleep(random(80, 90)); getWidgets().get(542, 103).interact("Armour"); sleep(random(45, 92)); } @[member='Override'] public void onExit() { } private enum State { FISH, CRAFT; }; private State getState() { if(inventory.contains("Trout"),("Salmon")) return State.CRAFT; return State.FISH; } } } Edited January 21, 20179 yr by aeondenied
January 29, 20179 yr On 21/01/2017 at 8:49 PM, Light said: oh you want auto ban? 2 hours ago, Magarac said: Lol yes this would lead to very quick bans sadly. And your logic behind that is?... op: Look into conditional sleeps will make your script more efficient than using random sleeps