Simple addon classic
In our guild we have a player who dies a lot, it's a running joke in our raids now. I'm looking to get an addon that will only work during raids and will announce in raid warning "(Player name) has died. This is his (total number of deaths) death" so it will have to keep track of how many times he has died. I have no idea where to start and any help would be greatly appreciated.
|
Perhaps try the addon "Recount". It won't automatically spam the chat as the person dies, but it will track deaths on one of its pages and you can broadcast that to chat.
To build it yourself, take a look at: https://wow.gamepedia.com/COMBAT_LOG...Special_Events |
Sounds familiar. :rolleyes:
Cheekiness aside, there are a few ways to detect a party/raid member's death. I would actually watch UNIT_HEALTH and react when UnitHealth() returns zero. The combat log has a limited range and can miss deaths if they happen far away. I may be tempted to make this myself whenever I find the time just for the fun of it. |
Hi,
if you do it I'll surely install it :) Thanks :) |
I have some prototype code. Right now, it reports everyone.
Lua Code:
PS: I may be one of those. All I can say is I make the other casters go... |
Thanks for the replies everyone. SDPhantom that looks great! Is there anyway I can edit it to only watch the health of one person in the raid?
|
This one takes a slightly different approach and lets you add/remove players with slash commands.
Lua Code:
Usage: /dcadd unit - Adds unit to list of players being watched. /dcrem unit - Removes unit from list of players being watched. /dcclr - Clears watch list. Notes: Only players in your party/raid can be added to the watch list. They will be automatically removed if they leave the group. The list is also cleared if you leave the group. Even though these commands are written to take a UnitID, keep in mind the names of players in your party/raid are also valid UnitIDs. |
Hi SDPhantom,
I have packed your code in an addon and I am using without error. Some questions: 1) Is it supposed to run in retail too ? I play retail and I have no errors, but I was not in a raid yet :) 2) Does this line: Lua Code:
include also the dungeon 5 man and m+ and the addon is supposed to track deaths in these ? 3) Is it possible to print a summary of all deaths ? Thanks :) |
Quote:
Quote:
Quote:
|
Ah ,
I have missed this :) Quote:
About question nr.2: So, in retail, if I leave: Lua Code:
It is disabled only in LFR, not in the group finder we usually use to make m+ (Dungeons & Raids --> Premade Groups --> Dungeons) . About question nr.3: The v1 automagically adds members as they join my party (group) and remove them as they leave. The v2 need the members to be added manually with the / command. Is possible print a summary of the table death for the member that are currently tracked (the ones in the group for v1 and the manually added for the v2 when they are in the group :) ? If one meber leave I lost him in the summary but I am fine to print the numbers of others party member :) Thanks. |
Hi again...
just to adds functionality could be done that in the default state it starts in v1, but when we used a manual add it commute to version v2 wiping all the data and track only the manual ones ? :) Then the problem is to return in the v1 :) with another command ? :)) /dcmode auto ? /dcadd auto|groups|party ? Thanks :) |
Quote:
Quote:
Quote:
PS: I would be wary of how spammy v1 can get on a raid wipe if you keep the raid warning message intact. |
Hi SdPhantom,
thanks for the reply ... are you sure about the lines 27 and 28 of v1 and v2 ? I read them in the code above :) Thanks. |
Quote:
Aside from those, v2 has more status messages to make it more user-friendly and had lightened the group restriction to include party. |
The addon doesn't seem to be working for me. The slash commands just say type /help for a listing of a few commands. Doesn't seem to be picking up the addon. Not sure why.
|
Quote:
|
All times are GMT -6. The time now is 09:48 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI