|
|
I just wanted to confirm something about textures on OSRS dumped items.
I am currently using a Ruse base source that has custom textured packed into it.
Do I still need to add different readValues for OSRS items that has textures. Like the Infernal Cape/Infernal Max cape etc
For example, the Infernal Cape texture is packed in the cache as 60.
To test this, I can add this bit of code to a Firecape and it'll show the Lava texture.
However the Infernal Cape still shows as a White Cape. If it's readValues, I should be able to figure it out myself. But just wanted to make sure I'm looking in the right direction.Code:itemDef.editedModelColor = new int[]{40}; itemDef.newModelColor = new int[]{60};
Thank you.

OSRS read values also introduced textures opcode (41):
And yes, you also need to include model texturing in the Model class itself.Code:int len = stream.readUnsignedByte(); short[] originalTexture = new short[len]; short[] modifiedTexture = new short[len]; for (int i = 0; i < len; i++) { originalTexture[i] = (short) stream.readUShort(); modifiedTexture[i] = (short) stream.readUShort(); }
Yeah, I was thinking that if my source already had textures. And can apply it to models. Say for example, your typical Torva with texture on it. It would work with an Infernal Cape.
| « Adding NPC and Items | Fire cape / Infernal cape » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |