Jump to content

Air Rune Crafter


Imthabawse

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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