wowpedia
Main Menu


Sets the player's displayed title.

SetCurrentTitle(titleId)

Arguments

titleId
number : TitleId - ID of the title you want to set. The identifiers are global and therefore do not depend on which titles you have learned. 0, invalid or unlearned IDs clear your title.

Details

Example

This sets the title "Elder" if your character had earned the title, otherwise it removes any active title.

SetCurrentTitle(43)

Sets a random title from the available ones.

/run local t = {} for i = 1, GetNumTitles() do if IsTitleKnown(i) then tinsert(t, i) end end SetCurrentTitle(t[random(#t)])