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.

Changing what objects are made in a Cons script

Featured Replies

So the code is as follows(I think it's the right part?):

   public void Building() throws InterruptedException {
        this.log("Building");
        RS2Widget Chair = this.widgets.get(162, 546);
        RS2Widget Bookcase = this.widgets.get(394, 1);
        if (Bookcase != null || Chair != null) {
            this.Animating();
            if (!this.myPlayer().isAnimating()) {
                if (this.Kies_object(this.skills.getDynamic(Skill.CONSTRUCTION)) == 0) {
                    if (this.widgets.get(394, 4) != null) {
                        this.mouse.click(main.random((int)46, (int)65), main.random((int)75, (int)96), false);
                    }
                } else {
                    this.mouse.click(main.random((int)46, (int)65), main.random((int)108, (int)120), false);
                }
            }
        }
    }

This makes normal bookcases, I need it to make Oak. Do I change the widget ID? How do I find of the ID of the thing I want to build? Bearing in mind it shows the build screen.

Edited by GetBackToOSRS

So the code is as follows(I think it's the right part?):

   public void Building() throws InterruptedException {
        this.log("Building");
        RS2Widget Chair = this.widgets.get(162, 546);
        RS2Widget Bookcase = this.widgets.get(394, 1);
        if (Bookcase != null || Chair != null) {
            this.Animating();
            if (!this.myPlayer().isAnimating()) {
                if (this.Kies_object(this.skills.getDynamic(Skill.CONSTRUCTION)) == 0) {
                    if (this.widgets.get(394, 4) != null) {
                        this.mouse.click(main.random((int)46, (int)65), main.random((int)75, (int)96), false);
                    }
                } else {
                    this.mouse.click(main.random((int)46, (int)65), main.random((int)108, (int)120), false);
                }
            }
        }
    }

This makes normal bookcases, I need it to make Oak. Do I change the widget ID? How do I find of the ID of the thing I want to build? Bearing in mind it shows the build screen.

 

You have to change the widget aswell as the confirmation clicks (this stuff: this.mouse.click(main.random((int)46, (int)65), main.random((int)75, (int)96), false); )

Edited by Zappster

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.