How to get the nickname of a killed player? - WoWInterface
Thread Tools Display Modes
03-15-23, 01:42 PM   #1
A Defias Bandit
Join Date: Dec 2022
Posts: 2
How to get the nickname of a killed player?

Hello everyone, I'm new to developing addons for the game. Can you please tell me how to get the nickname (and server) of the player I killed in PvP mode
  Reply With Quote
03-15-23, 02:02 PM   #2
nUI Maintainer
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,784
First off, welcome to the world of addon programming.
Secondly, bookmark these sites if you haven't already:

This link points you to how you can get unit info which would be your target or mouseover etc..

The following is an old post that asked the same question.
But .. I couldn't see UNIT_DIED or PARTY_KILL on wowinterface now so may be events that have been removed.

The other option is
But all it does is pick up a unit_id which you might be able to use to get the unit name using the function I mentioned above.

The problem though is whether your target changes between you killing the person and the event triggering and being acted on.

But good luck.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to get the nickname of a killed player?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off