• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Custom Text Color

Portals

Banned
I am wondering if anyone knows how to add a new quality and change colors of certain qualities?

For instance Rare is Blue, I want to make Rare Pink or something, or create a new quality like this list..

Broken: Grey
Normal: White
Unidentified: Red
Magic: Blue
Rare: Yellow
Set: Green
Unique: Gold

Also I am trying to figure out how to make items of these qualities show no stats until identified.

Unidentified: Red
Magic: Blue
Rare: Yellow
Set: Green
Unique: Gold
 

Rochet2

Moderator / Eluna Dev
You should be able to find the color definitions in the core.
Editing those probably does the job. Not entirely sure if adding a new quality and a new color will work .. hmm.
I think someone made a patch for that but didnt test himself and I didnt see anyone reply that it would work.
Someone like Laurea probably said that it would work though.

See SharedDefines.h
ItemQualities
ItemQualityColors


For the stats, as discussed earlier, you can do it in some ways.
See this thread, especially Laurea's reply.
http://emudevs.com/showthread.php/1979-Question-about-item-generation

You can also try having a dummy item drop and then when you identify it, the player gets the real item (randomly from select items)
Use your imagination :)
 
Last edited:

Portals

Banned
You should be able to find the color definitions in the core.
Editing those probably does the job. Not entirely sure if adding a new quality and a new color will work .. hmm.
I think someone made a patch for that but didnt test himself and I didnt see anyone reply that it would work.
Someone like Laurea probably said that it would work though.

See SharedDefines.h
ItemQualities
ItemQualityColors


For the stats, as discussed earlier, you can do it in some ways.
See this thread, especially Laurea's reply.
http://emudevs.com/showthread.php/1979-Question-about-item-generation

You can also try having a dummy item drop and then when you identify it, the player gets the real item (randomly from select items)
Use your imagination :)

Alright and yeah I was thinking about just items with no stats and then using another item to identify them and randomly pick a rare item to be spawned in its place.
 

Laurea

Enthusiast
There are two ways to do what you want: either do it the normal way (color code in item name), or do it the stupidly hard way (change the exe). I would recommend doing it the normal way, since it's less of a hassle and the only real benefit is that you won't have an ugly discolored bracket in links. If you want to do it client-side, I can send you an exe that already has the item quality colors changed to match those in diablo 2, since I guess that's what you want.

As for adding qualities, that's easy if you just use color codes: simply edit the core to prefix a color based on item quality when sending SMSG_ITEM_QUERY_SINGLE_RESPONSE (line 310 in ItemHandler.cpp).
If you do it by editing the exe, you have one spare quality (heirbloom/artifact have the same color normally), but past that it gets complicated, and I won't go into detail.
 
Top