Jump to content

1m osrs to person fixes it. (To lazy and busy to do myself)


Recommended Posts

Posted

So I was re-developing my potato script so it's better and removed something in it and now the make potato part is playing up and when he first uses the potato on the butter then the wait part happens it just keeps trying to use the potato on the butter. Can't be fucked figuring out what I removed by mistake but before I done some updates it worked fine ( Think I made some of the sleep(Randoms) to actual conditional. (Few left in though).

[code]

private void MakeItems() throws InterruptedException {

/* This part of the script makes the baked potato's into Buttered baked potato's.

*/

log("Attempting to make the items");

if(inventory.contains("Baked potato") && inventory.contains("Pat of butter")) {

randomclicks = random(1,5);

log("Random clicks = " + randomclicks);

if(randomclicks < 3) {

ScriptStatus = "Using butter on potato.";

log("uses butter before the baked.");

getInventory().interact("Use", "Pat of butter");

sleep(random(100, 1500));

getInventory().interact("Use", "Baked Potato");

sleep(random(100,1200));

log("Dialog after it's shown");

sleep(random(100,1700));

getKeyboard().typeKey((char)32);

log("Dialog after space");

new ConditionalSleep(20000) {

@Override

public boolean condition() {

return !inventory.contains("Baked Potato") || !inventory.contains("Pat of butter") || !getDialogues().isPendingContinuation();

}

}.sleep();

if(!inventory.contains("Pat of butter") || !inventory.contains("Baked Potato")) {

Stage = 3;

}

}

else if(randomclicks >= 3) {

ScriptStatus = "Using potato on butter.";

log("Uses baked before the butter.");

getInventory().interact("Use", "Baked Potato");

sleep(random(100, 1000));

getInventory().interact("Use", "Pat of butter");

sleep(random(100,2000));

log("Dialog after it's shown");

sleep(random(500,1500));

getKeyboard().typeKey((char)32);

log("Dialog after space");

new ConditionalSleep(20000) {

@Override

public boolean condition() {

return !inventory.contains("Baked Potato") || !inventory.contains("Pat of butter") || !getDialogues().isPendingContinuation();

}

}.sleep();

if(!inventory.contains("Pat of butter") || !inventory.contains("Baked Potato")) {

Stage = 3;

}

}

}

}

[/code]

  • 1 month later...

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