Jump to content

Does anyone know the overhead skull icon ID's?


Solzhenitsyn

Recommended Posts

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;
    }
Link to comment
Share on other sites

 

...

 

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;
    }
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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