Jump to content

Widget not working


Recommended Posts

Posted

I trying to write a smelt script, but idk why this code is not working

if (getWidgets().isVisible(311, 4))

                {

                    getWidgets().interact(311, 4, "Smelt X");

The script already click at furnance > click smelt > but when this widget is visible it not click Smelt X just stay with the mouse pointer at widget.

Have other way to click smelt x or i doing something wrong ? i already wrote an flax spinner using this to click flax widget > click Make X, but here its not working.

Sem título.png

Posted
32 minutes ago, RuneMaker4657 said:

I trying to write a smelt script, but idk why this code is not working


if (getWidgets().isVisible(311, 4))

                {

                    getWidgets().interact(311, 4, "Smelt X");

The script already click at furnance > click smelt > but when this widget is visible it not click Smelt X just stay with the mouse pointer at widget.

Have other way to click smelt x or i doing something wrong ? i already wrote an flax spinner using this to click flax widget > click Make X, but here its not working.

Sem título.png

Don't use static widget IDs. Use this instead:

if (getWidgets().getWidgetContainingText("Bronze").isVisible()) {
	getWidgets().getWidgetContainingText("Bronze").interact("Smelt X Bronze");
}

 

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