March 10, 20178 yr Hey all, just writing a simple NMZ bot, just wondering how you guys would go about checking absorption, ie how much absorption is left before needing to pot up again. Cheers
March 10, 20178 yr Use the widget debugger and the Widgets class: https://osbot.org/api/org/osbot/rs07/api/Widgets.html Edited March 10, 20178 yr by Flamo
March 10, 20178 yr public int getCurrentAbsorption() { RS2Widget widget = r.widgets.get(202, 1, 9); if(widget == null || !widget.isVisible() || widget.getMessage().isEmpty()) return 0; return Integer.parseInt(widget.getMessage()); } Just made this anyways :P
March 10, 20178 yr Author 36 minutes ago, Reveance said: public int getCurrentAbsorption() { RS2Widget widget = r.widgets.get(202, 1, 9); if(widget == null || !widget.isVisible() || widget.getMessage().isEmpty()) return 0; return Integer.parseInt(widget.getMessage()); } Just made this anyways :P Cheers all! & Thankyou very much Reveance ;) legend.