Daviyow Posted March 26, 2014 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?
Wiz Khalifa Posted March 26, 2014 Posted March 26, 2014 I always try to avoid the Osbot API as most I can..
Sigma Posted March 26, 2014 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.
Joseph Posted March 27, 2014 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
Fay Posted March 27, 2014 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()); } }
Pseudo Posted March 27, 2014 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
Krulvis Posted March 27, 2014 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
Fruity Posted March 27, 2014 Posted March 27, 2014 i used the onMessage method for mine :3 works good enough
Noterickho123 Posted March 27, 2014 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
Dog_ Posted March 27, 2014 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..
Krulvis Posted March 27, 2014 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)
Sigma Posted March 27, 2014 Posted March 27, 2014 i just checked and it is 102.. It was not a setting before.