knownTitles base

In the last week i took a closer look at the title system.

I found something i can’t understand, where are the titles stored? In the sourcecode i found only this: (stored != Database knownTitles)

// used for PLAYER__FIELD_KNOWN_TITLES field (uint64), (1<<bit_index) without (-1)
// can’t use enum for uint64 values
#define PLAYER_TITLE_DISABLED UI64LIT(0x0000000000000000)
#define PLAYER_TITLE_NONE UI64LIT(0x0000000000000001)
#define PLAYER_TITLE_PRIVATE UI64LIT(0x0000000000000002) // 1

#define PLAYER_TITLE_HAND_OF_ADAL UI64LIT(0x0000008000000000) // 39
#define PLAYER_TITLE_VENGEFUL_GLADIATOR UI64LIT(0x0000010000000000) // 40

#define KNOWN_TITLES_SIZE 3
#define MAX_TITLE_INDEX (KNOWN_TITLES_SIZE*64) // 3 uint64 fields

Link: https://github.com/TrinityCore/TrinityCore/blob/94e2b9332a1f6ceec024338b8f41cd3dca099a40/src/server/game/Entities/Player/Player.h

For me it seems like the titles are extraced from a DBC file, correct? Because of:

DBCStorage sCharTitlesStore(CharTitlesEntryfmt);

char const CharTitlesEntryfmt[] = "nxssssssssssssssssxxxxxxxxxxxxxxxxxxi"; // -> DBCfmt.h
Link: https://github.com/TrinityCore/TrinityCore/blob/94e2b9332a1f6ceec024338b8f41cd3dca099a40/src/server/game/DataStores/DBCStores.cpp

Greetings, FireEmerald

btw. could someone please delete this site in the wiki: http://collab.kpsn.org/pages/viewpage.action?pageId=7110963 - spam. I can’t delete that.

Titles are held in the DBC file CharTitles.dbc.

Did this answer your question, or, was your question about the current titles of a particular character? because that is a whole different thing, and would be stored in the DB as a bitmask.

@Paradox yes, this was my question as i already wrote: [COLOR=rgb(40,40,40)](stored != Database knownTitles) /emoticons/default_wink.png[COLOR=rgb(40,40,40)]

[COLOR=rgb(40,40,40)]Greetings