--UPDATE_MOUSEOVER_UNIT PLAYER_TARGET_CHANGED function() if not UnitExists("target") and UnitExists("mouseover") and UnitIsPlayer("mouseover") then aura_env.output = "Boss RF NM HC Myth" .. "\n" bossKills = { { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, } SetAchievementComparisonUnit("mouseover") end if not UnitExists("mouseover") and UnitExists("target") and UnitIsPlayer("target") then aura_env.output = "Boss RF NM HC Myth" .. "\n" bossKills = { { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, { [1] = 0, [2] = 0, [3] = 0, [4] = 0 }, } SetAchievementComparisonUnit("target") end end --INSPECT_ACHIEVEMENT_READY function() aura_env.output = "Boss RF NM HC Myth" .. "\n" for k,v in ipairs(aura_env.TOS) do if GetComparisonStatistic(aura_env.TOS[k][1]) ~= "--" or GetComparisonStatistic(aura_env.TOS[k][2]) ~= "--" or GetComparisonStatistic(aura_env.TOS[k][3]) ~= "--" or GetComparisonStatistic(aura_env.TOS[k][4]) ~= "--" then local bossname = select(2, GetAchievementInfo(aura_env.TOS[k][1])) bossname = bossname:match("[a-zA-Z' ]*kills") bossname = bossname:gsub(" kills", "") aura_env.output = aura_env.output .. bossname .. "\n" if GetComparisonStatistic(aura_env.TOS[k][1]) ~= "--" then bossKills[k][1] = GetComparisonStatistic(aura_env.TOS[k][1]) end if GetComparisonStatistic(aura_env.TOS[k][2]) ~= "--" then bossKills[k][2] = GetComparisonStatistic(aura_env.TOS[k][2]) end if GetComparisonStatistic(aura_env.TOS[k][3]) ~= "--" then bossKills[k][3] = GetComparisonStatistic(aura_env.TOS[k][3]) end if GetComparisonStatistic(aura_env.TOS[k][4]) ~= "--" then bossKills[k][4] = GetComparisonStatistic(aura_env.TOS[k][4]) end end end ClearAchievementComparisonUnit() end --WEAKAURA 2 DISPLAY -- RF BOSSES function() local output = "" for k,v in ipairs(bossKills) do if tonumber(bossKills[k][1]) > 0 then output = output .. bossKills[k][1] .. "\n" end end return output end --WEAKAURA 2 DISPLAY -- NM BOSSES function() local output = "" for k,v in ipairs(bossKills) do if tonumber(bossKills[k][2]) > 0 then output = output .. bossKills[k][2] .. "\n" end end return output end --WEAKAURA 2 DISPLAY -- HC BOSSES function() local output = "" for k,v in ipairs(bossKills) do if tonumber(bossKills[k][3]) > 0 then output = output .. bossKills[k][3] .. "\n" end end return output end --WEAKAURA 2 DISPLAY -- Myth BOSSES function() local output = "" for k,v in ipairs(bossKills) do if tonumber(bossKills[k][4]) > 0 then output = output .. bossKills[k][4] .. "\n" end end return output end --INIT aura_env.TOS = { { --Goroth 11877, -- [1] 11878, -- [2] 11879, -- [3] 11880, -- [4] }, -- [1] { --Inquisition 11881, -- [1] 11882, -- [2] 11883, -- [3] 11884, -- [4] }, -- [2] { --Harjatan 11885, -- [1] 11886, -- [2] 11887, -- [3] 11888, -- [4] }, -- [3] { --Sisters 11889, -- [1] 11890, -- [2] 11891, -- [3] 11892, -- [4] }, -- [4] { --Mistress 11893, -- [1] 11894, -- [2] 11895, -- [3] 11896, -- [4] }, -- [5] { --Host 11897, -- [1] 11898, -- [2] 11899, -- [3] 11900, -- [4] }, -- [6] { --Maiden 11901, -- [1] 11902, -- [2] 11903, -- [3] 11904, -- [4] }, -- [7] { --Avatar 11905, -- [1] 11906, -- [2] 11907, -- [3] 11908, -- [4] }, -- [8] { --Kil'jaeden 11909, -- [1] 11910, -- [2] 11911, -- [3] 11912, -- [4] }, -- [9] } aura_env.NH = { { --Skorp 10940, -- [1] 10941, -- [2] 10942, -- [3] 10943, -- [4] }, -- [1] { --Anomaly 10944, -- [1] 10945, -- [2] 10946, -- [3] 10947, -- [4] }, -- [2] { --Trilliax 10948, -- [1] 10949, -- [2] 10950, -- [3] 10951, -- [4] }, -- [3] { --Aluriel 10952, -- [1] 10953, -- [2] 10954, -- [3] 10955, -- [4] }, -- [4] { --Augur 10956, -- [1] 10957, -- [2] 10959, -- [3] 10960, -- [4] }, -- [5] { --Botanist 10961, -- [1] 10962, -- [2] 10963, -- [3] 10964, -- [4] }, -- [6] { --Tich 10965, -- [1] 10966, -- [2] 10967, -- [3] 10968, -- [4] }, -- [7] { --Krosus 10969, -- [1] 10970, -- [2] 10971, -- [3] 10972, -- [4] }, -- [8] { --Elisande 10973, -- [1] 10974, -- [2] 10975, -- [3] 10976, -- [4] }, -- [9] { --Gul'dan 10977, -- [1] 10978, -- [2] 10979, -- [3] 10980, -- [4] }, -- [10] } aura_env.output = ""