Facebook
From Gamboge Dove, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 67
  1. function(arg)
  2. if WeakAuras.IsOptionsOpen() then
  3.     return
  4. end
  5.    
  6. if not UnitExists("target") or UnitIsDead("target") or UnitIsDead("player") or UnitPlayerControlled("target") then
  7.     return
  8. end
  9.  
  10. local tGUID = UnitGUID("target");
  11. local npc_id = select(6, strsplit("-",tGUID));
  12. local bossname = aura_env.bossName[npc_id]
  13. local bossnameTrigger = bossname .. "Trigger"
  14. local bossnameStart = bossname .. "Start"
  15.  
  16. if not bossname then
  17.     return
  18. end
  19.  
  20.    
  21. local classcolor = RAID_CLASS_COLORS[select(2,UnitClass("player"))].colorStr
  22. local adaptivesentence2 = "(There " .. aura_env.verb .. " " .. WrapTextInColorCode(aura_env.textNumbers[aura_env.classcount] .. " " .. aura_env.classname, classcolor) .. " in your raid group)";
  23. if aura_env.classcount >= 13 then
  24.     adaptivesentence2 = "(There " .. aura_env.verb .. " " .. WrapTextInColorCode(aura_env.classcount .. " " .. aura_env.classname, classcolor) .. "in your raid group)";
  25. end
  26.  
  27. local optionMatch = aura_env.config[npc_idStart];
  28. local optionTrigger = aura_env.config[npc_idTrigger]
  29.  
  30. if instanceID == 469 and aura_env.config.bosstoggle[1] and aura_env.config.bwl.[bossnameTrigger] == 1 then
  31.     if not aura_env.config.adaptivetoggle[1] or not
  32.         EquipSet(bossnameStart);
  33.     end
  34. elseif instanceID == 531 and aura_env.config.bosstoggle[2] and aura_env.config.aq40.[bossnameTrigger] == 1 then
  35.     if optionMatch and optionTrigger == 1 then
  36.         EquipSet(optionmatch);
  37.     end
  38. elseif instanceID == 533 and aura_env.config.bosstoggle[3] and aura_env.config.nax.[bossnameTrigger] == 1 then
  39.     if optionMatch and optionTrigger == 1 then
  40.         EquipSet(optionmatch);
  41.     end
  42. end
  43.  
  44.  
  45. --
  46.  
  47. aura_env.bossName = {
  48.     --BWL
  49.     [12435] = "razorgore",
  50.     [13020] = "vael",
  51.     [12017] = "broodlord",
  52.     [11983] = "firemaw",
  53.     [14601] = "ebonroc",
  54.     [11981] = "flamegor",
  55.     [14020] = "chromaggus",
  56.     [11583] = "nefarian",
  57.     --AQ40
  58.     [15263] = "skeram",
  59.     [15543] = "bugTrio",
  60.     [15511] = "bugTrio",
  61.     [15544] = "bugTrio",
  62.     [15516] = "battleguard",
  63.     [15984] = "battleguard",
  64.     [15510] = "fankriss",
  65.     [15299] = "blob",
  66.     [15509] = "princess",
  67.     [15275] = "twinEmperors",
  68.     [15276] = "twinEmperors",
  69.     [15963] = "twinEmperors",
  70.     [15517] = "ouro",
  71.     [15727] = "cthun",
  72.     --NAXX
  73.     [15956] = "anub",
  74.     [15953] = "faerlina",
  75.     [16506] = "faerlina",
  76.     [15952] = "maexxna",
  77.     [15954] = "noth",
  78.     [15936] = "heigan",
  79.     [16011] = "loatheb",
  80.     [16061] = "razuvious",
  81.     [16060] = "gothik",
  82.     [16063] = "horsemen",
  83.     [16064] = "horsemen",
  84.     [16065] = "horsemen",
  85.     [16062] = "horsemen",
  86.     [16028] = "patchwerk",
  87.     [15931] = "grobbulus",
  88.     [15932] = "gluth",
  89.     [15928] = "thaddius",
  90.     [15989] = "sapphiron",
  91.     [15990] = "kelthuzad",
  92. }
  93.  
  94. aura_env.adaptiveNumber = {
  95.     --BWL
  96.     [12435] = 1,
  97.     [13020] = 2,
  98.     [12017] = 3,
  99.     [11983] = 4,
  100.     [14601] = 5,
  101.     [11981] = 6,
  102.     [14020] = 7,
  103.     [11583] = 8,
  104.     --AQ40
  105.     [15263] = 1,
  106.     [15543] = 2,
  107.     [15511] = 2,
  108.     [15544] = 2,
  109.     [15516] = 3,
  110.     [15984] = 3,
  111.     [15510] = 4,
  112.     [15299] = 5,
  113.     [15509] = 6,
  114.     [15275] = 7,
  115.     [15276] = 7,
  116.     [15963] = 7,
  117.     [15517] = 8,
  118.     [15727] = 9,
  119.     --NAXX
  120.     [15956] = 1,
  121.     [15953] = 2,
  122.     [16506] = 2,
  123.     [15952] = 3,
  124.     [15954] = 4,
  125.     [15936] = 5,
  126.     [16011] = 6,
  127.     [16061] = 7,
  128.     [16060] = 8,
  129.     [16063] = 9,
  130.     [16064] = 9,
  131.     [16065] = 9,
  132.     [16062] = 9,
  133.     [16028] = 10,
  134.     [15931] = 11,
  135.     [15932] = 12,
  136.     [15928] = 13,
  137.     [15989] = 14,
  138.     [15990] = 15,
  139. }