1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Default Model Colors and Color Substitutions

Discussion in 'Announcements' started by Cloud, Jun 26, 2015.

  1. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    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.

    [​IMG]

    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 :)
     
  2. Aidden

    Aidden Author of MaxiBots

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

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

Share This Page

Loading...