John Wick Posted September 18, 2017 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.
Token Posted September 18, 2017 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
John Wick Posted September 18, 2017 Author Posted September 18, 2017 Just now, Kurisu said: "Smelt X Bronze" nahhh thanks
The Undefeated Posted September 18, 2017 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"); }
John Wick Posted September 18, 2017 Author 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.
Viston Posted September 18, 2017 Posted September 18, 2017 28 minutes ago, Kurisu said: plz null check Finally, wheeeew