Daviyow Posted March 26, 2014 Share Posted March 26, 2014 Why isnt this in the API its so helpfull i cant figure out how getHitSplats work, can anyone put me on track? Link to comment Share on other sites More sharing options...
Wiz Khalifa Posted March 26, 2014 Share Posted March 26, 2014 I always try to avoid the Osbot API as most I can.. Link to comment Share on other sites More sharing options...
Dog_ Posted March 26, 2014 Share Posted March 26, 2014 You can use configs iirc. Link to comment Share on other sites More sharing options...
Sigma Posted March 26, 2014 Share Posted March 26, 2014 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. Link to comment Share on other sites More sharing options...
Joseph Posted March 27, 2014 Share Posted March 27, 2014 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 Link to comment Share on other sites More sharing options...
Fay Posted March 27, 2014 Share Posted March 27, 2014 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 More sharing options...
Pseudo Posted March 27, 2014 Share Posted March 27, 2014 (edited) 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 March 27, 2014 by Pseudo Link to comment Share on other sites More sharing options...
Krulvis Posted March 27, 2014 Share Posted March 27, 2014 (edited) 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 March 27, 2014 by Krulvis 1 Link to comment Share on other sites More sharing options...
Fruity Posted March 27, 2014 Share Posted March 27, 2014 i used the onMessage method for mine :3 works good enough Link to comment Share on other sites More sharing options...
Noterickho123 Posted March 27, 2014 Share Posted March 27, 2014 (edited) 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 March 27, 2014 by Noterickho123 Link to comment Share on other sites More sharing options...
Dog_ Posted March 27, 2014 Share Posted March 27, 2014 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.. Link to comment Share on other sites More sharing options...
Krulvis Posted March 27, 2014 Share Posted March 27, 2014 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 More sharing options...
Sigma Posted March 27, 2014 Share Posted March 27, 2014 i just checked and it is 102.. It was not a setting before. Link to comment Share on other sites More sharing options...