Neks 0 Posted May 10, 2023 Hey, i tried to validate the coffer coin value by validate the widget and get by Widget w =Widgets.getWidget(474); if(w != null) { WidgetChild wc = w.getChild(2); if(wc != null) { wc.getChild(3); } Logger.log(wc.getText()); } Sadly the widget does not contain a valid value of stored coins.
Neks 0 Author Posted May 10, 2023 (edited) Thanks. int coins = PlayerSettings.getBitValue(5357); Logger.log(coins); This works for me. How to use: https://dreambot.org/guides/scripter-guide/api/playersettings/#varbits Edited May 10, 2023 by Neks
Neks 0 Author Posted May 10, 2023 Sorry... one last question. Can you tell me how to enter input? I was looking for a solution in javadocs and some github repos of V2.... but still no idea how to solve Keyboard seems to have no way to enter data. Only keys to hold down. Widget I haven't found anything either. Dialog only knows the validation Dialogues.canEnterInput
hashbang 8 Posted May 11, 2023 I'm not actually familiar with the BlastFurnace widgets, but to type normal messages you can use: Keyboard.type("Hello", true); To type the message "Hello" and press enter afterwards.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now