aivaras Posted January 14, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
Vilius Posted January 14, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Precise Posted January 14, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...