Advertisement
Ozzmoziz

Ozzy Spirit Shift Amount

May 6th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. {
  2. ["outline"] = true,
  3. ["fontSize"] = 25,
  4. ["xOffset"] = -229.99877929688,
  5. ["displayText"] = "%n",
  6. ["yOffset"] = -105.00009155273,
  7. ["regionType"] = "text",
  8. ["customTextUpdate"] = "update",
  9. ["init_completed"] = 1,
  10. ["actions"] = {
  11. ["start"] = {
  12. },
  13. ["init"] = {
  14. ["do_custom"] = true,
  15. ["custom"] = "aura_env.pGUID = UnitGUID(\"player\");\naura_env.counter = 0;\n\naura_env.GetExplosionMultiplier = function()\n for i=13,14 do\n local name, _, _, iLevel = GetItemInfo(GetInventoryItemLink(\"player\", i));\n if name == \"Soul Capacitor\" then\n aura_env.equipped = true;\n aura_env.multiplier = 1 + 0.2677 * 1.15^((iLevel-695)/15);\n return;\n end\n end\n aura_env.equipped = false;\nend\n\naura_env.GetExplosionMultiplier();",
  16. },
  17. ["finish"] = {
  18. },
  19. },
  20. ["disjunctive"] = "all",
  21. ["additional_triggers"] = {
  22. [1] = {
  23. ["trigger"] = {
  24. ["subeventPrefix"] = "SPELL",
  25. ["type"] = "aura",
  26. ["spellIds"] = {
  27. },
  28. ["subeventSuffix"] = "_CAST_START",
  29. ["unit"] = "player",
  30. ["names"] = {
  31. [1] = "Spirit Shift",
  32. },
  33. ["event"] = "Health",
  34. ["debuffType"] = "HELPFUL",
  35. },
  36. ["untrigger"] = {
  37. },
  38. },
  39. },
  40. ["justify"] = "LEFT",
  41. ["animation"] = {
  42. ["start"] = {
  43. ["type"] = "none",
  44. ["duration_type"] = "seconds",
  45. },
  46. ["main"] = {
  47. ["type"] = "none",
  48. ["duration_type"] = "seconds",
  49. },
  50. ["finish"] = {
  51. ["type"] = "none",
  52. ["duration_type"] = "seconds",
  53. },
  54. },
  55. ["trigger"] = {
  56. ["custom_hide"] = "timed",
  57. ["type"] = "custom",
  58. ["unevent"] = "auto",
  59. ["subeventSuffix"] = "_CAST_START",
  60. ["subeventPrefix"] = "SPELL",
  61. ["unit"] = "player",
  62. ["event"] = "Health",
  63. ["names"] = {
  64. [1] = "Spirit Shift",
  65. },
  66. ["spellIds"] = {
  67. },
  68. ["customName"] = "function()\n if aura_env.counter and aura_env.multiplier then\n local v = aura_env.counter * aura_env.multiplier\n if v < 1e6 then\n return string.format(\"%dk\", v/1e3);\n else\n return string.format(\"%.2fm\", v/1e6)\n end\n end\n return \"0\";\nend",
  69. ["custom"] = "function(e, _, event, _, src, _, _, _, _, _, _, _, ...)\n if e == \"COMBAT_LOG_EVENT_UNFILTERED\" then\n if aura_env.equipped and src == aura_env.pGUID then\n if event == \"SPELL_ABSORBED\" then\n local aID, amount;\n \n if type(...) == \"number\" then -- spell_damage\n _, _, _, _, _, _, _, aID, _, _, amount = ...;\n else -- swing_damage\n _, _, _, _, aID, _, _, amount = ...;\n end\n \n if aID == 184553 then -- Spirit Shift\n aura_env.counter = aura_env.counter + amount;\n end\n elseif event == \"SPELL_AURA_REMOVED\" and ... == 184293 then\n -- boom\n aura_env.counter = 0;\n end\n end\n else\n aura_env.GetExplosionMultiplier();\n end\n \n return true\nend\n\n\n\n\n\n\n\n\n\n",
  70. ["events"] = "COMBAT_LOG_EVENT_UNFILTERED, PLAYER_EQUIPMENT_CHANGED",
  71. ["check"] = "event",
  72. ["use_unit"] = true,
  73. ["custom_type"] = "status",
  74. ["debuffType"] = "HELPFUL",
  75. },
  76. ["anchorPoint"] = "CENTER",
  77. ["frameStrata"] = 1,
  78. ["width"] = 121.99999237061,
  79. ["id"] = "Spirit Shift amount",
  80. ["font"] = "MSBT Transformers",
  81. ["numTriggers"] = 2,
  82. ["color"] = {
  83. [1] = 1,
  84. [2] = 1,
  85. [3] = 1,
  86. [4] = 1,
  87. },
  88. ["height"] = 24.999988555908,
  89. ["selfPoint"] = "BOTTOM",
  90. ["load"] = {
  91. ["difficulty"] = {
  92. ["multi"] = {
  93. },
  94. },
  95. ["race"] = {
  96. ["multi"] = {
  97. },
  98. },
  99. ["talent"] = {
  100. ["multi"] = {
  101. },
  102. },
  103. ["faction"] = {
  104. ["multi"] = {
  105. },
  106. },
  107. ["class"] = {
  108. ["multi"] = {
  109. },
  110. },
  111. ["spec"] = {
  112. ["multi"] = {
  113. },
  114. },
  115. ["role"] = {
  116. ["multi"] = {
  117. },
  118. },
  119. ["size"] = {
  120. ["multi"] = {
  121. },
  122. },
  123. },
  124. ["untrigger"] = {
  125. },
  126. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement