Jump to content

Does anyone know the overhead skull icon ID's?


Recommended Posts

Posted

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;
    }
Posted

 

...

 

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...