September 18, 20178 yr 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.
September 18, 20178 yr 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.
September 18, 20178 yr 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"); }
September 18, 20178 yr Author Just now, The Undefeated said: if (getWidgets().getWidgetContainingText("Bronze").isVisible()) { getWidgets().getWidgetContainingText("Bronze").interact("Smelt X Bronze"); } ill try it, looks better.
Create an account or sign in to comment