Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.90 KB | None | 0 0
  1. {
  2. ["outline"] = "THICKOUTLINE",
  3. ["fontSize"] = 32,
  4. ["xOffset"] = 0.00018310546875,
  5. ["displayText"] = "%c",
  6. ["customText"] = "function()\n local t = aura_env.getIconTexture(aura_env.myPos)\n local color = aura_env.getColor(aura_env.myPos)\n return aura_env.myPos and (t .. color ..\"SOAK\" .. t) or \"don't soak\"\nend\n\n\n\n\n\n\n\n\n\n\n",
  7. ["yOffset"] = 100.00018310547,
  8. ["regionType"] = "text",
  9. ["init_started"] = 1,
  10. ["activeTriggerMode"] = -10,
  11. ["customTextUpdate"] = "update",
  12. ["actions"] = {
  13. ["start"] = {
  14. },
  15. ["finish"] = {
  16. },
  17. ["init"] = {
  18. ["do_custom"] = true,
  19. ["custom"] = "\naura_env.getIconTexture = function (n)\n return (\"\"):format(n or 1) \nend\n\naura_env.getColor = function(n)\n return \n n == 1 and \"\" or\n n == 2 and \"\" or\n n == 3 and \"\" or\n n == 4 and \"\" or\n \"\" \nend\n\naura_env.debugPrint = function(t)\n local p = {}\n for _,v in pairs(t) do\n p[v.pos] = (p[v.pos] or v.pos) .. \" - \" .. v.name\n end\n for _,v in ipairs(p) do\n print(v)\n end\nend\n\naura_env.prev = 0\n\naura_env.shots = {}\naura_env.soaker = {}\naura_env.myPos = 8\n\naura_env.buff = GetSpellInfo(239362)\naura_env.debuff = GetSpellInfo(230139)\n\n\n\n\n\n",
  20. },
  21. },
  22. ["untrigger"] = {
  23. },
  24. ["anchorPoint"] = "CENTER",
  25. ["animation"] = {
  26. ["start"] = {
  27. ["duration_type"] = "seconds",
  28. ["type"] = "none",
  29. },
  30. ["main"] = {
  31. ["duration_type"] = "seconds",
  32. ["type"] = "none",
  33. },
  34. ["finish"] = {
  35. ["duration_type"] = "seconds",
  36. ["type"] = "none",
  37. },
  38. },
  39. ["justify"] = "LEFT",
  40. ["selfPoint"] = "BOTTOM",
  41. ["trigger"] = {
  42. ["type"] = "custom",
  43. ["custom_type"] = "event",
  44. ["duration"] = "6",
  45. ["event"] = "Health",
  46. ["unit"] = "player",
  47. ["debuffType"] = "HELPFUL",
  48. ["names"] = {
  49. },
  50. ["custom"] = "function(event, _, message, _, sourceGUID, sourceName, _, _, destGUID, destName, _, _, spellId)\n if message == \"SPELL_AURA_APPLIED\" and spellId == 230139 then\n local t = GetTime()\n if t-aura_env.prev > 5 then\n wipe(aura_env.shots)\n wipe(aura_env.soaker)\n aura_env.myPos = nil\n aura_env.prev = t\n end\n \n \n aura_env.shots[#aura_env.shots+1] = destName\n \n local _, _, diff = GetInstanceInfo()\n local shots = diff == 15 and 3 or 4 -- Heroic: 3, Mythic: 4\n if #aura_env.shots == shots then\n WeakAuras.ScanEvents('WA_SdP_HydraShot')\n end\n end\n if event == \"WA_SdP_HydraShot\" then\n local _, _, _, instanceId = UnitPosition(\"player\")\n \n aura_env.myPos = nil\n for i=1,30 do\n local unit = (\"raid%d\"):format(i)\n local _, _, _, tarInstanceId = UnitPosition(unit)\n \n if tarInstanceId == instanceId\n and UnitIsConnected(unit)\n and not GetPartyAssignment(\"MAINTANK\", unit) \n and UnitGroupRolesAssigned(unit) ~= \"TANK\" \n and not UnitDebuff(unit, aura_env.buff) \n and not UnitDebuff(unit, aura_env.debuff)\n and not UnitIsDead(unit) then\n local pos = (#aura_env.soaker+1)%4 + 1\n aura_env.soaker[#aura_env.soaker+1] = {name = UnitName(unit), pos = pos}\n \n if UnitIsUnit(unit, \"player\") then\n aura_env.myPos = pos\n end\n end\n end\n \n WeakAuras.ScanEvents('WA_SdP_HydraList', aura_env.shots, aura_env.soaker)\n \n if aura_env.myPos then\n return true\n end\n end\nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
  51. ["subeventPrefix"] = "SPELL",
  52. ["subeventSuffix"] = "_CAST_START",
  53. ["spellIds"] = {
  54. },
  55. ["events"] = "COMBAT_LOG_EVENT_UNFILTERED,WA_SdP_HydraShot",
  56. ["custom_hide"] = "timed",
  57. },
  58. ["id"] = "ToS-05-Hydra Soak - My Soak v4",
  59. ["frameStrata"] = 1,
  60. ["width"] = 156.22215270996,
  61. ["anchorFrameType"] = "SCREEN",
  62. ["font"] = "Arial Narrow",
  63. ["numTriggers"] = 1,
  64. ["color"] = {
  65. [1] = 1,
  66. [2] = 1,
  67. [3] = 1,
  68. [4] = 1,
  69. },
  70. ["height"] = 32.222160339355,
  71. ["conditions"] = {
  72. },
  73. ["load"] = {
  74. ["talent2"] = {
  75. ["multi"] = {
  76. },
  77. },
  78. ["talent"] = {
  79. ["multi"] = {
  80. },
  81. },
  82. ["encounterid"] = "2037",
  83. ["ingroup"] = {
  84. ["multi"] = {
  85. },
  86. },
  87. ["use_encounterid"] = true,
  88. ["difficulty"] = {
  89. ["multi"] = {
  90. },
  91. },
  92. ["race"] = {
  93. ["multi"] = {
  94. },
  95. },
  96. ["role"] = {
  97. ["multi"] = {
  98. },
  99. },
  100. ["faction"] = {
  101. ["multi"] = {
  102. },
  103. },
  104. ["spec"] = {
  105. ["multi"] = {
  106. },
  107. },
  108. ["class"] = {
  109. ["multi"] = {
  110. },
  111. },
  112. ["pvptalent"] = {
  113. ["multi"] = {
  114. },
  115. },
  116. ["size"] = {
  117. ["multi"] = {
  118. },
  119. },
  120. },
  121. ["disjunctive"] = "all",
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement