Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

 

On 2/17/2023 at 4:56 PM, Jueix said:

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

I believe this should be:
getInventory().interact("Use", "Baked potato");

EDIT - fixed formatting

Edited by RiftScripts

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.