[Weak Auras] Vengeance bar

UI and Macro
I've been using a vengeance bar addon on my tanks to keep track on how high my vengeance gets. All it does is increase the bar display and the text as my vengeance rises. I'd like to duplicate it in WeakAuras instead of having a seperate addon for it.

I can get the progress bar to display my vengeance size with the bar text just fine however the bar graphic itself will only display the time remaining on the vengeance buff. As in, the bar depletes as the vengeance buff wears off. I would like the bar to increase in size as my vengeance goes up but cannot figure out how.

What I'm using for settings:
Trigger:
Type -> Aura
Use Full Scan (High CPU)
Aura Name -> is exactly -> Vengeance
Use tooltip "size" instead of stacks

My string if you want to take a look:
dau8eaqjrvmkkI6uue5wkj7cK0WeXXG0Ye0Za10uPRPQ2MkY3iOXrOZPK6EIk6GuuwibEifPjkQuxeKQnsu9rQQsJuuLoPs0lPimtqk7uHFkQKLsvv1tjnvv5QIkSvLqFLQQYCfv1Er)vKgmfvhMslgepgIjtHllzZIYNfy0uvoTIEnvrZwPUTkSBO(nWWjkhNQQy5u55cnDPUor2UsW3PknEqIZRIA9uvz)ufMO8rDsDjUlxMfPYFjcahZxLv7DQ6ZAa8MMdSpW(SCxH97m1ivuOEHQqOUM6bvdQg8rn2wepJ60VId0eQqaoJYzkydC8XbkhjCeYrchWCKWXLdu2uTi9eGJ8rn2wxZhvdqAWg4LqOgSbEtZC2JI6sa2mKEcWcK6gGffPgSbEtTi9eGPg9b8YMA2epJ(4JQbinyd8siud2aVPzo7rrDjaBgspbybsDdWIIud2aVPwKEcWu9nnk2SPkfRhaS7PmcHQfppS9eG5JASTUMpQYCvSAQrztNDZMn12ndckhFuX2JkfiRC2g4OMZCsfrk2GJuFtJIAppkdQs4AHc3uTsnGQuSsX2JIcOgLGGaKWnfqfBpkQlw4GYIrkQsXkvcpBkGk2Eur(4aL6IfoOSyKIn1mP9oIyXuaBQqSotbBGJpoqP8tIIcf)IHF4tH)7PlZw9H5iKYff(xV(gkMCpHMiEfz2Q)joGPCry4tjcVNsUWIcfEVmB1)ZMQXmkBBp)kO0qRYAQ5b7H5MCEIMe1nWAWhvPyLISTXifq1b2fFupK29Kp2SPkfR02UlCtiuLIvAuwHqbuJYke(OgN4GDXbk1dPDp5JdykGJqkGnBQiBBmYh14ehSlQ5g6M9YRjgl938(OEiT7jFu9pZ8FOLltnbfWMn12UlCZbkmBQDbLwN(vCGMqfIfXtdhqMPGnWXhhOuUi66RqXFyYfgfgwimZw9H5iKYffgEpfMC)3)6WW)NzR(WCC5iHnviaNr5OaQqaoJYbDJGIQzopxIxOWnWD2dZv)rY6kpmpKQRcMa87SSIQvYzHyDuJTfXZiHqDIaWPXPrrfAqx(JAxqPLCfv9aaAFEy(cHu75r50PFfhOjuHyr8mWbKWgMc2ahFCGs5)1Wx0)vmbgne(kuKzR(FocP8)A4l6)kMaJgcFfkYSv)phWu(Fn8f9FftGrdHVcfz2Q)NJlhOSPonOUyHdklgP8W8CBcQENgTpocH)uHaCgLlxzzXQ54sflD8CZGGYf5aLnvlFuxSWbLfJuuxI7YLzrQ8xIaWX8vz1ENQ(SgaVP5a7dSpl3vy)oZM6cCGEtsytca

This is the addon I would like the bar to mimic:
http://www.curse.com/addons/wow/vengeance
Instead of using %n or %s as left text, try this %c:

function ()
local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("player", "Vengeance")
if(value > 999999) then value = math.floor(value/1000000) .. "m" end
if(value > 999) then value = math.floor(value/1000) .. "k" end
return(value)
end

If you always want to see the exact value, delete the 3rd and 4th line.

Please let me know if it works. Thx.
Instead of using %n or %s as left text, try this %c:

function ()
local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("player", "Vengeance")
if(value > 999999) then value = math.floor(value/1000000) .. "m" end
if(value > 999) then value = math.floor(value/1000) .. "k" end
return(value)
end

If you always want to see the exact value, delete the 3rd and 4th line.

Please let me know if it works. Thx.
As soon as I copy + pasted that into the text editor and hit esacpe I got this error:

Message: [string "return function () ..."]:3: attempt to compare number with nil
Time: 05/13/13 17:28:24
Count: 233
Stack: [C]: ?
[string "return function () ..."]:3: in function <[string "return function () ..."]:1>
Interface\AddOns\WeakAuras\RegionTypes\aurabar.lua:907: in function `UpdateCustomText'
Interface\AddOns\WeakAuras\WeakAuras.lua:4961: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:4957>

Locals:


The count just kept climbing until I deleted it.

I got this help from mmo-champ:
http://www.mmo-champion.com/threads/1297650-Weak-Auras-Vengeance-bar
this should fix that specific error (don't know if everything else is fine though) function ()
local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("player", "Vengeance")
if value then
if(value > 999999) then value = math.floor(value/1000000) .. "m" end
if(value > 999) then value = math.floor(value/1000) .. "k" end
return(value)
else return 0
end
end
I don't get an error with that one but it essentially behaves like what I originally had.
well you were making a progress bar, which does timers only. make a texture and have it scale based on vengeance

dCefhaGiuKUKQIAukcDkfbZsaDlfL2LQOFjjsdJIogKwMa9mjHPPeUMQ02qj(MamouiNtvP7Pi1brHAHOupurXerbCrvHnII6Jksmsvf5KQOALOiMPIKUPKi2Pe)uvvdvvHJQIswQIkpfzQkCvfrTvuqJvrKZkjQ5QOQ9s(RK0GfQddAXkrpwLMSGUmvBwf(SqgTQkNwPwTkk1RrjnBrDBL0Ur1VHA4sQLd8CknDPUUiBxf57OanEiCEiA9QOy)uyHQHiOgQfzfH(CXZaE(v0QOqrHAiY65JpWBElI9)X4FLm1hmpeb8OnMpqw7IIa4uTiEADa2rroWQcQODOOtopYH8RlkJHHAicGZUgIwt5ERHA1Qf5iQH8qpuSvl6QHkOAikzDqvKQykkzDqveQykk0TWobGTZgEzncGt8qTu0nzB86Wr0tUoe2UOuDiSDr7lMl2IG89kS3yUgIwHBUgIAK1UOBY24vr2lm7mN4xraVtaUr8rIF7nMpXAaoc4wBGgX2gc6jfOrSTHGUYbAeBVWSpPanITxy2R8emyIrSrSrSrCgFHzJ4tWCYN26z)2te9nWjZ3n70XXezADgI0bmnqJyMYqNh5q(1z6eMGbtmInInInI3hgXCCBeFcMtUrC)Z5gXNG5KpTPrSZdnyIrSr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E(4d8M3IM78P8PHOmggQHiao7AiAnL7TgQvRweY)hhwVvzwwEIAwXl6llbF9znnFvRw0jvqxyAQwca
I used to use WA to track vengeance but I got tired of trying to make it look good :(
(I think this game is actually World of Fashioncraft...)

I switched to Raven + Broker_StatsNow - Melee so I could get the pretty look I wanted :|

http://i.imgur.com/oEMi50m.jpg

The bar depletes from 20s (Vengeance timer) and tracks Attack Power perfectly.

Check it out if anyone is interested.. under the action buttons for all tanks:
http://www.youtube.com/watch?v=l-2OilH_GYM

Join the Conversation

Return to Forum