Created
December 9, 2011 12:50
-
-
Save kodewulf/1451404 to your computer and use it in GitHub Desktop.
WeakAuras Aggro Table Export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
["outline"] = true, | |
["fontSize"] = 28, | |
["color"] = { | |
[1] = 1, | |
[2] = 0.086274509803922, | |
[3] = 0.11372549019608, | |
[4] = 1, | |
}, | |
["displayText"] = "%c", | |
["customText"] = "function()\n local hasThreat = false \n local party = GetNumPartyMembers()\n \n local player\n if (party > 0) then\n for i = 0, party do\n local unit = \"party\" .. i\n if (i == 0) then\n unit = \"player\"\n end\n \n --[[\n player = UnitName(unit)\n \n local debug = \"\"\n local role = UnitGroupRolesAssigned(unit)\n local combat = UnitAffectingCombat(unit)\n local threat = UnitThreatSituation(unit)\n \n debug = debug .. \"i: \" .. tostring(i) .. \"\\n\"\n debug = debug .. \"unit: \" .. tostring(unit) .. \"\\n\"\n debug = debug .. \"player: \" .. tostring(player) .. \"\\n\" \n debug = debug .. \"role: \" .. tostring(role) .. \"\\n\"\n debug = debug .. \"combat: \" .. tostring( combat) .. \"\\n\"\n debug = debug .. \"threat: \" .. tostring(threat)\n DEFAULT_CHAT_FRAME:AddMessage(debug)\n --]]\n \n -- DEFAULT_CHAT_FRAME:AddMessage(\"role check\")\n if (UnitGroupRolesAssigned(unit) == \"TANK\") then\n break\n end\n \n -- DEFAULT_CHAT_FRAME:AddMessage(\"combat check\")\n if not UnitAffectingCombat(unit) then\n break\n end\n \n -- DEFAULT_CHAT_FRAME:AddMessage(\"unit not tank and in combat\") \n if (UnitThreatSituation(unit)) and (UnitThreatSituation(unit) > 0) then\n hasThreat = true\n player = UnitName(unit)\n break\n end\n \n end\n end\n \n if (hasThreat) then\n -- DEFAULT_CHAT_FRAME:AddMessage(debug)\n \n if (player) then\n return \"Aggro: \" .. tostring(player) \n else\n return \"Threat changed!\"\n end\n end\n \n return \"\"\nend", | |
["yOffset"] = 0, | |
["anchorPoint"] = "CENTER", | |
["customTextUpdate"] = "event", | |
["actions"] = { | |
["start"] = { | |
["message_type"] = "COMBAT", | |
["do_message"] = false, | |
["do_custom"] = false, | |
}, | |
["finish"] = { | |
}, | |
}, | |
["parent"] = "Aggro", | |
["justify"] = "CENTER", | |
["selfPoint"] = "BOTTOM", | |
["trigger"] = { | |
["use_status"] = true, | |
["duration"] = "3", | |
["subeventPrefix"] = "SPELL", | |
["status"] = 1, | |
["debuffType"] = "HELPFUL", | |
["type"] = "custom", | |
["use_unit"] = true, | |
["subeventSuffix"] = "_CAST_START", | |
["unit"] = "player", | |
["threatUnit"] = "none", | |
["event"] = "Threat Situation", | |
["customStacks"] = "\n\n", | |
["use_threatUnit"] = true, | |
["customName"] = "\n\n", | |
["events"] = "UNIT_THREAT_LIST_UPDATE, UNIT_THREAT_SITUATION_UPDATE, PLAYER_REGEN_ENABLED", | |
["custom_type"] = "event", | |
["custom_hide"] = "timed", | |
["custom"] = "function()\n -- local hasThreat = false\n local hasThreat = true\n for i=1,GetNumPartyMembers() do\n if(UnitGroupRolesAssigned(\"party\".. i) == \"TANK\") then\n break\n end\n \n if not UnitAffectingCombat(\"party\" .. i) then\n break\n end \n \n if (UnitThreatSituation(\"party\" .. i) > 0) then\n hasThreat = true\n break\n end\n end\n \n return hasThreat\nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", | |
["unevent"] = "auto", | |
["names"] = { | |
}, | |
}, | |
["untrigger"] = { | |
["use_threatUnit"] = true, | |
["threatUnit"] = "none", | |
["use_status"] = true, | |
["status"] = 0, | |
}, | |
["frameStrata"] = 1, | |
["width"] = 1.0000074542091, | |
["animation"] = { | |
["start"] = { | |
["type"] = "preset", | |
["preset"] = "slideleft", | |
["duration_type"] = "seconds", | |
}, | |
["main"] = { | |
["type"] = "preset", | |
["preset"] = "alphaPulse", | |
["duration_type"] = "seconds", | |
}, | |
["finish"] = { | |
["type"] = "preset", | |
["preset"] = "fade", | |
["duration_type"] = "seconds", | |
}, | |
}, | |
["font"] = "ElvUI Font", | |
["numTriggers"] = 1, | |
["xOffset"] = 0, | |
["height"] = 1.0000074542091, | |
["id"] = "New Aggro", | |
["load"] = { | |
["role"] = { | |
["multi"] = { | |
}, | |
}, | |
["class"] = { | |
["multi"] = { | |
}, | |
}, | |
["spec"] = { | |
["multi"] = { | |
}, | |
}, | |
["size"] = { | |
["single"] = "party", | |
["multi"] = { | |
["ten"] = true, | |
["twentyfive"] = true, | |
["party"] = true, | |
["pvp"] = true, | |
}, | |
}, | |
}, | |
["regionType"] = "text", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment