Jump to content

Vile Ash Script [F2P][70k+ xp/h]


Lol_marcus

Recommended Posts

Hi,

This script will mainly uses invokes and scatters vile ashes in f2p for upwards of 70k prayer XP/h. :)

 

Enjoy!

 

Spoiler
package Osbot;

import api.invoking.InvokeHelper;
import org.osbot.rs07.api.model.Item;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import api.util.Sleep;

@ScriptManifest(info = "LolMarcus", logo = "", name = "Vile Ashes", author = "", version = 0.0)
public class vileAshes extends Script {

    private InvokeHelper invokeHelper;

    public void onStart() throws InterruptedException {
        super.onStart();
        invokeHelper = new InvokeHelper(this);
    }

    @Override
    public int onLoop() {
        if (getInventory().contains("Vile ashes")) {
            scatterAshes();
        } else {
            if (getBank().isOpen()) {
                if (getBank().contains("Vile ashes")) {
                    getBank().withdrawAll("Vile ashes");
                    Sleep.until(() -> getInventory().contains("Vile ashes"), 5000); 
                    getBank().close();
                    Sleep.until(() -> !getBank().isOpen(), 5000); 
                } else {
                    log("No more Vile ashes left in the bank.");
                    stop(false);
                }
            } else {
                final RS2Object bankBooth = (RS2Object) getBank().closest();
                if (bankBooth != null) {
                    if (invokeHelper.invoke(bankBooth, "Bank")) {
                        Sleep.until(() -> getBank().isOpen(), 5000);
                    }
                }
            }
        }

        return 600;
    }

    private void scatterAshes() {
        for (Item item : getInventory().getItems()) {
            if (item != null && item.getName() != null && item.getName().equals("Vile ashes")) {
                if (invokeHelper.invoke(item, "Scatter")) {
                    Sleep.sleep(600);
                }
            }
        }
    }
}

 

 

  • Like 1
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...