Indeed... and the code in the ones I've seen is horrendous. Someone needs to write an addon that tells those developers how to write the addon so they don't have to think for themselves.
Note the word "also" that GC uses twice in his post. For the record, they are fixing rogue mechanics to make the addon obsolete. But it sounds like there's more to it. Plus the addon still serves a purpose in pvp.
Remember this post by jerry? Here's a quote for the lazy ones:
There's a new database called BannedAddOns.dbc in the MPQ. This database has 11 fields on the latest PTR build, none of which appera to be strings.
As to how they will detect the "signature" of an addon, they can hash the compiled lua stream, for instance, which would make getting around it more difficult than just adding spaces or renaming variables.
I used to get things like this when I had stupidly set Recount to record maximum data about every fight, not just boss. Needless to say, logging out took a while, to the point that things would completely freeze. In fact, had I waited (several minutes!), it would have eventually exited (and caused an error next time I logged on, but that's another matter). So do you have an addon saving ungodly amounts of data on exit?
On the other hand, it could be something totally unrelated that freezes your computer and it happens at the wrong time?
I've learned the hard way to back up my WTF folder.
Yeah it is. I was simply trying to show a count of HoTs and color it accordingly. You took it one step further by splitting them up, which works too. :)
Your code is tidier, but how is it returning %s in red? The first buff will set mine to true, which only means the color of the text will be green and not red. The count gets updated for every buff it iterates through. mine stays true if it's set once. I'm no lua expert, but I'm missing something.
local i = 1
local count = 0
local mine = false
while true do
local name, _, _, _, _, _, _, caster = UnitAura(unit,i,"HELPFUL")
if not name then
break
elseif name == "Renew" then
count = count + 1
if caster == "player" then mine = true end
elseif name == "Rejuvenation" then
count = count + 1
if caster == "player" then mine = true end
elseif name == "Regrowth" then
count = count + 1
if caster == "player" then mine = true end
elseif name == "Lifebloom" then
count = count + 1
if caster == "player" then mine = true end
elseif name == "Wild Growth" then
count = count + 1
if caster == "player" then mine = true end
elseif name == "Earthliving" then
count = count + 1
if caster == "player" then mine = true end
elseif name == "Riptide" then
count = count + 1
if caster == "player" then mine = true end
elseif name == "Gift of the Naaru" then
count = count + 1
if caster == "player" then mine = true end
end
i=i+1
end
if count > 0 then
if mine then return "|cff00ff00%s|r", count else return "|cffff0000%s|r", count end
end
Returns the amount of HoTs in green if you have an active HoT, in red if none of the HoTs are yours.
I have tested part of it: it does return HoTs in red when I don't have an active HoT on the player. I haven't tested this luatext on a healer yet, so I don't know if it correctly returns the number of HoTs in green if you have an active HoT on the player. Let me know if it works.
The template should be easy enough for you to tweak if you want to add/remove HoTs, change colors... etc.
I'm gonna guess Lifeblooms stack show as one since they're one buff with multiple stacks, not 2 or 3 buffs, but try it out and let me know! :)
EDIT: I don't have Lifeblood or Sheath of Light in there. Easy to add if you need.
EDIT2: Corrected a stupid mistake in the code. Ty Snargul.
0
Yeah it's called Addon Studio... oh wait! :P
0
0
0
Well I'm bringing it up because, according to Ghostcrawler, they've killed Antiarc's PoisonSwapper addon. Source: http://forums.worldofwarcraft.com/thread.html?topicId=21042559255&pageNo=1&sid=1#6
Let's leave the rogue discussion aside. I've no idea if that's how they can kill it, but I figure it's worth bringing up at this point.
0
On the other hand, it could be something totally unrelated that freezes your computer and it happens at the wrong time?
I've learned the hard way to back up my WTF folder.
0
0
Check the options next time.
0
0
0
0
0
Also it's reported as working in the luatext thread here: http://forums.wowace.com/showpost.php?p=291459&postcount=472
I simply corrected a mistake that was pointed out over there and fixed this post here which is a little older and previous reply to the same question.
0
0
I edited the script above.
0
Returns the amount of HoTs in green if you have an active HoT, in red if none of the HoTs are yours.
I have tested part of it: it does return HoTs in red when I don't have an active HoT on the player. I haven't tested this luatext on a healer yet, so I don't know if it correctly returns the number of HoTs in green if you have an active HoT on the player. Let me know if it works.
The template should be easy enough for you to tweak if you want to add/remove HoTs, change colors... etc.
I'm gonna guess Lifeblooms stack show as one since they're one buff with multiple stacks, not 2 or 3 buffs, but try it out and let me know! :)
EDIT: I don't have Lifeblood or Sheath of Light in there. Easy to add if you need.
EDIT2: Corrected a stupid mistake in the code. Ty Snargul.