I reworked some old npc and its custom q for name and title color change in bunch of various colors for adena. The quest and npc works fine, colors are being changed when npc used. But:
when you change title color at npc, the change has been recorded/updated in db table straight away and after relog changes stays, even before relog you can see changes going into db, but name color is not being updated in db. After relog it has the same old original color back. It hasn’t been recorded in db table at all, only visually while online (same thing if admin changes name color manually, no record in db, only while online), so on exit, when saving players data, there’s nothing new to save/update since db doesn’t have any changes.
I endlessly checked all around source and via search box what I could find on player.getAppearance() and everything that sets name or title color. In PcAppearance and other places via search box all records with color and title matches 1:1 for both where one is mentioned, other is too. I can’t find what’s different, missing, if both are always together in any statement or condition. Even in quest script both have identical lines, on player.getAppearance().setNameColor(nameColor) and player.getAppearance().setTitleColor(titleColor), both sets the colors, only one is updated/saved in db and the other isn’t, why so? Why title is and name isn't?