Jump to content

Widget not working


John Wick

Recommended Posts

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

Link to comment
Share on other sites

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");
}

 

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