Jump to content

  • Curse Sites
Help

Frion

Member Since 13 Nov 2012
Offline Last Active Yesterday, 11:54 AM
-----

Posts I've Made

In Topic: Buff dispel border as warlock

11 April 2014 - 06:04 PM

View Post1ord, on 10 April 2014 - 03:10 PM, said:

Yo

I saw Chanimals playing - http://i.imgur.com/WJCQtAX.jpg

What addon/script is making the enemy dispellable buffs show like that?


I've tried this but doesnt work - http://www.wowinterf...spelBorder.html

http://www.arenajunk...ult-ui-scripts/
3.5. Flashy spellsteal border for non-mages and/or enrage effects:

In Topic: Default UI Scripts

05 April 2014 - 11:46 AM

Hey, could anyone help me with buffs/debuffs frame moving.
Im using Syncrow scripts to move buffs and debuffs and wanted to ask if it's possible to get same effect as it is as default - if you get 2 rows of buffs debuff frame will move down by one row. There is screenshot if its hard to get what I mean :)

--SETTINGS
BuffDirectionX = "left"
-- "right" or "left"
BuffDirectionY = "down"
-- "up" or "down"
BuffPerRow = 5
-- if debuffPerRow is set below 3 it will automatically set to 3!
BuffScale = 1.15
xbpos = -300
ybpos = 350
----------------
----------------
local f = CreateFrame("Frame")
local function BuffsUpdate(self)
db = "BuffButton"
dpr = BuffPerRow
dbs = BuffScale
if (BuffDirectionX=="right") then ddx = 35 elseif (BuffDirectionX=="left") then ddx = -35 end
if (BuffDirectionY=="down") then ddy = -45 elseif (BuffDirectionY=="up") then ddy = 45 end
if BuffPerRow < 3 then BuffPerRow = 3 end
--Row 1
if _G[db..1] then _G[db..1]:ClearAllPoints() _G[db..1]:SetPoint("CENTER","UIParent",xbpos,ybpos) end
for i = 2, dpr do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
--Row 2
if _G[db..dpr+1] then _G[db..dpr+1]:ClearAllPoints() _G[db..dpr+1]:SetPoint("CENTER",db..1,0,ddy) end
for i = dpr+2, dpr*2 do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
--Row 3
if _G[db..dpr*2+1] then _G[db..dpr*2+1]:ClearAllPoints() _G[db..dpr*2+1]:SetPoint("CENTER",db..dpr+1,0,ddy) end
for i = dpr*2+2, dpr*3 do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
--Row 4
if _G[db..dpr*3+1] then _G[db..dpr*3+1]:ClearAllPoints() _G[db..dpr*3+1]:SetPoint("CENTER",db..dpr*2+1,0,ddy) end
for i = dpr*3+2, dpr*4 do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
--Row 5
if _G[db..dpr*4+1] then _G[db..dpr*4+1]:ClearAllPoints() _G[db..dpr*4+1]:SetPoint("CENTER",db..dpr*3+1,0,ddy) end
for i = dpr*4+2, dpr*5 do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
for i = 1, 25 do if _G[db..i] then _G[db..i]:SetScale(dbs) end end
end
f:SetScript("OnUpdate", BuffsUpdate)
--SETTINGS
debuffDirectionX = "left"
-- "right" or "left"
debuffDirectionY = "down"
-- "up" or "down"
debuffPerRow = 5
-- if debuffPerRow is set below 3 it will automatically set to 3!
debuffScale = 1.15
xdpos = -300
ydpos = 250
----------------
----------------
hooksecurefunc("DebuffButton_UpdateAnchors", function()
db = "DebuffButton"
dpr = debuffPerRow
dbs = debuffScale
if (debuffDirectionX=="right") then ddx = 35 elseif (debuffDirectionX=="left") then ddx = -35 end
if (debuffDirectionY=="down") then ddy = -45 elseif (debuffDirectionY=="up") then ddy = 45 end
if debuffPerRow < 3 then debuffPerRow = 3 end
--Row 1
if _G[db..1] then _G[db..1]:ClearAllPoints() _G[db..1]:SetPoint("CENTER","UIParent",xdpos,ydpos) end
for i = 2, dpr do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
--Row 2
if _G[db..dpr+1] then _G[db..dpr+1]:ClearAllPoints() _G[db..dpr+1]:SetPoint("CENTER",db..1,0,ddy) end
for i = dpr+2, dpr*2 do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
--Row 3
if _G[db..dpr*2+1] then _G[db..dpr*2+1]:ClearAllPoints() _G[db..dpr*2+1]:SetPoint("CENTER",db..dpr+1,0,ddy) end
for i = dpr*2+2, dpr*3 do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
--Row 4
if _G[db..dpr*3+1] then _G[db..dpr*3+1]:ClearAllPoints() _G[db..dpr*3+1]:SetPoint("CENTER",db..dpr*2+1,0,ddy) end
for i = dpr*3+2, dpr*4 do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
--Row 5
if _G[db..dpr*4+1] then _G[db..dpr*4+1]:ClearAllPoints() _G[db..dpr*4+1]:SetPoint("CENTER",db..dpr*3+1,0,ddy) end
for i = dpr*4+2, dpr*5 do if _G[db..i] then _G[db..i]:ClearAllPoints() _G[db..i]:SetPoint("CENTER",db..i - 1 ,ddx,0) end end
for i = 1, 25 do if _G[db..i] then _G[db..i]:SetScale(dbs) end end
end)

Posted Image

Thanks for help.

In Topic: LF HP % on Nameplates script / addon

10 June 2013 - 04:13 PM

Sorry for no author of this but i just dont know (have alot scripts saved in txt file)
local fixvalue = function(val)
	if(val >= 1e6) then
		return ('%.2f'..SECOND_NUMBER_CAP):format(val / 1e6):gsub('%.?0+(['..FIRST_NUMBER_CAP..SECOND_NUMBER_CAP..'])$', '%1')
	elseif(val >= 1e4) then
		return ('%.1f'..FIRST_NUMBER_CAP):format(val / 1e3):gsub('%.?0+(['..FIRST_NUMBER_CAP..SECOND_NUMBER_CAP..'])$', '%1')
	else
		return val
	end
end
CreateFrame('frame'):SetScript('OnUpdate', function(self, elapsed)
	 for index = 1, select('#', WorldFrame:GetChildren()) do
		  local f = select(index, WorldFrame:GetChildren())
		  if f:GetName() and f:GetName():find('NamePlate%d') then
			   f.h = select(1, select(1, f:GetChildren()):GetChildren())
			   if f.h then
					if not f.h.v then
						 f.h.v = f.h:CreateFontString(nil, "ARTWORK")   
						 f.h.v:SetPoint("CENTER", f.h, 'CENTER')
						 f.h.v:SetFont(STANDARD_TEXT_FONT, 9, 'OUTLINE')
					else
						 local _, maxh = f.h:GetMinMaxValues()
						 local val = f.h:GetValue()
						 f.h.v:SetText(string.format("%s - %d%%", fixvalue(val), math.floor((val/maxh)*100)))
					end
			   end
		  end
	 end
end)

<