Default Model Colors and Color Substitutions

Discussion in 'Client Updates' started by Cloud, Jun 26, 2015.

  1. Cloud

    Jul 28, 2013
    Likes Received:
    Many objects and npcs share the same model yet appear different in game. This is done via color substitutions and previously has caused many issues for developers trying to make miners among other things in both OSRS and RS3. To help developers better work with these types of objects and npcs, we will soon be providing access to the default colors of all models along with the color substitutions done by the entity.

    The default colors of an entities model are provided by the Set<Color> Model.getDefaultColors() method and the color substitutions are provided individually by the GameObjectDefinition and NpcDefinition methods Map<Color, Color> getColorSubstitutions. If demand exists this could also be applied to GroundItems.

    These values are also searchable from within the respective entity queries.


    Note: All color values are converted from their original HSB color model to RGB for both ease of use and understanding.
    --- Double Post Merged, Jun 26, 2015, Original Post Date: Jun 25, 2015 ---
    This is now available in the latest release! :)
    --- Double Post Merged, Jun 26, 2015 ---
    Now that this is available I'd really like to see some more miners for OSRS :)
    dog_, Arcurus and Arbiter like this.
  2. Aidden

    Aidden The better executive

    Dec 3, 2013
    Likes Received:
    About bloody time! :D I'll be rewriting my miner and adding osrs support VERY soon :)
    Arcurus likes this.
  3. Dibes

    Nov 18, 2013
    Likes Received:
    This is fantastic! Thanks for your work cloud! :)

Share This Page