Imthabawse Posted May 3, 2019 Share Posted May 3, 2019 (edited) Oak Woodcutter - Cuts Oak's till full inventory and banks at Draynor Bank - Will run away if attacked (Un-tested but should work) - Informative paint To start script - Have "Fixed mode" selected - Have zoom set to far left - Axe in inventory OR wielding axe - Start near Draynor (although not necessary as WebWalker should get you there) - Enter Bank PIN prior to running so bot can Bank log's Download OaknBank Source Spoiler import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; @ScriptManifest(author = "Imthabawse", info = "Chops and Banks Oak Logs", logo = "", name = "OaknBank", version = 1) public class OaknBank extends Script { private Area oakArea = new Area(3085, 3305, 3077, 3291); @Override public int onLoop() throws InterruptedException { if(canCut()) { chopOaks(); }else{ bankLogs(); underAttack(); } return(random(500,550)); } private void chopOaks() throws InterruptedException { RS2Object oakTree = getObjects().closest(oakArea, "Oak"); if (readyToCut() && oakTree != null && oakTree.interact("Chop down")) { log("Chopping Oak!"); sleep(random(750, 800)); getMouse().moveOutsideScreen(); new ConditionalSleep(5500) { @Override public boolean condition() { return myPlayer().isAnimating(); } }.sleep(); } else if (!oakArea.contains(myPlayer())) { log("Walking back to Oaks!"); getWalking().webWalk(oakArea); } } private void bankLogs() throws InterruptedException { if(getInventory().isFull() && !myPlayer().isAnimating() && !Banks.DRAYNOR.contains(myPlayer())) { log("Walking to Bank!"); getWalking().webWalk(Banks.DRAYNOR); new ConditionalSleep(2500) { @Override public boolean condition() { return Banks.DRAYNOR.contains(myPlayer()); } }.sleep(); }else if(Banks.DRAYNOR.contains(myPlayer()) && getInventory().isFull() && !myPlayer().isUnderAttack() && !getBank().isOpen()) { log("Banking Logs!"); getBank().open(); }else if(getInventory().contains("Oak logs")) { getBank().depositAll("Oak logs"); }else if(!getInventory().contains("Oak logs")) { getBank().close(); } } private void underAttack() { if(myPlayer().isUnderAttack()) { log("Under attack! Running!"); getWalking().webWalk(oakArea); } } private boolean canCut() { return !getInventory().isFull() && !getBank().isOpen(); } private boolean readyToCut() { return !myPlayer().isAnimating() && !myPlayer().isUnderAttack() && oakArea.contains(myPlayer()); } } Edited May 5, 2019 by Imthabawse Fixed sloppy code 1 1 Quote Link to comment Share on other sites More sharing options...
Imthabawse Posted May 5, 2019 Author Share Posted May 5, 2019 Script will no longer STOP at 30 Woodcutting. Cleaned up code for more efficient reactions. Download updated 1 Quote Link to comment Share on other sites More sharing options...
Imthabawse Posted May 5, 2019 Author Share Posted May 5, 2019 Added informative paint 1 Quote Link to comment Share on other sites More sharing options...
Imthabawse Posted May 6, 2019 Author Share Posted May 6, 2019 Ran this for bout 6 hours straight last night 2k+ oak logs obtained and lvl 49 wc will see if I get the ban hammer or not. 1 Quote Link to comment Share on other sites More sharing options...
Augury13 Posted May 7, 2019 Share Posted May 7, 2019 Would be awesome if u combined both scripts. Leveled from 1-20(or 15) then swapped to oaks and suicides 1 Quote Link to comment Share on other sites More sharing options...
Imthabawse Posted May 7, 2019 Author Share Posted May 7, 2019 (edited) On 5/7/2019 at 12:35 PM, tmanowen said: Would be awesome if u combined both scripts. Leveled from 1-20(or 15) then swapped to oaks and suicides I can make this happen for sure. Also no ban after running the 6 hours straight Edit to above: Did receive perm ban couple days after suiciding account which was what I expected out of a test account (Fresh level 3 straight off tut island). Edited May 8, 2019 by Imthabawse Quote Link to comment Share on other sites More sharing options...
Imthabawse Posted May 9, 2019 Author Share Posted May 9, 2019 Should have time to update this tonight and make script cut tree's to lvl 15 then switch to oak's. Quote Link to comment Share on other sites More sharing options...
BananaTown Posted November 15, 2020 Share Posted November 15, 2020 (edited) Script works very well, thanks for releasing! https://i.imgur.com/ReYXvfo.png Edited November 15, 2020 by Fich420 Quote Link to comment Share on other sites More sharing options...
sweets Posted December 1, 2020 Share Posted December 1, 2020 Really nice script Quote Link to comment Share on other sites More sharing options...
LayZee Posted December 5, 2020 Share Posted December 5, 2020 really nice first script Quote Link to comment Share on other sites More sharing options...