1. #1

    Weakaura for Cataclysm / Player Class + Spec

    Hi,

    I need help to create a simple Weakaura in Cataclysm that shows me a Text with my player class + specizalization.

    e.g. "Druid - Feral" or "Mage - Fire"

    thanks

  2. #2
    I dont play Cataclysm.

    Try

    Trigger Type: Custom
    Event Type: Event
    Event(s): PLAYER_TALENT_UPDATE, PLAYER_ENTERING_WORLD

    Code:
    function()
        local _, class = UnitClass("player")
        local spec = GetPrimaryTalentTree()
        
        if spec then
            local specName = select(2, GetTalentTabInfo(spec))
            return specName .. " " .. class
        else
            return "No Spec " .. class
        end
    end

Posting Permissions

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