Rank Badges
Rank Badges draw small emblems left and right of a player's name, over the head and in chat, and can colour the name. Each badge has rules (achievement points, VIP tier, level, resets and more). A player shows the best badge they pass in each slot. Every client sees the badges of every online player on the GameServer, even players off screen (party, guild, whisper and post senders).
File Location#
Data/Plugins/Social/Badges.xml
Reloads with the other plugins.
Dependencies#
- Client atlas
Data/Interface/UI/atlas/badges.png+badges.xml(sample spritesbadge/irontobadge/legend). Add both to the client patch. AchPointsrules need the Achievements add-on. Without it the value is 0.VipTieruses the tiers from VIP System.
How It Works#
- Slots:
Left= icon before the name,Right= icon after the name,None= no icon, name colour only. - Rules: 1 to 8
<Rule>per badge. All must pass. - Picking: per slot, the highest
Prioritybadge whose rules pass is shown. The name colour comes from the highestPrioritypassing badge that has aNameColor. - Name colour is not used when the player has a PK colour or is a GM.
- Updates: checked once per second. Players see a new badge right away when it changes.
Schema#
<Badges Enabled="1">
<Badge Id="1" Name="Iron" Slot="Left" Sprite="badge/iron" Priority="101">
<Rule Type="AchPoints" Min="25"/>
</Badge>
<Badge Id="22" Name="Gold VIP" Slot="None" NameColor="FFD700" Priority="203">
<Rule Type="VipTier" Min="3"/>
</Badge>
</Badges>
Badges#
| Attribute | Default | Meaning |
|---|---|---|
Enabled | 1 | 0 = plugin off |
Badge#
| Attribute | Default | Meaning |
|---|---|---|
Id | 1-254, unique. Keep ids stable once live | |
Name | Display name, max 31 chars | |
Slot | Left | Left, Right or None |
Sprite | AxUi sprite name, e.g. badge/gold. Required for Left / Right | |
NameColor | Optional RRGGBB. Required for Slot="None" | |
Priority | 0 | Higher wins |
Rule#
| Attribute | Default | Meaning |
|---|---|---|
Type | See table below | |
Min | 0 | Lowest value that passes |
Max | -1 | Highest value that passes. -1 = no limit |
| Type | Value |
|---|---|
VipTier | Account VIP tier (0 free, 1 Bronze, 2 Silver, 3 Gold) |
AchPoints | Claimed achievement points |
TalentSpent | Talent tree points spent |
Level | Character level |
MasterLevel | Master level |
Resets | Resets |
MasterResets | Master resets |
GrandResets | Grand resets |
GM | GM authority (2 = event GM, 32 = admin) |
Shipped Config#
- 9 achievement ranks on the left: Iron (25 points), Bronze (100), Silver (250), Gold (500), Platinum (900), Diamond (1400), Master (2000), Grandmaster (2700), Legend (3300). The shipped achievements total 3466 points.
- VIP name colours only: Bronze VIP
CD7F32, Silver VIPC0C0C0, Gold VIPFFD700. - More examples are commented out in the file: grand reset ladder, resets + master resets, talent points, newcomer level window, GM staff badge.
Custom Sprites#
Use Tools\AtlasPacker (see Tools):
AtlasPacker.exe -unpack <client>\Data\Interface\UI\atlas\badges.xml MyBadges(one PNG per shipped badge).- Add your 64x64 PNGs to
MyBadges. AtlasPacker.exe MyBadges badges badge -out <client>\Data\Interface\UI\atlas
The file name is the sprite name: my_badge.png becomes badge/my_badge. Ship the new badges.png / badges.xml in the client patch.
Notes#
- Rule or colour changes apply on reload. New ids or sprites (a changed catalog) show after relog.
- Invalid badges are skipped with a log line: bad or duplicate id,
Left/RightwithoutSprite,NonewithoutNameColor, no rules, unknown rule type.