Download
(2Kb)
Download
Updated: 05-03-11 11:57 PM
Pictures
File Info
Updated:05-03-11 11:57 PM
Created:12-17-09 03:08 AM
Downloads:5,782
Favorites:21
MD5:

oUF Trinkets  Popular! (More than 5000 hits)

Version: 40100.1-Beta
by: Allez [More]

Adds trinket status to oUF, allowing you to see if an unit has used its PvP trinket.

Example usage:
(arena frames only)

Code:
if (unit and unit:find('arena%d') and (not unit:find("arena%dtarget")) and (not unit:find("arena%dpet"))) then
	self.Trinket = CreateFrame("Frame", nil, self)
	self.Trinket:SetHeight(27)
	self.Trinket:SetWidth(27)
	self.Trinket:SetPoint("TOPRIGHT", self, "TOPLEFT", -4, 1)
	self.Trinket.trinketUseAnnounce = true
	self.Trinket.trinketUpAnnounce = true
end
(all frames)
Code:
	local trinket = self.Health:CreateFontString(nil, 'OVERLAY')
	trinket:SetPoint("CENTER")
	trinket:SetFont(GameFontNormal:GetFont(),13)
	trinket.frequentUpdates = 0.25
	self:Tag(trinket, '[trinket]')
You will need to add oUF_Trinkets in the optional dependencies of your layout in the TOC file.
You can use OmniCC to display cooldown count text

40100.1-Beta
* update for patch 4.1

40000.1-Beta
* .toc update

30300.4-Beta
* support for embedded oUF

30300.3-Beta
* 45 second shared cooldown with Will of the Forsaken
* Added [trinket] tag. Works with all units
* Reset all trinkets status when changed area
* Added options to display trinket usage announcement

30300.2-Alpha
* bug fix release
Post A Reply Comment Options
Unread 12-18-09, 06:11 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 143
Uploads: 4
Try to replace line 20 in oUF_Trinkets.lua
Code:
				if (UnitExists(unit)) then
by this
Code:
				if (UnitExists(unit) and UnitIsPlayer(unit)) then
Report comment to moderator  
Reply With Quote
Unread 12-18-09, 03:04 AM  
psycho36
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
error

i got this two errors

Code:
Message: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:25: attempt to index field '?' (a nil value)
Time: 12/18/09 10:03:10
Count: 5
Stack: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:25: in function <Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:6>

Locals: self = <unnamed> {
 0 = <userdata>
}
event = "ARENA_OPPONENT_UPDATE"
unit = "arenapet2"
type = "seen"
(*temporary) = nil
(*temporary) = "arenapet2"
(*temporary) = "Alliance"
(*temporary) = "Alliance"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
arenaGUID = <table> {
 -2147483648 = "arenapet2"
 -2147483648 = "arena1"
 -2147483648 = "arena2"
 -2147483648 = "arenapet2"
}
trinkets = <table> {
}
Code:
Message: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:38: attempt to index field '?' (a nil value)
Time: 12/18/09 10:02:37
Count: 1
Stack: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:38: in function `TrinketUsed'
Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:13: in function <Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:6>

Locals: unit = "arena1"
(*temporary) = <function> defined @Interface\FrameXML\Cooldown.lua:2
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
trinkets = <table> {
}
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: