WoW:TitleId: Difference between revisions

4,030 bytes added ,  15 August 2023
m
Move page script moved page TitleId to WoW:TitleId without leaving a redirect
(New page to describe titleIDs)
 
m (Move page script moved page TitleId to WoW:TitleId without leaving a redirect)
 
(10 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:titleID}}
{{DISPLAYTITLE:titleID}}
{{wowapitype}}
{{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 July 10, 2008 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: nil<br>


[[API GetNumTitles|GetNumTitles]] returns 41, but [[API GetTitleName|GetTitleName]] returns nil for the 41st title.
{| 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, 
     DEFAULT_CHAT_FRAME:AddMessage(i.." "..(GetTitleName(i) or "nil"))
() do
     print(i..":"..(281(i) or "nil"))
  end
  end
Anonymous user