Solzhenitsyn Posted September 18, 2016 Share Posted September 18, 2016 http://osbot.org/api/org/osbot/rs07/api/model/Player.html#getSkullIcon-- If anyone knows, it would be much appreciated. Quote Link to comment Share on other sites More sharing options...
Muffins Posted September 18, 2016 Share Posted September 18, 2016 what exactly are you asking Quote Link to comment Share on other sites More sharing options...
Chris Posted September 18, 2016 Share Posted September 18, 2016 -1 1 Quote Link to comment Share on other sites More sharing options...
Muffins Posted September 18, 2016 Share Posted September 18, 2016 -1 o ya that Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted September 18, 2016 Author Share Posted September 18, 2016 -1 -1 is what? No icon? Quote Link to comment Share on other sites More sharing options...
Chris Posted September 18, 2016 Share Posted September 18, 2016 -1 is what? No icon? Skull icon. according to this snippet i found on another site. Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted September 18, 2016 Author Share Posted September 18, 2016 (edited) Skull icon. according to this snippet i found on another site. Just wrote a test script. Maybe someone can update the docs because these aren't the values I would have guessed. -1 = no icon 0 = regular skull 1+ = bh skull Edited September 18, 2016 by Solzhenitsyn 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted September 18, 2016 Share Posted September 18, 2016 Just wrote a test script. Maybe someone can update the docs because these aren't the values I would have guessed. -1 = no icon 0 = regular skull 1+ = bh skull Thanks for the updated values. Thanks for the updated values. Meant to update my reply about -1 this is how I was using it. private boolean playerIsSkulled(Player player) { // If the player has a skull icon return player.getSkullIcon() != -1; } Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted September 18, 2016 Author Share Posted September 18, 2016 ... I guess I can share my snippet too, for anyone who is doing wilderness work. private boolean isPkerPresent() { List<Player> players = getPlayers().getAll(); log("BEGIN PLAYER REPORT: "); for (Player o : players) { log("Player encountered: " + o.getName() + ", Level: " + o.getCombatLevel() + ", Skull icon: " + o.getSkullIcon()); if (aMethods.weAreAttackable(o) && o.getSkullIcon() != -1 && !o.getName().equals(myPlayer().getName())) { log("RUNNING FROM PKER: " + o.getName()); return true; } } log("-----"); return false; } Quote Link to comment Share on other sites More sharing options...