M+ Key Announcer
Write #key in party chat for automatically posting your M+ key. It will trigger everyone's WA.
|
|
| Quick Facts |
|---|
Write #key in party chat for automatically posting your M+ key. It will trigger everyone's WA.
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"m": "d",
"d": {
"text2Point": "CENTER",
"text1FontSize": 12,
"authorOptions": [],
"yOffset": 117,
"anchorPoint": "CENTER",
"url": "",
"actions": {
"start": {
"sound": "Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Sounds\\kaching.ogg",
"do_sound": false
},
"finish": {
"do_message": false
},
"init": {
"custom": "aura_env.postkey = function()\n for bag = 0, NUM_BAG_SLOTS do\n local numSlots = GetContainerNumSlots(bag)\n for slot = 1, numSlots do\n local icon = GetContainerItemInfo(bag, slot)\n if icon == \"Interface\\\\Icons\\\\inv_relics_hourglass\" then \n local link = GetContainerItemLink(bag, slot)\n SendChatMessage(link, \"PARTY\")\n end\n end\n end\nend\n\n\n",
"do_custom": true
}
},
"text2Font": "Friz Quadrata TT",
"keepAspectRatio": false,
"wordWrap": "WordWrap",
"desaturate": false,
"font": "Friz Quadrata TT",
"text2FontFlags": "OUTLINE",
"load": {
"difficulty": [],
"talent": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"single": "party",
"multi": {
"party": true
}
}
},
"shadowXOffset": 1,
"text1FontFlags": "OUTLINE",
"regionType": "text",
"text2FontSize": 24,
"text2": "%p",
"auto": true,
"tocversion": 30300,
"alpha": 1,
"uid": "9FoYv3TlL0a",
"fixedWidth": 200,
"outline": "OUTLINE",
"color": [
1,
1,
1,
1
],
"customText": "\n\n\n",
"shadowYOffset": -1,
"customTextUpdate": "event",
"automaticWidth": "Auto",
"triggers": {
"1": {
"trigger": {
"itemName": 158923,
"use_absorbMode": true,
"subeventPrefix": "SPELL",
"custom_hide": "timed",
"use_unit": true,
"type": "custom",
"unit": "player",
"custom_type": "event",
"names": [],
"use_itemName": true,
"event": "Item Count",
"subeventSuffix": "_CAST_START",
"use_includeBank": false,
"custom": "function(event, text)\n if event == \"REQUEST_KEYS\" then\n aura_env.postkey()\n end\n if event == \"COMMENTATOR_SKIRMISH_QUEUE_REQUEST\" then\n if text == \"ASCENSION_MYTHIC_PLUS_EVENT_DUNGEON_STATE_FINISHED\" then\n WeakAuras.ScanEvents(\"REQUEST_KEYS\")\n end\n end\n if event == \"CHAT_MSG_PARTY\" or event == \"CHAT_MSG_PARTY_LEADER\" then\n if text:find(\"#keys\") or text:find(\"#key\") then\n WeakAuras.ScanEvents(\"REQUEST_KEYS\")\n end\n end\nend",
"spellIds": [],
"unevent": "auto",
"events": "COMMENTATOR_SKIRMISH_QUEUE_REQUEST, CHAT_MSG_PARTY, CHAT_MSG_PARTY_LEADER, REQUEST_KEYS",
"duration": "",
"debuffType": "HELPFUL",
"buffShowOn": "showOnActive"
},
"untrigger": {
"custom": "\n \n\n"
}
},
"activeTriggerMode": -10
},
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeType": "none",
"duration_type": "seconds",
"easeStrength": 3,
"preset": "fade"
},
"main": {
"colorR": 0.26667,
"duration_type": "seconds",
"alphaType": "alphaPulse",
"colorB": 0.26667,
"colorG": 0.26667,
"alphaFunc": "function(progress, start, delta)\n local angle = (progress * 2 * math.pi) - (math.pi \/ 2)\n return start + (((math.sin(angle) + 1)\/2) * delta)\nend\n",
"use_translate": false,
"use_alpha": true,
"colorA": 1,
"type": "custom",
"scalex": 1,
"easeType": "none",
"translateFunc": " function(progress, startX, startY, deltaX, deltaY)\n local prog\n if(progress < 0.25) then\n prog = progress * 4\n elseif(progress < .75) then\n prog = 2 - (progress * 4)\n else\n prog = (progress - 1) * 4\n end\n return startX + (prog * deltaX), startY + (prog * deltaY)\n end\n ",
"preset": "alphaPulse",
"alpha": 0.74,
"easeStrength": 3,
"y": 0,
"colorType": "pulseHSV",
"use_color": false,
"translateType": "shake",
"colorFunc": " function(progress, r1, g1, b1, a1, r2, g2, b2, a2)\n local angle = (progress * 2 * math.pi) - (math.pi \/ 2)\n local newProgress = ((math.sin(angle) + 1)\/2);\n return WeakAuras.GetHSVTransition(newProgress, r1, g1, b1, a1, r2, g2, b2, a2)\n end\n ",
"rotate": 0,
"x": 5,
"scaley": 1
},
"finish": {
"type": "none",
"duration_type": "seconds",
"easeStrength": 3,
"easeType": "none"
}
},
"stickyDuration": false,
"version": 2,
"subRegions": [
{
"type": "subbackground"
}
],
"height": 64,
"fontSize": 23,
"text2Containment": "INSIDE",
"xOffset": -0.99988,
"text1Color": [
1,
1,
1,
1
],
"information": {
"ignoreOptionsEventErrors": true
},
"text2Enabled": false,
"text2Color": [
1,
1,
1,
1
],
"zoom": 0,
"glow": false,
"cooldownTextEnabled": true,
"displayText": "",
"desc": "Modified version of https:\/\/wago.io\/keystone for Ascension Mythic+\n\nAutomatically responds to #key or #keys in party chat with your current key.\nAutomatically posts your current key after finishing a Mythic+.",
"icon": true,
"text1": "%c",
"anchorFrameType": "SCREEN",
"text1Containment": "INSIDE",
"text1Enabled": true,
"justify": "LEFT",
"selfPoint": "CENTER",
"id": "M+ Key Announcer",
"text1Font": "Friz Quadrata TT",
"frameStrata": 1,
"width": 64,
"semver": "1.0.0",
"text1Point": "BOTTOMRIGHT",
"inverse": false,
"source": "import",
"shadowColor": [
0,
0,
0,
1
],
"conditions": [],
"cooldown": false,
"config": []
},
"s": "4.1.0",
"v": 1421
}