Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Default Model Colors and Color Substitutions

Engineer
Joined
Jul 28, 2013
Messages
2,776
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.

88908362515f887a28535dc4fb17859b.png


Note: All color values are converted from their original HSB color model to RGB for both ease of use and understanding.
 
This is now available in the latest release! :)
 
Now that this is available I'd really like to see some more miners for OSRS :)
 
Top