Download
(2Kb)
Download
Updated: 08-01-11 02:52 PM
Updated:08-01-11 02:52 PM
Created:11-28-10 02:46 PM
Downloads:4,677
Favorites:11
MD5:

oUF Vengeance

Version: 40200.5
by: Thalyra [More]

Supported oUF Version: 1.5.x

Description:
oUF Vengeance is a element plug-in made for the UnitFrame framework oUF.
It is required that you have this addon updated at all times to make everything work as it should.
You can download oUF by clicking here.

Features:
- Bar for Vengeance for Tanks
- Text on that bar

Note:
Read the documentation inside the lua file for usage.
You need to add this addon to your layout's toc metadata!

Credits:
Dridzt for Vengeance Status (Inspiration for oUF_Vengeance)

40200.5:
- fixed little error with full bar but zero vengeance + some minor tweaks

40200.4:
- fixed bad argument to string.match error

40200.3:
- some code improvements
feraldruid check simplified
getTooltipText simplified

40200.2:
- fixed an error appearing infight

40200.1:
- update for 4.2
- added the improvement mentioned in the comments

40100.2:
- Fixed bug with bar:OverrideText(value)

40100.1:
- ToC update

40000.6:
- fixed the dk issue

40000.5:
- some minor code improvements and changes
- fixed the vengeance calculation to 0.1 * base health + stamina

40000.4:
- finally fixed the login bug -.-

40000.3:
- fixed a bug where sometimes on login i got a full bar without any vengeance buff active (now it hides on login)

40000.2:
- fixed a bug regarding text

40000.1:
- Initial Release
Post A Reply Comment Options
Unread 11-28-10, 04:17 PM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
There is an error in your example code. Right now it shows

Code:
.Vengeance = CreateFrame("Frame", nil, self)
but it need to be

Code:
.Vengeance = CreateFrame("StatusBar", nil, self)
Thanks for making this plugin I've been using Vengeance status but this makes my life much easier
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 04:45 PM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
thank you very much, i will edit this with the next version
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 05:30 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
The thing is...how do you determine the max value? Is there a max value for vengeance?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 05:43 PM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
the max value is 0.1 * UnitMaxHealth

Vengeance
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 05:45 PM  
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 267
Uploads: 8
Originally posted by zork
The thing is...how do you determine the max value? Is there a max value for vengeance?
Vengeance caps out at 10% of your health.

From wowhead:

Each time you take damage, you gain 5% of the damage taken as attack power, up to a maximum of 10% of your health.
Report comment to moderator  
Reply With Quote
Unread 12-04-10, 01:38 PM  
Faraque
A Theradrim Guardian
 
Faraque's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 105
Uploads: 1
Having errors while using this with ouf_karma. Started throwing errors when I switched from my Arms spec to my Prot spec while leveling in Un'Goro. Error is below.

I'll cross post this with ouf_karma since I'm not sure which it belongs to.

Code:
Message: Interface\AddOns\oUF_Vengeance\oUF_Vengeance.lua:102: attempt to call method 'SetText' (a nil value)
Time: 12/04/10 11:32:43
Count: 47
Stack: Interface\AddOns\oUF_Vengeance\oUF_Vengeance.lua:102: in function <Interface\AddOns\oUF_Vengeance\oUF_Vengeance.lua:79>
(tail call): ?

Locals: self = oUF_karmaPlayer {
 0 = <userdata>
 MasterLooter = <unnamed> {
 }
 __tags = <table> {
 }
 PLAYER_ENTERING_WORLD = <function> defined @Interface\AddOns\oUF\ouf.lua:289
 Leader = <unnamed> {
 }
 UNIT_SPELLCAST_CHANNEL_START = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:171
 Resting = <unnamed> {
 }
 UNIT_MAXHEALTH = <table> {
 }
 PLAYER_UPDATE_RESTING = <function> defined @Interface\AddOns\oUF\elements\resting.lua:12
 Power = <unnamed> {
 }
 UNIT_SPELLCAST_NOT_INTERRUPTIBLE = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:117
 PLAYER_REGEN_DISABLED = <function> defined @Interface\AddOns\oUF\elements\combat.lua:12
 style = "karma"
 SmoothBar = <function> defined @Interface\AddOns\oUF_Karma\Elements\smooth.lua:15
 ACTIVE_TALENT_GROUP_CHANGED = <function> defined @Interface\AddOns\oUF_Vengeance\oUF_Vengeance.lua:43
 RAID_TARGET_UPDATE = <function> defined @Interface\AddOns\oUF\elements\ricons.lua:19
 UNIT_EXITED_VEHICLE = <function> defined @Interface\AddOns\oUF\elements\vehicle.lua:4
 PARTY_LEADER_CHANGED = <function> defined @Interface\AddOns\oUF\elements\leader.lua:13
 UNIT_CONNECTION = <table> {
 }
 UNIT_ENTERED_VEHICLE = <function> defined @Interface\AddOns\oUF\elements\vehicle.lua:4
 UNIT_MAXPOWER = <function> defined @Interface\AddOns\oUF\elements\power.lua:73
 Vengeance = <unnamed> {
 }
 PLAYER_LOGIN = <table> {
 }
 UNIT_SPELLCAST_INTERRUPTIBLE = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:103
 UNIT_SPELLCAST_START = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:15
 UNIT_SPELLCAST_SENT = <function> defined @Interface\AddOns\oUF_Karma\castbar.lua:87
 UNIT_SPELLCAST_DELAYED = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:131
 UNIT_POWER = <function> defined @Interface\AddOns\oUF\elements\health.lua:62
 PARTY_LOOT_METHOD_CHANGED = <function> defined @Interface\AddOns\oUF\elements\masterlooter.lua:30
 PLAYER_REGEN_ENABLED = <function> defined @Interface\AddOns\oUF\elements\combat.lua:12
 UNIT_SPELLCAST_CHANNEL_STOP = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:242
 PvP = <unnamed> {
 }
 UNIT_AURA = <function> defined @Interface\AddOns\oUF_Vengeance\oUF_Vengeance.lua:79
 UNIT_SPELLCAST_CHANNEL_UPDATE = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:218
 PARTY_MEMBERS_CHANGED = <table> {
 }
 UNIT_SPELLCAST_INTERRUPTED = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:84
 Combat = <unnamed> {
 }
 Assistant = <unnamed> {
 }
 mystyle = "player"
 unit = "player"
 UNIT_FACTION = <table> {
 }
 PLAYER_TALENT_UPDATE = <function> defined @Interface\AddOns\oUF_Vengeance\oUF_Vengeance.lua:43
 UNIT_SPELLCAST_STOP = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:152
 Health = <unnamed> {
 }
 menu = <function> defined @Interface\AddOns\oUF_Karma\lib.lua:76
 Castbar = oUF_karmaCastbarplayer {
 }
 RaidIcon = <unnamed> {
 }
 __elements = <table> {
 }
 Highlight = <unnamed> {
 }
 UNIT_SPELLCAST_FAILED = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:65
}
bar = <unnamed> {
 0 = <userdata>
 Text = <unnamed> {
 }
 bg = <unnamed> {
 }
 isTank = true
}
name = "Vengeance"
text = "VengeanceEnrageIncreases attack power by 2."
value = 2
(*temporary) = nil
(*temporary) = <unnamed> {
 0 = <userdata>
 Text = <unnamed> {
 }
 bg = <unnamed> {
 }
 isTank = true
}
(*temporary) = 2
(*temporary) = "attempt to call method 'SetText' (a nil value)"
vengeance = "Vengeance"
tooltip = VengeanceTooltip {
 0 = <userdata>
 updateTooltip = 0.2
}
getTooltipText = <function> defined @Interface\AddOns\oUF_Vengeance\oUF_Vengeance.lua:32
__________________
"imo Fara raged and gave Joker his scars" - Blueninja of Shadowmoon
Report comment to moderator  
Reply With Quote
Unread 12-05-10, 05:30 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
sry, my bad, i tried to set the text to the bar itself, not to the text oO
Report comment to moderator  
Reply With Quote
Unread 02-08-11, 03:08 PM  
unstoppixel
An Aku'mai Servant
 
unstoppixel's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 37
File comments: 131
Uploads: 2
Would love to see a screenshot
__________________
Report comment to moderator  
Reply With Quote
Unread 02-11-11, 11:12 AM  
Sarkan-ZdC
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 93
Uploads: 0
Originally posted by Thalyra
the max value is 0.1 * UnitMaxHealth

Vengeance
Is wrong:

Hey all, I'm hopping in to see if this will help you all a bit in understanding how this is meant to work. Hopefully it will clear up a little confusion.

The Vengeance calculation is working correctly as far as we can ascertain. Vengeance caps at a number equal to Stamina plus 10% of base health, which is lower than 10% of health. When we buffed Stamina late in Cataclysm development, we specifically did not buff Vengeance because we didn’t think tanks needed 40% additional attack power in order to maintain threat or contribute to damage done by the group. The Vengeance tooltip is a little misleading, but in this case we think that’s fine because a more technically accurate tooltip would be quite long. Astute theorycrafters will understand the difference, while most tanks won’t actually be affected by the delta.

http://blue.mmo-champion.com/topic/1...maximum-health

So right is: Stamina + 10% Base HP
Report comment to moderator  
Reply With Quote
Unread 02-11-11, 11:13 AM  
Sarkan-ZdC
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 93
Uploads: 0
Originally posted by zork
The thing is...how do you determine the max value? Is there a max value for vengeance?
Will you add vengeance in the roth ui?
Report comment to moderator  
Reply With Quote
Unread 02-17-11, 02:42 PM  
Zurechial
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
I've noticed that this addon fails the isTank check on any of my DK characters.
When I changed this line:

Code:
		
elseif class == "DEATH KNIGHT" and masteryIndex == 1 then
to this:
Code:
elseif class == "DEATHKNIGHT" and masteryIndex == 1 then
It started working and recognising my character as a tank. I don't know if it's a localization issue maybe, but I'm using the enGB client and it only seems to work when the class string is used without a space.
Report comment to moderator  
Reply With Quote
Unread 02-27-11, 11:30 AM  
Dajova
A Wyrmkin Dreamwalker
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 58
File comments: 787
Uploads: 5
Tip: There are 2 spellids for vengeance.

Code:
local vengeance = GetSpellInfo(93098) or GetSpellInfo(76691)
__________________
Livestream | Twitter | YouTube
Report comment to moderator  
Reply With Quote
Unread 05-22-11, 11:25 AM  
Tabinou
A Deviate Faerie Dragon

Forum posts: 11
File comments: 5
Uploads: 0
I've been trying to set up the custom text for vengeance.Now i've got no more hair on my head...

I want it to be something like current/max.
This is the code i've been using:

lua Code:
  1. -- Vengeance
  2.     if (IsAddOnLoaded("oUF_Vengeance")) then
  3.         self.Vengeance = CreateFrame("StatusBar", nil, self)
  4.         self.Vengeance.Text = self.Health:CreateFontString(nil, 'OVERLAY')
  5.         self.Vengeance.Text:SetFont(cfg.FontProto, 14, 'THINOUTLINE')
  6.         self.Vengeance.Text:SetShadowOffset(1, -1)
  7.         self.Vengeance.Text.frequentUpdates = cfg.UpdateFreq
  8.         self.Vengeance.Text:SetJustifyH('RIGHT')
  9.         self.Vengeance.Text:SetPoint('BOTTOMLEFT', self.Health, 'BOTTOMLEFT', 2, 3)
  10.         self.Vengeance.OverrideText = self.Health:CreateFontString(nil, 'OVERLAY')

and an override function like this in my "libs" file.

lua Code:
  1. -- Vengeance Text override
  2. function OverrideText(value)
  3.     local health = UnitHealthMax("player")
  4.     local stamina = UnitStat("player", 3)
  5.     local max = 0.1 * (health - 15 * stamina) + stamina
  6.    
  7.     self.Vengeance.Text:SetText("test")
  8. end

With some tests, I know he checks that I've been using an OverrideText. But I get a lua error, saying that he doesn't find my custom function.
What am I doing wrong ?
Report comment to moderator  
Reply With Quote
Unread 05-24-11, 09:49 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
not your error, it's a bug because of me -.-

fixed upload inc
Report comment to moderator  
Reply With Quote
Unread 05-24-11, 11:34 AM  
Tabinou
A Deviate Faerie Dragon

Forum posts: 11
File comments: 5
Uploads: 0
Thanks, now it's working.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: