Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: kasma23 on October 26, 2014, 10:54:54 am

Title: [QUESTION] Custom Item Quality?
Post by: kasma23 on October 26, 2014, 10:54:54 am
i was wondering if anyone knew how to add custom item Qualitys in trinitycore 3.3.5? i tryed editing the core the SharedDefines.h but the colors didnt work ingame seems to set some random ones.


mabey its a DBC or Client mod i need?

Thanks in advance!
Title: Re: [QUESTION] Custom Item Quality?
Post by: Temptation_Town on November 27, 2014, 08:18:44 am
Here we go.

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


They are defined in SharedDefines.h

And maybe check item.cpp , item.h

But I'm not sure how the DB will apply new entries.

Also there was a way to edit item name colors without adding new qualities.
Title: Re: [QUESTION] Custom Item Quality?
Post by: Ascathos on November 27, 2014, 11:54:54 pm
Qualities are hard-coded client-side iirc.
Title: Re: [QUESTION] Custom Item Quality?
Post by: coronelo on November 28, 2014, 04:37:17 pm
remember to add to the list of colors color before giving a value , that you do a few lines above the same code , I hope you helps.
Title: Re: [QUESTION] Custom Item Quality?
Post by: kasma23 on December 20, 2014, 02:03:20 am
Quote from: "coronelo"
remember to add to the list of colors color before giving a value , that you do a few lines above the same code , I hope you helps.


ya i tryed that the colors kinda work its like instead of being Red its blue its the client side thats showing blue so i dont know how to change that.