1. #1

    Random Titles Addon

    Are there any addons out there that will randomly change my title every time I log in? I have a lot of different titles and would like a way to add some randomization into it.

  2. #2
    The SetCurrentTitle function was protected in 3.3, meaning it can only be called from a hardware event. This makes it impossible for an AddOn to automatically set your title automatically, but it could be achieved if the AddOn created a button for you to press.

    A simpler solution is to just use this macro (taken from Wowpedia [www{dot}wowpedia{dot}org/API_SetCurrentTitle]):

    Code:
    /run local t={}; for titles=1,GetNumTitles()-1,1 do if IsTitleKnown(titles)==1 then table.insert(t,titles) end; end; local x=random(#t); print("Using title: "..GetTitleName(t[x])); SetCurrentTitle(t[x])

  3. #3
    Thank you for the reply, I'll try it out when the servers come back up.

  4. #4
    Quote Originally Posted by Jabin View Post
    Thank you for the reply, I'll try it out when the servers come back up.
    Just tested on EU, his script still works =)

    And yes, an addon can't directly call this function
    Last edited by Ketho; 2011-03-22 at 03:36 PM.

  5. #5
    Deleted
    Quote Originally Posted by Choonster the Second View Post
    was protected in 3.3, meaning it can only be called from a hardware event
    It's nitpicking, but that isn't quite what protected means.

  6. #6
    Yay, it works, thank you. Now I don't have to decide which one I wanna use for the day

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •