aivaras Posted January 14, 2017 Posted January 14, 2017 Trying to get absorption points left. I tried to use RS2Widget absorptionPoints = getWidgets().get(202, 1, 9); but i think i did something wrong.
Vilius Posted January 14, 2017 Posted January 14, 2017 Can you post the code you are using and a picture of you using a widget debugger on the absorption widget so we can see what you might have done wrong? 1
Precise Posted January 14, 2017 Posted January 14, 2017 this is what i used in an NMZ script: public int getCurrentDrinkLevel() { RS2Widget widget = script.getWidgets().get(202, 1, 9); if(widget != null && widget.isVisible() && widget.getMessage() != null) return Integer.parseInt(widget.getMessage().replace(",", "")); return 0; } 3