Navigation menu

WoW:API SetCurrentTitle: Difference between revisions

Jump to navigation Jump to search
→‎Example: Mistake corrected.
(Marked as protected (patch 3.3))
(→‎Example: Mistake corrected.)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__
{{protectedapi|3.3|}}
Changes your character's displayed title.
Changes your character's displayed title.
  SetCurrentTitlte(titleId);
  SetCurrentTitlte(titleId);
Line 10: Line 9:
  SetCurrentTitle(43);
  SetCurrentTitle(43);


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


  /script repeat i = random(GetNumTitles()) until IsTitleKnown(i) == 1; SetCurrentTitle(i)
  /script repeat i = random(GetNumTitles()) until IsTitleKnown(i) == 1; SetCurrentTitle(i)
Anonymous user