Jump to content

Make all option?


Recommended Posts

Posted
47 minutes ago, Explv said:

Here is what I currently have 

 

    public int onLoop() {
    	
    	RS2Object furnace = getObjects().closest("Furnace");
    	
    	if(!myPlayer().isAnimating() && !getInventory().contains("Gold amulet (u)") && getInventory().contains("Gold bar") && getInventory().contains("Amulet mould")) {
    		status = "Time to craft!";
    				
    		furnace.interact("Smelt");
    		new ConditionalSleep(5000) {
    		    @Override
    		    public boolean condition() {
    		        return getWidgets().getWidgetContainingText("Make-All").isVisible();
    		    }
    		}.sleep();
    		getWidgets().getWidgetContainingText("Gold amulet (u)").interact("Make-All");

    	}
    	   	
        return random(600, 1200); //The amount of time in milliseconds before the loop starts over
    }

 

This just opens and closes the edgville furnace, what am I doing wrong?

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...