Jump to content

Make all option?


xlDino

Recommended Posts

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?

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