Likes: 0
Results 1 to 1 of 1
-
20-10-13, 12:16 AM #1
Custom Color Item Qualities Your Message
Register to remove this adThis method is untested however i see no reason why it should not work.
First find and open SharedDefines.h
Find
Code:enum ItemQualities { ITEM_QUALITY_POOR = 0, //GREY ITEM_QUALITY_NORMAL = 1, //WHITE ITEM_QUALITY_UNCOMMON = 2, //GREEN ITEM_QUALITY_RARE = 3, //BLUE ITEM_QUALITY_EPIC = 4, //PURPLE ITEM_QUALITY_LEGENDARY = 5, //ORANGE ITEM_QUALITY_ARTIFACT = 6, //LIGHT YELLOW ITEM_QUALITY_HEIRLOOM = 7 }; #define MAX_ITEM_QUALITY 8
Ok first we will add another line to the enum ItemQualities
It should now look like this
Code:enum ItemQualities { ITEM_QUALITY_POOR = 0, //GREY ITEM_QUALITY_NORMAL = 1, //WHITE ITEM_QUALITY_UNCOMMON = 2, //GREEN ITEM_QUALITY_RARE = 3, //BLUE ITEM_QUALITY_EPIC = 4, //PURPLE ITEM_QUALITY_LEGENDARY = 5, //ORANGE ITEM_QUALITY_ARTIFACT = 6, //LIGHT YELLOW ITEM_QUALITY_HEIRLOOM = 7, ITEM_QUALITY_CATACLYSMIC = 8 };
Code:#define MAX_ITEM_QUALITY 8
Code:#define MAX_ITEM_QUALITY 9
Now go down a little bit and find
Code:const uint32 ItemQualityColors[MAX_ITEM_QUALITY] = { 0xff9d9d9d, //GREY 0xffffffff, //WHITE 0xff1eff00, //GREEN 0xff0070dd, //BLUE 0xffa335ee, //PURPLE 0xffff8000, //ORANGE 0xffe6cc80, //LIGHT YELLOW 0xffe6cc80 //LIGHT YELLOW };
Add Another line with the color code you want it to display as
I am going to use ffff00 aka red as a example and should now look something like this.
Code:const uint32 ItemQualityColors[MAX_ITEM_QUALITY] = { 0xff9d9d9d, //GREY 0xffffffff, //WHITE 0xff1eff00, //GREEN 0xff0070dd, //BLUE 0xffa335ee, //PURPLE 0xffff8000, //ORANGE 0xffe6cc80, //LIGHT YELLOW 0xffe6cc80, //LIGHT YELLOW 0xffffff00 //RED };
Keep in mind this is not tested just seen the code and said hmm it could be handy.
› See More: Custom Color Item Qualities Your Message
Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread
Visitors found this page by searching for:
Nobody landed on this page from a search engine, yet!
SEO Blog