Jump to content

  • Curse Sites
Help

Deleted

Member Since 14 Apr 2008
Offline Last Active Jan 19 2011 02:45 PM
-----

#2283282 Default UI Scripts

Posted Kollektiv on 13 June 2010 - 12:09 AM

Here are some "macros" you can use to modify the default UI. The feature macros are ones that should be in the default UI. Request an interesting macro and I'll probably make it.

Features
Multi macro features should only be pressed once each and in the order that they are listed. FPS may be affected.


Show buffs and debuffs on party frames
Positions debuffs to the right of each party frame. Buffs are displayed under each party frame. Be sure to adjust options in "Buffs and Debuffs" or they might not show up as you expect.

Original Code
for i=1,4 do
	local f = _G["PartyMemberFrame"..i]
	f:UnregisterEvent("UNIT_AURA")
	local g = CreateFrame("Frame")
	g:RegisterEvent("UNIT_AURA")
	g:SetScript("OnEvent",function(self,event,a1)
		if a1 == f.unit then
			RefreshDebuffs(f,a1,20,nil,1)
		else
			if a1 == f.unit.."pet" then
				PartyMemberFrame_RefreshPetDebuffs(f)
			end
		end
	end)
	local b = _G[f:GetName().."Debuff1"]
	b:ClearAllPoints()
	b:SetPoint("LEFT",f,"RIGHT",-7,5)
	for j=5,20 do
		local l = f:GetName().."Debuff"
		local n = l..j
		local c = CreateFrame("Frame",n,f,"PartyDebuffFrameTemplate")
		c:SetPoint("LEFT",_G[l..(j-1)],"RIGHT")
	end
end

for i=1,4 do
	local f = _G["PartyMemberFrame"..i]
	f:UnregisterEvent("UNIT_AURA")
	local g = CreateFrame("Frame")
	g:RegisterEvent("UNIT_AURA")
	g:SetScript("OnEvent",function(self,event,a1)
		if a1 == f.unit then
			RefreshBuffs(f,a1,20,nil,1)
		end
	end)
	for j=1,20 do
		local l = f:GetName().."Buff"
		local n = l..j
		local c = CreateFrame("Frame",n,f,"TargetBuffFrameTemplate")
		c:EnableMouse(false)
		if j == 1 then
			c:SetPoint("TOPLEFT",48,-32)
		else
			c:SetPoint("LEFT",_G[l..(j-1)],"RIGHT",1,0)
		end
	end
end

Condensed into 6 macros. This could probably be minimized into 4 macros but I wrote them as separate features.
/run V={ A="PartyMemberFrame", B="ClearAllPoints", C="PartyDebuffFrameTemplate", D=PartyMemberFrame_RefreshPetDebuffs, E=RefreshDebuffs }
/run for i=1,4 do local f,g=_G[V.A..i],CreateFrame("Frame");f:UnregisterEvent("UNIT_AURA");g:RegisterEvent("UNIT_AURA");g:SetScript("OnEvent",function(_,_,a) if a==f.unit then V.E(f,a,20,nil,1) else if a==f.unit.."pet" then V.D(f) end end end) end
/run for i=1,4 do local f,b,l,n,c;f=_G[V.A..i];b=_G[f:GetName().."Debuff1"];b[V.B](b);b:SetPoint("LEFT",f,"RIGHT",-7,5) for j=5,20 do l=f:GetName().."Debuff";n=l..j;c=CreateFrame("Frame",n,f,V.C);c:SetPoint("LEFT",_G[l..(j-1)],"RIGHT") end end
/run Z={A="PartyMemberFrame",B="UnregisterEvent",C=CreateFrame,D="RegisterEvent",E=RefreshBuffs,F="TargetBuffFrameTemplate",G="SetPoint",H="Buff",I="SetPoint",J="TOPLEFT",K="LEFT",L="RIGHT",M="EnableMouse",N="UNIT_AURA",O="Frame",P="OnEvent",R="GetName"}
/run function SD(f,j) local l,m,n,o;m=f[Z.R](f);l=m..Z.H;n=l..j;o=Z.C(Z.O,n,f,Z.F);o[Z.M](o,nil) if j==1 then o[Z.I](o,Z.J,48,-32); else o[Z.I](o,Z.K,_G[l..(j-1)],Z.L,1,0); end end
/run for i=1,4 do local f,g,m,n,o=_G[Z.A..i],Z.C(Z.O);f[Z.B](f,Z.N);g[Z.D](g,Z.N);g:SetScript(Z.P,function(_,_,a) if a==f.unit then Z.E(f,a,20,nil,1) end end) for j=1,20 do SD(f,j) end end

Show buffs and debuffs on raid frame group 1.
Make sure raid frame 1 exists before applying these macros. Set buffs to show on the frame. You might want to filter the buffs in the interface options.

Original Code
MAX_RAID_AURAS = 10
if RaidPullout1 then
	for i=1,5 do
		local b = _G["RaidPullout1Button"..i]
		local i = CreateFrame("Frame")
		i:RegisterEvent("UNIT_AURA")
		i:SetScript("OnEvent",function(_,_,a)
			if a==b.unit then RefreshAuras(b,a,10,"ZZ",nil,nil) end
		end)
		if b then
			local n = b:GetName().."Aura"
			local z = b:GetName().."ZZ"
			for j=1,10 do
				if j > 1 then
					local a = _G[n..j] or CreateFrame("Frame",n..j,b,"RaidAuraFrameTemplate")
					a:ClearAllPoints()
					a:SetPoint("LEFT",_G[n..(j-1)],"RIGHT")
				end

				local y = CreateFrame("Frame",z..j,b,"RaidAuraFrameTemplate")
				y:SetPoint("TOP",_G[n..j],"BOTTOM",0,-1)
			end
		end
	end
end

Condensed into 3 macros
/run MAX_RAID_AURAS=10 for i=1,5 do local b,a=_G["RaidPullout1Button"..i];n=b:GetName().."Aura" for j=2,10 do a=_G[n..j] or CreateFrame("Frame",n..j,b,"RaidAuraFrameTemplate");a:ClearAllPoints();a:SetPoint("LEFT",_G[n..(j-1)],"RIGHT") end end
/run J={ O="RaidPullout1Button", P=CreateFrame, Q="Frame", R="RaidAuraFrameTemplate", S=RefreshAuras, T="RegisterEvent", U="UNIT_AURA", A="SetScript", B="OnEvent", C="SetPoint", D="BOTTOM", E="TOP", F="GetName", G="Aura", }
/run for i=1,5 do local b,i,a,c,d,e=_G[J.O..i],J.P(J.Q);i[J.T](i,J.U);i[J.A](i,J.B,function(_,_,x) if x==b.unit then J.S(b,x,10,"Z",1,nil) end end) a=b[J.F](b);d,e=a..J.G,a.."Z";for j=1,10 do c=J.P(J.Q,e..j,b,J.R);c[J.C](c,J.E,_G[d..j],J.D,0,-2);end end

Change portraits to show class icons
/run UFP = "UnitFramePortrait_Update"; UICC = "Interface\\Glues\\CharacterCreate\\UI-CharacterCreate-Classes"; CIT = CLASS_ICON_TCOORDS
/run hooksecurefunc(UFP,function(self) if self.portrait then local t = CIT[select(2,UnitClass(self.unit))] if t then self.portrait:SetTexture(UICC) self.portrait:SetTexCoord(unpack(t)) end end end)

Misc

Move bottom left and right action bars
Change numbers to adjust positioning
/run MultiBarBottomLeft:ClearAllPoints();MultiBarBottomLeft:SetPoint("CENTER",0,0)
/run MultiBarBottomRight:ClearAllPoints();MultiBarBottomRight:SetPoint("CENTER",0,-100)

Hide art that are to the left and right of the main action bar
/run MainMenuBarLeftEndCap:Hide();MainMenuBarRightEndCap:Hide()



#1929181 I hate marks! (in 2s)

Posted Trusts on 09 March 2010 - 01:41 PM

sockersot said:

With the amount of pressure hunter + healer team (no paladin) should have on a warrior / rogue, rogue teams are harder due to evasion. Warrior can't remain offensive on your healer if he wants to survive. Use a timed web / mc on healer and he can run los from rogue and get topped before they get on him again.

I don't even want to know how fast you kill warriors then if you find killing rogues harder, was just rediculous how fast you gibbed my rogue last night, not only did you manage to flare at the begining, you just killed me thru evasion/pain supression, before I could even reach either off you :o :mad:

T2 Hunter dmg is just stupid on marksman hunters btw


#1835350 Debuff mod?

Posted Xmo on 12 February 2010 - 03:40 AM

Not wanting to use different unit frames for my own personal reasons, but when I'm not targetting a party member I can't see all their debuffs and therefore don't know if it's safe to dispel fears when there's a UA lock if not all debuffs show.  Is there an addon frame to fix this without totally changing my frames?

Thanks!


#1821270 [Paladin/Priest/Rogue] Is it still viable?

Posted Belligerent on 08 February 2010 - 06:49 PM

tbh i think you will lose to every UA warlock team. You're going to get howled, have UA up and just slowly lose cause your priest will oom or just not be able to heal you since you don't exactly have anyway to stop damage once you cant break that... second fear.


#1802727 MLS Still Good

Posted Sharor on 03 February 2010 - 07:02 PM

Shamanizer said:

Played it today. Seems very strong. Atleast RMPs doesnt kill you in CS-KS, blanket silence anymore.

But we're pretty rusty from not playing for 2 weeks.

one thing i can say is , hunter damage is still retarded.

warrior damage is still retarded.

Double healer is just as annoying, if not even more annoying. Cant kill anything unless you outmana them, which rarely happens unless you get some pretty hefty drinks off.

Gonna try run MLD later just to see how it is with a druid. Might lose shocks and tremor, but we gain cyclone + extra roots which seems like a better buff.

Perfect cc kills dual healer, but it really requires you to play flawless ;)


#1797008 Priest Keybindings!

Posted bIlliAn on 02 February 2010 - 11:24 AM

fuck this forum... too many people giving +rep


#1755200 DK Basics

Posted ameego on 22 January 2010 - 10:54 PM

See here for updated thread.


#1645929 After watching some high rated bc vids

Posted Trotsky on 26 December 2009 - 10:45 AM

I've come to the realization that people who support patch 2.4 are fucking retarded. Alot of these "pro" players showcased the arena system that rewarded generic strategies and even more generic situational responses.

It was funny watching a holy paladin struggle to live against a warrior because he literately had one heal.


#1631356 African Turtle Cleave ~Team Strats~

Posted Khanitus on 21 December 2009 - 09:04 PM

Ghouse said:

your WLD strat says something about a pally, i assume you meant their warrior?

fixed


#1623708 Its time to remove Heroism/Bloodlust from arena.

Posted Blowi on 19 December 2009 - 01:50 PM

We received buffs in in TBC, but always best to flame every single shaman and generalize, I suppose.

I wouldn't mind heroism to be changed, shorter duration/cd or some self buff such as PI, just better in a way.

ps. we were not shit in tbc all the time


#1578857 For people saying AJ is turning into WoW forums

Posted Vorst on 07 December 2009 - 09:55 PM

Warriors are fine, armor penetration is not. The warriors stacking strength aren't doing unreasonable damage. However, without ARP warrior damage on plate targets is lackluster. It is unfortunately that ARP can even compete with strength on low armor targets. If it was balanced properly, ARP would be the stat you use to destroy plate and would do little to help against cloth. However, ARP is just simply the best to have against cloth, leather, mail and plate.

Also, the problem with AJ and every forum is that retards can post. This is my first arena season. I only received my posting access a couple weeks ago when I hit 2400. However, I am a strong follower of PvE, PvP, avid reader of almost every forum, blog, podcast, RSS feed, etc. By someones earlier definition, I do not deserve posting rights as I am not a 2-glad player.

I think the best direction the site could take is establishing an Elitest Jerks stance on retarded posts. It would require heavy moderation but over time would definitely turn the community in a better direction.

examples:
"a s3/s4 druid glad WOULD say that"
"you are a s5 dk glad, stfu"
"carried by comp, carried by class"

These and similar trollish posts would receive infractions and suspensions from the site. I have received 6 infractions and suspensions from Elitest Jerks for minor posts, most involving useless posts. I also received one for responding to a retarded post instead of reporting it. It changed my posting behaviors so that I only post something when it is meaningful and adds to the discussion.

Anyway, just my 2c.
inb4 carried by beast cleave


#1577110 For people saying AJ is turning into WoW forums

Posted Setantaa on 07 December 2009 - 12:52 PM

Well he did make me laugh. :D


<