John Wick Posted September 18, 2017 Share Posted September 18, 2017 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. Quote Link to comment Share on other sites More sharing options...
Token Posted September 18, 2017 Share Posted September 18, 2017 The "Smelt X" action is not bound to the widget you are trying to interact with, there are many stacked widgets on top of each other and one of them has this action. Open the widget debugger and go through them until you find it. 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted September 18, 2017 Share Posted September 18, 2017 "Smelt X Bronze" Quote Link to comment Share on other sites More sharing options...
John Wick Posted September 18, 2017 Author Share Posted September 18, 2017 Just now, Kurisu said: "Smelt X Bronze" nahhh thanks Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted September 18, 2017 Share Posted September 18, 2017 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. Don't use static widget IDs. Use this instead: if (getWidgets().getWidgetContainingText("Bronze").isVisible()) { getWidgets().getWidgetContainingText("Bronze").interact("Smelt X Bronze"); } Quote Link to comment Share on other sites More sharing options...
John Wick Posted September 18, 2017 Author Share Posted September 18, 2017 Just now, The Undefeated said: if (getWidgets().getWidgetContainingText("Bronze").isVisible()) { getWidgets().getWidgetContainingText("Bronze").interact("Smelt X Bronze"); } ill try it, looks better. Quote Link to comment Share on other sites More sharing options...
Chris Posted September 18, 2017 Share Posted September 18, 2017 plz null check Quote Link to comment Share on other sites More sharing options...
Viston Posted September 18, 2017 Share Posted September 18, 2017 28 minutes ago, Kurisu said: plz null check Finally, wheeeew Quote Link to comment Share on other sites More sharing options...