TitleId

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.

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