Jump to content

  • Curse Sites
Help

Looking for 3 Scripts! - 1 Found, 2 Left!


  • Please log in to reply
15 replies to this topic

#1 Vanguards

Vanguards
  • Administrators
  • Curse Premium
  • Blood Elfclass_name
  • US-Korgath
  • Vengeance
  • Posts: 1120
  • Talents: Retribution 1/0/0/2/0/2
  • 2v2: 2196
  • 3v3: 2772
  • 5v5: 384

Posted 31 August 2012 - 07:38 PM

1.) Filter combat log to show interrupts only

3.) show my real buffs like might / kings on raid frame (an example addon that does this is raid frame indicators)

2.) Show % value and numeric values on unit frame, target frame, focus etc

edit: #2 Found by neruosk8!

FrameList = {"Player", "Target", "Focus"}
function UpdateHealthValues(...)
for i = 1, select("#", unpack(FrameList)) do
local FrameName = (select(i, unpack(FrameList)))
if UnitHealth(FrameName) < 1000 then
local Health = UnitHealth(FrameName)
local HealthMax = UnitHealthMax(FrameName)
else
local Health = (UnitHealth(FrameName))/1000
local HealthMax = (UnitHealthMax(FrameName))/1000
local HealthPercent = (UnitHealth(FrameName)/UnitHealthMax(FrameName))*100

if UnitHealth(FrameName) < 1000 then
_G[FrameName.."FrameHealthBar"].TextString:SetText(Health.." / "..HealthMax.." ("..format("%.0f",HealthPercent).."%)")
else
_G[FrameName.."FrameHealthBar"].TextString:SetText(format("%.0f",Health).."k / "..format("%.0f",HealthMax).."k ("..format("%.0f",HealthPercent).."%)")

end
end
end
end
hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", UpdateHealthValues)

Please post if you know any of them!
http://twitch.tv/VanguardsTV- Stream (Follow to know when I'm live!)
http://twitter.com/VanguardsTV- Twitter
http://facebook.com/Samk920 - Facebook

http://youtube.com/SamK920 - YouTube Videos

#2 Miseryloll

Miseryloll
  • Junkies
  • Blood Elfclass_name
  • US-Burning Blade
  • Vindication
  • Posts: 23
  • Talents: Retribution

Posted 31 August 2012 - 07:40 PM

I used to have the %  and numeric values somewhere... i'll look for them when I get home

#3 Miseryloll

Miseryloll
  • Junkies
  • Blood Elfclass_name
  • US-Burning Blade
  • Vindication
  • Posts: 23
  • Talents: Retribution

Posted 31 August 2012 - 07:42 PM

on a second note why cant I post in other forums...

#4 Epzyxo

Epzyxo
  • Epzý
  • Junkies
  • Undeadclass_name
  • EU-Stormscale
  • Cyclone / Wirbelsturm
  • Posts: 550
  • Talents: Fire 1/2/0/2/1/.
  • LocationNorway

Posted 31 August 2012 - 09:42 PM

View PostMiseryloll, on 31 August 2012 - 07:42 PM, said:

on a second note why cant I post in other forums...

you're only a member, contact rapture for promotion to junkies

Posted Image


#5 Vanguards

Vanguards
  • Administrators
  • Curse Premium
  • Blood Elfclass_name
  • US-Korgath
  • Vengeance
  • Posts: 1120
  • Talents: Retribution 1/0/0/2/0/2
  • 2v2: 2196
  • 3v3: 2772
  • 5v5: 384

Posted 31 August 2012 - 10:20 PM

Thanks! Will be a big help if anyone can tell me any of these scripts.
http://twitch.tv/VanguardsTV- Stream (Follow to know when I'm live!)
http://twitter.com/VanguardsTV- Twitter
http://facebook.com/Samk920 - Facebook

http://youtube.com/SamK920 - YouTube Videos

#6 vilatsa

vilatsa
  • Members
  • Posts: 100

Posted 01 September 2012 - 02:16 AM

TF=CreateFrame("Frame")TFHB=TargetFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue
FF=CreateFrame("Frame")FFHB=FocusFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue

TF:SetScript("OnUpdate", function(target)TFHB:SetText(TTSB(UnitHealth("target")).."/"..TTSB(UnitHealthMax("target")).." ("..format("%.0f", ((UnitHealth("target")/UnitHealthMax("target"))*100)).."%)") end)

FF:SetScript("OnUpdate", function(focus)FFHB:SetText(TTSB(UnitHealth("focus")).."/"..TTSB(UnitHealthMax("focus")).." ("..format("%.0f", ((UnitHealth("focus")/UnitHealthMax("focus"))*100)).."%)") end)


this is for health/health/percentage on target & focus.

#7 Vanguards

Vanguards
  • Administrators
  • Curse Premium
  • Blood Elfclass_name
  • US-Korgath
  • Vengeance
  • Posts: 1120
  • Talents: Retribution 1/0/0/2/0/2
  • 2v2: 2196
  • 3v3: 2772
  • 5v5: 384

Posted 01 September 2012 - 04:22 AM

hmm how would I convert that to a /run for macroing?
http://twitch.tv/VanguardsTV- Stream (Follow to know when I'm live!)
http://twitter.com/VanguardsTV- Twitter
http://facebook.com/Samk920 - Facebook

http://youtube.com/SamK920 - YouTube Videos

#8 vilatsa

vilatsa
  • Members
  • Posts: 100

Posted 01 September 2012 - 09:12 AM

"/run" on the 4 lines (3 'n' 4 are one lined)

#9 Ancyfex

Ancyfex
  • Premium Junkies
  • Curse Premium
  • Blood Elfclass_name
  • EU-Daggerspine
  • Cataclysme / Cataclysm
  • Posts: 30
  • Talents:

Posted 01 September 2012 - 11:25 AM

View Postvilatsa, on 01 September 2012 - 02:16 AM, said:

TF=CreateFrame("Frame")TFHB=TargetFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue
FF=CreateFrame("Frame")FFHB=FocusFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue

TF:SetScript("OnUpdate", function(target)TFHB:SetText(TTSB(UnitHealth("target")).."/"..TTSB(UnitHealthMax("target")).." ("..format("%.0f", ((UnitHealth("target")/UnitHealthMax("target"))*100)).."%)") end)

FF:SetScript("OnUpdate", function(focus)FFHB:SetText(TTSB(UnitHealth("focus")).."/"..TTSB(UnitHealthMax("focus")).." ("..format("%.0f", ((UnitHealth("focus")/UnitHealthMax("focus"))*100)).."%)") end)


this is for health/health/percentage on target & focus.

Borrowing this thread a bit, I tried copying that into my addon which I have a lot of scripts in but I just keep getting lua errors after that, any idea what the problem can be?

I'm horrible with this kind of stuff :(

#10 vilatsa

vilatsa
  • Members
  • Posts: 100

Posted 01 September 2012 - 05:20 PM

i couldnt say wat is wrong with out looking at ur .lua file

#11 Vanguards

Vanguards
  • Administrators
  • Curse Premium
  • Blood Elfclass_name
  • US-Korgath
  • Vengeance
  • Posts: 1120
  • Talents: Retribution 1/0/0/2/0/2
  • 2v2: 2196
  • 3v3: 2772
  • 5v5: 384

Posted 02 September 2012 - 01:51 AM

Tried running as 3 separate Macros:

Macro 1:

/run TF=CreateFrame("Frame")TFHB=TargetFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue
/run FF=CreateFrame("Frame")FFHB=FocusFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue

Macro 2:
/run TF:SetScript("OnUpdate", function(target)TFHB:SetText(TTSB(UnitHealth("target")).."/"..TTSB(UnitHealthMax("target")).." ("..format("%.0f", ((UnitHealth("target")/UnitHealthMax("target"))*100)).."%)") end)

Macro 3:

/run FF:SetScript("OnUpdate", function(focus)FFHB:SetText(TTSB(UnitHealth("focus")).."/"..TTSB(UnitHealthMax("focus")).." ("..format("%.0f", ((UnitHealth("focus")/UnitHealthMax("focus"))*100)).."%)") end)

Didn't work though, and started causing fps lag :(
http://twitch.tv/VanguardsTV- Stream (Follow to know when I'm live!)
http://twitter.com/VanguardsTV- Twitter
http://facebook.com/Samk920 - Facebook

http://youtube.com/SamK920 - YouTube Videos

#12 Prozaak

Prozaak
  • Members
  • Posts: 19

Posted 02 September 2012 - 05:00 AM

FrameList = {"Player", "Target", "Focus"}
	 function UpdateHealthValues(...)
for i = 1, select("#", unpack(FrameList)) do
local FrameName = (select(i, unpack(FrameList)))
	 if UnitHealth(FrameName) < 1000 then
local Health = UnitHealth(FrameName)
local HealthMax = UnitHealthMax(FrameName)
	 else
local Health = (UnitHealth(FrameName))/1000
local HealthMax = (UnitHealthMax(FrameName))/1000
local HealthPercent = (UnitHealth(FrameName)/UnitHealthMax(FrameName))*100
	
	 if UnitHealth(FrameName) < 1000 then
_G[FrameName.."FrameHealthBar"].TextString:SetText(Health.." / "..HealthMax.." ("..format("%.0f",HealthPercent).."%)")
	 else
_G[FrameName.."FrameHealthBar"].TextString:SetText(format("%.0f",Health).."k / "..format("%.0f",HealthMax).."k ("..format("%.0f",HealthPercent).."%)")
	
end
	 end
			 end
	 end
	 hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", UpdateHealthValues)

This works as a addon, i dont have any idea how to use this on /run, hope it helps


I did a buff watcher for me, i dont know if is what u want, but u can test:
BuffFrame:ClearAllPoints();BuffFrame:SetPoint("TOP", 650, -15);
ConsolidatedBuffs:SetAlpha(0); ConsolidatedBuffs:EnableMouse(false)
ConsolidatedBuffsTooltip:Show()
ConsolidatedBuffsTooltip:SetScale(1.5)
local b = _G.ConsolidatedBuffsTooltip
b:DisableDrawLayer("BACKGROUND")
b:DisableDrawLayer("BORDER")
ConsolidatedBuffsTooltip:EnableMouse(false);ConsolidatedBuffsTooltipBuff1:EnableMouse(false);ConsolidatedBuffsTooltipBuff2:EnableMouse(false);ConsolidatedBuffsTooltipBuff3:EnableMouse(false);ConsolidatedBuffsTooltipBuff4:EnableMouse(false);ConsolidatedBuffsTooltipBuff5:EnableMouse(false);ConsolidatedBuffsTooltipBuff6:EnableMouse(false);ConsolidatedBuffsTooltipBuff7:EnableMouse(false);ConsolidatedBuffsTooltipBuff8:EnableMouse(false);
ConsolidatedBuffsTooltipBuff1Label:Hide();ConsolidatedBuffsTooltipBuff2Label:Hide();ConsolidatedBuffsTooltipBuff3Label:Hide();ConsolidatedBuffsTooltipBuff4Label:Hide();ConsolidatedBuffsTooltipBuff5Label:Hide();ConsolidatedBuffsTooltipBuff6Label:Hide();ConsolidatedBuffsTooltipBuff7Label:Hide();ConsolidatedBuffsTooltipBuff8Label:Hide();
ConsolidatedBuffsTooltipBuff1:ClearAllPoints();ConsolidatedBuffsTooltipBuff1:SetPoint("TOP", UIParent, "TOP", 506, -10)
ConsolidatedBuffsTooltipBuff2:ClearAllPoints();ConsolidatedBuffsTooltipBuff2:SetPoint("TOP", UIParent, "TOP", 506, -30)
ConsolidatedBuffsTooltipBuff3:ClearAllPoints();ConsolidatedBuffsTooltipBuff3:SetPoint("TOP", UIParent, "TOP", 506, -50)
ConsolidatedBuffsTooltipBuff4:ClearAllPoints();ConsolidatedBuffsTooltipBuff4:SetPoint("TOP", UIParent, "TOP", 506, -70)
ConsolidatedBuffsTooltipBuff5:ClearAllPoints();ConsolidatedBuffsTooltipBuff5:SetPoint("TOP", UIParent, "TOP", 527, -10)
ConsolidatedBuffsTooltipBuff6:ClearAllPoints();ConsolidatedBuffsTooltipBuff6:SetPoint("TOP", UIParent, "TOP", 527, -30)
ConsolidatedBuffsTooltipBuff7:ClearAllPoints();ConsolidatedBuffsTooltipBuff7:SetPoint("TOP", UIParent, "TOP", 527, -50)
ConsolidatedBuffsTooltipBuff8:ClearAllPoints();ConsolidatedBuffsTooltipBuff8:SetPoint("TOP", UIParent, "TOP", 527, -70)

It uses the new consolidate frame to watch my buffs.

#13 Vanguards

Vanguards
  • Administrators
  • Curse Premium
  • Blood Elfclass_name
  • US-Korgath
  • Vengeance
  • Posts: 1120
  • Talents: Retribution 1/0/0/2/0/2
  • 2v2: 2196
  • 3v3: 2772
  • 5v5: 384

Posted 02 September 2012 - 06:25 PM

View Postneurosk8, on 02 September 2012 - 05:00 AM, said:

FrameList = {"Player", "Target", "Focus"}
	 function UpdateHealthValues(...)
for i = 1, select("#", unpack(FrameList)) do
local FrameName = (select(i, unpack(FrameList)))
	 if UnitHealth(FrameName) < 1000 then
local Health = UnitHealth(FrameName)
local HealthMax = UnitHealthMax(FrameName)
	 else
local Health = (UnitHealth(FrameName))/1000
local HealthMax = (UnitHealthMax(FrameName))/1000
local HealthPercent = (UnitHealth(FrameName)/UnitHealthMax(FrameName))*100
	
	 if UnitHealth(FrameName) < 1000 then
_G[FrameName.."FrameHealthBar"].TextString:SetText(Health.." / "..HealthMax.." ("..format("%.0f",HealthPercent).."%)")
	 else
_G[FrameName.."FrameHealthBar"].TextString:SetText(format("%.0f",Health).."k / "..format("%.0f",HealthMax).."k ("..format("%.0f",HealthPercent).."%)")
	
end
	 end
			 end
	 end
	 hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", UpdateHealthValues)

This works as a addon, i dont have any idea how to use this on /run, hope it helps


I did a buff watcher for me, i dont know if is what u want, but u can test:
BuffFrame:ClearAllPoints();BuffFrame:SetPoint("TOP", 650, -15);
ConsolidatedBuffs:SetAlpha(0); ConsolidatedBuffs:EnableMouse(false)
ConsolidatedBuffsTooltip:Show()
ConsolidatedBuffsTooltip:SetScale(1.5)
local b = _G.ConsolidatedBuffsTooltip
b:DisableDrawLayer("BACKGROUND")
b:DisableDrawLayer("BORDER")
ConsolidatedBuffsTooltip:EnableMouse(false);ConsolidatedBuffsTooltipBuff1:EnableMouse(false);ConsolidatedBuffsTooltipBuff2:EnableMouse(false);ConsolidatedBuffsTooltipBuff3:EnableMouse(false);ConsolidatedBuffsTooltipBuff4:EnableMouse(false);ConsolidatedBuffsTooltipBuff5:EnableMouse(false);ConsolidatedBuffsTooltipBuff6:EnableMouse(false);ConsolidatedBuffsTooltipBuff7:EnableMouse(false);ConsolidatedBuffsTooltipBuff8:EnableMouse(false);
ConsolidatedBuffsTooltipBuff1Label:Hide();ConsolidatedBuffsTooltipBuff2Label:Hide();ConsolidatedBuffsTooltipBuff3Label:Hide();ConsolidatedBuffsTooltipBuff4Label:Hide();ConsolidatedBuffsTooltipBuff5Label:Hide();ConsolidatedBuffsTooltipBuff6Label:Hide();ConsolidatedBuffsTooltipBuff7Label:Hide();ConsolidatedBuffsTooltipBuff8Label:Hide();
ConsolidatedBuffsTooltipBuff1:ClearAllPoints();ConsolidatedBuffsTooltipBuff1:SetPoint("TOP", UIParent, "TOP", 506, -10)
ConsolidatedBuffsTooltipBuff2:ClearAllPoints();ConsolidatedBuffsTooltipBuff2:SetPoint("TOP", UIParent, "TOP", 506, -30)
ConsolidatedBuffsTooltipBuff3:ClearAllPoints();ConsolidatedBuffsTooltipBuff3:SetPoint("TOP", UIParent, "TOP", 506, -50)
ConsolidatedBuffsTooltipBuff4:ClearAllPoints();ConsolidatedBuffsTooltipBuff4:SetPoint("TOP", UIParent, "TOP", 506, -70)
ConsolidatedBuffsTooltipBuff5:ClearAllPoints();ConsolidatedBuffsTooltipBuff5:SetPoint("TOP", UIParent, "TOP", 527, -10)
ConsolidatedBuffsTooltipBuff6:ClearAllPoints();ConsolidatedBuffsTooltipBuff6:SetPoint("TOP", UIParent, "TOP", 527, -30)
ConsolidatedBuffsTooltipBuff7:ClearAllPoints();ConsolidatedBuffsTooltipBuff7:SetPoint("TOP", UIParent, "TOP", 527, -50)
ConsolidatedBuffsTooltipBuff8:ClearAllPoints();ConsolidatedBuffsTooltipBuff8:SetPoint("TOP", UIParent, "TOP", 527, -70)

It uses the new consolidate frame to watch my buffs.

The first script worked great! 2nd one works too, just not exactly what I wanted. What I wanted was for buffs to appear on the raid frames for my party members and myself. So for example, if someone purges kings on my healer I would know to rebuff it asap.

Thanks for the health bar one though! And your second script would be really useful in raids and rbgs =P I hate the new forced consolidated buffs.
http://twitch.tv/VanguardsTV- Stream (Follow to know when I'm live!)
http://twitter.com/VanguardsTV- Twitter
http://facebook.com/Samk920 - Facebook

http://youtube.com/SamK920 - YouTube Videos

#14 Vengeance

Vengeance
  • Junkies
  • Humanclass_name
  • US-Sargeras
  • Shadowburn
  • Posts: 111
  • Talents: Subtlety 0/2/2/0/0/.

Posted 06 September 2012 - 03:26 PM

FrameList = {"Player", "Target", "Focus"}
function UpdateHealthValues(...)
  for i = 1, select("#", unpack(FrameList)) do
   local FrameName = (select(i, unpack(FrameList)))
   local Health = AbbreviateLargeNumbers(UnitHealth(FrameName))
   local HealthMax = AbbreviateLargeNumbers(UnitHealthMax(FrameName))
   local HealthPercent = (UnitHealth(FrameName)/UnitHealthMax(FrameName))*100
   _G[FrameName.."FrameHealthBar"].TextString:SetText(Health.."/"..HealthMax.." ("..format("%.0f",HealthPercent).."%)")
  end
end
hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", UpdateHealthValues)

Here's my old script for Absolute Values + %s on frames. Updated to work with 5.0.

#15 Vanguards

Vanguards
  • Administrators
  • Curse Premium
  • Blood Elfclass_name
  • US-Korgath
  • Vengeance
  • Posts: 1120
  • Talents: Retribution 1/0/0/2/0/2
  • 2v2: 2196
  • 3v3: 2772
  • 5v5: 384

Posted 14 September 2012 - 02:36 AM

View PostVengeance, on 06 September 2012 - 03:26 PM, said:

FrameList = {"Player", "Target", "Focus"}
function UpdateHealthValues(...)
for i = 1, select("#", unpack(FrameList)) do
local FrameName = (select(i, unpack(FrameList)))
local Health = AbbreviateLargeNumbers(UnitHealth(FrameName))
local HealthMax = AbbreviateLargeNumbers(UnitHealthMax(FrameName))
local HealthPercent = (UnitHealth(FrameName)/UnitHealthMax(FrameName))*100
_G[FrameName.."FrameHealthBar"].TextString:SetText(Health.."/"..HealthMax.." ("..format("%.0f",HealthPercent).."%)")
end
end
hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", UpdateHealthValues)

Here's my old script for Absolute Values + %s on frames. Updated to work with 5.0.

sweet! now i just need the other 2 scripts, if anyone has any ideas for them.
http://twitch.tv/VanguardsTV- Stream (Follow to know when I'm live!)
http://twitter.com/VanguardsTV- Twitter
http://facebook.com/Samk920 - Facebook

http://youtube.com/SamK920 - YouTube Videos

#16 Theodorrr

Theodorrr
  • Members
  • Posts: 19

Posted 02 October 2012 - 08:34 PM

iboui got almost everything




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

<