Anyone aware of any addon that happens to display with an icon if the enemy is in or out of combat?
Would greatly improve my saps.
Thanks
Anyone aware of any addon that happens to display with an icon if the enemy is in or out of combat?
Would greatly improve my saps.
Thanks
IF you use pitbull unit frames, you can adjust it to show if your target or whoever you want with a unit frame is in combat. Other than that I have no clue.
A lot of top-players, such as Woundman, uses a script for this.
The script(s) makes an icon show next to the target and focusframes when they are in combat.
I can post them for you when I get home and get access to my computer!
bump, would really appreciate the script
Moving this to the Interface & Macro forum.
OnLoad
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
OnEvent
if event == "PLAYER_REGEN_ENABLED" then
self:Hide()
elseif event == "PLAYER_REGEN_DISABLED" then
self:Show()
end
closest i can get
still no idea how to use it
---------- Post added 2012-01-19 at 01:16 AM ----------
o gawd why did you move my post to interface and macros... it only made this in general because NO ONE posted anything on my thread in the interface and macros forums...
Code:/run z=CreateFrame("Frame")z:SetParent(TargetFrame)z:SetPoint("Right",TargetFrame,0,5)z:SetSize(35,35)z.t=z:CreateTexture(nil,BORDER)z.t:SetAllPoints()z.t:SetTexture("Interface\\Icons\\ABILITY_DUALWIELD")z:Hide()Source: http://www.arenajunkies.com/topic/15.../page__st__560Code:/run local function FrameOnUpdate(self) if UnitAffectingCombat("target") then self:Show() else self:Hide() end end local g = CreateFrame("Frame") g:SetScript("OnUpdate", function(self) FrameOnUpdate(z) end)
Just remove /run and put both lines into an addon.
Last edited by Newbie95816; 2012-01-19 at 03:24 AM.
That's pretty legit. I'll have to try these out. Definitely would get more saps off since I don't have to guesstimate it.
|| Ducivo ||
awesome thanks
---------- Post added 2012-01-19 at 03:22 AM ----------
i still have a problem, after i set it up for both target and focus frames, the icon just stays there, regardless of whether the target in question is in combat.
and how do i run all the macros at once?
Did you set the frame variables to something else for the second one?
If you put them into an addon, it should execute everything instead of you having to run each macro. Here's the guide.
Here is another version of it, I haven't tested this one.
Source: Also found on the page aboveCode:local f = CreateFrame("Frame", UIParent) f.t = f:CreateTexture() f.t:SetTexture("Interface\\CHARACTERFRAME\\UI-StateIcon.blp") f.t:SetTexCoord(0.5,1,0,0.49); f.t:SetAllPoints(f) f:SetWidth(20) f:SetHeight(20) f:SetPoint("CENTER", TargetFrame, "CENTER", 15, 20) f:EnableMouse(true) f:SetMovable(true) f:SetScript("OnMouseDown", function(self) if IsShiftKeyDown() and IsControlKeyDown() then self:StartMoving() end end) f:SetScript("OnMouseUp", function(self) self:StopMovingOrSizing() end) f:Show() local function FrameOnUpdate(self) if IsShiftKeyDown() and IsControlKeyDown() then self:Show() else if UnitAffectingCombat("target") then self:Show() else self:Hide() end end end local g = CreateFrame("Frame") g:SetScript("OnUpdate", function(self) FrameOnUpdate(f) end)
Last edited by Newbie95816; 2012-01-19 at 03:56 AM.
yep i made 3 macros, 1st one being the first script u sent, the second i edited to focusframe -35,5 left to set it to the side of my focusframe on the right half of my screen.
Do i have to make an addon to execute it every fight? Or if i dont, do i have to execute it every fight with a /script command?
Thanks heaps for the codes btw
If you make it into an addon, you do not have to do anything. You don't need to use the /script commands.
any idea how to make it so the arena frames display the icons for every enemy in the arena too?
Make it for the arena frames, I don't remember the exact name of them. You can /fstack and hover your mouse over them for the frame names when you join one. The unit names are arena1, arena2, arena3, arena4, and arena5.
Just note, you'll need more variables for those frames/textures also. You might have to adjust the placement of the textures.
Last edited by Newbie95816; 2012-01-19 at 05:31 AM.
ok new issue. the first one was resolved fully thanks to the help of newbie95816. =)
i want to run a script when i logon, which i converted to an addon:
however it doesnt run. any ideas why?PHP Code:
local Frame = CreateFrame("Frame")
Frame:RegisterEvent("PLAYER_LOGIN")
Frame:RegisterEvent("CVAR_UPDATE")
Frame:RegisterEvent("VARIABLES_LOADED")
Frame:RegisterEvent("PLAYER_ENTERING_WORLD")
Frame:SetScript("OnEvent", function(...)
LoadAddOn("Blizzard_ArenaUI")
ArenaEnemyFrames:Show()
for i = 1, 5 do _G["ArenaEnemyFrame"..i]:Show() end
end)
local Frame = CreateFrame("Frame")
Frame:RegisterEvent("PLAYER_LOGIN")
Frame:RegisterEvent("CVAR_UPDATE")
Frame:RegisterEvent("VARIABLES_LOADED")
Frame:RegisterEvent("PLAYER_ENTERING_WORLD")
Frame:SetScript("OnEvent", function(...)
ArenaEnemyFrame1:SetScale(1.3)
ArenaEnemyFrame2:SetScale(1.3)
ArenaEnemyFrame3:SetScale(1.3)
ArenaEnemyFrame4:SetScale(1.3)
ArenaEnemyFrame5:SetScale(1.3)
ArenaEnemyFrame1PetFrame:SetScale(1.3)
ArenaEnemyFrame2PetFrame:SetScale(1.3)
ArenaEnemyFrame3PetFrame:SetScale(1.3)
ArenaEnemyFrame4PetFrame:SetScale(1.3)
ArenaEnemyFrame5PetFrame:SetScale(1.3)
end)
update: it looks like it's working.. only if i change a setting in options =O
Last edited by lawomous; 2012-01-19 at 07:38 PM.