WoW:TitleId: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
Line 1: Line 1:
{{DISPLAYTITLE:titleID}}
{{DISPLAYTITLE:titleID}}
{{wowapitype}}<br>
{{wowapitype}}<br>
== titleID API Type (Number) ==
titleIDs are used for retrieving and setting the player's displayed title, e.g. "Champion of the Naaru" or "Private"
titleIDs are used for retrieving and setting the player's displayed title, e.g. "Champion of the Naaru" or "Private"


They are indices from 1 to [[API GetNumTitles|GetNumTitles]]().
They are indices from 1 to [[API GetNumTitles|GetNumTitles]]().


The titleIDs as of 3.0.2 are
==TitleId Index with Names ([[API GetTitleName|GetTitleName]])==
 
1: Private <br>
2: Corporal <br>
3: Sergeant <br>
4: Master Sergeant <br>
5: Sergeant Major <br>
6: Knight <br>
7: Knight-Lieutenant <br>
8: Knight-Captain <br>
9: Knight-Champion <br>
10: Lieutenant Commander <br>
11: Commander <br>
12: Marshal <br>
13: Field Marshal <br>
14: Grand Marshal <br>
15: Scout <br>
16: Grunt <br>
17: Sergeant <br>
18: Senior Sergeant <br>
19: First Sergeant <br>
20: Stone Guard <br>
21: Blood Guard <br>
22: Legionnaire <br>
23: Centurion <br>
24: Champion <br>
25: Lieutenant General <br>
26: General <br>
27: Warlord <br>
28: High Warlord <br>
29: Gladiator <br>
30: Duelist <br>
31: Rival <br>
32: Challenger <br>
33: Scarab Lord <br>
34: Conqueror <br>
35: Justicar <br>
36: Champion of the Naaru <br>
37: Merciless Gladiator <br>
38: of the Shattered Sun <br>
39: Hand of A'dal <br>
40: Vengeful Gladiator <br>
41: Battlemaster <br>
42: the Seeker <br>
43: Elder <br>
44: Flame Warden <br>
45: Flame Keeper <br>
46: the Exalted <br>
47: the Explorer <br>
48: the Diplomat <br>
49: Brutal Gladiator <br>
50: Arena Master <br>
51: Salty <br>
52: Chef <br>
53: the Supreme <br>
54: of the Ten Storms <br>
55: of the Emerald Dream <br>
56: Crusader <br>
57: Prophet <br>
58: the Malefic <br>
59: Stalker <br>
60: of the Ebon Blade <br>
61: Archmage <br>
62: Warbringer <br>
63: Assassin <br>
64: Grand Master Alchemist <br>
65: Grand Master Blacksmith <br>
66: Iron Chef <br>
67: Grand Master Enchanter <br>
68: Grand Master Engineer <br>
69: Doctor <br>
70: Grand Master Angler <br>
71: Grand Master Herbalist <br>
72: Grand Master Scribe <br>
73: Grand Master Jewelcrafter <br>
74: Grand Master Leatherworker <br>
75: Grand Master Miner <br>
76: Grand Master Skinner <br>
77: Grand Master Tailor <br>
78: of Quel'Thalas <br>
79: of Argus <br>
80: of Khaz Modan <br>
81: of Gnomeregan <br>
82: the Lion Hearted <br>
83: Champion of Elune <br>
84: Hero of Orgrimmar <br>
85: Plainsrunner <br>
86: of the Darkspear <br>
87: the Forsaken <br>
88: the Magic Seeker <br>
89: Twilight Vanquisher <br>
90: Conqueror of Naxxramas <br>
91: Hero of Northrend <br>
92: the Hallowed <br>
93: Loremaster <br>
94: of the Alliance <br>
95: of the Horde <br>
96: the Flawless Victor <br>
97: Champion of the Frozen Wastes <br>
98: Ambassador <br>
99: the Argent Champion <br>
100: Guardian of Cenarius <br>
101: Brewmaster <br>
102: Merrymaker <br>
103: the Love Fool <br>
104: Matron <br>
105: Patron <br>
106: Obsidian Slayer <br>
107: of the Nightfall <br>
108: the Immortal <br>
109: the Undying <br>
110: Jenkins <br>
111: Bloodsail Admiral <br>
112: nil
 
[[API GetNumTitles|GetNumTitles]] returns 112, but [[API GetTitleName|GetTitleName]] returns nil for the 112th title because title 112 removes the player's name completely (Not available to players).


Title index -1 will clear titles from the player's name. (Option "None" from the Character frame's title dropdown menu.)
{| class="sortable darktable"
|+ TitleId (as of Patch 3.3.3a)
|-
! TitleId !! Prefix !! Suffix
|-
| 001 || Private ||
|-class="alt"
| 002 || Corporal ||
|-
| 003 || Sergeant ||
|-class="alt"
| 004 || Master Sergeant ||
|-
| 005 || Sergeant Major||
|-class="alt"
| 006 || Knight ||
|-
| 007 || Knight-Lieutenant ||
|-class="alt"
| 008 || Knight-Captain ||
|-
| 009 || Knight-Champion ||
|-class="alt"
| 010 || Lieutenant Commander ||
|-
| 011 || Commander ||
|-class="alt"
| 012 || Marshal ||
|-
| 013 || Field Marshal ||
|-class="alt"
| 014 || Grand Marshal ||
|-
| 015 || Scout ||
|-class="alt"
| 016 || Grunt ||
|-
| 017 || Sergeant ||
|-class="alt"
| 018 || Senior Sergeant ||
|-
| 019 || First Sergeant ||
|-class="alt"
| 020 || Stone Guard ||
|-
| 021 || Blood Guard ||
|-class="alt"
| 022 || Legionnaire ||
|-
| 023 || Centurion ||
|-class="alt"
| 024 || Champion ||
|-
| 025 || Lieutenant General ||
|-class="alt"
| 026 || General ||
|-
| 027 || Warlord ||
|-class="alt"
| 028 || High Warlord ||
|-
| 029 || Gladiator ||
|-class="alt"
| 030 || Duelist ||
|-
| 031 || Rival ||
|-class="alt"
| 032 || Challenger ||
|-
| 033 || Scarab Lord ||
|-class="alt"
| 034 || Conqueror ||
|-
| 035 || Justicar ||
|-class="alt"
| 036 || || Champion of the Naaru
|-
| 037 || Merciless Gladiator ||
|-class="alt"
| 038 || || of the Shattered Sun
|-
| 039 || || Hand of A'dal
|-class="alt"
| 040 || Vengeful Gladiator ||
|-
| 041 || Battlemaster ||
|-class="alt"
| 042 || || the Seeker
|-
| 043 || Elder ||
|-class="alt"
| 044 || Flame Warden ||
|-
| 045 || Flame Keeper ||
|-class="alt"
| 046 || || the Exalted
|-
| 047 || || the Explorer
|-class="alt"
| 048 || || the Diplomat
|-
| 049 || Brutal Gladiator ||
|-class="alt"
| 050 || Arena Master ||
|-
| 051 || Salty ||
|-class="alt"
| 052 || Chef ||
|-
| 053 || || the Supreme
|-class="alt"
| 054 || || of the Ten Storms
|-
| 055 || || of the Emerald Dream
|-class="alt"
| 056 || Deadly Gladiator ||
|-
| 057 || Prophet ||
|-class="alt"
| 058 || || the Malefic
|-
| 059 || Stalker ||
|-class="alt"
| 060 || || of the Ebon Blade
|-
| 061 || Archmage ||
|-class="alt"
| 062 || Warbringer ||
|-
| 063 || Assassin ||
|-class="alt"
| 064 || Grand Master Alchemist ||
|-
| 065 || Grand Master Blacksmith ||
|-class="alt"
| 066 || Iron Chef ||
|-
| 067 || Grand Master Enchanter ||
|-class="alt"
| 068 || Grand Master Engineer ||
|-
| 069 || Doctor ||
|-class="alt"
| 070 || Grand Master Angler ||
|-
| 071 || Grand Master Herbalist ||
|-class="alt"
| 072 || Grand Master Scribe ||
|-
| 073 || Grand Master Jewelcrafter ||
|-class="alt"
| 074 || Grand Master Leatherworker ||
|-
| 075 || Grand Master Miner ||
|-class="alt"
| 076 || Grand Master Skinner ||
|-
| 077 || Grand Master Tailor ||
|-class="alt"
| 078 || || of Quel'Thalas
|-
| 079 || || of Argus
|-class="alt"
| 080 || || of Khaz Modan
|-
| 081 || || of Gnomergan
|-class="alt"
| 082 || || the Lion Hearted
|-
| 083 || || Champion of Elune
|-class="alt"
| 084 || || Hero of Orgrimmar
|-
| 085 || Plainsrunner ||
|-class="alt"
| 086 || || of the Darkspear
|-
| 087 || || the Forsaken
|-class="alt"
| 088 || || the Magic Seeker
|-
| 089 || Twilight Vanquisher ||
|-class="alt"
| 090 || || Conqueror of Naxxramas
|-
| 091 || || Hero of Northrend
|-class="alt"
| 092 || || the Hallowed
|-
| 093 || Loremaster ||
|-class="alt"
| 094 || || of the Alliance
|-
| 095 || || of the Horde
|-class="alt"
| 096 || || the Flawless Victor
|-
| 097 || || Champion of the Frozen Wastes
|-class="alt"
| 098 || Ambassador ||
|-
| 099 || || the Argent Champion
|-class="alt"
| 100 || || Guardian of Cenarius
|-
| 101 || Brewmaster ||
|-class="alt"
| 102 || Merrymaker ||
|-
| 103 || || the Love Fool
|-class="alt"
| 104 || Matron ||
|-
| 105 || Patron ||
|-class="alt"
| 106 || Obsidian Slayer ||
|-
| 107 || || of the Nightfall
|-class="alt"
| 108 || || the Immortal
|-
| 109 || || the Undying
|-class="alt"
| 110 || || Jenkins
|-
| 111 || Bloodsail Admiral ||
|-class="alt"
| 112 || || the Insane
|-
| 113 || || of the Exodar
|-class="alt"
| 114 || || of Darnassus
|-
| 115 || || of Ironforge
|-class="alt"
| 116 || || of Stormwind
|-
| 117 || || of Orgrimmar
|-class="alt"
| 118 || || of Sen'jin
|-
| 119 || || of Silvermoon
|-class="alt"
| 120 || || of Thunder Bluff
|-
| 121 || ||  of the Undercity
|-class="alt"
| 122 || || the Noble
|-
| 123 || Crusader ||
|-class="alt"
| 124 || || Death's Demise
|-
| 125 || || the Celestial Defender
|-class="alt"
| 126 || || Conqueror of Ulduar
|-
| 127 || || Champion of Ulduar
|-class="alt"
| 128 || Vanquisher ||
|-
| 129 || Starcaller ||
|-class="alt"
| 130 || || the Astral Walker
|-
| 131 || || Herald of the Titans
|-class="alt"
| 132 || Furious Gladiator ||
|-
| 133 || || the Pilgrim
|-class="alt"
| 134 || Relentless Gladiator ||
|-
| 135 || Grand Crusader ||
|-class="alt"
| 136 || || the Argent Defender
|-
| 137 || || the Patient
|-class="alt"
| 138 || || the Light of Dawn
|-
| 139 || || Bane of the Fallen King
|-class="alt"
| 140 || || the Kingslayer
|-
| 141 || || of the Ashen Verdict
|-class="alt"
| 142 || Wrathful Gladiator ||
|}


== Printing titleIDs for debug ==
== Printing titleIDs for debug ==


This simple script code will iterate through the title IDs and display them in the default chat window
This simple script code will iterate through the title IDs and display them in the default chat window:


  for i = 1, [[API GetNumTitles|GetNumTitles]]() do
  for i = 1, [[API GetNumTitles|GetNumTitles]]() do
     DEFAULT_CHAT_FRAME:AddMessage(i.." "..(GetTitleName(i) or "nil"))
     print(i..":"..([[API GetTitleName|GetTitleName]](i) or "nil"))
  end
  end

Revision as of 15:55, 6 May 2010

Warning: Display title "WoW API type: TitleId" overrides earlier display title "titleID".API types

titleIDs are used for retrieving and setting the player's displayed title, e.g. "Champion of the Naaru" or "Private"

They are indices from 1 to GetNumTitles().

TitleId Index with Names (GetTitleName)

TitleId (as of Patch 3.3.3a)
TitleId Prefix Suffix
001 Private
002 Corporal
003 Sergeant
004 Master Sergeant
005 Sergeant Major
006 Knight
007 Knight-Lieutenant
008 Knight-Captain
009 Knight-Champion
010 Lieutenant Commander
011 Commander
012 Marshal
013 Field Marshal
014 Grand Marshal
015 Scout
016 Grunt
017 Sergeant
018 Senior Sergeant
019 First Sergeant
020 Stone Guard
021 Blood Guard
022 Legionnaire
023 Centurion
024 Champion
025 Lieutenant General
026 General
027 Warlord
028 High Warlord
029 Gladiator
030 Duelist
031 Rival
032 Challenger
033 Scarab Lord
034 Conqueror
035 Justicar
036 Champion of the Naaru
037 Merciless Gladiator
038 of the Shattered Sun
039 Hand of A'dal
040 Vengeful Gladiator
041 Battlemaster
042 the Seeker
043 Elder
044 Flame Warden
045 Flame Keeper
046 the Exalted
047 the Explorer
048 the Diplomat
049 Brutal Gladiator
050 Arena Master
051 Salty
052 Chef
053 the Supreme
054 of the Ten Storms
055 of the Emerald Dream
056 Deadly Gladiator
057 Prophet
058 the Malefic
059 Stalker
060 of the Ebon Blade
061 Archmage
062 Warbringer
063 Assassin
064 Grand Master Alchemist
065 Grand Master Blacksmith
066 Iron Chef
067 Grand Master Enchanter
068 Grand Master Engineer
069 Doctor
070 Grand Master Angler
071 Grand Master Herbalist
072 Grand Master Scribe
073 Grand Master Jewelcrafter
074 Grand Master Leatherworker
075 Grand Master Miner
076 Grand Master Skinner
077 Grand Master Tailor
078 of Quel'Thalas
079 of Argus
080 of Khaz Modan
081 of Gnomergan
082 the Lion Hearted
083 Champion of Elune
084 Hero of Orgrimmar
085 Plainsrunner
086 of the Darkspear
087 the Forsaken
088 the Magic Seeker
089 Twilight Vanquisher
090 Conqueror of Naxxramas
091 Hero of Northrend
092 the Hallowed
093 Loremaster
094 of the Alliance
095 of the Horde
096 the Flawless Victor
097 Champion of the Frozen Wastes
098 Ambassador
099 the Argent Champion
100 Guardian of Cenarius
101 Brewmaster
102 Merrymaker
103 the Love Fool
104 Matron
105 Patron
106 Obsidian Slayer
107 of the Nightfall
108 the Immortal
109 the Undying
110 Jenkins
111 Bloodsail Admiral
112 the Insane
113 of the Exodar
114 of Darnassus
115 of Ironforge
116 of Stormwind
117 of Orgrimmar
118 of Sen'jin
119 of Silvermoon
120 of Thunder Bluff
121 of the Undercity
122 the Noble
123 Crusader
124 Death's Demise
125 the Celestial Defender
126 Conqueror of Ulduar
127 Champion of Ulduar
128 Vanquisher
129 Starcaller
130 the Astral Walker
131 Herald of the Titans
132 Furious Gladiator
133 the Pilgrim
134 Relentless Gladiator
135 Grand Crusader
136 the Argent Defender
137 the Patient
138 the Light of Dawn
139 Bane of the Fallen King
140 the Kingslayer
141 of the Ashen Verdict
142 Wrathful Gladiator

Printing titleIDs for debug

This simple script code will iterate through the title IDs and display them in the default chat window:

for i = 1, GetNumTitles() do
    print(i..":"..(GetTitleName(i) or "nil"))
end