This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Custom Item Quality?  (Read 1751 times)

kasma23

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
[QUESTION] Custom Item Quality?
« 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!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Temptation_Town

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 64
    • View Profile
Re: [QUESTION] Custom Item Quality?
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Custom Item Quality?
« Reply #2 on: November 27, 2014, 11:54:54 pm »
Qualities are hard-coded client-side iirc.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

coronelo

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [QUESTION] Custom Item Quality?
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

kasma23

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: [QUESTION] Custom Item Quality?
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »