Titles
A player wears one title. It shows in front of the name as [Founder] Name: in chat (normal, party, guild, whisper, post) and in the name box over the head (when you hover a player, and while they chat). Players pick their title in the Titles window, opened from the window menu (U).
File Location#
Data/Plugins/Social/Titles.xml
Reloads with the other plugins, or with $titlereload. Players see catalog changes after they relog.
Dependencies#
- Database migration
0012_titles.sql(tablesCharacterTitles,AccountTitles, procedureAXIOM_GrantAccountTitle). The DataServer does not start on an older database. - Client Data:
Data/Interface/UI/fragments/titles.xmland thetitleshost inData/Interface/UI/shells/axiom.xmlandclassic.xml. Ship them in the client patch with the new client. AchPointsrules need the Achievements add-on.VipTieruses the tiers from VIP System.- Title rewards: Achievements, Bestiary, Custom Quests.
How It Works#
- Earned titles have no
<Rule>. They are granted once and kept. A player can wear any title they earned. - Status titles have 1 to 8
<Rule>children, all must pass. They are not stored: the player can pick one while the rules pass. When the rules stop passing (VIP ran out), the title is hidden; it shows again when the rules pass. - Scope:
Charactertitles belong to one character.Accounttitles belong to every character of the account and stay in the database when characters are wiped. - One title at a time. No title is a valid choice. A player can change title once every 3 seconds.
- Updates: status rules are checked once per second. A worn title shows to every player on the GameServer right away.
- Earned message: a player who earns a title gets a chat message and the title is marked new in the Titles window.
- No hide option: titles always show.
Schema#
Titles#
| Attribute | Type | Range | Default | Effect |
|---|---|---|---|---|
| Enabled | int | 0-1 | 1 | 0 = no titles. |
Palette / Color#
The colours titles may use. Titles pick one by name. Missing <Palette> = the 6 colours in the example.
| Attribute | Type | Range | Default | Effect |
|---|---|---|---|---|
| Name | text | - | - | Name a title uses in Color. |
| Value | hex | RRGGBB | - | Text colour. Up to 16 colours. |
Title#
| Attribute | Type | Range | Default | Effect |
|---|---|---|---|---|
| Id | int | 1-255 | - | Unique. Keep ids stable once live: earned titles are stored by id. |
| Text | text | 1-20 chars | - | Shown as [Text]. Longer text is cut. |
| Color | text | palette name | Silver | Colour from <Palette>. Unknown name = first palette colour. |
| Scope | text | Character, Account | Character | Who owns an earned title. |
| Hint | text | 0-63 chars | empty | How to earn it, shown in the Titles window. |
| Hidden | int | 0-1 | 0 | 1 = not listed in the Titles window until earned. |
Rule#
| Attribute | Type | Range | Default | Effect |
|---|---|---|---|---|
| Type | text | see below | - | What is compared. |
| Min | int | any | 0 | Lowest value that passes. |
| Max | int | any | -1 | Highest value that passes. -1 = no limit. |
Rule types: VipTier (0 free, 1 Bronze, 2 Silver, 3 Gold), AchPoints (claimed achievement points), TalentSpent (skill tree points spent), Level, MasterLevel, Resets, MasterResets, GrandResets, GM (2 event GM, 32 GM).
Granting Earned Titles#
| Source | How |
|---|---|
| Achievement tier | <Reward Type="Title" TitleId="10"/> |
| Bestiary milestone | <Milestone Kills="1000" Type="Title" Value="20"/> |
| Custom quest | <Reward Type="Title" TitleId="30"/> |
| GM command | $title add <name> <id>, $title del <name> <id> (player online) |
| SQL | EXEC dbo.AXIOM_GrantAccountTitle 'account', <id> for Scope="Account" titles |
$title list [name] shows what a player owns. Titles with rules cannot be granted.
Important Behavior#
- Achievement and bestiary title rewards that name a missing title, or a status title, are skipped at load with a log line. Custom quest title rewards are checked when they are paid.
- After
$titlereload, run the achievement and bestiary reload too if they give titles. - An SQL grant with
AXIOM_GrantAccountTitleworks while the player is online. The player sees it after the next login. - Renaming a character keeps its titles. Deleting a character deletes its character titles. Account titles stay.
Examples#
<Titles Enabled="1">
<Palette>
<Color Name="Gold" Value="E6C068"/>
<Color Name="Silver" Value="C8CCD4"/>
<Color Name="Bronze" Value="D09A6A"/>
<Color Name="Blue" Value="7FB4E8"/>
<Color Name="Red" Value="E07A6A"/>
<Color Name="Green" Value="8FCC7A"/>
</Palette>
<Title Id="1" Text="Founder" Color="Gold" Scope="Account" Hint="Played the beta" />
<Title Id="10" Text="Dragon Slayer" Color="Red" Hint="Achievement reward" />
<Title Id="102" Text="VIP Gold" Color="Gold" Hint="Active Gold VIP">
<Rule Type="VipTier" Min="3"/>
</Title>
</Titles>
Grant the founder title to every account that had a level 200 character before a wipe:
DECLARE @acc varchar(10)
DECLARE c CURSOR FOR SELECT DISTINCT AccountID FROM Character WHERE cLevel >= 200
OPEN c FETCH NEXT FROM c INTO @acc
WHILE @@FETCH_STATUS = 0
BEGIN
EXEC dbo.AXIOM_GrantAccountTitle @acc, 1
FETCH NEXT FROM c INTO @acc
END
CLOSE c DEALLOCATE c
Common Issues#
| Symptom | Cause | Fix |
|---|---|---|
| No Titles entry in the window menu | Module not licensed, Titles.xml missing or has no valid title, or an old client | Check the GameServer log for Title lines and the license modules. |
| Titles window does not open | Client Data missing the titles fragment or host | Ship fragments/titles.xml and both shell files in the client patch. |
| DataServer refuses to start | Database schema below 12 | Run 0012_titles.sql. |
| Achievement title reward missing | Title id not in Titles.xml, or it has rules | Use an earned title id, then reload. |