Jump to content

Air Rune Crafter


Recommended Posts

Posted (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 by Imthabawse
Posted (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 by Imthabawse

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...