Forum > Miscellaneous

Creating a new item quality color?

<< < (2/2)

Criminon:

--- Quote from: schlumpf on October 03, 2017, 10:48:27 am ---You know by reverse engineering things. As far as I remember the wotlk client uses an hardcoded array of colors, nothing in lua/xml. You can find it by searching for the colors in hex in the binary. That will only allow you to modify them, not add one.

--- End quote ---

I was using a vanilla wow client, searched for the offsets, found and edited them, and nothing changed. My guess is this is located elsewhere.

schlumpf:
Maybe you just changed the wrong things?

Grymskvll:
In the WotLK client, you need to change colors in (at least) two places in Wow.exe. One for chat links, one for tooltips.

Search for the hex color code in IDA and you'll find the one used for chat links at this address:

--- Code: ---00A24644
--- End code ---

Keep in mind it's stored as a string (https://www.asciitohex.com/)

For the other place, I looked around for GetItemQualityColor and found something pointing to:

--- Code: ---0AD2D84
--- End code ---

Keep in mind these are just stored as hex directly AND they're stored as BGR from top to bottom, rather than RGB.

Apologies if I fucked something up.
Am I correct in understanding that to safely add more color codes, you would change offsets to the end of the file where there's plenty of space?

schlumpf:
Yes. You need to find some unused blob of memory to put the table in. Then you need to change all references to the tables.

Kaev:
You could add the color the item name, like this:
|cFF000000Worn Shortsword|r
first FF should be alpha, 000000 is the hex color code
Hacky but easier than editing the client i guess

(I'm not sure if this works > WotLk.. iirc it worked on WotLk and pretty sure it worked during BC or Vanilla)

Navigation

[0] Message Index

[*] Previous page

Go to full version