September 18, 20169 yr http://osbot.org/api/org/osbot/rs07/api/model/Player.html#getSkullIcon-- If anyone knows, it would be much appreciated.
September 18, 20169 yr -1 is what? No icon? Skull icon. according to this snippet i found on another site.
September 18, 20169 yr Author 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, 20169 yr by Solzhenitsyn
September 18, 20169 yr 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; }
September 18, 20169 yr Author ... 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; }
Create an account or sign in to comment