Jump to content

Reading the absorbtion text in nmz


Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...