May 9, 201510 yr For those wondering how to find out if the enter amount is up for people to handle it correctly and not miss up. Here the snippet. Best fail safe so a character doesnt type an amount in the chatbox. /** * the interface is usually never null, but changes location when visible or not * * @return true if the 'enter amount' interface is visible */ public boolean canEnterAmount() { RS2Widget warning = getWidgets().get(548, 119); return warning != null && !warning.getPosition().equals(new Point(-1,-1)); } have fun and happy scripting Edited May 9, 201510 yr by josedpay
June 13, 201510 yr I assume this is for use on things like smelt X sort of interface? ill give this a go in a script im building
June 13, 201510 yr I assume this is for use on things like smelt X sort of interface? ill give this a go in a script im building Yeah that's what you'd use this for. So call the method before you have it try and type anything.
June 13, 201510 yr Yeah that's what you'd use this for. So call the method before you have it try and type anything. Any hints as to how to actually make the bot type in a certain amount at that widget menu?
June 13, 201510 yr if(widgets.get(162,32) != null && widgets.get(162,32).isVisible()) { keyboard.typeString("something", true); } Edited June 13, 201510 yr by Flamezzz
June 13, 201510 yr Any hints as to how to actually make the bot type in a certain amount at that widget menu? keyboard.typeString("" + random(28, 99)); That will do a random number from 28 to 99.
June 13, 201510 yr keyboard.typeString("" + random(28, 99)); That will do a random number from 28 to 99. well yes haha but im pretty sure most people can understand that. a specific number would just be keyboard.typeString("YOURNUMBER");
June 13, 201510 yr Author for those still looking to use this method you will need to update the widget thats all
Create an account or sign in to comment