1. Weak aura life target Percentage

    Hello, i play affliction warlock. I need a weak aura to track the exact percentage of the target. Can someone tell me how can i reach this objective?

  2. Originally Posted by Back-ported WotLK WeakAuras 3.1.8 compatible
    Code:
    !WA:2!vwvZUTTrq4y4dPGObWwfWPanTGvTUWnWq1)aiKlUaIkurUqwwMIQ2bOaeljxkUjulxS7szjFuOhYz)iOZ9KEeYdqbHrFcYLEppbD4U0okPkOPcWwZU7SZm733mFATwvgvjSs4REmpntMqOy(PdC7CCxBNG0Ku(VSo8zrirWsqtDXtKZ2wirbVuS98GmHmDuXES)mkJgijP0D(rdt4tsAakXmMzEK5akr2gJsKX7uvI4dXYQl7Zi0K2VVBNGMSspJz9W8aWviS)u59ES5(7TNYh1)yCcvcxgkjZIkQ6UGZ7Q9D3YaOdjhlZ40)9PgyAOHXnIyuy6Lp)0Oibw(O7TardIt59sHW730URRTdZCjmXlkLpcj9c23d57ZXJjijoMTX7qObSqylh8ymv(gugSlsscoNekJTAal5if8jQ7aOlxAyra8WWpc(seBmtYjdhI5IU)aV08vBSqhDVysi2xBBjNYW5p82tuREWBez(Q82plkImzHxZg9D9672WXLNrvN4ijJWHZcZ4OIQOY(5pyEZ0r(iPzN0HVwhU(kAN933r11QvtdMKif9zpHiKI3XDMYymv5WNAlX)V2Ip1wJ7ApwI41e2ov3U2ErvF)wJIoa4phkAewyOHob7GEDA8CBhpa2EMTRxZ2n6(m7NUR5GUh7612Urh32LloPXf61ZemCsYXHcJ8hYEYDWMkG7AEh6vwrRcbv1rqmo4LlrJ94yGgD63ZUthRm4w(fTHy(COnayyxG05TT70R1GoxNrlBx2ckHl)OLaqG69mp6iZQR8L(H0zzvttLRUYxcjlupEHk1JXhGOtzBIu2U6s7K0q8FCp2xTI5jwPr(x)wyYdZPOKFfMcGNWzShT65pTLfnLIzF))1iQh0QSPvukvY2OfNCL5zzOqygaz66UYbCT03Tvv95aN4Ghwm4AyLKIcBzjixH3YzuwIKyybnabBL)ZgobjiHOWYxIsaCUWCwrE7dUJkLBUql3S(bzKWfhIUkz8Hxw)GZWZ5QuuqSwfsBZb6hhQ0o(9pN9DRe3kgO9yCCaPaTw)AbojsjFLBWNOZZA8P3A8cyaNen1QJDl35Y0GXAq(Zg)BvjHSVXEcqyMUkQ1upnAwmVape0q81ikzKs3OE(MTY)Y86VgJe4(soMougF)BUvwrPhXf4GuAOywHpfpP86wJqeQ6I5o3pVFUB(aW8l(WDweXHjsiSa)S(QP)dVJzMDzkp8CoIn78sdFiTrKHgVvRL3Qiyf53VFthB7USV9JJJHtbTasq8cnp1u97IRT2ARpV4Pquc3gliu9TGvg3as8qsoLPpRIW5WA7x7jvg)xx8p
    // Too short, apparently.


  3. I wrote it for this version: https://github.com/Bunny67/WeakAuras...ases/tag/3.1.8

    Anyway, here's the LUA table, maybe you'll figure out what goes where and adjust it to your version:
    Code:
    {
        ["outline"] = "OUTLINE",
        ["xOffset"] = 0,
        ["displayText"] = "%stacks%",
        ["customText"] = "function()\\n    local hp = UnitHealth(\\\"target\\\")\\n    local maxHp = UnitHealthMax(\\\"target\\\")\\n    local hpPerc = hp / maxHp * 100\\n    \\n    print(\\\"text func\\\", hp, maxHp, hpPerc)\\n    return hp, maxHp, hpPerc\\nend\\n\\n",
        ["shadowYOffset"] = -1,
        ["anchorPoint"] = "CENTER",
        ["displayText_format_c1_abbreviate"] = false,
        ["customTextUpdate"] = "event",
        ["automaticWidth"] = "Auto",
        ["actions"] = {
            ["start"] = {
            },
            ["finish"] = {
            },
            ["init"] = {
            },
        },
        ["triggers"] = {
            [1] = {
                ["trigger"] = {
                    ["debuffType"] = "HELPFUL",
                    ["type"] = "custom",
                    ["subeventPrefix"] = "SPELL",
                    ["subeventSuffix"] = "_CAST_START",
                    ["customStacks"] = "function(...)\\n    if UnitExists(\\\"target\\\") then\\n        local hp = UnitHealth(\\\"target\\\")\\n        local maxHp = UnitHealthMax(\\\"target\\\")\\n        local hpPerc = hp / maxHp * 100\\n        \\n        return format(\\\"%.0f\\\", hpPerc)\\n    end\\nend",
                    ["duration"] = "1",
                    ["event"] = "Combat Log",
                    ["unit"] = "player",
                    ["names"] = {
                    },
                    ["events"] = "PLAYER_TARGET_CHANGED, UNIT_HEALTH, UNIT_MAXHEALTH",
                    ["spellIds"] = {
                    },
                    ["custom"] = "function(event, ...)\\n    return UnitExists(\\\"target\\\")\\nend",
                    ["check"] = "event",
                    ["unevent"] = "timed",
                    ["custom_type"] = "event",
                    ["custom_hide"] = "custom",
                },
                ["untrigger"] = {
                    ["custom"] = "function(event, ...)\\n    if (event == \\\"PLAYER_TARGET_CHANGED\\\") then\\n        return not UnitExists(\\\"target\\\")\\n    end\\nend",
                },
            },
            ["disjunctive"] = "any",
            ["activeTriggerMode"] = -10,
        },
        ["displayText_format_p_format"] = "timed",
        ["internalVersion"] = 40,
        ["displayText_format_c1_format"] = "none",
        ["displayText_format_c1_abbreviate_max"] = 8,
        ["font"] = "Friz Quadrata TT",
        ["displayText_format_stacks_format"] = "none",
        ["subRegions"] = {
        },
        ["load"] = {
            ["talent"] = {
                ["multi"] = {
                },
            },
            ["spec"] = {
                ["multi"] = {
                },
            },
            ["class"] = {
                ["multi"] = {
                },
            },
            ["size"] = {
                ["multi"] = {
                },
            },
        },
        ["fontSize"] = 48,
        ["shadowXOffset"] = 1,
        ["regionType"] = "text",
        ["color"] = {
            [1] = 1,
            [2] = 1,
            [3] = 1,
            [4] = 1,
        },
        ["displayText_format_p_time_precision"] = 1,
        ["displayText_format_p_time_dynamic"] = false,
        ["conditions"] = {
        },
        ["selfPoint"] = "CENTER",
        ["justify"] = "LEFT",
        ["authorOptions"] = {
        },
        ["id"] = "Exact Target Health Percentage",
        ["displayText_format_c3_format"] = "none",
        ["frameStrata"] = 1,
        ["anchorFrameType"] = "SCREEN",
        ["config"] = {
        },
        ["uid"] = "3azlv3w62Qe",
        ["wordWrap"] = "WordWrap",
        ["animation"] = {
            ["start"] = {
                ["easeStrength"] = 3,
                ["type"] = "none",
                ["duration_type"] = "seconds",
                ["easeType"] = "none",
            },
            ["main"] = {
                ["easeStrength"] = 3,
                ["type"] = "none",
                ["duration_type"] = "seconds",
                ["easeType"] = "none",
            },
            ["finish"] = {
                ["easeStrength"] = 3,
                ["type"] = "none",
                ["duration_type"] = "seconds",
                ["easeType"] = "none",
            },
        },
        ["shadowColor"] = {
            [1] = 0,
            [2] = 0,
            [3] = 0,
            [4] = 1,
        },
        ["fixedWidth"] = 200,
        ["information"] = {
        },
        ["yOffset"] = 0,
    }

Posting Permissions

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