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
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.