Jump to content

Changing what objects are made in a Cons script


GetBackToOSRS

Recommended Posts

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
Link to comment
Share on other sites

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