RedHawkLuffy Posted May 29, 2015 Share Posted May 29, 2015 How can I read the text in nmz that says how much absorbtion you have left? the top left Quote Link to comment Share on other sites More sharing options...
Zakum Posted May 29, 2015 Share Posted May 29, 2015 Each 1 of the absorption number is equals to 1 damage hit So in this picture, you have 349 Absorption, which means you can take 349 DAMAGE before it runs out. Bretend it is a saradomin brew that adds an extra 349 hp on top of your NORMAL HP. Quote Link to comment Share on other sites More sharing options...
RedHawkLuffy Posted May 29, 2015 Author Share Posted May 29, 2015 Each 1 of the absorption number is equals to 1 damage hit So in this picture, you have 349 Absorption, which means you can take 349 DAMAGE before it runs out. Bretend it is a saradomin brew that adds an extra 349 hp on top of your NORMAL HP. So I have to track the hits the monsters do? Isn't it easier to just read the text? Quote Link to comment Share on other sites More sharing options...
BurritoBug Posted May 29, 2015 Share Posted May 29, 2015 grab it from the chat at the bottom Quote Link to comment Share on other sites More sharing options...
RedHawkLuffy Posted May 29, 2015 Author Share Posted May 29, 2015 grab it from the chat at the bottom What I'm asking is how do I do that.. Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 29, 2015 Share Posted May 29, 2015 implement the onMessage method in your Script class. void onMessage(Message message) { if(message.getType() == MessageType.GAME && message.getMessage().contains("damage absorption left")) { String[] parts = message.getMessage().split(" "); try { int pointsLeft = Integer.parseInt(parts[3]); } catch(NumberFormatException | ArrayIndexOutOfBoundsException ex) {} } } NOTE: Typed it out without an IDE. The syntax may be faulty. Quote Link to comment Share on other sites More sharing options...
Fruity Posted May 29, 2015 Share Posted May 29, 2015 Why not read the widget in the top left where it has the text of what's left? Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 29, 2015 Share Posted May 29, 2015 Why not read the widget in the top left where it has the text of what's left? Lol, I hadn't even noticed that. There will be a client config (VARP) that you can read the value from directly, then (most likely). Try using the client config debugger Quote Link to comment Share on other sites More sharing options...
Fruity Posted May 29, 2015 Share Posted May 29, 2015 Lol, I hadn't even noticed that. There will be a client config (VARP) that you can read the value from directly, then (most likely). Try using the client config debugger Cause you are obv not as good as me? OSD PLZ. But yer i have this in my script ill post the widget thingy when i get home from work :P Quote Link to comment Share on other sites More sharing options...