Thread Tools Display Modes
11-08-09, 09:00 PM   #1
todd3835
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 89
Priest Hots with oUF

I'm looking for a way to see hots (renew and prayer of mending specifically) on my oUF frames. I'm using Nivaya. I see the druid hots one, and i've edited it to hopefully work, but I'm not sure how to add that into Nivaya to get it working. I really like oUF, and would rather not have to go to grid or healbot......
__________________




People with OCD (Or CDO in Scott's Case) prefer nUI+! Find it at www.nuiaddon.com
  Reply With Quote
11-09-09, 03:33 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
http://www.wowinterface.com/download...AuraWatch.html
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
11-09-09, 06:27 AM   #3
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
Code:
local function PriestAuraWatch(self,unit)
	local auras = CreateFrame('Frame', nil, self)
	auras:SetAllPoints(self.Health)
    local spellIDs = {
	--Priest
	33076, --Prayer of Mending
	59542, --Gift of the Naaru
	139, --Renew
	17, --Power Word: Shield
	6788,  --Weakened Soul
	--Naxxramas
	27808, --Frost Blast
	32407, --Strange Aura
	28408, --Chains of Kel'Thuzad
	--Ulduar
	66313, --Fire Bomb
	63134, --Sara's Blessing
	62717, --Slag Pot
	63018, --Searing Light
	64233, --Gravity Bomb
	63495, --Static Disruption
	--Trial of the Crusader
	66406, --Snobolled
	67574, --Pursued by Anub'arak
	68509, --Penetrating Cold
	67651, --Arctic Breath
	68127, --Legion Flame
	67049, --Incinerate Flesh
	66869, --Burning Bile
	66823, --Paralytic Toxin
	--Other debuff
	6215,  --Fear
	67479, --Impale
    }
	
	auras.presentAlpha = 1
	auras.missingAlpha = 0
	auras.icons = {}

	for i, sid in pairs(spellIDs) do
		local icon = CreateFrame('Frame', nil, auras)
		icon.spellID = sid
		local cd = CreateFrame('Cooldown', nil, icon)
		cd:SetAllPoints(icon)
		cd:SetReverse()
		icon.cd = cd

		if i < 13 then
			icon:SetWidth(7)
			icon:SetHeight(7)
			local tex = icon:CreateTexture(nil, 'BACKGROUND')
			tex:SetAllPoints(icon)
			tex:SetTexture(indicator)
			if i==1 then
				icon:SetPoint('BOTTOMRIGHT',0,0)
				tex:SetVertexColor(255/255,255/255,170/255)
				local count = icon:CreateFontString(nil, 'OVERLAY')
				count:SetFont(font, 6, 'OUTLINE')
				count:SetPoint('CENTER', -6, 1)
				icon.count = count
			elseif i==2 then
				icon:SetPoint('RIGHT',0,0)
				tex:SetVertexColor(255/255,200/255,170/255)
			elseif i==3 then          
				icon:SetPoint('TOPLEFT',0,0)
				tex:SetVertexColor(180/255,255/255,170/255)
			elseif i==4 then
				icon:SetPoint('LEFT',0,0)
				tex:SetVertexColor(170/255,230/255,255/255)
			elseif i==5 then
				icon:SetPoint('BOTTOMLEFT',0,0)
				tex:SetVertexColor(205/255,205/255,205/255)
			end
			icon.icon = tex
		else
			icon.anyUnit = true
			icon:SetWidth(18)
			icon:SetHeight(18)
			cd:SetAlpha(0)
			local tex = icon:CreateTexture(nil, 'OVERLAY')
			tex:SetAllPoints(icon)
			tex:SetTexture(border)
			tex:SetVertexColor(222/255, 22/255, 22/255)
			icon:SetPoint('CENTER',0,0)
			local count = icon:CreateFontString(nil, 'OVERLAY')
			count:SetFont(font, 7, 'OUTLINE')
			count:SetPoint('CENTER', 6, 1)
			icon.count = count
		end
		auras.icons[sid] = icon
	end
	self.AuraWatch = auras
end
  Reply With Quote
12-04-09, 12:02 PM   #4
WALLIEDIRT
A Deviate Faerie Dragon
 
WALLIEDIRT's Avatar
Join Date: Oct 2008
Posts: 10
Thanks Rostok that saves me some time =D

Last edited by WALLIEDIRT : 12-04-09 at 01:53 PM. Reason: spelling error
  Reply With Quote
12-04-09, 03:15 PM   #5
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
You're welcome, but you're reviving a long dead thread !
But here we go with the drood and shamy :

Code:
local function DruidAuraWatch(self,unit)
	local auras = CreateFrame('Frame', nil, self)
	auras:SetAllPoints(self.Health)
    local spellIDs = {
	--Druid
	48440, --Rejuvenation
	48443, --Regrowth
	48450, --Lifebloom
	53249, --Wild Growth
	2893,  --Abolish Poison
	--Naxxramas
	27808, --Frost Blast
	32407, --Strange Aura
	28408, --Chains of Kel'Thuzad
	--Ulduar
	66313, --Fire Bomb
	63134, --Sara's Blessing
	62717, --Slag Pot
	63018, --Searing Light
	64233, --Gravity Bomb
	63495, --Static Disruption
	--Trial of the Crusader
	66406, --Snobolled
	67574, --Pursued by Anub'arak
	68509, --Penetrating Cold
	67651, --Arctic Breath
	68127, --Legion Flame
	67049, --Incinerate Flesh
	66869, --Burning Bile
	66823, --Paralytic Toxin
	--Other debuff
	6215,  --Fear
	67479, --Impale
    }
    
	auras.presentAlpha = 1
	auras.missingAlpha = 0
	auras.icons = {}
	
	for i, sid in pairs(spellIDs) do
		local icon = CreateFrame('Frame', nil, auras)
		icon.spellID = sid
		local cd = CreateFrame('Cooldown', nil, icon)
		cd:SetAllPoints(icon)
		cd:SetReverse()
		icon.cd = cd
	
		if i > 5 then
			icon.anyUnit = true
			icon:SetWidth(18)
			icon:SetHeight(18)
			cd:SetAlpha(0)
			local tex = icon:CreateTexture(nil, 'OVERLAY')
			tex:SetAllPoints(icon)
			tex:SetTexture(border)
			tex:SetVertexColor(222/255, 22/255, 22/255)
			icon:SetPoint('CENTER',0,0)
			local count = icon:CreateFontString(nil, 'OVERLAY')
			count:SetFont(font, 7, 'OUTLINE')
			count:SetPoint('CENTER', 6, 1)
			icon.count = count
		else
			icon:SetWidth(7)
			icon:SetHeight(7)
			local tex = icon:CreateTexture(nil, 'BACKGROUND')
			tex:SetAllPoints(icon)
			tex:SetTexture(indicator)
			if i==1 then
				icon:SetPoint('TOPLEFT',0,0)
				tex:SetVertexColor(200/255,100/255,200/255)
			elseif i==2 then
				icon:SetPoint('LEFT',0,0)
				tex:SetVertexColor(50/255,200/255,50/255)
			elseif i==3 then          
				icon:SetPoint('BOTTOMRIGHT',0,0)
				tex:SetVertexColor(100/255,200/255,50/255)
				local count = icon:CreateFontString(nil, 'OVERLAY')
				count:SetFont(font, 6, 'OUTLINE')
				count:SetPoint('CENTER', -6, 1)
				icon.count = count
			elseif i==4 then
				icon:SetPoint('BOTTOMLEFT',0,0)
				tex:SetVertexColor(200/255,100/255,0/255)
			elseif i==5 then
				icon:SetPoint('RIGHT',0,0)
				tex:SetVertexColor(200/255,100/255,0/255)
			end
			icon.icon = tex
		end
		auras.icons[sid] = icon
	end
	self.AuraWatch = auras
end
Code:
local function ShamanAuraWatch(self,unit)
	local auras = CreateFrame('Frame', nil, self)
	auras:SetAllPoints(self.Health)
    local spellIDs = {
	--Shaman
	49284, --Earth Shield
	61301, --Riptide
	52000, --Earthliving
	--Naxxramas
	27808, --Frost Blast
	32407, --Strange Aura
	28408, --Chains of Kel'Thuzad
	--Ulduar
	66313, --Fire Bomb
	63134, --Sara's Blessing
	62717, --Slag Pot
	63018, --Searing Light
	64233, --Gravity Bomb
	63495, --Static Disruption
	--Trial of the Crusader
	66406, --Snobolled
	67574, --Pursued by Anub'arak
	68509, --Penetrating Cold
	67651, --Arctic Breath
	68127, --Legion Flame
	67049, --Incinerate Flesh
	66869, --Burning Bile
	66823, --Paralytic Toxin
	--Other debuff
	6215,  --Fear
	67479, --Impale
	}
    
	auras.presentAlpha = 1
	auras.missingAlpha = 0
	auras.icons = {}
   
	for i, sid in pairs(spellIDs) do
		local icon = CreateFrame('Frame', nil, auras)
		icon.spellID = sid
		local cd = CreateFrame('Cooldown', nil, icon)
		cd:SetAllPoints(icon)
		cd:SetReverse()
		icon.cd = cd
		
		if i > 3 then
			icon.anyUnit = true
			icon:SetWidth(18)
			icon:SetHeight(18)
			cd:SetAlpha(0)
			local tex = icon:CreateTexture(nil, 'OVERLAY')
			tex:SetAllPoints(icon)
			tex:SetTexture(border)
			tex:SetVertexColor(222/255, 22/255, 22/255)
			icon:SetPoint('CENTER',0,0)
			local count = icon:CreateFontString(nil, 'OVERLAY')
			count:SetFont(font, 7, 'OUTLINE')
			count:SetPoint('CENTER', 6, 1)
			icon.count = count
		else
			icon:SetWidth(7)
			icon:SetHeight(7)
			local tex = icon:CreateTexture(nil, 'BACKGROUND')
			tex:SetAllPoints(icon)
			tex:SetTexture(indicator)
			if i==1 then          
				icon:SetPoint('BOTTOMRIGHT',0,0)
				tex:SetVertexColor(140/255,95/255,75/255)
				local count = icon:CreateFontString(nil, 'OVERLAY')
				count:SetFont(font, 6, 'OUTLINE')
				count:SetPoint('CENTER', -6, 1)
				icon.count = count
			elseif i==2 then
				icon:SetPoint('TOPLEFT',0,0)
				tex:SetVertexColor(100/255,200/255,200/255)
			elseif i==3 then
				icon:SetPoint('BOTTOMLEFT',0,0)
				tex:SetVertexColor(100/255,200/255,140/255)
			end
			icon.icon = tex
		end
		auras.icons[sid] = icon
	end
	self.AuraWatch = auras
end
  Reply With Quote
12-04-09, 06:16 PM   #6
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
What I have for my characters atm Idk if it matters if you dont have max rank or not, priest not max rank cause shes not max level yet >.>

Code:
--priest stuff (not max rank)
--25221, -- renew
--25217, -- power word: shield
--33076, -- prayer of mending
--priest max rank stuff
48068, -- renew ID
48066, -- power word: Shield ID
48085, -- Lightwell Renew ID
48113, -- Prayer of Mending ID
--shaman
61301, -- riptide ID 
49284, -- earthliving ID
16237, -- armor buff ID
52000, -- eartshield ID
--druid
53251, -- Wild Growth ID
48441, -- Rejuvenation ID
48451, -- Lifebloom ID
48443, -- Regrowth ID
--paladin
53651, -- Light's Beacon
53563, -- Beacon of Light
53601, -- Sacred Shield
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Priest Hots with oUF

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off