Imthabawse Posted April 1, 2019 Share Posted April 1, 2019 (edited) Made an Air Rune Crafter for one of my accounts figured id share. To start script: - Have an Air Tiara equip - Have Pure essence in your bank or inventory Then sit back and enjoy the gains Will be adding different Altars as I level up so stay tuned! As always any advice on things that can be improved are welcome. CODE: 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(name = "Rune Crafter", logo = "", version = 1, author = "Imthabawse", info = "Crafts Runes for gains") public class Runecrafter extends Script { private Area ALTAR = new Area(2987, 3294, 2983, 3290); private void craft() throws InterruptedException { RS2Object ruins = getObjects().closest(ALTAR, "Mysterious ruins"); RS2Object altar = getObjects().closest("Altar"); if (!myPlayer().isAnimating() && !myPlayer().isMoving()) { log("Walking to altar..."); getWalking().webWalk(ALTAR); sleep(random(250, 500)); if (ruins != null && !myPlayer().isAnimating()) { ruins.interact("Enter"); new ConditionalSleep(1000) { @Override public boolean condition() { return !myPlayer().isAnimating(); } }.sleep(); } else if (altar != null) { log("Crafting..."); altar.interact("Craft-rune"); new ConditionalSleep(5000) { @Override public boolean condition() { return getInventory().contains("Air rune") && myPlayer().isAnimating(); } }.sleep(); } } } private void bank() throws InterruptedException { RS2Object portal = getObjects().closest("Portal"); if (!getInventory().contains("Pure essence") && portal != null && !myPlayer().isAnimating()) { portal.interact("Use"); } else if (!getInventory().contains("Pure essence") && !myPlayer().isAnimating()) { log("Banking..."); getWalking().webWalk(Banks.FALADOR_EAST); log("Withdrawling essence..."); getBank().open(); sleep(random(250, 400)); getBank().depositAll(); sleep(random(250, 400)); getBank().withdrawAll("Pure essence"); sleep(random(250, 400)); getBank().close(); } } } } @Override public int onLoop() throws InterruptedException { if(getInventory().contains("Pure essence")) { craft(); }else { bank(); } return 1500; } } Edited April 1, 2019 by Imthabawse Quote Link to comment Share on other sites More sharing options...
EldoradoGG Posted April 1, 2019 Share Posted April 1, 2019 Did you test the script with suicide botting? Scripting RC seems to have a high chance of getting banned Quote Link to comment Share on other sites More sharing options...
Imthabawse Posted April 1, 2019 Author Share Posted April 1, 2019 (edited) 6 hours ago, EldoradoGG said: Did you test the script with suicide botting? Scripting RC seems to have a high chance of getting banned Ran from 1-18 rc so far no breaks might work on it later today if i get time To add to your comment.. suicide botting any skill will lead to a ban. Edited April 1, 2019 by Imthabawse Quote Link to comment Share on other sites More sharing options...