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?
'); document.write(''); var yuipath = 'clientscript/yui'; var yuicombopath = ''; var remoteyui = false; } else // Load Rest of YUI remotely (where possible) { var yuipath = 'https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build'; var yuicombopath = ''; var remoteyui = true; if (!yuicombopath) { document.write(''); } } var SESSIONURL = "s=4e4ed9631245d9832a55be0a477a8621&"; var SECURITYTOKEN = "guest"; var IMGDIR_MISC = "warmane/misc"; var IMGDIR_BUTTON = "warmane/buttons"; var vb_disable_ajax = parseInt("0", 10); var SIMPLEVERSION = "422"; var BBURL = "https://forum.warmane.com"; var LOGGEDIN = 0 > 0 ? true : false; var THIS_SCRIPT = "showthread"; var RELPATH = "showthread.php?t=433324&p=3102861"; var PATHS = { forum : "", cms : "", blog : "" }; var AJAXBASEURL = "https://forum.warmane.com/"; var CoTTooltips = { rename: true, icons: false, iconsize: 15, qualitycolor: true, overridecolor: { spells: '#839309', items: '', npcs: '#fff', objects: '#fff', quests: '#ffb100', achievements: '#fff' } }; // -->
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?
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, }