· 6 years ago · Sep 12, 2019, 09:18 AM
1
2PlaterDB = {
3 ["profileKeys"] = {
4 ["Кельтир - Пламегор"] = "ROGUE",
5 },
6 ["profiles"] = {
7 ["ROGUE"] = {
8 ["script_data"] = {
9 {
10 ["Enabled"] = true,
11 ["Revision"] = 156,
12 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.glowEffect:Hide()\n \n --restore the nameplate size\n local nameplateHeight = Plater.db.profile.plate_config.enemynpc.health_incombat [2]\n unitFrame.healthBar:SetHeight (nameplateHeight) \n \nend\n\n\n",
13 ["NpcNames"] = {
14 "135029", -- [1]
15 "134388", -- [2]
16 "134612", -- [3]
17 "133361", -- [4]
18 "136330", -- [5]
19 "130896", -- [6]
20 "129758", -- [7]
21 "Healing Tide Totem", -- [8]
22 "131009", -- [9]
23 },
24 ["Author"] = "Izimode-Azralon",
25 ["Desc"] = "Highlight a nameplate of an important Add. Add the unit name or NpcID into the trigger box to add more.",
26 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.glowEffect:Show()\n \n --increase the nameplate size\n local nameplateHeight = Plater.db.profile.plate_config.enemynpc.health_incombat [2]\n unitFrame.healthBar:SetHeight (nameplateHeight + envTable.NameplateSizeOffset)\n \nend\n\n\n",
27 ["SpellIds"] = {
28 },
29 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n --check if can change the nameplate color\n if (envTable.CanChangeNameplateColor) then\n Plater.SetNameplateColor (unitFrame, envTable.NameplateColor)\n end\n \nend\n\n\n\n\n",
30 ["Time"] = 1537884697,
31 ["PlaterCore"] = 1,
32 ["Name"] = "Unit - Important [Plater]",
33 ["ScriptType"] = 3,
34 ["Icon"] = 135996,
35 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --settings (you may need /reload if some configs isn't applied immediately) \n --change the nameplate color to this if allowed\n envTable.CanChangeNameplateColor = false --change to true to change the color\n envTable.NameplateColor = \"pink\"\n envTable.NameplateSizeOffset = 6 --increase the nameplate height by this value\n envTable.GlowAlpha = 0.5 --amount of alpha in the outside glow effect\n \n --create a glow effect around the nameplate\n envTable.glowEffect = envTable.glowEffect or Plater.CreateNameplateGlow (unitFrame.healthBar, envTable.NameplateColor)\n envTable.glowEffect:SetOffset (-27, 25, 9, -11)\n --envTable.glowEffect:Show() --envTable.glowEffect:Hide() --\n \n --set the glow effect alpha\n envTable.glowEffect:SetAlpha (envTable.GlowAlpha)\n \nend\n\n--[=[\nUsing spellIDs for multi-language support\n\n135029 - A Knot of Snakes (Temple of Sethraliss)\n135388 - A Knot of Snakes (Temple of Sethraliss)\n134612 - Grasping Tentacles (Shrine of the Storm)\n133361 - Wasting Servant (Waycrest Manor)\n136330 - Soul Thorns (Waycrest Manor)\n130896 - Blackout Barrel (Freehold)\n129758 - Irontide Grenadier (Freehold)\n131009 - Spirit of Gold (Atal`Dazar)\n--]=]",
36 }, -- [1]
37 {
38 ["Enabled"] = true,
39 ["Revision"] = 399,
40 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.buffIconGlow:Hide()\n \nend",
41 ["NpcNames"] = {
42 },
43 ["Author"] = "Tercioo-Sylvanas",
44 ["Desc"] = "Add the buff name in the trigger box.",
45 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.buffIconGlow:Show()\n \nend",
46 ["SpellIds"] = {
47 275826, -- [1]
48 272888, -- [2]
49 272659, -- [3]
50 267901, -- [4]
51 267830, -- [5]
52 265393, -- [6]
53 },
54 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n \n \n \nend",
55 ["Time"] = 1539013601,
56 ["PlaterCore"] = 1,
57 ["Name"] = "Aura - Buff Alert [Plater]",
58 ["ScriptType"] = 1,
59 ["Icon"] = "Interface\\AddOns\\Plater\\images\\icon_aura",
60 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --creates a glow around the icon\n envTable.buffIconGlow = envTable.buffIconGlow or Plater.CreateIconGlow (self)\n \nend",
61 }, -- [2]
62 {
63 ["Enabled"] = true,
64 ["Revision"] = 391,
65 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.glowEffect:Hide()\n \n envTable.BackgroundFlash:Stop()\n \n unitFrame:StopFrameShake (envTable.FrameShake) \n \nend\n\n\n",
66 ["NpcNames"] = {
67 },
68 ["Author"] = "BombadЈo-Azralon",
69 ["Desc"] = "Highlight a very important cast applying several effects into the Cast Bar. Add spell in the Add Trigger field.",
70 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.glowEffect:Show()\n \n envTable.BackgroundFlash:Play()\n \n Plater.FlashNameplateBorder (unitFrame, 0.05) \n Plater.FlashNameplateBody (unitFrame, \"\", 0.075)\n \n unitFrame:PlayFrameShake (envTable.FrameShake)\n \nend\n\n\n",
71 ["SpellIds"] = {
72 257785, -- [1]
73 267237, -- [2]
74 266951, -- [3]
75 267273, -- [4]
76 267433, -- [5]
77 263066, -- [6]
78 255577, -- [7]
79 255371, -- [8]
80 },
81 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \nend\n\n\n",
82 ["Time"] = 1561923707,
83 ["PlaterCore"] = 1,
84 ["Name"] = "Cast - Very Important [Plater]",
85 ["ScriptType"] = 2,
86 ["Icon"] = "Interface\\AddOns\\Plater\\images\\cast_bar",
87 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --settings (you may need /reload if some configs isn't applied immediately)\n local CONFIG_BACKGROUND_FLASH_DURATION = 0.8 --0.8\n local CONFIG_BORDER_GLOW_ALPHA = 0.3 --0.3\n local CONFIG_SHAKE_DURATION = 0.2 --0.2\n local CONFIG_SHAKE_AMPLITUDE = 5 --5\n \n --create a glow effect in the border of the cast bar\n envTable.glowEffect = envTable.glowEffect or Plater.CreateNameplateGlow (self)\n envTable.glowEffect:SetOffset (-32, 30, 7, -9)\n envTable.glowEffect:SetAlpha (CONFIG_BORDER_GLOW_ALPHA)\n --envTable.glowEffect:Show() --envTable.glowEffect:Hide() \n \n --create a texture to use for a flash behind the cast bar\n local backGroundFlashTexture = Plater:CreateImage (self, [[Interface\\ACHIEVEMENTFRAME\\UI-Achievement-Alert-Glow]], self:GetWidth()+40, self:GetHeight()+20, \"background\", {0, 400/512, 0, 170/256})\n backGroundFlashTexture:SetBlendMode (\"ADD\")\n backGroundFlashTexture:SetPoint (\"center\", self, \"center\")\n backGroundFlashTexture:Hide()\n \n --create the animation hub to hold the flash animation sequence\n envTable.BackgroundFlash = envTable.BackgroundFlash or Plater:CreateAnimationHub (backGroundFlashTexture, \n function()\n backGroundFlashTexture:Show()\n end,\n function()\n backGroundFlashTexture:Hide()\n end\n )\n \n --create the flash animation sequence\n local fadeIn = Plater:CreateAnimation (envTable.BackgroundFlash, \"ALPHA\", 1, CONFIG_BACKGROUND_FLASH_DURATION/2, 0, 1)\n local fadeOut = Plater:CreateAnimation (envTable.BackgroundFlash, \"ALPHA\", 2, CONFIG_BACKGROUND_FLASH_DURATION/2, 1, 0) \n --envTable.BackgroundFlash:Play() --envTable.BackgroundFlash:Stop()\n \n --create a camera shake for the nameplate\n envTable.FrameShake = Plater:CreateFrameShake (unitFrame, CONFIG_SHAKE_DURATION, CONFIG_SHAKE_AMPLITUDE, 35, false, false, 0, 1, 0.05, 0.1, Plater.GetPoints (unitFrame)) \n \n \n --update the config for the flash here so it wont need a /reload\n fadeIn:SetDuration (CONFIG_BACKGROUND_FLASH_DURATION/2)\n fadeOut:SetDuration (CONFIG_BACKGROUND_FLASH_DURATION/2) \n \n --update the config for the skake here so it wont need a /reload\n envTable.FrameShake.OriginalAmplitude = CONFIG_SHAKE_AMPLITUDE\n envTable.FrameShake.OriginalDuration = CONFIG_SHAKE_DURATION \n \nend",
88 }, -- [3]
89 {
90 ["Enabled"] = true,
91 ["Revision"] = 324,
92 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.glowEffect:Hide()\n \n envTable.overlaySpark:Hide()\n envTable.topArrow:Hide()\n \n Plater.RefreshNameplateColor (unitFrame)\n \n envTable.smallScaleAnimation:Stop()\n \n --increase the nameplate size\n local nameplateHeight = Plater.db.profile.plate_config.enemynpc.health_incombat [2]\n unitFrame.healthBar:SetHeight (nameplateHeight)\nend\n\n\n",
93 ["NpcNames"] = {
94 },
95 ["Author"] = "BombadЈo-Azralon",
96 ["Desc"] = "Apply several animations when the explosion orb cast starts on a Mythic Dungeon with Explosion Affix",
97 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.glowEffect:Show()\n envTable.overlaySpark:Show()\n \n if (envTable.ShowArrow) then\n envTable.topArrow:Show()\n end\n \n Plater.FlashNameplateBorder (unitFrame, 0.05) \n Plater.FlashNameplateBody (unitFrame, \"\", 0.075)\n \n envTable.smallScaleAnimation:Play()\n \n --increase the nameplate size\n local nameplateHeight = Plater.db.profile.plate_config.enemynpc.health_incombat [2]\n unitFrame.healthBar:SetHeight (nameplateHeight + envTable.NameplateSizeOffset)\n \n envTable.overlaySpark.height = nameplateHeight + 32\n \n envTable.glowEffect.Texture:SetAlpha (envTable.GlowAlpha)\n \n \nend\n\n\n\n\n\n\n",
98 ["SpellIds"] = {
99 240446, -- [1]
100 273577, -- [2]
101 },
102 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n --update the percent\n envTable.overlaySpark:SetPoint (\"left\", unitFrame.healthBar:GetWidth() * (envTable._CastPercent / 100)-16, 0)\n \n envTable.topArrow:SetPoint (\"bottomleft\", unitFrame.healthBar, \"topleft\", unitFrame.healthBar:GetWidth() * (envTable._CastPercent / 100) - 4, 2 )\n \n --forces the script to update on a 60Hz base\n self.ThrottleUpdate = 0.016\n \n --update the health bar color coloring from yellow to red\n --Plater.SetNameplateColor (unitFrame, max (envTable._CastPercent/100, .66), abs (envTable._CastPercent/100 - 1), 0, 1)\n \n Plater.SetNameplateColor (unitFrame, envTable.HealthBarColor)\n envTable.glowEffect.Texture:SetAlpha (envTable.GlowAlpha)\n \nend\n\n\n",
103 ["Time"] = 1540663131,
104 ["PlaterCore"] = 1,
105 ["Name"] = "Explosion Affix M+ [Plater]",
106 ["ScriptType"] = 2,
107 ["Icon"] = 2175503,
108 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --settings\n envTable.NameplateSizeOffset = 3\n envTable.GlowAlpha = .45\n envTable.ShowArrow = true\n envTable.ArrowAlpha = .45 \n envTable.HealthBarColor = \"orange\"\n \n --custom frames\n envTable.glowEffect = envTable.glowEffect or Plater.CreateNameplateGlow (unitFrame.healthBar)\n --envTable.glowEffect:Show() --envTable.glowEffect:Hide() \n envTable.glowEffect:SetOffset (-27, 25, 6, -8)\n \n --creates the spark to show the cast progress inside the health bar\n envTable.overlaySpark = envTable.overlaySpark or Plater:CreateImage (unitFrame.healthBar)\n envTable.overlaySpark:SetBlendMode (\"ADD\")\n envTable.overlaySpark.width = 32\n envTable.overlaySpark.height = 36\n envTable.overlaySpark.alpha = .9\n envTable.overlaySpark.texture = [[Interface\\CastingBar\\UI-CastingBar-Spark]]\n \n envTable.topArrow = envTable.topArrow or Plater:CreateImage (unitFrame.healthBar)\n envTable.topArrow:SetBlendMode (\"ADD\")\n envTable.topArrow.width = 8\n envTable.topArrow.height = 8\n envTable.topArrow.alpha = envTable.ArrowAlpha\n envTable.topArrow.texture = [[Interface\\BUTTONS\\Arrow-Down-Up]]\n \n --scale animation\n envTable.smallScaleAnimation = envTable.smallScaleAnimation or Plater:CreateAnimationHub (unitFrame.healthBar)\n Plater:CreateAnimation (envTable.smallScaleAnimation, \"SCALE\", 1, 0.075, 1, 1, 1.08, 1.08)\n Plater:CreateAnimation (envTable.smallScaleAnimation, \"SCALE\", 2, 0.075, 1, 1, 0.95, 0.95) \n --envTable.smallScaleAnimation:Play() --envTable.smallScaleAnimation:Stop()\n \nend\n\n\n\n\n\n\n\n",
109 }, -- [4]
110 {
111 ["Enabled"] = true,
112 ["Revision"] = 232,
113 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.debuffIconGlow:Hide()\n \nend\n\n\n",
114 ["NpcNames"] = {
115 },
116 ["Author"] = "Tercioo-Sylvanas",
117 ["Desc"] = "Add the debuff name in the trigger box.",
118 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.debuffIconGlow:Show()\n \nend\n\n\n",
119 ["SpellIds"] = {
120 },
121 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \nend\n\n\n",
122 ["Time"] = 1538429739,
123 ["PlaterCore"] = 1,
124 ["Name"] = "Aura - Debuff Alert [Plater]",
125 ["ScriptType"] = 1,
126 ["Icon"] = "Interface\\AddOns\\Plater\\images\\icon_aura",
127 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --creates a glow around the icon\n envTable.debuffIconGlow = envTable.debuffIconGlow or Plater.CreateIconGlow (self)\n \nend\n\n\n",
128 }, -- [5]
129 {
130 ["Enabled"] = true,
131 ["Revision"] = 574,
132 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \n --don't execute on battlegrounds and arenas\n if (Plater.ZoneInstanceType == \"arena\" or Plater.ZoneInstanceType == \"pvp\") then\n return\n end \n \n --restore the cast bar to its original height\n if (envTable.OriginalHeight) then\n self:SetHeight (envTable.OriginalHeight)\n envTable.OriginalHeight = nil\n end\n \n --stop the camera shake\n unitFrame:StopFrameShake (envTable.FrameShake)\n \n envTable.FullBarFlash:Stop()\n envTable.BackgroundFlash:Stop()\n \nend\n\n\n\n\n\n",
133 ["NpcNames"] = {
134 },
135 ["Author"] = "Tercioo-Sylvanas",
136 ["Desc"] = "Flash, Bounce and Red Color the CastBar border when when an important cast is happening. Add spell in the Add Trigger field.",
137 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n --don't execute on battlegrounds and arenas\n if (Plater.ZoneInstanceType == \"arena\" or Plater.ZoneInstanceType == \"pvp\") then\n return\n end\n \n --play flash animations\n envTable.FullBarFlash:Play()\n \n --restoring the default size (not required since it already restore in the hide script)\n if (envTable.OriginalHeight) then\n self:SetHeight (envTable.OriginalHeight)\n end\n \n --increase the cast bar size\n local height = self:GetHeight()\n envTable.OriginalHeight = height\n \n self:SetHeight (height + envTable.CastBarHeightAdd)\n \n Plater.SetCastBarBorderColor (self, 1, .2, .2, 0.4)\n \n unitFrame:PlayFrameShake (envTable.FrameShake)\n \n --set the color of the cast bar to dark orange (only if can be interrupted)\n --Plater auto set this color to default when a new cast starts, no need to reset this value at OnHide. \n if (envTable._CanInterrupt) then\n self:SetStatusBarColor (Plater:ParseColors (envTable.CastbarColor))\n end\n \n envTable.BackgroundFlash:Play()\n \nend\n\n\n\n\n\n\n\n\n",
138 ["SpellIds"] = {
139 258153, -- [1]
140 258313, -- [2]
141 257069, -- [3]
142 274569, -- [4]
143 278020, -- [5]
144 261635, -- [6]
145 272700, -- [7]
146 280404, -- [8]
147 268030, -- [9]
148 265368, -- [10]
149 263891, -- [11]
150 264520, -- [12]
151 265407, -- [13]
152 278567, -- [14]
153 278602, -- [15]
154 258128, -- [16]
155 257791, -- [17]
156 258938, -- [18]
157 265089, -- [19]
158 272183, -- [20]
159 256060, -- [21]
160 257397, -- [22]
161 257899, -- [23]
162 269972, -- [24]
163 270901, -- [25]
164 270492, -- [26]
165 268129, -- [27]
166 268709, -- [28]
167 263215, -- [29]
168 268797, -- [30]
169 262540, -- [31]
170 262554, -- [32]
171 253517, -- [33]
172 255041, -- [34]
173 252781, -- [35]
174 250368, -- [36]
175 258777, -- [37]
176 },
177 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \nend\n\n\n",
178 ["Time"] = 1561924439,
179 ["PlaterCore"] = 1,
180 ["Name"] = "Cast - Big Alert [Plater]",
181 ["ScriptType"] = 2,
182 ["Icon"] = "Interface\\AddOns\\Plater\\images\\cast_bar",
183 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --https://www.wowhead.com/spell=253583/fiery-enchant\n \n --settings (you may need /reload if some configs isn't applied immediately)\n \n --castbar color (when can be interrupted)\n envTable.CastbarColor = \"darkorange\"\n --flash duration\n local CONFIG_BACKGROUND_FLASH_DURATION = 0.4\n --add this value to the cast bar height\n envTable.CastBarHeightAdd = 5\n \n \n \n --create a fast flash above the cast bar\n envTable.FullBarFlash = envTable.FullBarFlash or Plater.CreateFlash (self, 0.05, 1, \"white\")\n \n --create a camera shake for the nameplate\n envTable.FrameShake = Plater:CreateFrameShake (unitFrame, 0.2, 5, 35, false, false, 0, 1, 0.05, 0.1, Plater.GetPoints (unitFrame))\n \n --create a texture to use for a flash behind the cast bar\n local backGroundFlashTexture = Plater:CreateImage (self, [[Interface\\ACHIEVEMENTFRAME\\UI-Achievement-Alert-Glow]], self:GetWidth()+60, self:GetHeight()+50, \"background\", {0, 400/512, 0, 170/256})\n backGroundFlashTexture:SetBlendMode (\"ADD\")\n backGroundFlashTexture:SetPoint (\"center\", self, \"center\")\n backGroundFlashTexture:Hide()\n \n --create the animation hub to hold the flash animation sequence\n envTable.BackgroundFlash = envTable.BackgroundFlash or Plater:CreateAnimationHub (backGroundFlashTexture, \n function()\n backGroundFlashTexture:Show()\n end,\n function()\n backGroundFlashTexture:Hide()\n end\n )\n \n --create the flash animation sequence\n local fadeIn = Plater:CreateAnimation (envTable.BackgroundFlash, \"ALPHA\", 1, CONFIG_BACKGROUND_FLASH_DURATION/2, 0, .75)\n local fadeOut = Plater:CreateAnimation (envTable.BackgroundFlash, \"ALPHA\", 2, CONFIG_BACKGROUND_FLASH_DURATION/2, 1, 0) \n --envTable.BackgroundFlash:Play() --envTable.BackgroundFlash:Stop() \n \nend\n\n\n",
184 }, -- [6]
185 {
186 ["Enabled"] = true,
187 ["Revision"] = 376,
188 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.SmallFlashAnimationHub:Stop()\n \nend\n\n\n",
189 ["NpcNames"] = {
190 },
191 ["Author"] = "Tercioo-Sylvanas",
192 ["Desc"] = "Flashes the Cast Bar when a spell in the trigger list is Cast. Add spell in the Add Trigger field.",
193 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.SmallFlashAnimationHub:Play()\n \nend\n\n\n",
194 ["SpellIds"] = {
195 275192, -- [1]
196 265912, -- [2]
197 274438, -- [3]
198 268317, -- [4]
199 268375, -- [5]
200 276767, -- [6]
201 264105, -- [7]
202 265876, -- [8]
203 270464, -- [9]
204 266106, -- [10]
205 272180, -- [11]
206 278961, -- [12]
207 278755, -- [13]
208 265468, -- [14]
209 256405, -- [15]
210 256897, -- [16]
211 264101, -- [17]
212 280604, -- [18]
213 268702, -- [19]
214 281621, -- [20]
215 262515, -- [21]
216 255824, -- [22]
217 253583, -- [23]
218 250096, -- [24]
219 },
220 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n \n \nend\n\n\n",
221 ["Time"] = 1539201768,
222 ["PlaterCore"] = 1,
223 ["Name"] = "Cast - Small Alert [Plater]",
224 ["ScriptType"] = 2,
225 ["Icon"] = "Interface\\AddOns\\Plater\\images\\cast_bar",
226 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --settings (you may need /reload if some configs isn't applied immediately)\n \n --flash duration\n local CONFIG_FLASH_DURATION = 0.6\n \n --manually create a new texture for the flash animation\n if (not envTable.SmallFlashTexture) then\n envTable.SmallFlashTexture = envTable.SmallFlashTexture or Plater:CreateImage (unitFrame.castBar)\n envTable.SmallFlashTexture:SetColorTexture (1, 1, 1)\n envTable.SmallFlashTexture:SetAllPoints()\n end\n \n --manually create a flash animation using the framework\n if (not envTable.SmallFlashAnimationHub) then \n \n local onPlay = function()\n envTable.SmallFlashTexture:Show()\n end\n \n local onFinished = function()\n envTable.SmallFlashTexture:Hide()\n end\n \n local animationHub = Plater:CreateAnimationHub (envTable.SmallFlashTexture, onPlay, onFinished)\n Plater:CreateAnimation (animationHub, \"Alpha\", 1, CONFIG_FLASH_DURATION/2, 0, .6)\n Plater:CreateAnimation (animationHub, \"Alpha\", 2, CONFIG_FLASH_DURATION/2, 1, 0)\n \n envTable.SmallFlashAnimationHub = animationHub\n end\n \n \n \nend\n\n\n\n\n\n\n\n",
227 }, -- [7]
228 {
229 ["Enabled"] = true,
230 ["Revision"] = 106,
231 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \nend\n\n\n",
232 ["NpcNames"] = {
233 },
234 ["Author"] = "Izimode-Azralon",
235 ["Desc"] = "When an aura makes the unit invulnarable and you don't want to attack it. Add spell in the Add Trigger field.",
236 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \nend\n\n\n",
237 ["SpellIds"] = {
238 261265, -- [1]
239 261266, -- [2]
240 271590, -- [3]
241 },
242 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n --only change the nameplate color in combat\n if (InCombatLockdown()) then\n Plater.SetNameplateColor (unitFrame, envTable.NameplateColor)\n end\n \nend\n\n\n\n\n\n\n",
243 ["Time"] = 1538256464,
244 ["PlaterCore"] = 1,
245 ["Name"] = "Aura - Invalidate Unit [Plater]",
246 ["ScriptType"] = 1,
247 ["Icon"] = "Interface\\AddOns\\Plater\\images\\icon_invalid",
248 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --color to set the nameplate\n envTable.NameplateColor = \"gray\"\n \nend\n\n\n",
249 }, -- [8]
250 {
251 ["Enabled"] = true,
252 ["Revision"] = 59,
253 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \n --make plater refresh the nameplate color\n Plater.RefreshNameplateColor (unitFrame)\n \n envTable.smallFlash:Stop()\n \nend\n\n\n",
254 ["NpcNames"] = {
255 "141851", -- [1]
256 },
257 ["Author"] = "Izimode-Azralon",
258 ["Desc"] = "Add a unitID or unit name in 'Add Trigger' entry. See the constructor script for options.",
259 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n --check if can flash the nameplate\n if (envTable.FlashNameplate) then\n envTable.smallFlash:Play()\n end\n \nend\n\n\n\n\n\n\n\n\n",
260 ["SpellIds"] = {
261 },
262 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n --adjust the nameplate color\n Plater.SetNameplateColor (unitFrame, envTable.Color)\n \n --check if can replace the health amount with the unit name\n if (envTable.ReplaceHealthWithName) then\n \n local healthPercent = format (\"%.1f\", unitFrame.healthBar.CurrentHealth / unitFrame.healthBar.CurrentHealthMax *100)\n \n unitFrame.healthBar.lifePercent:SetText (unitFrame.namePlateUnitName .. \" (\" .. healthPercent .. \"%)\")\n \n end\n \nend\n\n\n",
263 ["Time"] = 1543253273,
264 ["PlaterCore"] = 1,
265 ["Name"] = "Color Change [Plater]",
266 ["ScriptType"] = 3,
267 ["Icon"] = 135024,
268 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --settings:\n do\n \n --change the nameplate color to this color\n --can use color names: \"red\", \"yellow\"\n --can use color hex: \"#FF0000\", \"#FFFF00\"\n --con use color table: {1, 0, 0}, {1, 1, 0}\n \n envTable.Color = \"green\"\n \n --if true, it'll replace the health info with the unit name\n envTable.ReplaceHealthWithName = false\n \n --use flash when the unit is shown in the screen\n envTable.FlashNameplate = true\n \n end\n \n --private:\n do\n --create a flash for when the unit if shown\n envTable.smallFlash = envTable.smallFlash or Plater.CreateFlash (unitFrame.healthBar, 0.15, 1, envTable.Color)\n \n end\n \nend\n\n--[=[\n\nNpc IDS:\n\n141851: Spawn of G'Huun on Mythic Dungeons\n\n\n--]=]\n\n\n\n\n",
269 }, -- [9]
270 {
271 ["Enabled"] = true,
272 ["Revision"] = 157,
273 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.blinkAnimation:Stop()\n envTable.blinkTexture:Hide()\n envTable.blinkAnimation:Stop()\n envTable.glowEffect:Stop()\n Plater:SetFontColor (self.Cooldown.Timer, Plater.db.profile.aura_timer_text_color)\nend\n\n\n",
274 ["NpcNames"] = {
275 },
276 ["Author"] = "Izimode-Azralon",
277 ["Desc"] = "Blink, change the number and nameplate color. Add the debuffs int he trigger box. Set settings on constructor script.",
278 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.blinkTexture:SetSize (self:GetSize())\n \nend\n\n\n",
279 ["SpellIds"] = {
280 },
281 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n local timeLeft = envTable._RemainingTime\n \n --check if the spellID isn't being ignored\n if (envTable.IgnoredSpellID [envTable._SpellID]) then\n return\n end\n \n --check the time left and start or stop the blink animation and also check if the time left is > zero\n if ((envTable.BlinkEnabled or envTable.GlowEnabled) and timeLeft > 0) then\n if (timeLeft < envTable.TimeLeftToBlink) then\n --blink effect\n if (envTable.BlinkEnabled) then\n if (not envTable.blinkAnimation:IsPlaying()) then\n envTable.blinkAnimation:Play()\n end\n end\n --glow effect\n if (envTable.GlowEnabled) then\n envTable.glowEffect:Show()\n end\n --nameplate color\n if (envTable.ChangeNameplateColor) then\n Plater.SetNameplateColor (unitFrame, envTable.NameplateColor)\n end\n else\n --blink effect\n if (envTable.blinkAnimation:IsPlaying()) then\n envTable.blinkAnimation:Stop()\n end\n --glow effect\n if (envTable.GlowEnabled and envTable.glowEffect:IsShown()) then\n envTable.glowEffect:Hide()\n end\n end\n end\n \n --timer color\n if (envTable.TimerColorEnabled and timeLeft > 0) then\n if (timeLeft < envTable.TimeLeftCritical) then\n Plater:SetFontColor (self.Cooldown.Timer, envTable.TextColor_Critical)\n elseif (timeLeft < envTable.TimeLeftWarning) then\n Plater:SetFontColor (self.Cooldown.Timer, envTable.TextColor_Warning) \n else\n Plater:SetFontColor (self.Cooldown.Timer, Plater.db.profile.aura_timer_text_color)\n end\n end\n \nend",
282 ["Time"] = 1547991413,
283 ["PlaterCore"] = 1,
284 ["Name"] = "Aura - Blink by Time Left [Plater]",
285 ["ScriptType"] = 1,
286 ["Icon"] = "Interface\\AddOns\\Plater\\images\\icon_aura_blink",
287 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n --settings (require a /reload after editing any setting)\n do\n --blink and glow\n envTable.BlinkEnabled = true --set to 'false' to disable blinks\n envTable.GlowEnabled = true --set to 'false' to disable glows\n envTable.ChangeNameplateColor = true; --set to 'true' to enable nameplate color change\n envTable.TimeLeftToBlink = 4.5; --in seconds, affects the blink effect only\n envTable.BlinkSpeed = 1.0; --time to complete a blink loop\n envTable.BlinkColor = \"white\"; --color of the blink\n envTable.BlinkMaxAlpha = 0.50; --max transparency in the animation loop (1.0 is full opaque)\n envTable.NameplateColor = \"darkred\"; --nameplate color if ChangeNameplateColor is true\n \n --text color\n envTable.TimerColorEnabled = true --set to 'false' to disable changes in the color of the time left text\n envTable.TimeLeftWarning = 8.0; --in seconds, affects the color of the text\n envTable.TimeLeftCritical = 3.0; --in seconds, affects the color of the text \n envTable.TextColor_Warning = \"yellow\"; --color when the time left entered in a warning zone\n envTable.TextColor_Critical = \"red\"; --color when the time left is critical\n \n --list of spellIDs to ignore\n envTable.IgnoredSpellID = {\n [12] = true, --use a simple comma here\n [13] = true,\n }\n end\n \n \n --private\n do\n envTable.blinkTexture = Plater:CreateImage (self, \"\", 1, 1, \"overlay\")\n envTable.blinkTexture:SetPoint ('center', 0, 0)\n envTable.blinkTexture:Hide()\n \n local onPlay = function()\n envTable.blinkTexture:Show() \n envTable.blinkTexture.color = envTable.BlinkColor\n end\n local onStop = function()\n envTable.blinkTexture:Hide() \n end\n envTable.blinkAnimation = Plater:CreateAnimationHub (envTable.blinkTexture, onPlay, onStop)\n Plater:CreateAnimation (envTable.blinkAnimation, \"ALPHA\", 1, envTable.BlinkSpeed / 2, 0, envTable.BlinkMaxAlpha)\n Plater:CreateAnimation (envTable.blinkAnimation, \"ALPHA\", 2, envTable.BlinkSpeed / 2, envTable.BlinkMaxAlpha, 0)\n \n envTable.glowEffect = envTable.glowEffect or Plater.CreateIconGlow (self)\n --envTable.glowEffect:Show() --envTable.glowEffect:Hide()\n \n end\n \nend\n\n\n\n\n",
288 }, -- [10]
289 {
290 ["Enabled"] = false,
291 ["Revision"] = 45,
292 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n \n --reset the border color\n self:SetBackdropBorderColor (0, 0, 0, 0)\n \nend\n\n\n",
293 ["NpcNames"] = {
294 },
295 ["Author"] = "Izimode-Azralon",
296 ["Desc"] = "Add a border to an aura icon. Add the aura into the Add Trigger entry. You can customize the icon color at the constructor script.",
297 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \n --get the aura name in lower case\n local auraLowerName = string.lower (envTable._SpellName)\n \n --attempt to get a custom color added by the user in the constructor script\n local hasCustomBorderColor = envTable.BorderColorByAura [auraLowerName] or envTable.BorderColorByAura [envTable._SpellName] or envTable.BorderColorByAura [envTable._SpellID]\n \n --save the custom color\n envTable.CustomBorderColor = hasCustomBorderColor\n \nend\n\n\n",
298 ["SpellIds"] = {
299 },
300 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n --get the custom color added by the user or the default color\n local color = envTable.CustomBorderColor or envTable.DefaultBorderColor\n --parse the color since it can be a color name, hex or color table\n local r, g, b = DetailsFramework:ParseColors (color)\n \n --set the border color\n self:SetBackdropBorderColor (r, g, b, envTable.BorderAlpha)\n \nend\n\n\n\n\n",
301 ["Time"] = 1543680853,
302 ["PlaterCore"] = 1,
303 ["Name"] = "Aura - Border Color [Plater]",
304 ["ScriptType"] = 1,
305 ["Icon"] = 133006,
306 ["ConstructorCode"] = "--gray lines are comments and doesn't affect the code\n\n--1) add the aura you want by typing its name or spellID into the \"Add Trigger\" and click the \"Add\" button.\n--2) the border will use the default color set below, to a custom color type aura name and the color you want in the BorderColorByAura table.\n\nfunction (self, unitId, unitFrame, envTable)\n \n --default color if the aura name isn't found in the Color By Aura table below\n envTable.DefaultBorderColor = \"orange\"\n \n --transparency, affect all borders\n envTable.BorderAlpha = 1.0\n \n --add the aura name and the color, \n envTable.BorderColorByAura = {\n \n --examples:\n --[\"Aura Name\"] = \"yellow\", --using regular aura name | using the name of the color\n --[\"aura name\"] = \"#FFFF00\", --using lower case in the aura name |using html #hex for the color\n --[54214] = {1, 1, 0}, --using the spellID instead of the name | using rgb table (0 to 1) for the color\n --color table uses zero to one values: 255 = 1.0, 127 = 0.5, orange color = {1, 0.7, 0}\n \n --add your custom border colors below:\n \n [\"Aura Name\"] = {1, .5, 0}, --example to copy/paste\n \n }\n \n \nend\n\n\n\n\n",
307 }, -- [11]
308 {
309 ["Enabled"] = true,
310 ["Revision"] = 131,
311 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.EnergyAmount:Hide()\nend\n\n\n",
312 ["NpcNames"] = {
313 "Guardian of Yogg-Saron", -- [1]
314 },
315 ["Author"] = "Celian-Sylvanas",
316 ["Desc"] = "Show the energy amount above the nameplate",
317 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.EnergyAmount:Show()\nend\n\n\n",
318 ["SpellIds"] = {
319 },
320 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.EnergyAmount.text = \"\" .. UnitPower (unitId);\nend\n\n\n",
321 ["Time"] = 1539015649,
322 ["PlaterCore"] = 1,
323 ["Name"] = "UnitPower [Plater]",
324 ["ScriptType"] = 3,
325 ["Icon"] = 136048,
326 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.EnergyAmount = Plater:CreateLabel (unitFrame, \"\", 16, \"silver\");\n envTable.EnergyAmount:SetPoint (\"bottom\", unitFrame, \"top\", 0, 18);\nend\n\n--[=[\n\n\n--]=]",
327 }, -- [12]
328 {
329 ["Enabled"] = true,
330 ["Revision"] = 171,
331 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.movingAnimation:Stop()\nend\n\n\n",
332 ["NpcNames"] = {
333 },
334 ["Author"] = "Izimode-Azralon",
335 ["Desc"] = "Does an animation for casts that affect the frontal area of the enemy. Add spell in the Add Trigger field.",
336 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.movingAnimation:Play()\nend\n\n\n",
337 ["SpellIds"] = {
338 255952, -- [1]
339 257426, -- [2]
340 274400, -- [3]
341 272609, -- [4]
342 269843, -- [5]
343 269029, -- [6]
344 272827, -- [7]
345 269266, -- [8]
346 263912, -- [9]
347 264923, -- [10]
348 258864, -- [11]
349 256955, -- [12]
350 265540, -- [13]
351 260793, -- [14]
352 270003, -- [15]
353 270507, -- [16]
354 257337, -- [17]
355 268415, -- [18]
356 275907, -- [19]
357 268865, -- [20]
358 260669, -- [21]
359 260280, -- [22]
360 253239, -- [23]
361 265541, -- [24]
362 250258, -- [25]
363 },
364 ["UpdateCode"] = " function (self, unitId, unitFrame, envTable)\n \n end\n ",
365 ["Time"] = 1539201849,
366 ["PlaterCore"] = 1,
367 ["Name"] = "Cast - Frontal Cone [Plater]",
368 ["ScriptType"] = 2,
369 ["Icon"] = "Interface\\AddOns\\Plater\\images\\cast_bar",
370 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.movingArrow = envTable.movingArrow or Plater:CreateImage (self, [[Interface\\PETBATTLES\\PetBattle-StatIcons]], 16, self:GetHeight(), \"background\", {0, 15/32, 18/32, 30/32})\n \n envTable.movingArrow:SetAlpha (0.275)\n --envTable.movingArrow:SetDesaturated (true)\n \n envTable.movingAnimation = envTable.movingAnimation or Plater:CreateAnimationHub (envTable.movingArrow, \n function() \n envTable.movingArrow:Show() \n envTable.movingArrow:SetPoint(\"left\", 0, 0)\n end, \n function() envTable.movingArrow:Hide() end)\n \n envTable.movingAnimation:SetLooping (\"REPEAT\")\n \n local animation = Plater:CreateAnimation (envTable.movingAnimation, \"translation\", 1, 0.2, self:GetWidth()-16, 0)\n \n \n \nend\n\n\n",
371 }, -- [13]
372 {
373 ["Enabled"] = true,
374 ["Revision"] = 190,
375 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.FixateTarget:Hide()\n envTable.FixateIcon:Hide()\nend\n\n\n",
376 ["NpcNames"] = {
377 },
378 ["Author"] = "Celian-Sylvanas",
379 ["Desc"] = "Show above the nameplate who is the player fixated",
380 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.FixateTarget:Show();\n envTable.FixateIcon:Show();\n \nend\n\n\n",
381 ["SpellIds"] = {
382 272584, -- [1]
383 244653, -- [2]
384 },
385 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n local targetName = UnitName (unitId .. \"target\");\n if (targetName) then\n local _, class = UnitClass (unitId .. \"target\");\n targetName = Plater.SetTextColorByClass (unitId .. \"target\", targetName);\n envTable.FixateTarget.text = targetName;\n end \nend\n\n\n",
386 ["Time"] = 1539187387,
387 ["PlaterCore"] = 1,
388 ["Name"] = "Fixate [Plater]",
389 ["ScriptType"] = 1,
390 ["Icon"] = 1029718,
391 ["ConstructorCode"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.FixateTarget = Plater:CreateLabel (unitFrame);\n envTable.FixateTarget:SetPoint (\"bottom\", unitFrame.BuffFrame, \"top\", 0, 10); \n \n envTable.FixateIcon = Plater:CreateImage (unitFrame, 236188, 16, 16, \"overlay\");\n envTable.FixateIcon:SetPoint (\"bottom\", envTable.FixateTarget, \"top\", 0, 4); \n \nend\n\n\n\n\n\n\n\n\n",
392 }, -- [14]
393 {
394 ["Enabled"] = true,
395 ["Revision"] = 194,
396 ["OnHideCode"] = "function (self, unitId, unitFrame, envTable)\n envTable.FixateTarget:SetText (\"\")\n envTable.FixateTarget:Hide()\n \n envTable.IsFixated = false\n \n Plater.RefreshNameplateColor (unitFrame)\nend\n\n\n",
397 ["NpcNames"] = {
398 "smuggled crawg", -- [1]
399 "sergeant bainbridge", -- [2]
400 "blacktooth scrapper", -- [3]
401 "irontide grenadier", -- [4]
402 "feral bloodswarmer", -- [5]
403 "earthrager", -- [6]
404 "crawler mine", -- [7]
405 "rezan", -- [8]
406 "136461", -- [9]
407 },
408 ["Author"] = "Tecno-Azralon",
409 ["Desc"] = "When an enemy places a debuff and starts to chase you. This script changes the nameplate color and place your name above the nameplate as well.",
410 ["OnShowCode"] = "function (self, unitId, unitFrame, envTable)\n \nend\n\n\n",
411 ["SpellIds"] = {
412 "spawn of g'huun", -- [1]
413 "smuggled crawg", -- [2]
414 "sergeant bainbridge", -- [3]
415 "blacktooth scrapper", -- [4]
416 "irontide grenadier", -- [5]
417 "feral bloodswarmer", -- [6]
418 "earthrager", -- [7]
419 "crawler mine", -- [8]
420 "rezan", -- [9]
421 },
422 ["UpdateCode"] = "function (self, unitId, unitFrame, envTable)\n \n --swap this to true when it is fixated\n local isFixated = false\n \n --check the debuffs the player has and see if any of these debuffs has been placed by this unit\n for debuffId = 1, 40 do\n local name, texture, count, debuffType, duration, expirationTime, caster = UnitDebuff (\"player\", debuffId)\n \n --cancel the loop if there's no more debuffs on the player\n if (not name) then \n break \n end\n \n --check if the owner of the debuff is this unit\n if (envTable.FixateDebuffs [name] and caster and UnitIsUnit (caster, unitId)) then\n --the debuff the player has, has been placed by this unit, set the name above the unit name\n envTable.FixateTarget:SetText (envTable.TextAboveNameplate)\n envTable.FixateTarget:Show()\n Plater.SetNameplateColor (unitFrame, envTable.NameplateColor)\n isFixated = true\n \n if (not envTable.IsFixated) then\n envTable.IsFixated = true\n Plater.FlashNameplateBody (unitFrame, \"fixate\", .2)\n end\n end\n \n end\n \n --check if the nameplate color is changed but isn't fixated any more\n if (not isFixated and envTable.IsFixated) then\n --refresh the nameplate color\n Plater.RefreshNameplateColor (unitFrame)\n --reset the text\n envTable.FixateTarget:SetText (\"\")\n \n envTable.IsFixated = false\n end\n \nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
423 ["Time"] = 1543250950,
424 ["PlaterCore"] = 1,
425 ["Name"] = "Fixate On You [Plater]",
426 ["ScriptType"] = 3,
427 ["Icon"] = 841383,
428 ["ConstructorCode"] = "--todo: add npc ids for multilanguage support\n\nfunction (self, unitId, unitFrame, envTable)\n \n --settings\n envTable.TextAboveNameplate = \"** On You **\"\n envTable.NameplateColor = \"green\"\n \n --label to show the text above the nameplate\n envTable.FixateTarget = Plater:CreateLabel (unitFrame);\n envTable.FixateTarget:SetPoint (\"bottom\", unitFrame.healthBar, \"top\", 0, 30);\n \n --the spell casted by the npc in the trigger list needs to be in the list below as well\n local spellList = {\n [268074] = \"Dark Purpose\", --G'huun Mythic Add\n [260954] = \"Iron Gaze\", --Sergeant Bainbridge - Siege of Boralus\n [257739] = \"Blind Rage\", --Blacktooth Scrapper - Freehold\n [257314] = \"Black Powder Bomb\", --Irontide Grenadier - Freehold\n [266107] = \"Thirst For Blood\", --Feral Bloodswarmer - The Underrot\n [257582] = \"Raging Gaze\", --Earthrager - The MOTHERLODE!!\n [262377] = \"Seek and Destroy\", --Crawler Mine - The MOTHERLODE!!\n [257407] = \"Pursuit\", --Rezan - Atal'Dazar\n --[] = \"\" -- \n \n }\n \n --build the list with localized spell names\n envTable.FixateDebuffs = {}\n for spellID, enUSSpellName in pairs (spellList) do\n local localizedSpellName = GetSpellInfo (spellID)\n envTable.FixateDebuffs [localizedSpellName or enUSSpellName] = true\n end\n \n --debug - smuggled crawg\n envTable.FixateDebuffs [\"Jagged Maw\"] = true\n \nend\n\n--[=[\nNpcIDs:\n136461: Spawn of G'huun (mythic uldir G'huun)\n\n--]=]\n\n\n\n\n",
429 }, -- [15]
430 },
431 ["plate_config"] = {
432 ["enemynpc"] = {
433 ["level_text_size"] = 9,
434 ["cast_incombat"] = {
435 112, -- [1]
436 },
437 ["level_text_alpha"] = 1,
438 ["health_incombat"] = {
439 112, -- [1]
440 12, -- [2]
441 },
442 },
443 },
444 ["use_ui_parent"] = true,
445 ["hook_data"] = {
446 {
447 ["Enabled"] = false,
448 ["Revision"] = 50,
449 ["HooksTemp"] = {
450 },
451 ["Author"] = "Kastfall-Azralon",
452 ["Desc"] = "Easy way to change the color of an unit. Open the constructor script and follow the examples.",
453 ["Hooks"] = {
454 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n --attempt to get the color from the unit color list\n local color = envTable.NpcColors [unitFrame.namePlateUnitNameLower] or envTable.NpcColors [unitFrame.namePlateUnitName] or envTable.NpcColors [unitFrame.namePlateNpcId]\n \n --if the color exists, set the health bar color\n if (color) then\n Plater.SetNameplateColor (unitFrame, color)\n end\n \nend\n\n\n\n\n\n\n\n\n\n\n\n",
455 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --list of npcs and their colors, can be inserted:\n --name of the unit\n --name of the unit in lower case\n --npcID of the unit\n \n --color can be added as:\n --color names: \"red\", \"yellow\"\n --color hex: \"#FF0000\", \"#FFFF00\"\n --color table: {1, 0, 0}, {1, 1, 0} \n \n envTable.NpcColors = {\n \n --examples, using the unit name in lower case, regular unit name and the unitID:\n \n [\"Thunderlord Windreader\"] = \"red\", --using regular mob name and color it as red\n [\"thunderlord crag-leaper\"] = {1, 1, 0}, --using lower case and coloring it yellow\n [75790] = \"#00FF00\", --using the ID of the unit and using green as color\n \n --insert the new mobs here:\n \n \n \n \n \n \n \n \n \n \n \n \n \n } --close custom color bracket\n \nend\n\n\n\n\n",
456 },
457 ["Time"] = 1547392935,
458 ["PlaterCore"] = 1,
459 ["LastHookEdited"] = "",
460 ["LoadConditions"] = {
461 ["talent"] = {
462 },
463 ["group"] = {
464 },
465 ["class"] = {
466 },
467 ["map_ids"] = {
468 },
469 ["race"] = {
470 },
471 ["pvptalent"] = {
472 },
473 ["role"] = {
474 },
475 ["affix"] = {
476 },
477 ["encounter_ids"] = {
478 },
479 ["spec"] = {
480 },
481 },
482 ["Icon"] = "Interface\\AddOns\\Plater\\images\\color_bar",
483 ["Name"] = "Color Automation [Plater]",
484 }, -- [1]
485 {
486 ["Enabled"] = false,
487 ["Revision"] = 59,
488 ["HooksTemp"] = {
489 },
490 ["Author"] = "Izimode-Azralon",
491 ["Desc"] = "Change the nameplate color when a nameplate does not have the auras set in the constructor script.",
492 ["Hooks"] = {
493 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n --do nothing if the player isn't in combat\n if (not Plater.IsInCombat()) then\n return \n end\n \n --do nothing if the unit isn't in combat\n if (not unitFrame.InCombat) then\n return\n end\n \n --do nothing if the unit is the player it self\n if (unitFrame.IsSelf) then\n return\n end\n \n --check the auras\n local hasAura = false\n \n for auraName, _ in pairs (envTable.TrackingAuras) do\n if (Plater.NameplateHasAura (unitFrame, auraName)) then\n hasAura = true\n break\n end\n end\n \n if (not hasAura) then\n Plater.SetNameplateColor (unitFrame, envTable.NameplateColor)\n else\n if (envTable.ForceRefreshNameplateColor) then\n Plater.RefreshNameplateColor (unitFrame) \n end\n end \n \nend",
494 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n --Important: lines starting with double dashes are comments and are not part of the script\n \n --set this to true if you are not using threat colors in the health bar\n envTable.ForceRefreshNameplateColor = true\n \n --if the unit does not have any of the following auras, it will be painted with the color listed below\n --list of spells to track, can be the spell name (case-sensitive) or the spellID\n envTable.TrackingAuras = {\n --[\"Nightblade\"] = true, --this is an example using the spell name\n --[195452] = true, --this is an example using the spellID\n \n }\n \n --which color the nameplate wil be changed\n --color can be added as:\n --color names: \"red\", \"yellow\"\n --color hex: \"#FF0000\", \"#FFFF00\"\n --color table: {1, 0, 0}, {1, 1, 0} \n --you may also use /plater colors\n envTable.NameplateColor = \"pink\"\n \nend",
495 },
496 ["Time"] = 1554138845,
497 ["PlaterCore"] = 1,
498 ["LastHookEdited"] = "",
499 ["LoadConditions"] = {
500 ["talent"] = {
501 },
502 ["group"] = {
503 },
504 ["class"] = {
505 },
506 ["map_ids"] = {
507 },
508 ["race"] = {
509 },
510 ["pvptalent"] = {
511 },
512 ["spec"] = {
513 },
514 ["affix"] = {
515 },
516 ["encounter_ids"] = {
517 },
518 ["role"] = {
519 },
520 },
521 ["Icon"] = 136207,
522 ["Name"] = "Don't Have Aura [Plater]",
523 }, -- [2]
524 {
525 ["Enabled"] = false,
526 ["Revision"] = 178,
527 ["HooksTemp"] = {
528 },
529 ["Author"] = "Tecno-Azralon",
530 ["Desc"] = "Add another border with more customizations. This border can also be manipulated by other scripts.",
531 ["Hooks"] = {
532 ["Nameplate Created"] = "function (self, unitId, unitFrame, envTable)\n \n --run constructor!\n \nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
533 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n if (envTable.IsEnabled) then\n if (unitFrame.IsSelf) then\n if (envTable.ShowOnPersonalBar) then\n envTable.BorderFrame:Show()\n else\n envTable.BorderFrame:Hide() \n end\n else\n envTable.BorderFrame:Show()\n end \n end\n \nend \n\n\n\n",
534 ["Nameplate Removed"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.BorderFrame:Hide()\n \nend\n\n\n",
535 ["Destructor"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.BorderFrame:Hide()\n \nend\n\n\n",
536 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --border color\n local borderColor = \"yellow\"\n \n --size of the border\n local borderSize = 1\n \n --transparency\n local borderAlpha = 1\n \n --enabled (set to false it you only want to use the extra border in other scripts)\n local isEnabled = true\n \n --export border (allow the border to be used by other scripts)\n --other scripts can use:\n --unitFrame.healthBar.extraBorder:Show()\n --unitFrame.healthBar.extraBorder:SetVertexColor (r, g, b)\n --unitFrame.healthBar.extraBorder:SetBorderSizes (borderSize)\n local canExportBorder = true\n \n --do not add the border to personal bar\n local noPersonalBar = true\n \n --private\n do\n \n local newBorder = CreateFrame (\"frame\", nil, unitFrame.healthBar, \"PlaterNamePlateFullBorderTemplate\")\n envTable.BorderFrame = newBorder\n \n newBorder:SetBorderSizes (borderSize, borderSize, borderSize, borderSize)\n newBorder:UpdateSizes()\n \n local r, g, b = DetailsFramework:ParseColors (borderColor)\n newBorder:SetVertexColor (r, g, b, borderAlpha)\n \n envTable.ShowOnPersonalBar = not noPersonalBar\n \n if (canExportBorder) then\n unitFrame.healthBar.extraBorder = newBorder\n end\n \n if (not isEnabled) then\n envTable.IsEnabled = false\n else\n envTable.IsEnabled = true\n end\n end\n \nend\n\n\n",
537 },
538 ["Time"] = 1567879805,
539 ["PlaterCore"] = 1,
540 ["LastHookEdited"] = "",
541 ["LoadConditions"] = {
542 ["talent"] = {
543 },
544 ["group"] = {
545 },
546 ["class"] = {
547 },
548 ["map_ids"] = {
549 },
550 ["role"] = {
551 },
552 ["pvptalent"] = {
553 },
554 ["race"] = {
555 },
556 ["affix"] = {
557 },
558 ["encounter_ids"] = {
559 },
560 ["spec"] = {
561 },
562 },
563 ["Icon"] = 133689,
564 ["Name"] = "Extra Border [Plater]",
565 }, -- [3]
566 {
567 ["Enabled"] = true,
568 ["Revision"] = 55,
569 ["HooksTemp"] = {
570 },
571 ["Author"] = "Kastfall-Azralon",
572 ["Desc"] = "Script for Stormwall Blockade encounter on Battle for Dazzar'alor",
573 ["Hooks"] = {
574 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n if (unitFrame.namePlateNpcId == envTable.NpcIDs.TemptingSiren) then\n \n if (envTable.Colors.TemptingSiren) then\n Plater.SetNameplateColor (unitFrame, envTable.Colors.TemptingSiren)\n end\n \n end\n \n \nend\n\n\n\n\n\n\n\n\n",
575 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n \n if (unitFrame.namePlateNpcId == envTable.NpcIDs.TemptingSiren) then\n \n if (envTable.NameplateHeight.TemptingSiren) then\n \n Plater.SetNameplateSize (unitFrame, nil, envTable.NameplateHeight.TemptingSiren)\n \n end\n \n end \n \nend\n\n\n",
576 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --nameplate colors for unit\n envTable.Colors = {}\n envTable.Colors.TemptingSiren = \"orange\"\n \n --npcID\n envTable.NpcIDs = {}\n envTable.NpcIDs.TemptingSiren = 146436\n \n --nameplate height for each unit\n envTable.NameplateHeight = {}\n envTable.NameplateHeight.TemptingSiren = 18\n \n \n \nend\n\n\n",
577 },
578 ["Time"] = 1548117267,
579 ["PlaterCore"] = 1,
580 ["LastHookEdited"] = "",
581 ["LoadConditions"] = {
582 ["talent"] = {
583 },
584 ["group"] = {
585 },
586 ["class"] = {
587 },
588 ["map_ids"] = {
589 },
590 ["race"] = {
591 },
592 ["pvptalent"] = {
593 },
594 ["spec"] = {
595 },
596 ["affix"] = {
597 },
598 ["encounter_ids"] = {
599 2280, -- [1]
600 ["Enabled"] = true,
601 },
602 ["role"] = {
603 },
604 },
605 ["Icon"] = "Interface\\AddOns\\Plater\\images\\encounter_stormwall_blockade",
606 ["Name"] = "Stormwall Encounter [Plater]",
607 }, -- [4]
608 {
609 ["Enabled"] = false,
610 ["Revision"] = 73,
611 ["HooksTemp"] = {
612 },
613 ["Author"] = "Izimode-Azralon",
614 ["Desc"] = "Hide neutral units, show when selected, see the constructor script for options.",
615 ["Hooks"] = {
616 ["Leave Combat"] = "function (self, unitId, unitFrame, envTable)\n if (unitFrame.namePlateUnitReaction == envTable.REACTION_NEUTRAL) then\n \n --plater already handle this\n if (unitFrame.PlayerCannotAttack) then\n return\n end \n \n --check if is only open world\n if (envTable.OnlyInOpenWorld and Plater.ZoneInstanceType ~= \"none\") then\n return \n end\n \n --check for only in combat\n if (envTable.ShowInCombat) then\n envTable.HideNameplate (unitFrame)\n end\n end\nend\n\n\n",
617 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n \n if (unitFrame.namePlateUnitReaction == envTable.REACTION_NEUTRAL) then\n \n --plater already handle this\n if (unitFrame.PlayerCannotAttack) then\n return\n end\n \n --check if is only open world\n if (envTable.OnlyInOpenWorld and Plater.ZoneInstanceType ~= \"none\") then\n return \n end\n \n --check for only in combat\n if (envTable.ShowInCombat and InCombatLockdown()) then\n return\n end\n \n envTable.HideNameplate (unitFrame)\n end\n \nend\n\n\n\n\n\n\n",
618 ["Target Changed"] = "function (self, unitId, unitFrame, envTable)\n \n if (unitFrame.namePlateUnitReaction == envTable.REACTION_NEUTRAL) then\n \n --plater already handle this\n if (unitFrame.PlayerCannotAttack) then\n return\n end \n \n --check if is only open world\n if (envTable.OnlyInOpenWorld and Plater.ZoneInstanceType ~= \"none\") then\n return \n end\n \n --check for only in combat\n if (envTable.ShowInCombat and InCombatLockdown()) then\n return\n end\n \n --check the unit reaction\n if (unitFrame.namePlateIsTarget) then\n envTable.ShowNameplate (unitFrame)\n \n else\n envTable.HideNameplate (unitFrame)\n \n end \n end\n \nend\n\n\n\n\n\n\n",
619 ["Nameplate Removed"] = "function (self, unitId, unitFrame, envTable)\n \n if (unitFrame.namePlateUnitReaction == envTable.REACTION_NEUTRAL) then\n envTable.ShowNameplate (unitFrame)\n end\n \nend\n\n\n\n\n",
620 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n --when plater finishes an update on the nameplate\n --check within the envTable if the healthBar of this nameplate should be hidden\n if (envTable.IsHidden) then\n if (unitFrame.healthBar:IsShown()) then\n envTable.HideNameplate (unitFrame)\n end\n end\n \nend\n\n\n\n\n",
621 ["Enter Combat"] = "function (self, unitId, unitFrame, envTable)\n \n if (unitFrame.namePlateUnitReaction == envTable.REACTION_NEUTRAL) then\n \n --plater already handle this\n if (unitFrame.PlayerCannotAttack) then\n return\n end \n \n --check if is only open world\n if (envTable.OnlyInOpenWorld and Plater.ZoneInstanceType ~= \"none\") then\n return \n end\n \n --check for only in combat\n if (envTable.ShowInCombat) then\n envTable.ShowNameplate (unitFrame)\n end\n end\nend\n\n\n",
622 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --settings\n envTable.OnlyInOpenWorld = true;\n envTable.ShowInCombat = true;\n \n --consts\n envTable.REACTION_NEUTRAL = 4;\n \n --functions to hide and show the healthBar\n function envTable.HideNameplate (unitFrame)\n Plater.HideHealthBar (unitFrame)\n Plater.DisableHighlight (unitFrame)\n envTable.IsHidden = true\n end\n \n function envTable.ShowNameplate (unitFrame)\n Plater.ShowHealthBar (unitFrame)\n Plater.EnableHighlight (unitFrame)\n envTable.IsHidden = false\n end\n \nend\n\n\n\n\n",
623 },
624 ["Time"] = 1541606242,
625 ["PlaterCore"] = 1,
626 ["LastHookEdited"] = "",
627 ["LoadConditions"] = {
628 ["talent"] = {
629 },
630 ["group"] = {
631 },
632 ["class"] = {
633 },
634 ["map_ids"] = {
635 },
636 ["role"] = {
637 },
638 ["pvptalent"] = {
639 },
640 ["race"] = {
641 },
642 ["affix"] = {
643 },
644 ["encounter_ids"] = {
645 },
646 ["spec"] = {
647 },
648 },
649 ["Icon"] = 1990989,
650 ["Name"] = "Hide Neutral Units [Plater]",
651 }, -- [5]
652 {
653 ["Enabled"] = true,
654 ["Revision"] = 220,
655 ["HooksTemp"] = {
656 },
657 ["Author"] = "Kastfall-Azralon",
658 ["Desc"] = "Script for the Jaina encounter on Battle for Dazzar'alor",
659 ["Hooks"] = {
660 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n \n --Unexploded Ordinance\n if (unitFrame.namePlateNpcId == envTable.NpcIDs.UnexplodedOrdinance) then\n \n --make the life percent be bigger than the regular size\n --so it's better to see the health percent of the barrel\n local currentSize = Plater.db.profile.plate_config.enemynpc.percent_text_size\n Plater:SetFontSize (unitFrame.healthBar.lifePercent, currentSize + envTable.UnexplodedOrdinanceTextSizeIncrease)\n end\n \n if (envTable.IncreaseSize [unitFrame.namePlateNpcId]) then\n local currentHeight = unitFrame.healthBar:GetHeight()\n Plater.SetNameplateSize (unitFrame, nil, currentHeight + envTable.IncreaseSize [unitFrame.namePlateNpcId])\n end\n \nend\n\n\n\n\n\n\n",
661 ["Cast Start"] = "function (self, unitId, unitFrame, envTable)\n if (envTable.UnexplodedOrdinanceCast and envTable._SpellID == envTable.UnexplodedOrdinanceSpellID) then\n Plater.SetCastBarSize (unitFrame, nil, envTable.UnexplodedOrdinanceCastBarHeight)\n Plater:SetFontSize (unitFrame.castBar.percentText, envTable.UnexplodedOrdinanceTimerSize)\n end\nend\n\n\n",
662 ["Nameplate Removed"] = "function (self, unitId, unitFrame, envTable)\n \n --reset the health percent text size\n local currentSize = Plater.db.profile.plate_config.enemynpc.percent_text_size\n Plater:SetFontSize (unitFrame.healthBar.lifePercent, currentSize) \n \nend\n\n\n",
663 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n --Override the color\n if (envTable.Colors [unitFrame.namePlateNpcId]) then\n Plater.SetNameplateColor (unitFrame, envTable.Colors [unitFrame.namePlateNpcId])\n end \n \n --Show the name of the unit in the Ice Block nameplate\n if (unitFrame.namePlateNpcId == envTable.NpcIDs.IceBlock) then\n --find which player this block are holding\n for i = 1, GetNumGroupMembers() do\n local unit = \"raid\" .. i\n if (UnitExists (unit)) then\n for debuffId = 1, 40 do\n local name, texture, count, debuffType, duration, expirationTime, caster = UnitDebuff (unit, debuffId)\n \n --cancel the loop if there's no more debuffs on the player\n if (not name) then \n break \n end \n \n --check if who casted this debuff is the unit shown on this nameplate\n if (UnitIsUnit (caster or \"\", unitId)) then\n local unitName = UnitName (unit)\n \n --color the text by the class\n unitName = Plater.SetTextColorByClass (unit, unitName)\n \n --add the role icon\n if (Details) then\n local role = UnitGroupRolesAssigned (unit)\n unitName = Details:AddRoleIcon (unitName, role, 12)\n end\n \n unitFrame.unitName:SetText (unitName)\n unitFrame.castBar.Text:SetText (unitName)\n break\n end\n \n end\n else\n break\n end\n end\n end\nend",
664 ["Cast Stop"] = "function (self, unitId, unitFrame, envTable)\n if (envTable.UnexplodedOrdinanceCast and envTable._SpellID == envTable.UnexplodedOrdinanceSpellID) then\n Plater.SetCastBarSize (unitFrame)\n Plater:SetFontSize (unitFrame.castBar.percentText, Plater.db.profile.plate_config.enemynpc.spellpercent_text_size)\n end\nend\n\n\n",
665 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --nameplate colors for unit\n envTable.Colors = {}\n envTable.Colors [148631] = \"orange\" --Unexploded Ordinance\n envTable.Colors [148522] = \"white\" --Ice Block\n \n --increase the nameplate height for these units\n envTable.IncreaseSize = {}\n envTable.IncreaseSize [148522] = 4 --Ice Block (increase in 4 pixels)\n \n --increase the size of the life percent for the nameplate of the barrel\n envTable.UnexplodedOrdinanceTextSizeIncrease = 3\n \n --increase the castbar size for the unexploded ordinance explosion cast\n envTable.UnexplodedOrdinanceCast = true\n envTable.UnexplodedOrdinanceSpellID = 288221 --12058 --(debug)\n envTable.UnexplodedOrdinanceCastBarHeight = 18\n envTable.UnexplodedOrdinanceTimerSize = 18\n \n --npcIDs\n envTable.NpcIDs = {}\n envTable.NpcIDs.UnexplodedOrdinance = 148631\n envTable.NpcIDs.IceBlock = 148522\nend\n\n--tests 126023 --harbor saurid - dazar'alor harbor\n--tests 3127 venomtail scorpid - durotar\n--tests 12058 dustwind storm witch - durotar\n--Load Condition: EncounterID 2281\n\n\n",
666 },
667 ["Time"] = 1548612537,
668 ["PlaterCore"] = 1,
669 ["LastHookEdited"] = "",
670 ["LoadConditions"] = {
671 ["talent"] = {
672 },
673 ["group"] = {
674 },
675 ["class"] = {
676 },
677 ["map_ids"] = {
678 },
679 ["race"] = {
680 },
681 ["pvptalent"] = {
682 },
683 ["role"] = {
684 },
685 ["affix"] = {
686 },
687 ["encounter_ids"] = {
688 2281, -- [1]
689 ["Enabled"] = true,
690 },
691 ["spec"] = {
692 },
693 },
694 ["Icon"] = "Interface\\AddOns\\Plater\\images\\encounter_jaina",
695 ["Name"] = "Jaina Encounter [Plater]",
696 }, -- [6]
697 {
698 ["Enabled"] = false,
699 ["Revision"] = 84,
700 ["HooksTemp"] = {
701 },
702 ["Author"] = "Ahwa-Azralon",
703 ["Desc"] = "Add extra effects to execute range. See the constructor script for options.",
704 ["Hooks"] = {
705 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n if (envTable.UseCustomExecutePercent) then\n \n --manual detection\n local healthBar = unitFrame.healthBar\n if (healthBar.CurrentHealth / healthBar.CurrentHealthMax <= envTable.ExecutePercent) then\n envTable.UnitInExecuteRange (unitFrame)\n end \n \n else\n \n --auto detection\n if (unitFrame.InExecuteRange) then\n envTable.UnitInExecuteRange (unitFrame)\n end\n \n end\n \nend\n\n\n\n\n\n\n\n\n\n\n\n\n",
706 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --execute detection, if true the script will handle the execute percent\n --while false Plater will automatically trigger the execute range\n --you only want to set this to true in case of Plater not detecting the execute range correctly\n envTable.UseCustomExecutePercent = false\n --execute percent, if not detecting automatic, this is the percent to active the execute range\n --use from zero to one, 0.20 is equal to 20% of the unit life\n envTable.ExecutePercent = 0.20\n \n --allow this script to change the nameplate color when the unit is in execute range\n envTable.CanChangeColor = true\n --change the health bar color to this color when the unit is in execute range\n --color can be set as:\n --color names: \"red\", \"yellow\"\n --color hex: \"#FF0000\", \"#FFFF00\"\n --color table: {1, 0, 0}, {1, 1, 0}\n envTable.ExecuteColor = \"green\"\n \n --border color\n envTable.CanChangeBorderColor = false\n envTable.BorderColor = \"red\"\n \n --hide the default health divisor and the health execute indicator\n envTable.HideHealthDivisor = false\n --if not hidden, adjust the health divisor settings and the health execute indicator\n envTable.HealthDivisorAlpha = 0.5\n envTable.HealthDivisorColor = \"white\"\n envTable.HealthExecuteIndicatorAlpha = 0.15\n envTable.HealthExecuteIndicatorColor = \"darkred\"\n \n \n --private (internal functions)\n do\n function envTable.UnitInExecuteRange (unitFrame)\n --check if can change the execute color\n if (envTable.CanChangeColor) then\n Plater.SetNameplateColor (unitFrame, envTable.ExecuteColor)\n end\n \n if (envTable.CanChangeBorderColor) then\n Plater.SetBorderColor (unitFrame, envTable.BorderColor)\n end\n \n if (envTable.HideHealthDivisor) then\n unitFrame.healthBar.healthCutOff:Hide() \n unitFrame.healthBar.executeRange:Hide()\n \n else\n envTable.UpdateHealthDivisor (unitFrame)\n \n end\n end\n \n function envTable.UpdateHealthDivisor (unitFrame)\n local healthBar = unitFrame.healthBar\n \n healthBar.healthCutOff:Show()\n healthBar.healthCutOff:SetVertexColor (DetailsFramework:ParseColors (envTable.HealthDivisorColor))\n healthBar.healthCutOff:SetAlpha (envTable.HealthDivisorAlpha)\n \n healthBar.executeRange:Show()\n healthBar.executeRange:SetVertexColor (DetailsFramework:ParseColors (envTable.HealthExecuteIndicatorColor))\n healthBar.executeRange:SetAlpha (envTable.HealthExecuteIndicatorAlpha)\n \n if (envTable.UseCustomExecutePercent) then\n healthBar.healthCutOff:ClearAllPoints()\n healthBar.executeRange:ClearAllPoints()\n \n healthBar.healthCutOff:SetSize (healthBar:GetHeight(), healthBar:GetHeight())\n healthBar.healthCutOff:SetPoint (\"center\", healthBar, \"left\", healthBar:GetWidth() * envTable.ExecutePercent, 0)\n \n healthBar.executeRange:SetTexCoord (0, envTable.ExecutePercent, 0, 1)\n healthBar.executeRange:SetHeight (healthBar:GetHeight())\n healthBar.executeRange:SetPoint (\"left\", healthBar, \"left\", 0, 0)\n healthBar.executeRange:SetPoint (\"right\", healthBar.healthCutOff, \"center\")\n end\n \n end\n end\n \nend",
707 },
708 ["Time"] = 1547406548,
709 ["PlaterCore"] = 1,
710 ["LastHookEdited"] = "",
711 ["LoadConditions"] = {
712 ["talent"] = {
713 },
714 ["group"] = {
715 },
716 ["class"] = {
717 },
718 ["map_ids"] = {
719 },
720 ["race"] = {
721 },
722 ["pvptalent"] = {
723 },
724 ["spec"] = {
725 },
726 ["affix"] = {
727 },
728 ["encounter_ids"] = {
729 },
730 ["role"] = {
731 },
732 },
733 ["Icon"] = 135358,
734 ["Name"] = "Execute Range [Plater]",
735 }, -- [7]
736 {
737 ["Enabled"] = false,
738 ["Revision"] = 222,
739 ["HooksTemp"] = {
740 },
741 ["Author"] = "Kastfall-Azralon",
742 ["Desc"] = "Change the nameplate color if the unit is attacking a specific unit like Monk's Ox Statue or Druid's Treants. You may edit which units it track in the constructor script.",
743 ["Hooks"] = {
744 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --list of npcs and their colors, can be inserted:\n --name of the unit\n --name of the unit in lower case\n --npcID of the unit\n \n --color can be added as:\n --color names: \"red\", \"yellow\"\n --color hex: \"#FF0000\", \"#FFFF00\"\n --color table: {1, 0, 0}, {1, 1, 0} \n \n envTable.ListOfNpcs = {\n [61146] = \"olive\", --monk statue npcID\n [103822] = \"olive\", --druid treant npcID\n \n }\n \n \nend\n\n\n\n\n",
745 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n --get the GUID of the target of the unit\n local targetGUID = UnitGUID (unitId .. \"target\")\n \n if (targetGUID) then\n \n --get the npcID of the target\n local npcID = Plater.GetNpcIDFromGUID (targetGUID)\n --check if the npcID of this unit is in the npc list \n if (envTable.ListOfNpcs [npcID]) then\n Plater.SetNameplateColor (unitFrame, envTable.ListOfNpcs [npcID])\n \n else\n --check if the name of ths unit is in the list\n local unitName = UnitName (unitId .. \"target\")\n if (envTable.ListOfNpcs [unitName]) then\n Plater.SetNameplateColor (unitFrame, envTable.ListOfNpcs [unitName])\n \n else\n --check if the name of the unit in lower case is in the npc list\n unitName = string.lower (unitName)\n if (envTable.ListOfNpcs [unitName]) then\n Plater.SetNameplateColor (unitFrame, envTable.ListOfNpcs [unitName]) \n \n end\n end\n end\n \n end\nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
746 },
747 ["Time"] = 1547993111,
748 ["PlaterCore"] = 1,
749 ["LastHookEdited"] = "",
750 ["LoadConditions"] = {
751 ["talent"] = {
752 },
753 ["group"] = {
754 },
755 ["class"] = {
756 },
757 ["map_ids"] = {
758 },
759 ["race"] = {
760 },
761 ["pvptalent"] = {
762 },
763 ["role"] = {
764 },
765 ["affix"] = {
766 },
767 ["encounter_ids"] = {
768 },
769 ["spec"] = {
770 },
771 },
772 ["Icon"] = "Interface\\AddOns\\Plater\\images\\icon_attacking_unit",
773 ["Name"] = "Attacking Specific Unit [Plater]",
774 }, -- [8]
775 {
776 ["Enabled"] = false,
777 ["Revision"] = 101,
778 ["HooksTemp"] = {
779 },
780 ["Author"] = "Izimode-Azralon",
781 ["Desc"] = "Change the transparency of nameplates that isn't your target. You might want to disable 'Use Range Check' in the General Settings tab when using this hook.",
782 ["Hooks"] = {
783 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n if (unitFrame.IsSelf) then\n unitFrame.healthBar:SetAlpha (envTable.AlphaPersonalBar)\n else\n if (not Plater.PlayerCurrentTargetGUID) then\n unitFrame.healthBar:SetAlpha (envTable.AlphaTarget)\n else\n if (unitFrame.namePlateIsTarget) then\n unitFrame.healthBar:SetAlpha (envTable.AlphaTarget)\n else\n unitFrame.healthBar:SetAlpha (envTable.AlphaIsNotTarget)\n end\n end\n end\nend\n\n\n",
784 ["Target Changed"] = "function (self, unitId, unitFrame, envTable)\n if (unitFrame.IsSelf) then\n unitFrame.healthBar:SetAlpha (envTable.AlphaPersonalBar) \n else\n if (not Plater.PlayerCurrentTargetGUID) then\n unitFrame.healthBar:SetAlpha (envTable.AlphaTarget)\n else\n if (unitFrame.namePlateIsTarget) then\n unitFrame.healthBar:SetAlpha (envTable.AlphaTarget)\n else\n unitFrame.healthBar:SetAlpha (envTable.AlphaIsNotTarget)\n end\n end\n end\nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
785 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n --Important: you might want to disable \"Use Range Check\" in the General Settings tab.\n \n --stup the amount of transparency nameplates will have:\n envTable.AlphaIsNotTarget = 0.4 --40%\n envTable.AlphaTarget = 1.0 --100%\n envTable.AlphaPersonalBar = 1.0 --100% (if the nameplate is the personal bar)\nend\n\n\n\n\n\n\n",
786 },
787 ["Time"] = 1542481682,
788 ["PlaterCore"] = 1,
789 ["LastHookEdited"] = "",
790 ["LoadConditions"] = {
791 ["talent"] = {
792 },
793 ["group"] = {
794 },
795 ["class"] = {
796 },
797 ["map_ids"] = {
798 },
799 ["race"] = {
800 },
801 ["pvptalent"] = {
802 },
803 ["role"] = {
804 },
805 ["affix"] = {
806 },
807 ["encounter_ids"] = {
808 },
809 ["spec"] = {
810 },
811 },
812 ["Icon"] = 132177,
813 ["Name"] = "No Target Alpha [Plater]",
814 }, -- [9]
815 {
816 ["Enabled"] = false,
817 ["Revision"] = 88,
818 ["HooksTemp"] = {
819 },
820 ["Author"] = "Kastfall-Azralon",
821 ["Desc"] = "Function Plater.UpdatePlateSize from Plater.lua exported to scritps.",
822 ["Hooks"] = {
823 ["Nameplate Added"] = "\n\n-- exported function Plater.UpdatePlateSize() from Plater.lua\n--this is for advanced users which wants to reorder the nameplate frame at their desire\n\n\n\nfunction (self, unitId, unitFrame, envTable)\n \n --check if there's a type of unit on this nameplate\n local plateFrame = unitFrame:GetParent()\n if (not plateFrame.actorType) then\n return\n end\n \n --get all the frames and cache some variables\n local ACTORTYPE_ENEMY_PLAYER = \"enemyplayer\"\n local profile = Plater.db.profile\n local DB_PLATE_CONFIG = profile.plate_config\n local isInCombat = Plater.IsInCombat()\n local actorType = plateFrame.actorType\n \n local unitFrame = plateFrame.unitFrame\n local healthBar = unitFrame.healthBar\n local castBar = unitFrame.castBar\n local powerBar = unitFrame.powerBar\n local buffFrame1 = unitFrame.BuffFrame\n local buffFrame2 = unitFrame.BuffFrame2\n \n --use in combat bars when in pvp\n if (plateFrame.actorType == ACTORTYPE_ENEMY_PLAYER) then\n if ((Plater.ZoneInstanceType == \"pvp\" or Plater.ZoneInstanceType == \"arena\") and DB_PLATE_CONFIG.player.pvp_always_incombat) then\n isInCombat = true\n end\n end\n \n --get the config for this actor type\n local plateConfigs = DB_PLATE_CONFIG [actorType]\n --get the config key based if the player is in combat\n local castBarConfigKey, healthBarConfigKey, manaConfigKey = Plater.GetHashKey (isInCombat)\n \n --get the width and height from what the user set in the options panel\n local healthBarWidth, healthBarHeight = unitFrame.customHealthBarWidth or plateConfigs [healthBarConfigKey][1], unitFrame.customHealthBarHeight or plateConfigs [healthBarConfigKey][2]\n local castBarWidth, castBarHeight = unitFrame.customCastBarWidth or plateConfigs [castBarConfigKey][1], unitFrame.customCastBarHeight or plateConfigs [castBarConfigKey][2]\n local powerBarWidth, powerBarHeight = unitFrame.customPowerBarHeight or plateConfigs [manaConfigKey][1], unitFrame.customPowerBarHeight or plateConfigs [manaConfigKey][2]\n \n --calculate the offset for the cast bar, this is done due to the cast bar be anchored to topleft and topright\n local castBarOffSetX = (healthBarWidth - castBarWidth) / 2\n local castBarOffSetY = plateConfigs.castbar_offset\n \n --calculate offsets for the power bar\n local powerBarOffSetX = (healthBarWidth - powerBarWidth) / 2\n local powerBarOffSetY = 0\n \n --calculate the size deviation for pets\n local unitType = Plater.GetUnitType (plateFrame)\n if (unitType == \"pet\") then\n healthBarHeight = healthBarHeight * Plater.db.profile.pet_height_scale\n healthBarWidth = healthBarWidth * Plater.db.profile.pet_width_scale\n \n elseif (unitType == \"minus\") then\n healthBarHeight = healthBarHeight * Plater.db.profile.minor_height_scale\n healthBarWidth = healthBarWidth * Plater.db.profile.minor_width_scale\n end\n \n --unit frame - is set to be the same size as the plateFrame\n unitFrame:ClearAllPoints()\n unitFrame:SetAllPoints()\n \n --calculates the health bar anchor points\n --it will always be placed in the center of the nameplate area (where it accepts mouse clicks) \n local xOffSet = (plateFrame:GetWidth() - healthBarWidth) / 2\n local yOffSet = (plateFrame:GetHeight() - healthBarHeight) / 2\n \n --set the health bar point\n healthBar:ClearAllPoints()\n PixelUtil.SetPoint (healthBar, \"topleft\", unitFrame, \"topleft\", xOffSet + profile.global_offset_x, -yOffSet + profile.global_offset_y)\n PixelUtil.SetPoint (healthBar, \"bottomright\", unitFrame, \"bottomright\", -xOffSet + profile.global_offset_x, yOffSet + profile.global_offset_y)\n \n --set the cast bar point and size\n castBar:ClearAllPoints()\n PixelUtil.SetPoint (castBar, \"topleft\", healthBar, \"bottomleft\", castBarOffSetX, castBarOffSetY)\n PixelUtil.SetPoint (castBar, \"topright\", healthBar, \"bottomright\", -castBarOffSetX, castBarOffSetY)\n PixelUtil.SetHeight (castBar, castBarHeight)\n PixelUtil.SetSize (castBar.Icon, castBarHeight, castBarHeight)\n PixelUtil.SetSize (castBar.BorderShield, castBarHeight * 1.4, castBarHeight * 1.4)\n \n --set the power bar point and size\n powerBar:ClearAllPoints()\n PixelUtil.SetPoint (powerBar, \"topleft\", healthBar, \"bottomleft\", powerBarOffSetX, powerBarOffSetY)\n PixelUtil.SetPoint (powerBar, \"topright\", healthBar, \"bottomright\", -powerBarOffSetX, powerBarOffSetY)\n PixelUtil.SetHeight (powerBar, powerBarHeight)\n \n --power bar are hidden by default, show it if there's a custom size for it\n if (unitFrame.customPowerBarWidth and unitFrame.customPowerBarHeight) then\n powerBar:SetUnit (unitFrame.unit)\n end\n \n --aura frames\n buffFrame1:ClearAllPoints()\n PixelUtil.SetPoint (buffFrame1, \"bottom\", unitFrame, \"top\", profile.aura_x_offset, plateConfigs.buff_frame_y_offset + profile.aura_y_offset)\n \n buffFrame2:ClearAllPoints()\n PixelUtil.SetPoint (buffFrame2, \"bottom\", unitFrame, \"top\", profile.aura2_x_offset, plateConfigs.buff_frame_y_offset + profile.aura2_y_offset) \n \nend\n\n\n",
824 },
825 ["Time"] = 1548077443,
826 ["PlaterCore"] = 1,
827 ["LastHookEdited"] = "",
828 ["LoadConditions"] = {
829 ["talent"] = {
830 },
831 ["group"] = {
832 },
833 ["class"] = {
834 },
835 ["map_ids"] = {
836 },
837 ["role"] = {
838 },
839 ["pvptalent"] = {
840 },
841 ["race"] = {
842 },
843 ["affix"] = {
844 },
845 ["encounter_ids"] = {
846 },
847 ["spec"] = {
848 },
849 },
850 ["Icon"] = 574574,
851 ["Name"] = "Reorder Nameplate [Plater]",
852 }, -- [10]
853 {
854 ["Enabled"] = true,
855 ["Revision"] = 37,
856 ["HooksTemp"] = {
857 },
858 ["Author"] = "Izimode-Azralon",
859 ["Desc"] = "Tint nameplates of Reaping Soul units (Mythic Dungeon Affix) depending on its target and role of the player",
860 ["Hooks"] = {
861 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n --can detect the reaping souls aggro?\n if (envTable.detectAggro and Plater.IsInCombat()) then\n \n --is this npc a reaping soul?\n if (envTable.npcIDs [unitFrame.namePlateNpcId]) then\n \n --check if the mob is attacking the player\n if (UnitIsUnit (unitFrame.targetUnitID, \"player\")) then\n Plater.SetNameplateColor (unitFrame, envTable.NameplateAggroColor)\n \n else\n Plater.SetNameplateColor (unitFrame, envTable.NameplateNoAggroColor)\n end\n \n end\n \n end\n \nend",
862 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n \n --when the nameplate is added and the npcID matches, cache the color for the nameplate\n if (envTable.detectAggro) then\n if (envTable.npcIDs [unitFrame.namePlateNpcId]) then\n local profile = Plater.db.profile\n local role = Plater:GetPlayerRole()\n \n if (role == \"TANK\") then\n envTable.NameplateAggroColor = profile.tank.colors.aggro\n envTable.NameplateNoAggroColor = profile.tank.colors.noaggro\n else\n envTable.NameplateAggroColor = profile.dps.colors.aggro\n envTable.NameplateNoAggroColor = profile.dps.colors.noaggro\n end\n \n end\n end\n \n \nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
863 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --npcs affected by this script\n \n envTable.npcIDs = {\n [148716] = true, --risen soul\n [148893] = true, --tormented soul\n [148894] = true, --lost soul\n \n [127278] = true, --skittering feeder (tests and debug, also need to disable the load conditions)\n }\n \n --detect aggro, if true it will see which group member the soul is attacking and override the color\n envTable.detectAggro = true\n \n \nend\n\n\n",
864 },
865 ["Time"] = 1549827281,
866 ["PlaterCore"] = 1,
867 ["LastHookEdited"] = "",
868 ["LoadConditions"] = {
869 ["talent"] = {
870 },
871 ["group"] = {
872 ["Enabled"] = true,
873 ["party"] = true,
874 },
875 ["class"] = {
876 },
877 ["map_ids"] = {
878 },
879 ["role"] = {
880 },
881 ["pvptalent"] = {
882 },
883 ["race"] = {
884 },
885 ["affix"] = {
886 [117] = true,
887 ["Enabled"] = true,
888 },
889 ["encounter_ids"] = {
890 },
891 ["spec"] = {
892 },
893 },
894 ["Icon"] = 2446016,
895 ["Name"] = "M+ Bwonsamdi Reaping",
896 }, -- [11]
897 {
898 ["Enabled"] = false,
899 ["Revision"] = 189,
900 ["HooksTemp"] = {
901 },
902 ["Author"] = "Izimode-Azralon",
903 ["Desc"] = "Show combo points above the nameplate for Druid Feral and Rogues.",
904 ["Hooks"] = {
905 ["Nameplate Created"] = "function (self, unitId, unitFrame, envTable)\n \n --run constructor!\n --constructor is executed only once when any script of the hook runs.\n \nend\n\n\n",
906 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n \n --check if need update the amount of combo points shown\n if (envTable.LastPlayerTalentUpdate > envTable.LastUpdate) then\n envTable.UpdateComboPointAmount()\n end \n \n if (unitFrame.namePlateIsTarget and not unitFrame.IsSelf) then\n envTable.ComboPointFrame:Show()\n envTable.UpdateComboPoints()\n \n else\n envTable.ComboPointFrame:Hide()\n end \n \nend\n\n\n",
907 ["Target Changed"] = "function (self, unitId, unitFrame, envTable)\n \n --check if this nameplate is the current target\n if (unitFrame.namePlateIsTarget and not unitFrame.IsSelf) then\n envTable.ComboPointFrame:Show()\n \n else\n envTable.ComboPointFrame:Hide()\n end\n \nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
908 ["Player Power Update"] = "function (self, unitId, unitFrame, envTable)\n \n if (unitFrame.namePlateIsTarget and not unitFrame.IsSelf) then\n envTable.UpdateComboPoints()\n end\n \n \nend\n\n\n\n\n\n\n",
909 ["Player Talent Update"] = "function (self, unitId, unitFrame, envTable)\n \n --update the amount of comboo points shown when the player changes talents or specialization\n envTable.UpdateComboPointAmount()\n \n --save the time of the last talent change\n envTable.LastPlayerTalentUpdate = GetTime()\n \n \nend\n\n\n",
910 ["Destructor"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.ComboPointFrame:Hide()\n \nend\n\n\n\n\n",
911 ["Nameplate Removed"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.ComboPointFrame:Hide()\n \nend\n\n\n",
912 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --settings\n local anchors = {\n {\"bottom\", unitFrame.healthBar, \"top\", 0, 24},\n }\n \n local sizes = {\n width = 12,\n height = 12,\n scale = 1,\n }\n \n local textures = {\n backgroundTexture = [[Interface\\PLAYERFRAME\\ClassOverlayComboPoints]],\n backgroundTexCoords = {78/128, 98/128, 21/64, 41/64},\n \n comboPointTexture = [[Interface\\PLAYERFRAME\\ClassOverlayComboPoints]],\n comboPointTexCoords = {100/128, 120/128, 21/64, 41/64},\n }\n \n local frameLevel = 1000\n local frameStrata = \"high\" \n \n --private\n do\n --store combo points frames on this table\n envTable.ComboPoints = {}\n --save when the player changed talents or spec\n envTable.LastPlayerTalentUpdate = GetTime()\n --save when this nameplate got a combo point amount and alignment update \n \n --build combo points frame anchor (combo point are anchored to this)\n if (not unitFrame.PlaterComboPointFrame) then\n local hostFrame = CreateFrame (\"frame\", nil, unitFrame)\n hostFrame.ComboPointFramesPool = {}\n unitFrame.PlaterComboPointFrame = hostFrame\n envTable.ComboPointFrame = hostFrame\n \n --DetailsFramework:ApplyStandardBackdrop (envTable.ComboPointFrame) --debug anchor size\n \n --animations\n local onPlayShowAnimation = function (animation)\n --stop the hide animation if it's playing\n if (animation:GetParent():GetParent().HideAnimation:IsPlaying()) then\n animation:GetParent():GetParent().HideAnimation:Stop()\n end\n \n animation:GetParent():Show()\n end\n \n local onPlayHideAnimation = function (animation)\n --stop the show animation if it's playing\n if (animation:GetParent():GetParent().ShowAnimation:IsPlaying()) then\n animation:GetParent():GetParent().ShowAnimation:Stop()\n end\n end \n local onStopHideAnimation = function (animation)\n animation:GetParent():Hide() \n end\n \n local createAnimations = function (comboPoint)\n --on show\n comboPoint.ShowAnimation = Plater:CreateAnimationHub (comboPoint.comboPointTexture, onPlayShowAnimation, nil)\n Plater:CreateAnimation (comboPoint.ShowAnimation, \"scale\", 1, 0.1, 0, 0, 1, 1)\n Plater:CreateAnimation (comboPoint.ShowAnimation, \"alpha\", 1, 0.1, .5, 1)\n Plater:CreateAnimation (comboPoint.ShowAnimation, \"scale\", 2, 0.1, 1.2, 1.2, 1, 1)\n \n --on hide\n comboPoint.HideAnimation = Plater:CreateAnimationHub (comboPoint.comboPointTexture, onPlayHideAnimation, onStopHideAnimation)\n Plater:CreateAnimation (comboPoint.HideAnimation, \"scale\", 1, 0.1, 1, 1, 0, 0)\n Plater:CreateAnimation (comboPoint.HideAnimation, \"alpha\", 1, 0.1, 1, 0)\n end\n \n --build combo point frame \n for i =1, 10 do \n local f = CreateFrame (\"frame\", nil, envTable.ComboPointFrame)\n f:SetSize (sizes.width, sizes.height)\n tinsert (envTable.ComboPoints, f)\n tinsert (unitFrame.PlaterComboPointFrame.ComboPointFramesPool, f)\n \n local backgroundTexture = f:CreateTexture (nil, \"background\")\n backgroundTexture:SetTexture (textures.backgroundTexture)\n backgroundTexture:SetTexCoord (unpack (textures.backgroundTexCoords))\n backgroundTexture:SetSize (sizes.width, sizes.height)\n backgroundTexture:SetPoint (\"center\")\n \n local comboPointTexture = f:CreateTexture (nil, \"artwork\")\n comboPointTexture:SetTexture (textures.comboPointTexture)\n comboPointTexture:SetTexCoord (unpack (textures.comboPointTexCoords))\n \n comboPointTexture:SetSize (sizes.width, sizes.height)\n comboPointTexture:SetPoint (\"center\")\n comboPointTexture:Hide() \n \n f.IsActive = false\n \n f.backgroundTexture = backgroundTexture\n f.comboPointTexture = comboPointTexture\n \n createAnimations (f)\n end\n \n else\n envTable.ComboPointFrame = unitFrame.PlaterComboPointFrame\n envTable.ComboPointFrame:SetScale (sizes.scale)\n envTable.ComboPoints = unitFrame.PlaterComboPointFrame.ComboPointFramesPool\n \n end \n \n envTable.ComboPointFrame:SetFrameLevel (frameLevel)\n envTable.ComboPointFrame:SetFrameStrata (frameStrata)\n \n function envTable.UpdateComboPoints()\n local comboPoints = UnitPower (\"player\", Enum.PowerType.ComboPoints)\n \n for i = 1, envTable.TotalComboPoints do\n local thisComboPoint = envTable.ComboPoints [i]\n \n if (i <= comboPoints ) then\n --combo point enabled\n if (not thisComboPoint.IsActive) then\n thisComboPoint.ShowAnimation:Play()\n thisComboPoint.IsActive = true\n \n end\n \n else\n --combo point disabled\n if (thisComboPoint.IsActive) then\n thisComboPoint.HideAnimation:Play()\n thisComboPoint.IsActive = false\n \n end\n end\n end\n \n \n end\n \n function envTable.UpdateComboPointAmount()\n local namePlateWidth = Plater.db.profile.plate_config.enemynpc.health_incombat[1]\n local comboPoints = UnitPowerMax (\"player\", Enum.PowerType.ComboPoints)\n local reservedSpace = namePlateWidth / comboPoints\n \n --store the total amount of combo points\n envTable.TotalComboPoints = comboPoints\n \n --update anchor frame\n envTable.ComboPointFrame:SetWidth (namePlateWidth)\n envTable.ComboPointFrame:SetHeight (20)\n envTable.ComboPointFrame:ClearAllPoints()\n for i = 1, #anchors do\n local anchor = anchors[i]\n envTable.ComboPointFrame:SetPoint (unpack (anchor))\n end \n \n --\n for i = 1, #envTable.ComboPoints do\n envTable.ComboPoints[i]:Hide()\n envTable.ComboPoints[i]:ClearAllPoints()\n end\n \n for i = 1, comboPoints do\n local comboPoint = envTable.ComboPoints[i]\n comboPoint:SetPoint (\"left\", envTable.ComboPointFrame, \"left\", reservedSpace * (i-1), 0)\n comboPoint:Show()\n end\n \n envTable.LastUpdate = GetTime()\n \n envTable.UpdateComboPoints()\n end\n \n --initialize\n envTable.UpdateComboPointAmount()\n envTable.ComboPointFrame:Hide()\n end\n \n \nend",
913 },
914 ["Time"] = 1548354524,
915 ["PlaterCore"] = 1,
916 ["LastHookEdited"] = "",
917 ["LoadConditions"] = {
918 ["talent"] = {
919 },
920 ["group"] = {
921 },
922 ["class"] = {
923 ["Enabled"] = true,
924 ["DRUID"] = true,
925 ["ROGUE"] = true,
926 },
927 ["map_ids"] = {
928 },
929 ["role"] = {
930 },
931 ["pvptalent"] = {
932 },
933 ["spec"] = {
934 [103] = true,
935 ["Enabled"] = true,
936 },
937 ["affix"] = {
938 },
939 ["encounter_ids"] = {
940 },
941 ["race"] = {
942 },
943 },
944 ["Icon"] = 135426,
945 ["Name"] = "Combo Points [Plater]",
946 }, -- [12]
947 {
948 ["Enabled"] = false,
949 ["Revision"] = 182,
950 ["HooksTemp"] = {
951 },
952 ["Author"] = "Izimode-Azralon",
953 ["Desc"] = "Show how many raid members are targeting the unit",
954 ["Hooks"] = {
955 ["Leave Combat"] = "function (self, unitId, unitFrame, envTable)\n envTable.CanShow = false;\n envTable.TargetAmount:SetText (\"\")\nend\n\n\n",
956 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n \n --when a nameplate is added to the screen check if the player is in combat\n if (InCombatLockdown()) then\n --player is in combat, check if can check amount of targets\n envTable.CanShow = envTable.CanShowTargetAmount();\n \n else\n envTable.CanShow = false; \n end\n \n envTable.TargetAmount:SetText (\"\");\n \nend",
957 ["Nameplate Removed"] = "function (self, unitId, unitFrame, envTable)\n \n envTable.TargetAmount:SetText (\"\");\n envTable.CanShow = false;\n \nend\n\n\n",
958 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n --if the script is allowed to show the amount of targets\n --also check if the unit is in combat\n if (envTable.CanShow and UnitAffectingCombat (unitId)) then\n \n --check if can update the amount of targets following the cooldown set in the constructor script\n --by default Plater updates the nameplate every 250ms, by default the cooldown is 2, so it'll update the amuont of target every 1/2 of a second\n envTable.UpdateCooldown = envTable.UpdateCooldown + 1\n if (envTable.UpdateCooldown < envTable.UpdateInterval) then\n return\n else\n \n --reset the cooldown interval to check the amount of target again\n envTable.UpdateCooldown = 0\n \n --get the amount of targets\n local amount;\n if (envTable.InRaid) then\n amount = envTable.NumTargetsInRaid (unitFrame) \n \n elseif (envTable.InParty) then\n amount = envTable.NumTargetsInParty (unitFrame) \n \n else\n envTable.TargetAmount:SetText (\"\")\n return\n end\n \n --update the amount text\n if (amount == 0) then\n envTable.TargetAmount:SetText (\"\")\n else\n envTable.TargetAmount:SetText (amount)\n end\n \n end\n end\nend\n\n\n",
959 ["Enter Combat"] = "function (self, unitId, unitFrame, envTable)\n \n --check if can show the amount of targets\n envTable.CanShow = envTable.CanShowTargetAmount();\n \n if (not envTable.CanShow) then\n envTable.TargetAmount:SetText (\"\") \n end\nend\n\n\n\n\n",
960 ["Constructor"] = "--all gray text like this are comments and do not run as code\n--build the settings and basic functions for the hook\n\nfunction (self, unitId, unitFrame, envTable)\n \n --declare setting variables:\n local textColor = \"orange\";\n local textSize = 12;\n \n local showInRaid = true;\n local showInDungeon = true;\n local showInArena = false;\n local showInBattleground = false;\n local showInOpenWorld = true;\n \n envTable.UpdateInterval = 2; --each 2 updates in the nameplate it'll update the amount of targets\n \n local anchor = {\n side = 6, --1 = topleft 2 = left 3 = bottomleft 4 = bottom 5 = bottom right 6 = right 7 = topright 8 = top\n x = 4, --x offset\n y = 0, --y offset\n };\n \n \n ---------------------------------------------------------------------------------------------------------------------------------------------\n \n \n --frames:\n \n --create the text that will show the amount of people targeting the unit\n if (not unitFrame.healthBar.TargetAmount) then\n envTable.TargetAmount = Plater:CreateLabel (unitFrame.healthBar, \"\", textSize, textColor);\n Plater.SetAnchor (envTable.TargetAmount, anchor);\n unitFrame.healthBar.TargetAmount = envTable.TargetAmount\n end\n \n --in case Plater wipes the envTable\n envTable.TargetAmount = unitFrame.healthBar.TargetAmount\n \n --------------------------------------------------------------------------------------------------------------------------------------------- \n --private variables (they will be used in the other scripts within this hook)\n envTable.CanShow = false;\n envTable.UpdateCooldown = 0;\n envTable.InRaid = false;\n envTable.InParty = false;\n \n --------------------------------------------------------------------------------------------------------------------------------------------- \n --functions\n \n --update the InRaid or InParty proprieties\n function envTable.UpdateGroupType()\n if (IsInRaid()) then\n envTable.InRaid = true;\n envTable.InParty = false; \n \n elseif (IsInGroup()) then\n envTable.InRaid = false;\n envTable.InParty = true; \n \n else\n envTable.InRaid = false; \n envTable.InParty = false;\n end\n end\n \n --this function controls if the amount of targets can show following the settings in the top of this script\n function envTable.CanShowTargetAmount()\n \n local _, instanceType, difficultyID, _, _, _, _, instanceMapID, instanceGroupSize = GetInstanceInfo()\n \n if (showInRaid and instanceType == \"raid\") then\n envTable.UpdateGroupType()\n return true\n end\n \n if (showInDungeon and instanceType == \"party\") then\n envTable.UpdateGroupType()\n return true\n end\n \n if (showInArena and instanceType == \"arena\") then\n envTable.UpdateGroupType()\n return true\n end\n \n if (showInBattleground and instanceType == \"pvp\") then\n envTable.UpdateGroupType()\n return true\n end\n \n if (showInOpenWorld and instanceType == \"none\") then\n envTable.UpdateGroupType()\n if (envTable.InRaid or envTable.InParty) then\n return true\n end\n end\n \n return false\n end\n \n --get the amount of player targetting the unit in raid or party\n function envTable.NumTargetsInRaid (unitFrame)\n local amount = 0\n for i = 1, GetNumGroupMembers() do\n local unit = \"raid\" .. i .. \"target\"\n if (UnitGUID (unit) == unitFrame.namePlateUnitGUID) then\n amount = amount + 1\n end\n end\n \n return amount\n end\n \n function envTable.NumTargetsInParty()\n local amount = 0\n for i = 1, GetNumGroupMembers() - 1 do\n local unit = \"party\" .. i .. \"target\"\n if (UnitGUID (unit) == unitFrame.namePlateUnitGUID) then\n amount = amount + 1\n end\n end\n \n local unit = \"playertarget\"\n if (UnitGUID (unit) == unitFrame.namePlateUnitGUID) then\n amount = amount + 1\n end \n \n return amount\n end\n \nend",
961 },
962 ["Time"] = 1548278227,
963 ["PlaterCore"] = 1,
964 ["LastHookEdited"] = "",
965 ["LoadConditions"] = {
966 ["talent"] = {
967 },
968 ["group"] = {
969 },
970 ["class"] = {
971 },
972 ["map_ids"] = {
973 },
974 ["race"] = {
975 },
976 ["pvptalent"] = {
977 },
978 ["role"] = {
979 },
980 ["affix"] = {
981 },
982 ["encounter_ids"] = {
983 },
984 ["spec"] = {
985 },
986 },
987 ["Icon"] = 1966587,
988 ["Name"] = "Players Targeting a Target [Plater]",
989 }, -- [13]
990 {
991 ["Enabled"] = false,
992 ["Revision"] = 93,
993 ["HooksTemp"] = {
994 },
995 ["Author"] = "Izimode-Azralon",
996 ["Desc"] = "Changes the target color to the color set in the constructor script.",
997 ["Hooks"] = {
998 ["Nameplate Added"] = "function (self, unitId, unitFrame, envTable)\n envTable.UpdateColor (unitFrame)\nend",
999 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n envTable.UpdateColor (unitFrame)\nend",
1000 ["Target Changed"] = "function (self, unitId, unitFrame, envTable)\n envTable.UpdateColor (unitFrame)\nend\n\n\n\n\n\n\n\n\n\n\n",
1001 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --usage: color name e.g \"red\" \"yellow\"; color table e.g {1, 0, 0} {1, 1, 0}; hex string e.g. \"#FF0000\" \"FFFF00\"\n \n envTable.TargetColor = \"purple\"\n --envTable.TargetColor = \"#FF00FF\"\n --envTable.TargetColor = {252/255, 0/255, 254/255}\n \n function envTable.UpdateColor (unitFrame)\n --do not change the color of the personal bar\n if (not unitFrame.IsSelf) then\n \n --if this nameplate the current target of the player?\n if (unitFrame.namePlateIsTarget) then\n Plater.SetNameplateColor (unitFrame, envTable.TargetColor) --rgb\n else\n --refresh the nameplate color\n Plater.RefreshNameplateColor (unitFrame)\n end\n end\n end\n \nend\n\n\n\n\n",
1002 },
1003 ["Time"] = 1552354619,
1004 ["PlaterCore"] = 1,
1005 ["LastHookEdited"] = "",
1006 ["LoadConditions"] = {
1007 ["talent"] = {
1008 },
1009 ["group"] = {
1010 },
1011 ["class"] = {
1012 },
1013 ["map_ids"] = {
1014 },
1015 ["race"] = {
1016 },
1017 ["pvptalent"] = {
1018 },
1019 ["spec"] = {
1020 },
1021 ["affix"] = {
1022 },
1023 ["encounter_ids"] = {
1024 },
1025 ["role"] = {
1026 },
1027 },
1028 ["Icon"] = 878211,
1029 ["Name"] = "Current Target Color [Plater]",
1030 }, -- [14]
1031 {
1032 ["Enabled"] = false,
1033 ["Revision"] = 272,
1034 ["HooksTemp"] = {
1035 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n local auraContainers = {unitFrame.BuffFrame.PlaterBuffList}\n\n if (Plater.db.profile.buffs_on_aura2) then\n auraContainers [2] = unitFrame.BuffFrame2.PlaterBuffList\n end\n \n for containerID = 1, #auraContainers do\n \n local auraContainer = auraContainers [containerID]\n local aurasShown = {}\n local aurasDuplicated = {}\n \n --build the list of auras shown in the buff frame and check for each aura priority\n --also check if the consolidate (stack) auras with the same name is enabled\n for index, auraIcon in ipairs (auraContainer) do\n if (auraIcon:IsShown()) then\n if (envTable.consolidadeRepeatedAuras) then\n --is this aura already shown?\n local iconShownIndex = aurasDuplicated [auraIcon.SpellName]\n if (iconShownIndex) then\n --get the table with information about the shown icon\n local auraShownTable = aurasShown [iconShownIndex]\n --get the icon already in the table\n local icon = auraShownTable[1]\n --increase the amount of stacks\n auraShownTable[3] = auraShownTable[3] + 1\n \n --check if the remaining time of the icon already added in the table is lower than the current\n if (auraIcon.RemainingTime > icon.RemainingTime) then\n --replace the icon for the icon with bigger duration\n auraShownTable[1] = auraIcon\n icon:Hide()\n else\n auraIcon:Hide()\n end\n else \n local priority = envTable.priority[auraIcon.SpellName] or envTable.priority[auraIcon.spellId] or 1\n tinsert (aurasShown, {auraIcon, priority, 1}) --icon frame, priority, stack amount\n aurasDuplicated [auraIcon.SpellName] = #aurasShown\n end\n else\n --not stacking similar auras\n local priority = envTable.priority[auraIcon.SpellName] or envTable.priority[auraIcon.spellId] or 1\n tinsert (aurasShown, {auraIcon, priority})\n \n end \n end\n end\n \n --sort auras by priority\n table.sort (aurasShown, DetailsFramework.SortOrder2)\n \n local growDirection\n if (containerID == 1) then --debuff container\n growDirection = Plater.db.profile.aura_grow_direction\n --force to grow to right if it is anchored to center\n if (growDirection == 2) then\n growDirection = 3\n end\n -- \"Left\", \"Center\", \"Right\" - 1 2 3\n \n elseif (containerID == 2) then --buff container\n growDirection = Plater.db.profile.aura2_grow_direction\n --force to grow to left if it is anchored to center\n if (growDirection == 2) then\n growDirection = 1\n end\n \n end\n \n local padding = envTable.padding\n local framersPerRow = envTable.maxAurasPerRow + 1\n \n --first icon is where the row starts\n local firstIcon = aurasShown[1] and aurasShown[1][1]\n \n if (firstIcon) then\n local anchorPoint = firstIcon:GetParent() --anchor point is the BuffFrame\n anchorPoint:SetSize (1, 1)\n \n firstIcon:ClearAllPoints()\n firstIcon:SetPoint (\"center\", anchorPoint, \"center\", 0, 5)\n \n --check the consolidaded stacks, this is not the regular buff stacks\n local firstIconStacks = aurasShown[1][3]\n if (firstIconStacks and firstIconStacks > 1) then\n firstIcon.StackText:SetText (firstIconStacks)\n firstIcon.StackText:Show()\n end\n \n --> left to right\n if (growDirection == 3) then\n --> iterate among all aura icons\n for i = 2, #aurasShown do\n local auraIcon = aurasShown [i][1]\n auraIcon:ClearAllPoints()\n \n if (i == framersPerRow) then\n auraIcon:SetPoint (\"bottomleft\", firstIcon, \"topleft\", 0, envTable.rowPadding)\n framersPerRow = framersPerRow + framersPerRow\n \n else\n auraIcon:SetPoint (\"topleft\", aurasShown [i-1][1], \"topright\", padding, 0)\n end\n \n local stacks = aurasShown[i][3]\n if (stacks and stacks > 1) then\n auraIcon.StackText:SetText (stacks)\n auraIcon.StackText:Show()\n end\n end \n \n --right to left\n elseif (growDirection == 1) then\n --> iterate among all aura icons\n for i = 2, #aurasShown do\n local auraIcon = aurasShown [i][1]\n auraIcon:ClearAllPoints()\n \n if (i == framersPerRow) then\n auraIcon:SetPoint (\"bottomright\", firstIcon, \"topright\", 0, envTable.rowPadding)\n framersPerRow = framersPerRow + framersPerRow\n \n else\n auraIcon:SetPoint (\"topright\", aurasShown [i-1][1], \"topleft\", -padding, 0)\n end\n \n local stacks = aurasShown[i][3]\n if (stacks and stacks > 1) then\n auraIcon.StackText:SetText (stacks)\n auraIcon.StackText:Show()\n end\n \n end \n end\n \n end\n end\nend\n\n\n",
1036 },
1037 ["Author"] = "Ditador-Azralon",
1038 ["Desc"] = "Reorder buffs and debuffs following the settings set in the constructor.",
1039 ["Hooks"] = {
1040 ["Nameplate Updated"] = "function (self, unitId, unitFrame, envTable)\n \n local auraContainers = {unitFrame.BuffFrame.PlaterBuffList}\n\n if (Plater.db.profile.buffs_on_aura2) then\n auraContainers [2] = unitFrame.BuffFrame2.PlaterBuffList\n end\n \n for containerID = 1, #auraContainers do\n \n local auraContainer = auraContainers [containerID]\n local aurasShown = {}\n local aurasDuplicated = {}\n \n --build the list of auras shown in the buff frame and check for each aura priority\n --also check if the consolidate (stack) auras with the same name is enabled\n for index, auraIcon in ipairs (auraContainer) do\n if (auraIcon:IsShown()) then\n if (envTable.consolidadeRepeatedAuras) then\n --is this aura already shown?\n local iconShownIndex = aurasDuplicated [auraIcon.SpellName]\n if (iconShownIndex) then\n --get the table with information about the shown icon\n local auraShownTable = aurasShown [iconShownIndex]\n --get the icon already in the table\n local icon = auraShownTable[1]\n --increase the amount of stacks\n auraShownTable[3] = auraShownTable[3] + 1\n \n --check if the remaining time of the icon already added in the table is lower than the current\n if (auraIcon.RemainingTime > icon.RemainingTime) then\n --replace the icon for the icon with bigger duration\n auraShownTable[1] = auraIcon\n icon:Hide()\n else\n auraIcon:Hide()\n end\n else \n local priority = envTable.priority[auraIcon.SpellName] or envTable.priority[auraIcon.spellId] or 1\n tinsert (aurasShown, {auraIcon, priority, 1}) --icon frame, priority, stack amount\n aurasDuplicated [auraIcon.SpellName] = #aurasShown\n end\n else\n --not stacking similar auras\n local priority = envTable.priority[auraIcon.SpellName] or envTable.priority[auraIcon.spellId] or 1\n tinsert (aurasShown, {auraIcon, priority})\n \n end \n end\n end\n \n --sort auras by priority\n table.sort (aurasShown, DetailsFramework.SortOrder2)\n \n local growDirection\n if (containerID == 1) then --debuff container\n growDirection = Plater.db.profile.aura_grow_direction\n --force to grow to right if it is anchored to center\n if (growDirection == 2) then\n growDirection = 3\n end\n -- \"Left\", \"Center\", \"Right\" - 1 2 3\n \n elseif (containerID == 2) then --buff container\n growDirection = Plater.db.profile.aura2_grow_direction\n --force to grow to left if it is anchored to center\n if (growDirection == 2) then\n growDirection = 1\n end\n \n end\n \n local padding = envTable.padding\n local framersPerRow = envTable.maxAurasPerRow + 1\n \n --first icon is where the row starts\n local firstIcon = aurasShown[1] and aurasShown[1][1]\n \n if (firstIcon) then\n local anchorPoint = firstIcon:GetParent() --anchor point is the BuffFrame\n anchorPoint:SetSize (1, 1)\n \n firstIcon:ClearAllPoints()\n firstIcon:SetPoint (\"center\", anchorPoint, \"center\", 0, 5)\n \n --check the consolidaded stacks, this is not the regular buff stacks\n local firstIconStacks = aurasShown[1][3]\n if (firstIconStacks and firstIconStacks > 1) then\n firstIcon.StackText:SetText (firstIconStacks)\n firstIcon.StackText:Show()\n end\n \n --> left to right\n if (growDirection == 3) then\n --> iterate among all aura icons\n for i = 2, #aurasShown do\n local auraIcon = aurasShown [i][1]\n auraIcon:ClearAllPoints()\n \n if (i == framersPerRow) then\n auraIcon:SetPoint (\"bottomleft\", firstIcon, \"topleft\", 0, envTable.rowPadding)\n framersPerRow = framersPerRow + framersPerRow\n \n else\n auraIcon:SetPoint (\"topleft\", aurasShown [i-1][1], \"topright\", padding, 0)\n end\n \n local stacks = aurasShown[i][3]\n if (stacks and stacks > 1) then\n auraIcon.StackText:SetText (stacks)\n auraIcon.StackText:Show()\n end\n end \n \n --right to left\n elseif (growDirection == 1) then\n --> iterate among all aura icons\n for i = 2, #aurasShown do\n local auraIcon = aurasShown [i][1]\n auraIcon:ClearAllPoints()\n \n if (i == framersPerRow) then\n auraIcon:SetPoint (\"bottomright\", firstIcon, \"topright\", 0, envTable.rowPadding)\n framersPerRow = framersPerRow + framersPerRow\n \n else\n auraIcon:SetPoint (\"topright\", aurasShown [i-1][1], \"topleft\", -padding, 0)\n end\n \n local stacks = aurasShown[i][3]\n if (stacks and stacks > 1) then\n auraIcon.StackText:SetText (stacks)\n auraIcon.StackText:Show()\n end\n \n end \n end\n \n end\n end\nend\n\n\n",
1041 ["Constructor"] = "function (self, unitId, unitFrame, envTable)\n \n --ATTENTION: after enabling this script, you may have to adjust the anchor point at the Buff Settings tab\n \n --space between each aura icon\n envTable.padding = 2\n \n --space between each row of icons\n envTable.rowPadding = 12\n \n --amount of icons in the row, it'll breakline and start a new row after reach the threshold\n envTable.maxAurasPerRow = 5\n \n --stack auras of the same name that arent stacked by default from the game\n envTable.consolidadeRepeatedAuras = true \n \n --which auras goes first, assign a value (any number), bigger value goes first\n envTable.priority = {\n [\"Vampiric Touch\"] = 50,\n [\"Shadow Word: Pain\"] = 22,\n [\"Mind Flay\"] = 5,\n }\n \nend \n\n\n\n\n",
1042 },
1043 ["Time"] = 1553450957,
1044 ["PlaterCore"] = 1,
1045 ["LastHookEdited"] = "",
1046 ["LoadConditions"] = {
1047 ["talent"] = {
1048 },
1049 ["group"] = {
1050 },
1051 ["class"] = {
1052 },
1053 ["map_ids"] = {
1054 },
1055 ["role"] = {
1056 },
1057 ["pvptalent"] = {
1058 },
1059 ["race"] = {
1060 },
1061 ["affix"] = {
1062 },
1063 ["encounter_ids"] = {
1064 },
1065 ["spec"] = {
1066 },
1067 },
1068 ["Icon"] = "Interface\\AddOns\\Plater\\images\\icon_aura_reorder",
1069 ["Name"] = "Aura Reorder [Plater]",
1070 }, -- [15]
1071 },
1072 ["disable_omnicc_on_auras"] = true,
1073 ["target_highlight_color"] = {
1074 nil, -- [1]
1075 0.52156862745098, -- [2]
1076 },
1077 ["extra_icon_auras"] = {
1078 277242, -- [1]
1079 },
1080 ["color_override_colors"] = {
1081 [3] = {
1082 0.917647058823529, -- [1]
1083 0.27843137254902, -- [2]
1084 0.207843137254902, -- [3]
1085 },
1086 [4] = {
1087 0.988235294117647, -- [1]
1088 1, -- [2]
1089 0.976470588235294, -- [3]
1090 },
1091 },
1092 ["first_run3"] = true,
1093 ["ui_parent_scale_tune"] = 1.15222787857056,
1094 ["health_statusbar_bgtexture"] = "Flat",
1095 ["aura_tracker"] = {
1096 ["buff_tracked"] = {
1097 [209859] = true,
1098 },
1099 },
1100 ["color_override"] = false,
1101 ["captured_spells"] = {
1102 [0] = {
1103 ["source"] = "Ахтыжёпт",
1104 ["event"] = "SPELL_CAST_SUCCESS",
1105 ["npcID"] = 0,
1106 },
1107 },
1108 ["target_indicator"] = "Ornament",
1109 ["target_highlight_height"] = 6.79838132858276,
1110 ["script_auto_imported"] = {
1111 ["Cast - Small Alert"] = 4,
1112 ["Aura - Invalidate Unit"] = 1,
1113 ["Aura - Buff Alert"] = 4,
1114 ["Unit - Important"] = 5,
1115 ["Aura Border Color"] = 1,
1116 ["Cast - Very Important"] = 2,
1117 ["Explosion Affix M+"] = 3,
1118 ["Unit Power"] = 1,
1119 ["Aura - Debuff Alert"] = 3,
1120 ["Cast - Frontal Cone"] = 2,
1121 ["Fixate"] = 3,
1122 ["Aura - Blink Time Left"] = 1,
1123 ["Color Change"] = 1,
1124 ["Cast - Big Alert"] = 5,
1125 ["Fixate On You"] = 2,
1126 },
1127 ["saved_cvars"] = {
1128 ["ShowClassColorInNameplate"] = "1",
1129 ["nameplateOverlapV"] = "1.1",
1130 ["nameplateShowEnemyMinus"] = "1",
1131 ["nameplatePersonalShowAlways"] = "0",
1132 ["nameplateMotionSpeed"] = "0.05",
1133 ["nameplateShowFriendlyTotems"] = "0",
1134 ["nameplateShowEnemyMinions"] = "1",
1135 ["nameplateShowFriendlyPets"] = "0",
1136 ["nameplateShowFriendlyNPCs"] = "0",
1137 ["nameplateSelectedScale"] = "1.2514729499817",
1138 ["nameplatePersonalShowInCombat"] = "1",
1139 ["nameplatePersonalShowWithTarget"] = "0",
1140 ["nameplatePersonalHideDelaySeconds"] = "0.2",
1141 ["nameplateShowAll"] = "1",
1142 ["nameplateMotion"] = "1",
1143 ["nameplateOtherTopInset"] = "0.086911492049694",
1144 ["nameplateMinScale"] = "1",
1145 ["nameplateMaxDistance"] = "20",
1146 ["nameplateShowFriendlyMinions"] = "0",
1147 ["nameplateSelfScale"] = "1.0",
1148 ["nameplateSelfBottomInset"] = ".2",
1149 ["nameplateSelfAlpha"] = "0.75",
1150 ["nameplateShowFriendlyGuardians"] = "0",
1151 ["NamePlateHorizontalScale"] = "1",
1152 ["nameplateOccludedAlphaMult"] = "1",
1153 ["nameplateGlobalScale"] = "1.1010686159134",
1154 ["nameplateSelfTopInset"] = ".5",
1155 ["NamePlateVerticalScale"] = "1",
1156 },
1157 ["health_statusbar_texture"] = "Flat",
1158 ["patch_version"] = 7,
1159 ["number_region_first_run"] = true,
1160 ["OptionsPanelDB"] = {
1161 ["PlaterOptionsPanelFrame"] = {
1162 ["scale"] = 0.899999976158142,
1163 },
1164 },
1165 ["hook_auto_imported"] = {
1166 ["Targetting Alpha"] = 3,
1167 ["Dont Have Aura"] = 1,
1168 ["Players Targetting Amount"] = 4,
1169 ["Color Automation"] = 1,
1170 ["Bwonsamdi Reaping"] = 1,
1171 ["Reorder Nameplate"] = 3,
1172 ["Blockade Encounter"] = 1,
1173 ["Aura Reorder"] = 1,
1174 ["Attacking Specific Unit"] = 1,
1175 ["Hide Neutral Units"] = 1,
1176 ["Extra Border"] = 3,
1177 ["Combo Points"] = 3,
1178 ["Target Color"] = 3,
1179 ["Execute Range"] = 1,
1180 ["Jaina Encounter"] = 6,
1181 },
1182 ["dps"] = {
1183 ["colors"] = {
1184 ["aggro"] = {
1185 nil, -- [1]
1186 0, -- [2]
1187 0.8, -- [3]
1188 1, -- [4]
1189 },
1190 },
1191 },
1192 ["target_highlight_texture"] = "Interface\\AddOns\\Plater\\images\\selection_indicator2",
1193 },
1194 },
1195}