Jump to content

isPoisoned


Daviyow

Recommended Posts

This might set you on track a little? Threw this together not even sure what it outputs as I am at work and cant run the client because we block the auth port. :(

import org.osbot.script.rs2.ui.HitSplat;
    
public void isPoisoned() throws InterruptedException {
    HitSplat[] hits = this.myPlayer().getHitSplats();
    for(HitSplat hit : hits){
    	log(hit.toString());
    }
    }
Link to comment
Share on other sites

Poison is not a setting (config).

 

The only way to check for this currently is to check the color of the hp orb which is not always reliable.

I was almost certain that it is. You sure?

 

E:

public boolean isPoisoned() {
        return client.getConfig(102) != 0;
    }
Edited by Pseudo
Link to comment
Share on other sites

 

I was almost certain that it is. You sure?

 

E:

public boolean isPoisoned() {
        return client.getConfig(102) != 0;
    }

No, he is right, the only way to check is by onMessage (failmodus) or by checking the hitsplat type (or color). But this could be too late (tai bwo wannai bitches hitting your lv 3)

 

 

EDIT: 102 actually is poison config, but !=0 is wrong because if you drink antipoison you are -5. Let me do some more debugging.

public boolean isPoisoned() {
        return client.getConfig(102) > 0;
    }

This should do it

Edited by Krulvis
  • Like 1
Link to comment
Share on other sites

No, he is right, the only way to check is by onMessage (failmodus) or by checking the hitsplat type (or color). But this could be too late (tai bwo wannai bitches hitting your lv 3)

 

 

EDIT: 102 actually is poison config, but !=0 is wrong because if you drink antipoison you are -5. Let me do some more debugging.

public boolean isPoisoned() {
        return client.getConfig(102) > 0;
    }

This should do it

When did it become a config? Last time I checked (really long time ago), it was never a config. Unless it was changed during hp orbs update

 

Edit1: It is a config now, but it previously wasn't

Edited by Noterickho123
Link to comment
Share on other sites

When did it become a config? Last time I checked (really long time ago), it was never a config. Unless it was changed during hp orbs update

 

Edit1: It is a config now, but it previously wasn't

Ye I know. A long time ago I struggled with this too, but tbh... I never really checked configs since I always thought it wasn't a config so it could've been a config all along (for as far as I know)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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