Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

isPoisoned

Featured Replies

Why isnt this in the API its so helpfull :/

 

i cant figure out how getHitSplats work, can anyone put me on track?

You can use configs iirc.

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.

Rather then checking for color. I pretty sure you could use interfaces since when your poison I think the orb is click able so that could help

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());
    }
    }

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

 

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

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

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 just checked and it is 102..

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)

i just checked and it is 102..

It was not a setting before.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.