View Single Post
12-19-11, 05:57 AM   #8
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
onload

--BLOOD
if cfg.playerclass == "DEATHKNIGHT" and GetPrimaryTalentTree(false,false) == 1 then
cfg.animClassOverride = {
["DEATHKNIGHT"] = { enable = true, animhealth = 7, animmana = 9, classcolored = false, powertypecolored = false, healthmultiplier = 0.5, manamultiplier = 1, healthdecreasealpha = true, manadecreasealpha = true, },
}
end
--FROST 11 or 19 is good for health
if cfg.playerclass == "DEATHKNIGHT" and GetPrimaryTalentTree(false,false) == 2 then
cfg.animClassOverride = {
["DEATHKNIGHT"] = { enable = true, animhealth = 27, animmana = 9, classcolored = false, powertypecolored = false, healthmultiplier = 0.5, manamultiplier = 1, healthdecreasealpha = true, manadecreasealpha = true, },
}
end
--UNHOLY
if cfg.playerclass == "DEATHKNIGHT" and GetPrimaryTalentTree(false,false) == 3 then
cfg.animClassOverride = {
["DEATHKNIGHT"] = { enable = true, animhealth = 28, animmana = 9, classcolored = false, powertypecolored = false, healthmultiplier = 0.5, manamultiplier = 1, healthdecreasealpha = false, manadecreasealpha = true, },
}
end


---------------------------------------------------
So it works but i need to do an extra reload each time. When entering world, and after switching spec.


on an off-topic matter, about ace3 profiles, im trying to tie various addons profiles to change with weakauras, the command is easy to issue in weakauras, i just take a random specspecific frame and add it in the actions tab onshow. But not all addons have specific profile switching commands, sofar
i only have this one from ForteXorcist , FW:UseProfile(2); (tho that one isnt ace3, but the rest are). Some of them have the "dual spec" option, but that wont work for me since im making spec specific ties, 3 or more. I guess what im asking for is how do i change profiles via script on an ac3 addon that has profiles but doesnt have a /addon profile name, type switch. From what i read on acedb thingy, it should be some sort of short for the addon followed by :UseProfile("name?") or (number). tried other things likke :Profile(), SetProfile(), and others. no success.

i know reflux can do this, but im heavily invested in weakauras already, so id rather have it there.

on another random topic while im in the noob section , say i want to make slight modifications to some addon, like i donno scale, setpoints etc. Is it possible to add another lua or xml to like load after the original, if so what is possible and what isnt?. My learning process is slow :| feel free to rtfm me with directions ;P

Last edited by zoktar : 12-19-11 at 07:58 AM.
  Reply With Quote