Bodyguard Health Frame
Before I begin, I have never made an AddOn before. Therefore, I'm not even sure this can be done, let alone how to do it if it is possible. If there is already someone else working on this, that's great, but if not, I'd love to take a stab at it with your help.
So, for those of you still here after that first paragraph, I feel that the bodyguard deserves their own health/aggro frame, especially since there is a 1 hour cooldown to resummon in the case they die. As it stands, the only way to know if they are near death, or pulling aggro is to constantly target them, which is not at all feasible when fighting. Focus frame is also not reliable, obviously. I have been searching for a way to show an NPC's health in a new frame, but there doesn't seem to have been a need for this before now. Any and all help would be appreciated. |
I answered this on the official forums, in case anyone else was curious.
In summary: It's probably possible, but it's not easy because bodyguards don't have a unitID. |
Thanks for throwing the link and the help, Choon.
|
I might be looking into making a basic addon to track it, it might be decently reliable actually, after advice from #wowuidev.
Maybe a good idea to make it as a library, to open up more possibilities for display addons. |
I honestly haven't had have any problems using the FocusFrame, but I agree it would be nice for them to have their own UnitID so I can use focus for other targets if needed.
|
Coud anyone make an addon to set the Bodyguard automaticly as Focus if you don't have an other focus? That woud be the best alternative for me.
|
An addon can't automatically set anything as your focus.
|
Quote:
|
Code:
/stopmacro [@focus,exists] |
Quote:
EDIT: I see other players followers have a different name However can anyone tell me if there is an AddOn to alert me when my focus has low HP? Maybe kind of a bigwigs warning when below 50% hp a with blinking screen? Sound dosen't realy help since I hear music while farming. |
Basic code to spam the UIErrorsFrame with "Follower Name @ 42% HP!" while your follow's health is under 50%.
Code:
local alertFor = { http://addon.bool.no/ |
Thanks again Phanx - as I told you via PM the code is not working, even tryed to disable all AddOns.
Maybe someone else can help to fix it? If possible even add a BigWigs alert to it with the screen light up thing? I added names for all Bodyguards in all languages to the file: BodyguardFocusAlert.toc Code:
## Interface: 60000 Code:
local alertFor = { |
Well, assuming you did not make an error when copying and pasting, the problem is simple -- you forgot to list the Lua file in the TOC file, so it's not getting loaded at all. ;)
|
Quote:
Code:
## Interface: 60000 Quote:
|
Don't you need another parenthesis on this line?
f:SetScript("OnEvent", function(self, event, unit) |
No, the parenthesis is closed as is the function with end)
|
Got it to work now!
However it dosen't have any use for me yet since its just a little white text :( Realy need a BIG warning and Screen flashing or something like BigWigs. http://i.imgur.com/H7YepYd.jpg |
Yeah, I don't raid anymore so I don't have BigWigs installed and didn't feel like downloading it and searching through 10000 lines of code to find how to trigger a custom alert. You'd just need to change the UIErrorsFrame:AddMessage line to do whatever it is you wanted to do, though.
|
Thanks again Phanx have uploaded it here now, with a sound and Raidwarning:
http://www.wowinterface.com/download...ocusAlert.html |
So i'm not shure if i shoud start a new topic on this:
Anyone has an idea of how an addon coud work that reminds you of taking your bodyguard with you when you talk to the flight master in your garrison? Its not only me with that problem i also heard some guildmates talking about this. pull in a new bodyguard into my building then taking the farest flghtpath that he has just to find out that i forgot to pick up the bodyguard from his place in front of the.building. Maybe ist possible to check if you have talked to the bodyguard after you have put him into the building. |
All times are GMT -6. The time now is 11:55 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI