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?
Printable View
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?
// Too short, apparently.Quote:
Originally Posted by Back-ported WotLK WeakAuras 3.1.8 compatible
https://ibb.co/71tbyG5
I cant import this
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,
}